The Spectral Geometry of Thought: Phase Transitions, Instruction Reversal, Token-Level Dynamics, and Perfect Correctness Prediction in How Transformers Reason
Abstract
We discover that large language models exhibit spectral phase transitions in their hidden activation spaces when engaging in reasoning versus factual recall. Through systematic spectral analysis across 11 models spanning 5 architecture families (Qwen, Pythia, Phi, Llama, DeepSeek-R1), we identify seven core phenomena: (1)Reasoning Spectral Compression -- 9/11 models show significantly lower for reasoning (), with larger effects in stronger models; (2)Instruction Tuning Spectral Reversal -- base models show reasoning factual , while instruction-tuned models reverse this relationship; (3)Architecture-Dependent Generation Taxonomy -- prompt-to-response shifts partition into expansion, compression, and equilibrium regimes; (4)Spectral Scaling Law -- across 4 Qwen base models (); (5)Token-Level Spectral Cascade -- per-token alpha tracking reveals local synchronization that decays exponentially with layer distance, and is weaker for reasoning than factual tasks; (6)Reasoning Step Spectral Punctuation -- phase-transition signatures align with reasoning step boundaries; and (7)~Spectral Correctness Prediction -- spectral alone achieves AUC (Qwen2.5-7B, late layers) and mean AUC across 6 models in predicting correctness before the final answer is generated. Together, these findings establish a comprehensive spectral theory of reasoning in transformers, revealing that the geometry of thought is universal in direction, architecture-specific in dynamics, and predictive of outcome.
Figures & tables
| Model | Family | Params | Layers | Type | Norm | Attention |
|---|---|---|---|---|---|---|
| Qwen2.5-0.5B | Qwen | 0.5B | 24 | Base | RMSNorm | GQA |
| Qwen2.5-3B | Qwen | 3B | 36 | Base | RMSNorm | GQA |
| Qwen2.5-7B | Qwen | 7B | 28 | Base | RMSNorm | GQA |
| Qwen2.5-1.5B-Instruct | Qwen | 1.5B | 28 | Instruct | RMSNorm | GQA |
| Qwen2.5-3B-Instruct | Qwen | 3B | 36 | Instruct | RMSNorm | GQA |
| DeepSeek-R1-1.5B | DeepSeek-R1 | 1.5B | 28 | Reasoning | RMSNorm | GQA |
| Model | Type | |||||
| Qwen Base (reasoning = more distributed) | ||||||
| Qwen2.5-0.5B | Base | 1.159 | 1.481 | |||
| Qwen2.5-3B | Base | 0.985 | 1.398 | |||
| Qwen2.5-7B | Base | 0.832 | 1.512 | |||
| Qwen Instruct (reasoning = more concentrated or mixed ) | ||||||
| Qwen2.5-1.5B-I | Instruct | 0.946 | 1.685 | |||
| Layer Pair | Distance | Reasoning vs. Factual | |
|---|---|---|---|
| L9–L18 | 9 | 0.855 | |
| L18–L27 | 9 | 0.826 | |
| L27–L35 | 8 | 0.466 | |
| L0–L9 | 9 | 0.439 | |
| L9–L27 | 18 | 0.675 | |
| L0–L18 | 18 | 0.324 |
| Model | Acc. | Best AUC | Best Phase | Best Layer AUC |
|---|---|---|---|---|
| Qwen2.5-7B | 65.0% | 1.000 | Late | 0.999 (L23) |
| Qwen2.5-3B | 56.0% | 0.995 | Response | 0.978 (L20) |
| DeepSeek-R1-1.5B | 29.0% | 0.947 | Late | 0.761 (L0) |
| Phi-2 | 27.0% | 0.974 | Mid | 0.960 (L26) |
| Qwen2.5-3B-Instruct | 36.0% | 0.945 | Response | 0.808 (L30) |
| Pythia-2.8B | 0.0% | 0.500 | — | 0.5 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Task Name | Description |
| Reasoning | 2-step arithmetic | Two-step arithmetic chain (e.g., ) |
| 3-step arithmetic | Three-step arithmetic chain | |
| 4-step arithmetic | Four-step arithmetic chain | |
| Linear equations | Solve for in | |
| Ratio problems | Word problems involving ratios and proportions | |
| Syllogisms | Classical logical syllogisms |
| Model | Mean | Min |
|---|---|---|
| Qwen2.5-0.5B | 0.78 | |
| Qwen2.5-3B | 0.82 | |
| Qwen2.5-7B | 0.84 | |
| Qwen2.5-1.5B-Instruct | 0.76 | |
| Qwen2.5-3B-Instruct | 0.80 | |
| DeepSeek-R1-1.5B | 0.74 |
| Model | ||||||
|---|---|---|---|---|---|---|
| Qwen2.5-0.5B | 1.159 | 1.481 | — | — | ||
| Qwen2.5-3B | 1.045 | 1.363 | 1.057 | 1.035 | ||
| Qwen2.5-7B | 0.964 | 1.428 | 0.942 | 1.014 | ||
| Qwen2.5-1.5B-I | 1.114 | 1.587 | 1.119 | 1.106 | ||
| Qwen2.5-3B-I | 0.949 | 1.409 | — | — | ||
| DS-R1-1.5B | 1.402 | 1.653 | 0.928 | 1.554 |
| Category | Correct | Acc. | (L27) | (L27) | ||
|---|---|---|---|---|---|---|
| Code tracing | 10 | 8 | 80% | 0.726 | 0.755 | |
| Commonsense | 10 | 4 | 40% | 0.722 | 0.697 | |
| Multi-hop math | 10 | 2 | 20% | 0.690 | 0.656 | |
| Logical elim. | 10 | 6 | 60% | 0.745 | 0.682 | |
| Overall | 40 | 20 | 50% | 0.728 | 0.684 |
| Category | Correct | Acc. | (L35) | (L35) | ||
|---|---|---|---|---|---|---|
| Code tracing | 10 | 2 | 20% | 0.734 | 0.790 | |
| Commonsense | 10 | 6 | 60% | 0.777 | 0.736 | |
| Multi-hop math | 10 | 4 | 40% | 0.726 | 0.726 | |
| Logical elim. | 10 | 6 | 60% | 0.848 | 0.771 | |
| Overall | 40 | 18 | 45% | 0.791 | 0.784 |
Representation Geometry in Language Models
Representation geometry in language models studies how embeddings and hidden states organize concepts, computation, and behavior.
See all 417 papers