2025/05/20 by Zhipeng Yang, Yang, Zhipeng, Junzhuo Li +5 · 1 voice · 5 citations
Computer Science · #Big Data and Digital Economy #Generative Adversarial Networks and Image Synthesis #Topic Modeling #cs.CL #cs.LG
paper · pdf · doi:10.48550/arxiv.2505.14530
arxiv published 2025/05/20 · arxiv updated 2025/09/28
We show that large language models (LLMs) exhibit an internal chain-of-thought: they sequentially decompose and execute composite tasks layer-by-layer. Two claims ground our study: (i) distinct subtasks are learned at different network depths, and (ii) these subtasks are executed sequentially across layers. On a benchmark of 15 two-step composite tasks, we employ layer-from context-masking and propose a novel cross-task patching method, confirming (i). To examine claim (ii), we apply LogitLens to decode hidden states, revealing a consistent layerwise execution pattern. We further replicate our analysis on the real-world TRACE benchmark, observing the same stepwise dynamics. Together, our results enhance LLMs transparency by showing their capacity to internally plan and execute subtasks (or instructions), opening avenues for fine-grained, instruction-level activation steering.