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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yang, Hao, Zhao, Qinghua, Li, Lei, Meng, Lingyi, Yu, Mengda
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910255779151872
author Yang, Hao
Zhao, Qinghua
Li, Lei
Meng, Lingyi
Yu, Mengda
author_facet Yang, Hao
Zhao, Qinghua
Li, Lei
Meng, Lingyi
Yu, Mengda
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_20758
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle How Chain-of-Thought Works? Tracing Information Flow from Decoding, Projection, and Activation
Yang, Hao
Zhao, Qinghua
Li, Lei
Meng, Lingyi
Yu, Mengda
Artificial Intelligence
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.
title How Chain-of-Thought Works? Tracing Information Flow from Decoding, Projection, and Activation
topic Artificial Intelligence
url https://arxiv.org/abs/2507.20758