Understanding Hidden Computations in Chain-of-Thought Reasoning
Aryasomayajula Ram Bharadwaj
TL;DR
This work probes how transformer models perform reasoning when explicit chain-of-thought steps are replaced by filler tokens. By applying the logit lens and token-ranking analyses to a 3SUM-based setup, the authors show that hidden reasoning steps persist across layers and can be recovered by examining lower-ranked tokens, without degrading task performance. A modified decoding scheme that bypasses fillers demonstrates practical recovery of the original reasoning, supporting the view that internal computations are preserved and overwritten only in output formatting. These results advance interpretability in language models and highlight mechanisms that balance computation and output generation, with implications for transparency and controllability of chain-of-thought reasoning.
Abstract
Chain-of-Thought (CoT) prompting has significantly enhanced the reasoning abilities of large language models. However, recent studies have shown that models can still perform complex reasoning tasks even when the CoT is replaced with filler(hidden) characters (e.g., "..."), leaving open questions about how models internally process and represent reasoning steps. In this paper, we investigate methods to decode these hidden characters in transformer models trained with filler CoT sequences. By analyzing layer-wise representations using the logit lens method and examining token rankings, we demonstrate that the hidden characters can be recovered without loss of performance. Our findings provide insights into the internal mechanisms of transformer models and open avenues for improving interpretability and transparency in language model reasoning.
