NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Geometry of Reasoning: Flowing Logics in Representation Space

Yufa Zhou, Yixiao Wang, Xunjian Yin, Shuyan Zhou, Anru R. Zhang · DOI

Introduction

A central debate in artificial intelligence concerns whether Large Language Models (LLMs) possess genuine reasoning capabilities or are merely "stochastic parrots" that predict the next most likely token based on surface-level statistics. While benchmarks measure output accuracy, they often fail to capture the internal process of deduction. This paper introduces a novel geometric framework that models reasoning as continuous "flows" within an LLM's internal representation space, suggesting that logic is internalized as a fundamental geometric law.

The Context Cumulative Flow Framework

Moving beyond the Linear Representation Hypothesis—which focuses on static concept vectors—the researchers propose treating reasoning as a dynamic Context Cumulative Flow. As a model processes a Chain-of-Thought (CoT) sequence, its internal hidden states trace a trajectory through a high-dimensional manifold. To analyze these trajectories, the study employs tools from differential geometry:

  1. Velocity (1st Order): Captures the direction and speed of representation changes between reasoning steps.
  2. Menger Curvature (2nd Order): Measures how sharply a trajectory "turns," providing a metric for the complexity of the logical transition.
Reasoning flows visualized in 3D PCA space, showing the trajectories of hidden states as the model processes different logical steps.

Experimental Methodology

To isolate logic from semantic content, the authors developed a controlled benchmark of 30 distinct logical structures (e.g., propositional and first-order logic). These structures were instantiated across 20 topical domains (e.g., weather, sports, education) and translated into four languages (English, Chinese, German, and Japanese). By analyzing 2,430 reasoning sequences, the researchers could test for "logical invariants"—patterns that persist regardless of the topic or language used.

Results: Logic as a Geometric Invariant

The study reveals a striking distinction between where a model is in representation space and how it moves. While Position Similarity is heavily influenced by surface features like language (reaching similarities up to 0.89), the Velocity and Curvature Similarity are primarily governed by the underlying logic.

Quantitative comparison of similarity metrics across various models, demonstrating that logic is the primary invariant in velocity and curvature.

Key findings include:

  • Logic as a Controller: Logic acts as a local controller of velocity. The topic determines the starting coordinates, but the logical operation dictates the movement to the next state.
  • The Shuffle Test: When the order of logical steps is randomly permuted, velocity and curvature similarities collapse toward zero, while positional similarity remains high. This confirms that the geometric flow specifically encodes the sequential order of operations essential for reasoning.
  • Universal Representation: These geometric patterns were consistent across different model families (Qwen and LLaMA), supporting the Platonic Representation Hypothesis—the idea that a universal representational law emerges during training regardless of specific architecture.

Discussion and Future Work

This "flow" perspective offers a new lens for AI interpretability. By identifying logical invariants in the derivatives of representations (velocity and curvature), researchers can look past surface-level text to the "invariant skeleton" of reasoning. Future work may leverage these metrics to develop tools that "steer" reasoning by intervening in velocity space or use curvature to detect hallucinations when a model's logical thread begins to fray. While the current framework focuses on understanding how models represent logic, connecting these geometric measures directly to generation accuracy remains a vital next step.

Summary updated

BibTeX
@inproceedings{zhou2026geometry,
  author = {Yufa Zhou and Yixiao Wang and Xunjian Yin and Shuyan Zhou and Anru R. Zhang},
  title = {{The Geometry of Reasoning: Flowing Logics in Representation Space}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ixr5Pcabq7},
}
Figure