Toward Mechanistic Explanation of Deductive Reasoning in Language Models

Davide Maltoni, Matteo Ferrara
10/10/2025
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Recent large language models have demonstrated relevant capabilities in solving problems that require logical reasoning; however, the corresponding internal mechanisms remain largely unexplored. In this paper, we show that a small language model can solve a deductive reasoning task by learning the underlying rules (rather than operating as a statistical learner). A low-level explanation of its internal representations and computational circuits is then provided. Our findings reveal that induction heads play a central role in the implementation of the rule completion and rule chaining steps involved in the logical inference required by the task.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{maltoni2025toward,
  title  = {Toward Mechanistic Explanation of Deductive Reasoning in Language Models},
  author = {Davide Maltoni and Matteo Ferrara},
  year   = {2025},
  eprint = {2510.09340},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.09340v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.09340.svg)](https://codeofpaper.com/paper/2510.09340)

Discussion