mlsanityData to 14 Oct 2026

LayerIF: Estimating Layer Quality for Large Language Models using Influence Functions

arXiv 2505.23811 ↗First posted 27 May 2025cs.CL cs.AI cs.LGcited by 12

Not on the map. Why?

Abstract (arXiv)

Pretrained Large Language Models (LLMs) achieve strong performance across a wide range of tasks, yet exhibit substantial variability in the various layers' training quality with respect to specific downstream applications, limiting their downstream performance. It is therefore critical to estimate layer-wise training quality in a manner that accounts for both model architecture and training data. However, existing approaches predominantly rely on model-centric heuristics (such as spectral statistics, outlier detection, or uniform allocation) while overlooking the influence of data. To address these limitations, we propose LayerIF, a data-driven framework that leverages Influence Functions to quantify the training quality of individual layers in a principled and task-sensitive manner. By isolating each layer's gradients and measuring the sensitivity of the validation loss to training examples by computing layer-wise influences, we derive data-driven estimates of layer importance. Notably, our method produces task-specific layer importance estimates for the same LLM, revealing how layers specialize for different test-time evaluation tasks. We demonstrate the utility of our scores by leveraging them for two downstream applications: (a) expert allocation in LoRA-MoE architectures and (b) layer-wise sparsity distribution for LLM pruning. Experiments across multiple LLM architectures demonstrate that our model-agnostic, influence-guided allocation leads to consistent gains in task performance.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 73 of its 94 references that are in the map. First posted on arXiv 27 May 2025.

Builds on

73 of 94 references.

References · 73

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  4. 2024GPT-4o System Cardcited by 4,588
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  8. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  9. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  11. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  12. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
38 more
  1. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 2,031
  2. 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,919
  3. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  4. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  5. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  6. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
  7. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  8. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
  9. 2020Quantifying Attention Flow in Transformerscited by 775
  10. 2019Attention is not not Explanationcited by 636
  11. 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 629
  12. 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
  13. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  14. 2017Opening the Black Box of Deep Neural Networks via Informationcited by 503
  15. 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
  16. 2019The State of Sparsity in Deep Neural Networkscited by 476
  17. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
  18. 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
  19. 2019Is Attention Interpretable?cited by 389
  20. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
  21. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
  22. 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 364
  23. 2023Studying Large Language Model Generalization with Influence Functionscited by 326
  24. 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 311
  25. 2023TRAK: Attributing Model Behavior at Scalecited by 283
  26. 2019Towards Efficient Data Valuation Based on the Shapley Valuecited by 281
  27. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
  28. 2018Implicit Self-Regularization in Deep Neural Networks: Evidence from Random Matrix Theory and Implications for Learningcited by 215
  29. 2022Datamodels: Predicting Predictions from Training Datacited by 189
  30. 2018Representer Point Selection for Explaining Deep Neural Networkscited by 187
  31. 2021Beta Shapley: a Unified and Noise-reduced Data Valuation Framework for Machine Learningcited by 165
  32. 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 165
  33. 2023Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuningcited by 150
  34. 2019Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithmscited by 148
  35. 2024MixLoRA: Enhancing Large Language Models Fine-Tuning with LoRA-based Mixture of Expertscited by 147
  36. 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
  37. 2021Scaling Up Influence Functionscited by 132
  38. 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125

50 most cited of 73 All 73 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 9.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Outlier-weighed Layerwise Sampling for LLM Fine-tuning
  2. 2026Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity
  3. 2021Efficient Large Scale Language Modeling with Mixtures of Experts
  4. 2026Latent Performance Profiling of Large Language Models
  5. 2025Layer-Wise High-Impact Parameter Ratio Optimization in Post-Training Quantization for Large Language Models
  6. 2026Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores
  7. 2024Exploring the Trade-Offs: Quantization Methods, Task Difficulty, and Model Size in Large Language Models From Edge to Giant
  8. 2024How to Train Data-Efficient LLMs