Geometry of Reason: Spectral Signatures of Valid Mathematical Reasoning
Abstract
Lay Summary
When a language model solves a math problem, it is not always clear whether it has genuinely reasoned through the answer or simply produced something that looks convincing. Catching the difference matters: in automated mathematics, education, and scientific discovery, a subtly wrong argument that goes undetected can cause real harm downstream. We discovered that the answer is hidden in the model's own internal wiring. As a language model processes text, it continuously decides which words to pay attention to, a mechanism called attention. When a model works through a valid mathematical proof, these attention patterns form a particular geometric shape: well-connected, smooth, and globally coherent. Invalid proofs produce a fractured and irregular shape instead. By measuring a few simple properties of this shape, borrowing tools from the mathematics of networks, we can classify whether a proof is correct with 85 to 96% accuracy across seven different AI models, without any training or labeled examples. One surprising finding is that our method sometimes disagrees with formal proof checkers, and when we looked closely, our method was right. Proof checkers reject valid proofs for technical reasons like timeouts or missing library imports. Our geometric signal tracks the underlying logical correctness instead. The method also has a practical payoff: using it to select the best proof from a set of candidates improves success rates by up to 6.6\%, nearly matching the performance of purpose-built supervised systems at zero labeling cost.