The Remarkable Robustness of LLMs: Stages of Inference?

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.

Eliciting LatentPredictions from…Eliciting Latent Predictions from Transformers with the Tuned LensQwen Technical ReportQwen Technical ReportFinding Neurons in aHaystack: Case Studies…Finding Neurons in a Haystack: Case Studies with Sparse ProbingDissecting Recall ofFactual Associations in…Dissecting Recall of Factual Associations in Auto-Regressive Language ModelsAnalyzing Transformersin Embedding SpaceAnalyzing Transformers in Embedding SpaceThe Hydra Effect:Emergent Self-repair in…The Hydra Effect: Emergent Self-repair in Language Model ComputationsUniversal Neurons inGPT2 Language ModelsUniversal Neurons in GPT2 Language ModelsLanguage ModelsRepresent Space and TimeLanguage Models Represent Space and TimeInformation Flow Routes:Automatically…Information Flow Routes: Automatically Interpreting Language Models at ScaleFunction Vectors inLarge Language ModelsFunction Vectors in Large Language ModelsThe Llama 3 Herd ofModelsThe Llama 3 Herd of ModelsThe UnreasonableIneffectiveness of the…The Unreasonable Ineffectiveness of the Deeper LayersRepresentationalAnalysis of Binding in…Representational Analysis of Binding in Large Language ModelsUniversal Response andEmergence of Induction…Universal Response and Emergence of Induction in LLMsFrom Tokens to Words: Onthe Inner Lexicon of…From Tokens to Words: On the Inner Lexicon of LLMsDo Language Models UseTheir Depth Efficiently?Do Language Models Use Their Depth Efficiently?The Curse of Depth inLarge Language ModelsThe Curse of Depth in Large Language ModelsAttention Sinks andCompression Valleys in…Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same CoinTransformer Layers asPaintersTransformer Layers as PaintersMix-LN: Unleashing thePower of Deeper Layers…Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNSuperBPE: Space Travelfor Language ModelsSuperBPE: Space Travel for Language ModelsThe Dual-Route Model ofInductionThe Dual-Route Model of InductionWhen Models ManipulateManifolds: The Geometry…When Models Manipulate Manifolds: The Geometry of a Counting TaskWhen Does SparsityMitigate the Curse of…When Does Sparsity Mitigate the Curse of Depth in LLMsThe RemarkableRobustness of LLMs…The Remarkable Robustness of LLMs: Stages of Inference?過去の参考文献中心の論文この論文を引用する論文古い新しい

ノードをクリックするとフォーカスを固定、空白をクリックすると本論文に戻ります。ホバーで一時的にプレビューできます。各ノードのページはタイトルから開けます。