How Chain-of-Thought Works? Tracing Information Flow from Decoding, Projection, and Activation

Hao Yang, Qinghua Zhao, Lei Li
7/28/2025
cs.AI

No confident code implementation found for this paper.

Abstract

Chain-of-Thought (CoT) prompting significantly enhances model reasoning, yet its internal mechanisms remain poorly understood. We analyze CoT's operational principles by reversely tracing information flow across decoding, projection, and activation phases. Our quantitative analysis suggests that CoT may serve as a decoding space pruner, leveraging answer templates to guide output generation, with higher template adherence strongly correlating with improved performance. Furthermore, we surprisingly find that CoT modulates neuron engagement in a task-dependent manner: reducing neuron activation in open-domain tasks, yet increasing it in closed-domain scenarios. These findings offer a novel mechanistic interpretability framework and critical insights for enabling targeted CoT interventions to design more efficient and robust prompts. We released our code and data at https://anonymous.4open.science/r/cot-D247.

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{yang2025chainofthought,
  title  = {How Chain-of-Thought Works? Tracing Information Flow from Decoding, Projection, and Activation},
  author = {Hao Yang and Qinghua Zhao and Lei Li},
  year   = {2025},
  eprint = {2507.20758},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.20758v1}
}

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

Discussion