mlsanityData to 7 Oct 2026

Deductive Logic in Language Models: Horizontal vs Vertical Reasoning

arXiv 2510.09340 ↗First posted 10 Oct 2025cs.AI cs.CLcited by 1

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Recent language models exhibit significant logical reasoning abilities, yet the mechanisms supporting deductive inference remain poorly understood. This paper studies small transformer-based language models trained from scratch on multi-step deductive tasks, focusing on the distinction between horizontal reasoning, where intermediate steps are generated autoregressively, and vertical reasoning, where inference unfolds implicitly across layers before the first output token is produced. We analyze two synthetic tasks: logical consequence over chains of symbolic implications and root-to-leaf navigation in binary trees. Mechanistic interpretability reveals that Chain-of-Thought supervision enables models to learn rule-based inference rather than statistical shortcuts. In the horizontal setting, a shallow attention-only model develops interpretable circuits for rule completion, rule chaining, and final decision making, largely implemented through induction-head-like mechanisms. We further introduce a truncated pseudoinverse method to decode the information carried by queries, keys, and values. For vertical reasoning, Chain-of-Thought appears to act less as explicit step-by-step guidance and more as a form of curriculum learning, helping the model acquire increasingly complex reasoning patterns. Without Chain-of-Thought, models tend to memorize or exploit dataset biases. These results provide a low-level account of how transformers can implement deductive reasoning and suggest how Chain-of-Thought may serve different functions in horizontal and vertical reasoning.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 25 of its 42 references that are in the map. First posted on arXiv 10 Oct 2025.

Builds on

25 of 42 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025How do Transformers Learn Implicit Reasoning?29 May
  2. 2025Logical Reasoning in Large Language Models: A Survey13 Feb
  3. 2025JustLogic: A Comprehensive Benchmark for Evaluating Deductive Reasoning in Large Language Models24 Jan
  4. 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning6 Nov
  5. 2024MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Models12 Oct
  6. 2024Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference16 Aug
  7. 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Models23 Apr
  8. 2022Towards Reasoning in Large Language Models: A Survey20 Dec
  9. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning19 May

Other references · 16

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  3. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  4. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  5. 2020ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Languagecited by 309
  6. 2020Transformers as Soft Reasoners over Languagecited by 265
  7. 2021Curriculum Learning: A Surveycited by 257
  8. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  9. 2024How to use and interpret activation patchingcited by 191
  10. 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 155
  11. 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
  12. 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
4 more
  1. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  2. 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
  3. 2025How Do LLMs Perform Two-Hop Reasoning in Context?cited by 20
  4. 2023Arithmetic with Language Models: from Memorization to Computationcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Comparing Inferential Strategies of Humans and Large Language Models in Deductive Reasoning
  2. 2024The Role of Deductive and Inductive Reasoning in Large Language Models
  3. 2024Inductive or Deductive? Rethinking the Fundamental Reasoning Abilities of LLMs
  4. 2026Revealing Algorithmic Deductive Circuits for Logical Reasoning
  5. 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought
  6. 2025LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM Reasoning
  7. 2023Implicit Chain of Thought Reasoning via Knowledge Distillation
  8. 2025Reasoning Beyond Language: A Comprehensive Survey on Latent Chain-of-Thought Reasoning