atlas

Research map / Large language models / Language, safety and interpretability

A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Uses causal mediation analysis on a minimal propositional logic task to find a sparse, modular four-family attention-head circuit in Mistral-7B, Gemma-2-9B and Gemma-2-27B.

Problem

How pre-trained LLMs internally execute multi-step propositional logical reasoning: which components localize, move, process and decide over facts and rules.

Approach

Designs a controlled five-variable propositional logic template so that counterfactual prompts can be generated systematically, then applies QUERY-based causal mediation and patching to reveal a sparse circuit with four specialized attention-head families (queried-rule locating, queried-rule mover, fact-processing, decision) in in-the-wild LLMs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add queried-rule locating heads to the circuit (ablation)Gemma-2-9B reasoning circuit · Normal samplesΔ^C_normal/Δ_normal: -0.97 -> 0.94Helped
Add queried-rule mover heads to the circuit (ablation)Gemma-2-9B reasoning circuit · Normal samplesΔ^C_normal/Δ_normal: -0.40 -> 0.94Helped
Add fact-processing heads to the circuit (ablation)Gemma-2-9B reasoning circuit · Normal samplesΔ^C_normal/Δ_normal: 0.17 -> 0.94Helped
Add decision heads to the circuit (ablation)Gemma-2-9B reasoning circuit · Normal samplesΔ^C_normal/Δ_normal: -1.11 -> 0.94Helped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic propositional logic problems generated from template

Benchmarks: synthetic propositional logic task (proof and query accuracy)

Metrics: calibrated logit difference proof accuracy circuit sufficiency ratio (direct effect / normal logit diff

Baselines: 3-layer transformer trained on the task

Builds on: causal mediation analysis activation patching indirect object identification circuit analysis

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy