Growing evidence suggests that large language models do not use their depth uniformly, yet we still lack a fine-grained understanding of their layer-wise prediction dynamics. In this paper, we trace the intermediate representations of several open-weight models during inference and reveal a structured and nuanced use of depth. Specifically, we propose a "Guess-then-Refine" framework that explains how LLMs internally structure their computations to make predictions. We first show that the top-ranked predictions in early LLM layers are composed primarily of high-frequency tokens, which act as statistical guesses proposed by the model due to the lack of contextual information. As contextual information develops deeper into the model, these initial guesses get refined into contextually appropriate tokens. We then examine the dynamic usage of layer depth through three case studies. (i) Multiple-choice task analysis shows that the model identifies appropriate options within the first half of the model and finalizes the response in the latter half. (ii) Fact recall task analysis shows that in a multi-token answer, the first token requires more computational depth than the rest. (iii) Part-of-speech analysis shows that function words are, on average, the earliest to be predicted correctly. To validate our results, we supplement probe-based analyses with causal manipulations in the form of activation patching and early-exiting experiments. Together, our results provide a detailed view of depth usage in LLMs, shedding light on the layer-by-layer computations that underlie successful predictions and providing insights for future works to improve computational efficiency in transformer-based models.
Cue-CoT: Chain-of-thought Prompting for Responding to In-depth Dialogue Questions with LLMs
The Chinese University of Hong Kong(香港中文大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Huawei Noah’s Ark Lab(华为诺亚方舟实验室);National University of Singapore(新加坡国立大学);Peng Cheng Laboratory(鹏城实验室)
An In-depth Evaluation of Large Language Models in Sentence Simplification with Error-based Human Assessment
Graduate School of Information Science and Technology, The University of Osaka(信息科学与技术研究生学校,大阪大学);School of Computing, Institute of Science Tokyo(计算学院,科学研究所东京)
When Does Sparsity Mitigate the Curse of Depth in LLMs
Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);ELLIS Institute Tübingen(ELLIS图宾根研究所);ETH Zürich(苏黎世联邦理工学院);Tübingen AI Center(图宾根人工智能中心);Zuse Institute Berlin(柏林祖泽研究所);Technical University of Berlin(柏林工业大学);Emory University(埃默里大学)
What Affects the Effective Depth of Large Language Models?
Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学);Department of Computer Science, Massachusetts Institute of Technology(计算机科学系,麻省理工学院)
LLMs are Also Effective Embedding Models: An In-depth Overview
Beihang University(北航大学);SKLSDE Lab, Beihang University(北航SKLSDE实验室);University of Technology Sydney(悉尼大学);University of Electronic Science and Technology of China(电子科技大学);Peking University(北京大学)
How Proficient Are Large Language Models in Formal Languages? An In-Depth Insight for Knowledge Base Question Answering
BNRist;Huawei Cloud Computing Technologies Co., Ltd.(华为云计算技术有限公司);School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机学院);THU - Siemens Ltd., China Joint Research Center for Industrial Intelligence and IoT(清华-西门子工业智能与物联网联合研究中心)
Compute Allocation for Self-Evolving LLMs: From Depth-Breadth to Multi-Armed Bandits
University of Notre Dame(诺丁汉大学);Northeastern University(东北大学);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Southeast University(东南大学);Northwestern University(西北大学);Nanjing University(南京大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
DABench-LLM: Standardized and In-Depth Benchmarking of Post-Moore Dataflow AI Accelerators for LLMs
Dept. of Computer Science Stevens Institute of Technology(计算机科学系 斯坦福理工学院);Dept. of Computer Science Binghamton University(计算机科学系 哈伯里顿大学);Engineering The Ohio State University(工程学 俄亥俄州立大学);Learning Division Argonne National Laboratory(学习部 阿贡国家实验室)
Unifying Depth and Width Pruning for LLMs via Binary Knapsack Optimization
Yardi School of Artificial Intelligence, Indian Institute of Technology Delhi(德里印度理工学院亚迪人工智能学院);Indian Institute of Technology Delhi(德里印度理工学院);Microsoft Research (MSR) India(微软研究院印度分部)
Exploring Concept Depth: How Large Language Models Acquire Knowledge and Concept at Different Layers?
Rutgers University(罗格斯大学);University of Exeter(埃克塞特大学);Northwestern University(西北大学);New Jersey Institute of Technology(新泽西理工学院);Wake Forest University(维克森林大学)