mlsanityData to 7 Oct 2026

Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity

arXiv 2605.14075 ↗First posted 13 May 2026cs.LG cs.CLcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  9. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  10. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  11. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  12. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
35 more
  1. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  2. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  3. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  4. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  5. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
  6. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
  7. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  8. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  9. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  10. 2022Multimodal Learning with Transformers: A Surveycited by 399
  11. 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
  12. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  13. 2023Language Models Represent Space and Timecited by 306
  14. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
  15. 2023Linear Representations of Sentiment in Large Language Modelscited by 157
  16. 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 150
  17. 2015Structured Pruning of Deep Convolutional Neural Networkscited by 148
  18. 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
  19. 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
  20. 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 96
  21. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  22. 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
  23. 2024What Matters in Transformers? Not All Attention is Neededcited by 83
  24. 2024Shortened LLaMA: Depth Pruning for Large Language Models with Comparison of Retraining Methodscited by 80
  25. 2023A Survey on Transformers in Reinforcement Learningcited by 50
  26. 2024Transformer Layers as Painterscited by 50
  27. 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
  28. 2025The Origins of Representation Manifolds in Large Language Modelscited by 46
  29. 2024BlockPruner: Fine-grained Pruning for Large Language Modelscited by 35
  30. 2024Investigating Layer Importance in Large Language Modelscited by 35
  31. 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 26
  32. 2024A deeper look at depth pruning of LLMscited by 23
  33. 2024Reassessing Layer Pruning in LLMs: New Insights and Methodscited by 23
  34. 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Ordercited by 12
  35. 2020Interpretable Contextual Team-aware Item Recommendation: Application in Multiplayer Online Battle Arena Gamescited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
  2. 2025Layer by Layer: Uncovering Hidden Representations in Language Models
  3. 2024Does Representation Matter? Exploring Intermediate Layers in Large Language Models
  4. 2024Understanding Layer Significance in LLM Alignment
  5. 2025END: Early Noise Dropping for Efficient and Effective Context Denoising
  6. 2025Expanding before Inferring: Enhancing Factuality in Large Language Models through Premature Layers Interpolation
  7. 2023Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning
  8. 2025What Affects the Effective Depth of Large Language Models?