Improving Chain-of-Thought for Logical Reasoning via Attention-Aware Intervention

Nguyen Minh Phuong, Dang Huu Tien, Naoya Inoue
1/14/2026
cs.AIcs.LG

Official code: phuongnm94/aai_for_logical_reasoning (1 star, MIT, last commit 2026-03-29).

Abstract

Modern logical reasoning with LLMs primarily relies on employing complex interactive frameworks that decompose the reasoning process into subtasks solved through carefully designed prompts or requiring external resources (e.g., symbolic solvers) to exploit their strong logical structures. While interactive approaches introduce additional overhead or depend on external components, which limit their scalability. In this work, we introduce a non-interactive, end-to-end framework for reasoning tasks, enabling reasoning to emerge within the model itself-improving generalization while preserving analyzability without any external resources. We show that introducing structural information into the few-shot prompt activates a subset of attention heads that patterns aligned with logical reasoning operators. Building on this insight, we propose Attention-Aware Intervention (AAI), an inference-time intervention method that reweights attention scores across selected heads identified by their logical patterns. AAI offers an efficient way to steer the model's reasoning toward leveraging prior knowledge through attention modulation. Extensive experiments show that AAI enhances logical reasoning performance across diverse benchmarks, and model architectures, while incurring negligible additional computational overhead. Code is available at https://github.com/phuongnm94/aai_for_logical_reasoning.

View on arXivView PDF

Code Implementations(1)

MIT
10Shell, PythonJan 14, 20266 months agoMIT

Similar Papers

Cite this paper

@article{phuong2026improving,
  title  = {Improving Chain-of-Thought for Logical Reasoning via Attention-Aware Intervention},
  author = {Nguyen Minh Phuong and Dang Huu Tien and Naoya Inoue},
  year   = {2026},
  eprint = {2601.09805},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.09805v2}
}

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/2601.09805.svg)](https://codeofpaper.com/paper/2601.09805)

Discussion