Logical subspace in LLMs
Organizations: MIT · UPenn
Abstract
Recent work has identified a human brain network specialized for abstract formal reasoning (Kean et al., 2025). Does the same hold true in language models? To answer this question, we introduce the minimal viable subspace (MVS) method, which searches for the lowest-rank activation subspace at a layer that preserves task performance when everything outside that subspace is ablated. Using MVS, we demonstrate low-rank subspaces supporting logical inference on Gemma and Qwen models. Furthermore, these subspaces exhibit a clear dissociation from model capacities on other tasks, such that retaining these late logic subspaces preserves inference while impairing factual knowledge, working memory, cognitive control, and arithmetic. Conversely, ablating them reduces logical inference accuracy to chance while largely sparing these other capacities. Our results suggest a functionally localizable core machinery for logic akin to that in the human brain.
Figures & tables
| Form | Fact cites | Fact | Conclusion | Validity |
|---|---|---|---|---|
| Modus ponens (MP) | antecedent | affirms | valid | |
| Denying the antecedent (DA) | antecedent | denies | invalid | |
| Affirming the consequent (AC) | consequent | affirms | invalid | |
| Modus tollens (MT) | consequent | denies | valid |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Family | Formulation | Rule, as stated (affirmative / negated) |
| if_then | material conditional | If the cube is little, then it is yellow. / …then it is not yellow. |
| fact_first | material conditional | (fact stated first) If the cube is little, then it is yellow. |
| reversed_if | material conditional | The cube is yellow if it is little. / The cube is not yellow if… |
| suppose_observe † | material conditional | Suppose that if the cube is little, then it is yellow. |
| whenever † | generic / habitual | Whenever the cube is little, it is yellow. / …it is not yellow. |
| reversed_whenever | generic / habitual | The cube is yellow whenever it is little. |
LLM Reasoning
Large language model reasoning studies how models solve multi-step problems, verify intermediate steps, and use computation or tools reliably.
See all 931 papers