A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limits
Yuyang Zhang, Yifu Zhang, Xuehai Zhou, Xiaoyin Chen
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Transformer In-Context Reasoning · Type: theory · Keywords: measure-theoretic analysis, optimal transport, Wasserstein distance, Lipschitz continuity, attention mechanisms, circuit depth lower bound
Areas: LLM Reasoning › Reasoning Mechanisms › Chain-of-Thought Reasoning
Summary
A measure-theoretic analysis of reasoning that formalizes reasoning via optimal transport, derives OOD generalization bounds based on Lipschitz continuity and approximation limits, and shows that shift-invariant attention mechanisms improve generalization while position-dependent ones do not.
Explained to a 5-year-old
Big computer programs can think step by step like we do. When they meet a new kind of puzzle, they sometimes get it wrong. We wanted to understand why this happens and how to measure it. We used a special math way to see how far apart their thoughts are. This helped us find two main reasons for mistakes.
Explained to a 5-year-old, longer
Big computer programs can think step by step like we do. When they see a new kind of puzzle, they sometimes get it wrong. We wanted to understand why this happens and how to measure it. We used a special math way to see how far apart their thoughts are. This helped us find two main reasons for mistakes. First, some ways of paying attention keep thoughts steady, while others make them jumpy. Second, making the program deeper helps avoid confusion. We also showed that making the program wider alone cannot fix everything. Our experiments tested many different computer brains on many puzzles. They all followed the patterns we discovered. This gives us a clearer picture of how reasoning works and where it can fail.
For a technical reader
The paper formalizes reasoning using optimal transport and Wasserstein distances to quantify domain shifts. It shows that Lipschitz continuity of attention mechanisms determines OOD generalization, with shift-invariant encodings performing better than position-dependent ones. A depth lower bound for Transformers is derived, linking representation collapse to circuit complexity. Empirical validation across 54 configurations confirms the theoretical predictions.
Problem
Understanding why large language models fail to generalize when reasoning tasks shift across domains, and quantifying the theoretical limits of such generalization. The paper seeks to formalize these mechanisms using optimal transport and derive bounds on generalization risk.
Method
The authors formalize reasoning as optimal transport, projecting discrete reasoning trajectories into a continuous metric space and measuring domain shifts with the Wasserstein-1 distance. They invoke Kantorovich duality to relate OOD generalization to architectural Lipschitz continuity and approximation limits in Barron spaces. They analyze shift invariance of attention mechanisms and derive depth lower bounds for Transformers, corroborated by combinatorial search experiments.
Results
The empirical results confirm the theoretical bounds, showing that generalization risk increases monotonically as the Wasserstein domain shift grows across 54 Transformer configurations.
Contributions
The paper provides a measure-theoretic framework linking reasoning to optimal transport, derives Lipschitz and approximation bounds for OOD generalization, identifies shift-invariant attention as crucial, and proves a depth lower bound for Transformers. It also validates these insights empirically across many configurations.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction