The Geometry of Reasoning: Flowing Logics in Representation Space

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Yufa, Wang, Yixiao, Yin, Xunjian, Zhou, Shuyan, Zhang, Anru R.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910039831216128
author Zhou, Yufa
Wang, Yixiao
Yin, Xunjian
Zhou, Shuyan
Zhang, Anru R.
author_facet Zhou, Yufa
Wang, Yixiao
Yin, Xunjian
Zhou, Shuyan
Zhang, Anru R.
contents We study how large language models (LLMs) ``think'' through their representation space. We propose a novel geometric framework that models an LLM's reasoning as flows -- embedding trajectories evolving where logic goes. We disentangle logical structure from semantics by employing the same natural deduction propositions with varied semantic carriers, allowing us to test whether LLMs internalize logic beyond surface form. This perspective connects reasoning with geometric quantities such as position, velocity, and curvature, enabling formal analysis in representation and concept spaces. Our theory establishes: (1) LLM reasoning corresponds to smooth flows in representation space, and (2) logical statements act as local controllers of these flows' velocities. Using learned representation proxies, we design controlled experiments to visualize and quantify reasoning flows, providing empirical validation of our theoretical framework. Our findings indicate that training solely via next-token prediction can lead LLMs to internalize logical invariants as higher-order geometry in representation space, challenging the ``stochastic parrot'' argument. Experiments across Qwen and LLaMA model families further suggest the presence of a general, possibly universal, representational law underlying machine understanding and human linguistic regularities, largely independent of specific training recipes or model architectures. Our work serves as both a conceptual foundation and practical tools for studying reasoning phenomena, offering a new lens for interpretability and formal analysis of LLMs' behavior.
format Preprint
id arxiv_https___arxiv_org_abs_2510_09782
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Geometry of Reasoning: Flowing Logics in Representation Space
Zhou, Yufa
Wang, Yixiao
Yin, Xunjian
Zhou, Shuyan
Zhang, Anru R.
Artificial Intelligence
Computation and Language
Machine Learning
Logic in Computer Science
We study how large language models (LLMs) ``think'' through their representation space. We propose a novel geometric framework that models an LLM's reasoning as flows -- embedding trajectories evolving where logic goes. We disentangle logical structure from semantics by employing the same natural deduction propositions with varied semantic carriers, allowing us to test whether LLMs internalize logic beyond surface form. This perspective connects reasoning with geometric quantities such as position, velocity, and curvature, enabling formal analysis in representation and concept spaces. Our theory establishes: (1) LLM reasoning corresponds to smooth flows in representation space, and (2) logical statements act as local controllers of these flows' velocities. Using learned representation proxies, we design controlled experiments to visualize and quantify reasoning flows, providing empirical validation of our theoretical framework. Our findings indicate that training solely via next-token prediction can lead LLMs to internalize logical invariants as higher-order geometry in representation space, challenging the ``stochastic parrot'' argument. Experiments across Qwen and LLaMA model families further suggest the presence of a general, possibly universal, representational law underlying machine understanding and human linguistic regularities, largely independent of specific training recipes or model architectures. Our work serves as both a conceptual foundation and practical tools for studying reasoning phenomena, offering a new lens for interpretability and formal analysis of LLMs' behavior.
title The Geometry of Reasoning: Flowing Logics in Representation Space
topic Artificial Intelligence
Computation and Language
Machine Learning
Logic in Computer Science
url https://arxiv.org/abs/2510.09782