The Remarkable Robustness of LLMs: Stages of Inference?
Not on the map. Why?
Abstract (arXiv)
We investigate the robustness of Large Language Models (LLMs) to structural interventions by deleting and swapping adjacent layers during inference. Surprisingly, models retain 72-95% of their original top-1 prediction accuracy without any fine-tuning. We find that performance degradation is not uniform across layers: interventions to the early and final layers cause the most degradation, while the model is remarkably robust to dropping middle layers. This pattern of localized sensitivity motivates our hypothesis of four stages of inference, observed across diverse model families and sizes: (1) detokenization, where local context is integrated to lift raw token embeddings into higher-level representations; (2) feature engineering, where task- and entity-specific features are iteratively refined; (3) prediction ensembling, where hidden states are aggregated into plausible next-token predictions; and (4) residual sharpening, where irrelevant features are suppressed to finalize the output distribution. Synthesizing behavioral and mechanistic evidence, we provide a framework for interpreting depth-dependent computations in LLMs.
Key facts. Cited by 138 papers in the map (data through 7 Oct 2026). Builds on 66 of its 83 references that are in the map. First posted on arXiv 27 Jun 2024.
Builds on
66 of 83 references.
References · 66
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2023Qwen Technical Reportcited by 3,273
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
38 more
- 2022In-context Learning and Induction Headscited by 930
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
- 2018Universal Transformerscited by 613
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2023Textbooks Are All You Needcited by 561
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023Language Models Represent Space and Timecited by 306
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2023Function Vectors in Large Language Modelscited by 292
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2022The Alignment Problem from a Deep Learning Perspectivecited by 246
- 2020Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depthcited by 241
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 237
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2023An Overview of Catastrophic AI Riskscited by 214
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 175
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 167
- 2023Linear Representations of Sentiment in Large Language Modelscited by 157
- 2019Adaptively Sparse Transformerscited by 154
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 145
- 2022Analyzing Transformers in Embedding Spacecited by 131
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2018Interactive Supercomputing on 40,000 Cores for Machine Learning and Data Analysiscited by 110
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 104
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2024: 18; 2025: 53; 2026: 67.
138 papers.
Sort:
By area:
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 293
- 2024Programming Refusal with Conditional Activation Steeringcited by 191
- 2025See What You Are Told: Visual Attention Sink in Large Multimodal Modelscited by 127
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 89
- 2025Your Large Vision-Language Model Only Needs A Few Attention Heads For Visual Groundingcited by 78
- 2025SAEs Are Good for Steering -- If You Select the Right Featurescited by 74
- 2025The Curse of Depth in Large Language Modelscited by 58
- 2025SuperBPE: Space Travel for Language Modelscited by 58
- 2025Large Language Models Share Representations of Latent Grammatical Concepts Across Typologically Diverse Languagescited by 57
- 2024Transformer Layers as Painterscited by 50
- 2025Do Language Models Use Their Depth Efficiently?cited by 48
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
38 more
- 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 46
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
- 2024Decomposing The Dark Matter of Sparse Autoencoderscited by 42
- 2024Efficient Dictionary Learning with Switch Sparse Autoencoderscited by 38
- 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNcited by 37
- 2024Does Representation Matter? Exploring Intermediate Layers in Large Language Modelscited by 31
- 2024Representational Analysis of Binding in Language Modelscited by 27
- 2026A Mechanistic Analysis of Looped Reasoning Language Modelscited by 27
- 2025The LLM Already Knows: Estimating LLM-Perceived Question Difficulty via Hidden Representationscited by 26
- 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
- 2025Route Sparse Autoencoder to Interpret Large Language Modelscited by 25
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2025The Dual-Route Model of Inductioncited by 22
- 2024Residual Stream Analysis with Multi-Layer SAEscited by 18
- 2025Is the Reversal Curse a Binding Problem? Uncovering Limitations of Transformers from a Basic Generalization Failurecited by 13
- 2025Robustness in Large Language Models: A Survey of Mitigation Strategies and Evaluation Metricscited by 12
- 2026Latent Introspection: Models Can Detect Prior Concept Injectionscited by 12
- 2026Training-Free Looped Transformerscited by 12
- 2026SMELT: Scaling Laws for Compute-Matched MoE Looped Transformerscited by 12
- 2024Persistent Topological Features in Large Language Modelscited by 11
- 2025Layers at Similar Depths Generate Similar Activations Across LLM Architecturescited by 11
- 2025Layer Importance for Mathematical Reasoning is Forged in Pre-Training and Invariant after Post-Trainingcited by 9
- 2026The Myth of Expert Specialization in MoEs: Why Routing Reflects Geometry, Not Necessarily Domain Expertisecited by 9
- 2025Learning to Skip the Middle Layers of Transformerscited by 8
- 2026Inverse Depth Scaling From Most Layers Being Similarcited by 8
- 2025Interpreting Attention Heads for Image-to-Text Information Flow in Large Vision-Language Modelscited by 7
- 2025Low-Rank Adapting Models for Sparse Autoencoderscited by 6
- 2025Leveraging the true depth of LLMscited by 6
- 2025Token Distillation: Attention-aware Input Embeddings For New Tokenscited by 6
- 2025Interpreting Large Text-to-Image Diffusion Models with Dictionary Learningcited by 6
- 2025Linear Representation Transferability Hypothesis: Leveraging Small Models to Steer Large Modelscited by 6
- 2025Line of Sight: On Linear Representations in VLLMscited by 6
- 2025Crosscoding Through Time: Tracking Emergence & Consolidation Of Linguistic Representations Throughout LLM Pretrainingcited by 6
- 2026Anatomy of the Modality Gap: Dissecting the Internal States of End-to-End Speech LLMscited by 6
- 2024OMG-HD: A High-Resolution AI Weather Model for End-to-End Forecasts from Observationscited by 5
- 2025Weight-based Analysis of Detokenization in Language Models: Understanding the First Stage of Inference Without Inferencecited by 5
- 2025Jailbreak Transferability Emerges from Shared Representationscited by 5
- 2025Punctuation and Predicates in Language Modelscited by 5
50 most cited of 138 All 138 (JSON)
- 2026Persistent Depth Ordering amid Shifting Block-Bypass Responses in Language Model Pretraining1 Oct 2026
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMs28 Sep 2026
- 2026How Language Models Differ in Redistributing Attention-Head Activity Under Serial Demand28 Sep 2026
- 2026Spontaneous Context Restoration: How Language Models Recover from Corrupted Inputs28 Sep 2026
- 2026Multilinguality in Hybrid Attention LLMs28 Sep 2026
- 2026The Residual Stream's Effective Depth25 Sep 2026
- 2026Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders23 Sep 2026
- 2026Using OCR Heads to Verbalize Image Semantics16 Sep 2026
- 2026Weakening Neurons: An Input-Output Functionality in Transformers with Outsize Influence16 Sep 2026
- 2026LLM Layers Immediately Correct Each Other7 Sep 2026
- 2026Encoded Early, Used Late: Where Transformers Begin to Act on an Inferred Partner's Expertise7 Sep 2026
- 2026SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers1 Sep 2026
38 more
- 2026The Interlingua Hypothesis: LLMs Translate via a Latent Task-agnostic Feature Space1 Sep 2026
- 2026The Depth Flow of Token Representations Is Nonlinear and Does Not Descend Its Own Density30 Aug 2026
- 2026Meta-Learning Where to Allocate Experts: Task-Conditioned Layer-Wise Compression for MoEs27 Aug 2026
- 2026TACTICL: Task-Aware Compression of Tabular ICL Models11 Aug 2026
- 2026Off-Axis, On Purpose: Where a Transformer Computes Concepts and Why it Does So10 Aug 2026
- 2026Divergent large language model predictions from convergent representations in ambiguous word pairs3 Aug 2026
- 2026Text Template Tokens Are Implicit Semantic Registers in Diffusion Transformers21 Jul 2026
- 2026AGI Maze as a Benchmark Framework for World-Modeling Agents1 Jul 2026
- 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimization29 Jun 2026
- 2026The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training28 Jun 2026
- 2026Epiphany-Aware KV Cache Eviction Without the Attention Matrix25 Jun 2026
- 2026Tapered Language Models22 Jun 2026
- 2026How Transparent is DiffusionGemma?18 Jun 2026
- 2026Who Do Language Models Think Is Competent? A Mechanistic Analysis of Occupational Bias15 Jun 2026
- 2026Inside the LLM Word Factory7 Jun 2026
- 2026On the Persistent Effects of Lexicality in Large Language Models1 Jun 2026
- 2026Tracing Computation Density in LLMs26 May 2026
- 2026Training-Free Looped Transformers22 May 2026
- 2026Uncovering the Latent Potential of Deep Intermediate Representations21 May 2026
- 2026fmxcoders: Factorized Masked Crosscoders for Cross-Layer Feature Discovery10 May 2026
- 2026The Convergence Gap: Instruction-Tuned Language Models Stabilize Later in the Forward Pass8 May 2026
- 2026Is One Layer Enough? Understanding Inference Dynamics in Tabular Foundation Models7 May 2026
- 2026Defragmenting Language Models: An Interpretability-based Approach for Vocabulary Expansion17 Apr 2026
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Task14 Apr 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026A Mechanistic Analysis of Looped Reasoning Language Models13 Apr 2026
- 2026The Myth of Expert Specialization in MoEs: Why Routing Reflects Geometry, Not Necessarily Domain Expertise10 Apr 2026
- 2026Disentangling MLP Neuron Weights in Vocabulary Space7 Apr 2026
- 2026Unveiling the Reasoning Process of Large Language Models31 Mar 2026
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMs16 Mar 2026
- 2026NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networks6 Mar 2026
- 2026Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot Learning5 Mar 2026
- 2026Anatomy of the Modality Gap: Dissecting the Internal States of End-to-End Speech LLMs2 Mar 2026
- 2026Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models26 Feb 2026
- 2026From Words to Amino Acids: Does the Curse of Depth Persist?25 Feb 2026
- 2026Latent Introspection: Models Can Detect Prior Concept Injections23 Feb 2026
- 2026Modularity is the Bedrock of Natural and Artificial Intelligence21 Feb 2026
- 2026Residual Connections and the Causal Shift: Uncovering a Structural Misalignment in Transformers16 Feb 2026
50 newest of 138 All 138 (JSON)
- 2026A Mechanistic Analysis of Looped Reasoning Language Modelscited by 27
- 2025Layer Importance for Mathematical Reasoning is Forged in Pre-Training and Invariant after Post-Trainingcited by 9
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Mergingcited by 4
- 2025Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learningcited by 4
- 2026On the Limits of Layer Pruning for Generative Reasoning in Large Language Modelscited by 3
- 2026How Transparent is DiffusionGemma?cited by 2
- 2025FFN Fusion: Rethinking Sequential Computation in Large Language Modelscited by 1
- 2026Epiphany-Aware KV Cache Eviction Without the Attention Matrixcited by 1
- 2026Unveiling the Reasoning Process of Large Language Modelscited by 0
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Taskcited by 0
- 2026Who Do Language Models Think Is Competent? A Mechanistic Analysis of Occupational Biascited by 0
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMscited by 0
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMs28 Sep 2026
- 2026Epiphany-Aware KV Cache Eviction Without the Attention Matrix25 Jun 2026
- 2026How Transparent is DiffusionGemma?18 Jun 2026
- 2026Who Do Language Models Think Is Competent? A Mechanistic Analysis of Occupational Bias15 Jun 2026
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Task14 Apr 2026
- 2026A Mechanistic Analysis of Looped Reasoning Language Models13 Apr 2026
- 2026Unveiling the Reasoning Process of Large Language Models31 Mar 2026
- 2026On the Limits of Layer Pruning for Generative Reasoning in Large Language Models2 Feb 2026
- 2025Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning26 Nov 2025
- 2025Layer Importance for Mathematical Reasoning is Forged in Pre-Training and Invariant after Post-Training27 Jun 2025
- 2025FFN Fusion: Rethinking Sequential Computation in Large Language Models24 Mar 2025
- 2025Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging6 Feb 2025
- 2025See What You Are Told: Visual Attention Sink in Large Multimodal Modelscited by 127
- 2025Your Large Vision-Language Model Only Needs A Few Attention Heads For Visual Groundingcited by 78
- 2025Interpreting Attention Heads for Image-to-Text Information Flow in Large Vision-Language Modelscited by 7
- 2026Representations of Text and Images Align From Layer Onecited by 3
- 2025Insights into a radiology-specialised multimodal large language model with sparse autoencoderscited by 2
- 2026SwiftVLM: Efficient Vision-Language Model Inference via Cross-Layer Token Bypasscited by 2
- 2025Ternarization of Vision Language Models for use on edge devicescited by 0
- 2025Prompt the Unseen: Evaluating Visual-Language Alignment Beyond Supervisioncited by 0
- 2026SwiftVLM: Efficient Vision-Language Model Inference via Cross-Layer Token Bypass3 Feb 2026
- 2026Representations of Text and Images Align From Layer One12 Jan 2026
- 2025Interpreting Attention Heads for Image-to-Text Information Flow in Large Vision-Language Models22 Sep 2025
- 2025Prompt the Unseen: Evaluating Visual-Language Alignment Beyond Supervision31 Aug 2025
- 2025Insights into a radiology-specialised multimodal large language model with sparse autoencoders17 Jul 2025
- 2025Ternarization of Vision Language Models for use on edge devices7 Apr 2025
- 2025Your Large Vision-Language Model Only Needs A Few Attention Heads For Visual Grounding8 Mar 2025
- 2025See What You Are Told: Visual Attention Sink in Large Multimodal Models5 Mar 2025
- 2026Training-Free Looped Transformerscited by 12
- 2026SMELT: Scaling Laws for Compute-Matched MoE Looped Transformerscited by 12
- 2026The Myth of Expert Specialization in MoEs: Why Routing Reflects Geometry, Not Necessarily Domain Expertisecited by 9
- 2025Learning to Skip the Middle Layers of Transformerscited by 8
- 2026Meta-Learning Where to Allocate Experts: Task-Conditioned Layer-Wise Compression for MoEscited by 0
- 2026SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers1 Sep 2026
- 2026Meta-Learning Where to Allocate Experts: Task-Conditioned Layer-Wise Compression for MoEs27 Aug 2026
- 2026Training-Free Looped Transformers22 May 2026
- 2026The Myth of Expert Specialization in MoEs: Why Routing Reflects Geometry, Not Necessarily Domain Expertise10 Apr 2026
- 2025Learning to Skip the Middle Layers of Transformers26 Jun 2025
- 2026Multilinguality in Hybrid Attention LLMscited by 0
- 2026Multilinguality in Hybrid Attention LLMs28 Sep 2026
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 293
- 2024Programming Refusal with Conditional Activation Steeringcited by 191
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 89
- 2025SAEs Are Good for Steering -- If You Select the Right Featurescited by 74
- 2025The Curse of Depth in Large Language Modelscited by 58
- 2025SuperBPE: Space Travel for Language Modelscited by 58
- 2025Large Language Models Share Representations of Latent Grammatical Concepts Across Typologically Diverse Languagescited by 57
- 2024Transformer Layers as Painterscited by 50
- 2025Do Language Models Use Their Depth Efficiently?cited by 48
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
- 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 46
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
12 most cited of 107 All 107 (JSON)
- 2026Persistent Depth Ordering amid Shifting Block-Bypass Responses in Language Model Pretraining1 Oct 2026
- 2026How Language Models Differ in Redistributing Attention-Head Activity Under Serial Demand28 Sep 2026
- 2026Spontaneous Context Restoration: How Language Models Recover from Corrupted Inputs28 Sep 2026
- 2026The Residual Stream's Effective Depth25 Sep 2026
- 2026Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders23 Sep 2026
- 2026Using OCR Heads to Verbalize Image Semantics16 Sep 2026
- 2026Weakening Neurons: An Input-Output Functionality in Transformers with Outsize Influence16 Sep 2026
- 2026LLM Layers Immediately Correct Each Other7 Sep 2026
- 2026Encoded Early, Used Late: Where Transformers Begin to Act on an Inferred Partner's Expertise7 Sep 2026
- 2026The Interlingua Hypothesis: LLMs Translate via a Latent Task-agnostic Feature Space1 Sep 2026
- 2026The Depth Flow of Token Representations Is Nonlinear and Does Not Descend Its Own Density30 Aug 2026
- 2026TACTICL: Task-Aware Compression of Tabular ICL Models11 Aug 2026
12 newest of 107 All 107 (JSON)