TRANSMISSION // 2605.27824v2

Where do language models make deduction decisions?

Source published

A study uses controlled interventions to examine attention-head activity during structured deduction, finding role-specific decision effects and more distributed information reading.

AI-generated conceptual illustration for Where do language models make deduction decisions?
AI-generated conceptual illustration; not documentary evidence.

When a language model follows a chain of logical steps, which internal processes are involved in choosing what comes next? Researchers tested this question in several models using structured deduction tasks and interventions on attention heads. Their findings describe effects under those experimental conditions—not a general map of how AI reasons.

A model can produce a sequence of deductions without revealing how it generated them. Phuong Minh Nguyen, Tien Huu Dang and Naoya Inoue investigated which parts of language models’ internal activity are causally involved in steps of structured logical reasoning, and how those parts relate to one another.

The tasks asked models to work from facts and rules and derive whether a conclusion followed. As a simple illustration—not a quoted experiment—if a rule says “If A, then F” and A is given as true, F follows. The study used prompts with a few worked examples, including examples that demonstrated a systematic way to explore possible inferences, such as a graph-traversal strategy.

The researchers tested five models: Qwen3-4B, Qwen3-8B, Qwen3-30B-A3B, Llama-3.1-8B-Instruct and phi-4. They generated synthetic problems with explicit facts, rules and reasoning steps. They also examined identified components on the ProntoQA and ProofWriter logical-reasoning benchmarks, and tested effects on the broader MMLU benchmark.

To investigate internal activity, the team used causal mediation analysis. They built matched prompt pairs: a clean prompt and a corrupted version that changed relevant information, such as a fact or rule, while preserving prompt structure and length. The change was designed to call for a different inference. The researchers then ran the model with the expected outputs supplied token by token—a technique called teacher forcing—and patched attention-head activations from one run into the other. They compared normalized differences in the model’s logits, the scores it assigns to candidate next tokens. Restoring clean activations in a corrupted run tested whether the target-token scores moved toward the clean run; inserting corrupted activations in a clean run tested the reverse. These measurements assess effects on specified tokens in this setup, not general reasoning ability by themselves.

The analysis focused on three decisions in each inference step: which premise to select, whether to stop selecting premises, and which rule to apply. For each decision role, the researchers selected a separate set of high-scoring attention heads. In the evaluation across prompt formats, patching the top 30 heads—about 3% of the heads in Llama-3.1-8B-Instruct, with the same proportion used for other models in that evaluation—restored nearly all of the clean–corrupt logit difference for premise and rule selection. For the decision to stop selecting premises, it restored roughly 60–85%. The sets were selected separately for each role and partially overlapped; the 3% figure does not describe one combined set. Other experiments that ablated heads used different counts and configurations.

The researchers also examined heads involved in reading facts and rules from the prompt. These were generally in earlier layers than the decision heads, and their contributions tended to be more distributed. The pattern varied by role and model, however; reading a previously selected premise was an exception where the top reading heads contributed more. The authors suggest that overlapping pathways or backup heads may help explain why some reading functions are distributed.

The study also identified heads sensitive to the order of steps in demonstrations, which may reflect a demonstrated traversal strategy. Those effects were weaker and less consistent across models and prompt templates. In separate ablation tests, removing selected heads caused larger performance declines on the tested logical-reasoning benchmarks than random-head controls. Effects on MMLU were smaller and varied by model. The paper also reports cases where outputs remained in the expected format while deductions were incorrect. This shows that, in those experiments, preserving the format did not guarantee correct reasoning; it does not establish a general rule about how to interpret all model-generated explanations.

Several limits matter. Much of the analysis used synthetic tasks with explicit logical structure, which may not capture informal reasoning in ordinary language. The work focuses on attention heads, although other model components may contribute. Its head-to-head analysis measures causal dependencies mediated through a receiver; it cannot establish direct communication between two heads, since intermediate components may be involved. The researchers also note that setting head outputs to zero can move a model into unusual internal states, so some degradation may reflect the intervention rather than the loss of a reasoning-specific function.

This work is an arXiv preprint. Its findings are evidence about particular models, tasks, prompts and intervention measures, not settled conclusions about language models generally. The authors provide code, allowing others to examine and test the approach further.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Tracing the Internal Signals Behind Language Model Reasoning

    Shared method: Both papers use causal-mediation concepts to attribute reasoning behavior to internal components. Nguyen et al. apply causal mediation analysis to attention heads involved in decisions in symbolic deductive traces; Li et al. characterize Integrated Policy Gradient as an approximation to causal mediation for outcome attribution across reasoning trajectories. The methods, components, and evaluated tasks differ, so this is a bounded methodological connection, not evidence that their findings are interchangeable. The evidence is from selected excerpts, and the papers may be preprints.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2605.27824v2 — Original paper

      Excerpt reference: static/papers/2605.27824v2.md:159-207
      Basis: Paper text
      Source file SHA-256: 7e74616dab4f1754251d607b2a32a39ba34dcf625cd954345daba619ce4b186f

    • 2602.02313v3 — Original paper

      Excerpt reference: static/papers/2602.02313v3.md:121-171
      Basis: Paper text
      Source file SHA-256: 58d202f3ca3a981a3a60c10b8a718ebe89459e7b56359d0ee682c251c5c85b19

  • Mapping the visual reasoning skills inside AI models

    Shared method: Both studies use activation interventions to assess attention-head contributions: Nguyen et al. describe causal mediation and patching for locating heads involved in deductive reasoning decisions, while Li and Li describe activation patching to measure head contributions in vision-language-model skills. Their tasks and head-selection procedures differ; this is a methodological connection, not evidence of shared circuits or results. The evidence is from selected excerpts, and the papers may be preprints.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2605.27824v2 — Original paper

      Excerpt reference: static/papers/2605.27824v2.md:750-841
      Basis: Paper text
      Source file SHA-256: 7e74616dab4f1754251d607b2a32a39ba34dcf625cd954345daba619ce4b186f

    • 2611.30290v1 — Original paper

      Excerpt reference: static/papers/2611.30290v1.md:242-312
      Basis: Paper text
      Source file SHA-256: a50ef8b53aa74a8f9679afcb2e3e5d3d4836cf88706b7f3f78f514258b261d50

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.