Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Large language models (LLMs) have revolutionized natural language processing. Understanding their internal mechanisms is crucial for developing more interpretable and optimized architectures. Mechanistic interpretability has led to the development of various methods for assessing layer relevance, with cosine similarity being a widely used tool in the field. On this work, we demonstrate that cosine similarity is a poor proxy for the actual performance degradation caused by layer removal. Our theoretical analysis shows that a layer can exhibit an arbitrarily low cosine similarity score while still being crucial to the model's performance. On the other hand, empirical evidence from a range of LLMs confirms that the correlation between cosine similarity and actual performance degradation is often weak or moderate, leading to misleading interpretations of a transformer's internal mechanisms. We propose a more robust metric for assessing layer relevance: the actual drop in model accuracy resulting from the removal of a layer. Even though it is a computationally costly metric, this approach offers a more accurate picture of layer importance, allowing for more informed pruning strategies and lightweight models. Our findings have significant implications for the development of interpretable LLMs and highlight the need to move beyond cosine similarity in assessing layer relevance.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 47 of its 56 references that are in the map. First posted on arXiv 13 May 2026.
Builds on
47 of 56 references.
References · 47
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
35 more
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 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
- 2022Multimodal Learning with Transformers: A Surveycited by 399
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2023Language Models Represent Space and Timecited by 306
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2023Linear Representations of Sentiment in Large Language Modelscited by 157
- 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 150
- 2015Structured Pruning of Deep Convolutional Neural Networkscited by 148
- 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 96
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2024Shortened LLaMA: Depth Pruning for Large Language Models with Comparison of Retraining Methodscited by 80
- 2023A Survey on Transformers in Reinforcement Learningcited by 50
- 2024Transformer Layers as Painterscited by 50
- 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
- 2025The Origins of Representation Manifolds in Large Language Modelscited by 46
- 2024BlockPruner: Fine-grained Pruning for Large Language Modelscited by 35
- 2024Investigating Layer Importance in Large Language Modelscited by 35
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 26
- 2024A deeper look at depth pruning of LLMscited by 23
- 2024Reassessing Layer Pruning in LLMs: New Insights and Methodscited by 23
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Ordercited by 12
- 2020Interpretable Contextual Team-aware Item Recommendation: Application in Multiplayer Online Battle Arena Gamescited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Understanding Calibration and Truncation Error Propagation in Training-Free Low-Rank Compression for LLMscited by 2
- 2026Understanding Layer Patching in Model Size Interpolationcited by 1
- 2026Six Layers Less: Encoder Pruning for Whisper with Label-Free Recoverycited by 0
- 2026Does the VGGT Family Need All Its Layers?cited by 0
- 2026Does the VGGT Family Need All Its Layers?29 Sep 2026
- 2026Six Layers Less: Encoder Pruning for Whisper with Label-Free Recovery23 Sep 2026
- 2026Understanding Calibration and Truncation Error Propagation in Training-Free Low-Rank Compression for LLMs9 Aug 2026
- 2026Understanding Layer Patching in Model Size Interpolation9 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
- 2025Layer by Layer: Uncovering Hidden Representations in Language Models
- 2024Does Representation Matter? Exploring Intermediate Layers in Large Language Models
- 2024Understanding Layer Significance in LLM Alignment
- 2025END: Early Noise Dropping for Efficient and Effective Context Denoising
- 2025Expanding before Inferring: Enhancing Factuality in Large Language Models through Premature Layers Interpolation
- 2023Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning
- 2025What Affects the Effective Depth of Large Language Models?