LayerIF: Estimating Layer Quality for Large Language Models using Influence Functions
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
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2024GPT-4o System Cardcited by 4,588
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
38 more
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 2,031
- 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,919
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019Attention is not not Explanationcited by 636
- 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 629
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2017Opening the Black Box of Deep Neural Networks via Informationcited by 503
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
- 2019The State of Sparsity in Deep Neural Networkscited by 476
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
- 2019Is Attention Interpretable?cited by 389
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
- 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 364
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 311
- 2023TRAK: Attributing Model Behavior at Scalecited by 283
- 2019Towards Efficient Data Valuation Based on the Shapley Valuecited by 281
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2018Implicit Self-Regularization in Deep Neural Networks: Evidence from Random Matrix Theory and Implications for Learningcited by 215
- 2022Datamodels: Predicting Predictions from Training Datacited by 189
- 2018Representer Point Selection for Explaining Deep Neural Networkscited by 187
- 2021Beta Shapley: a Unified and Noise-reduced Data Valuation Framework for Machine Learningcited by 165
- 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 165
- 2023Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction Tuningcited by 150
- 2019Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithmscited by 148
- 2024MixLoRA: Enhancing Large Language Models Fine-Tuning with LoRA-based Mixture of Expertscited by 147
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2021Scaling Up Influence Functionscited by 132
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
50 most cited of 73 All 73 (JSON)
Built on by
Citing papers per year: 2025: 3; 2026: 9.
12 papers.
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimationcited by 5
- 2026Pruning as a Cooperative Game: Surrogate-Assisted Layer Contribution Estimation for Large Language Modelscited by 3
- 2025Crown, Frame, Reverse: Layer-Wise Scaling Variants for LLM Pre-Trainingcited by 2
- 2026TraceNAS: Zero-shot LLM Pruning via Gradient Trace Correlationcited by 1
- 2026Golden Layers and Where to Find Them: Improved Knowledge Editing for Large Language Models Via Layer Gradient Analysiscited by 1
- 2026AFRILANGTUTOR: Advancing Language Tutoring and Culture Education in Low-Resource Languages with Large Language Modelscited by 1
- 2026Curvature-Weighted Capacity Allocation: A Minimum Description Length Framework for Layer-Adaptive Large Language Model Optimizationcited by 0
- 2026SafeLens: Deliberate and Efficient Video Guardrails with Fast-and-Slow Screeningcited by 0
- 2026Weight-Adjusted Gradients Reveal Parameter Importance and Failure Modes in LLMscited by 0
- 2026One Modality to Forget Them All: Enhancing Cross-Modal Unlearning in Vision-Language Modelscited by 0
- 2026FLoKD: Adaptive Knowledge Distillation for Federated Low-Rank LLM over Wireless Networkscited by 0
- 2026FLoKD: Adaptive Knowledge Distillation for Federated Low-Rank LLM over Wireless Networks11 Sep 2026
- 2026One Modality to Forget Them All: Enhancing Cross-Modal Unlearning in Vision-Language Models17 Jul 2026
- 2026Weight-Adjusted Gradients Reveal Parameter Importance and Failure Modes in LLMs12 Jul 2026
- 2026SafeLens: Deliberate and Efficient Video Guardrails with Fast-and-Slow Screening17 May 2026
- 2026AFRILANGTUTOR: Advancing Language Tutoring and Culture Education in Low-Resource Languages with Large Language Models22 Apr 2026
- 2026Curvature-Weighted Capacity Allocation: A Minimum Description Length Framework for Layer-Adaptive Large Language Model Optimization1 Mar 2026
- 2026Golden Layers and Where to Find Them: Improved Knowledge Editing for Large Language Models Via Layer Gradient Analysis22 Feb 2026
- 2026Pruning as a Cooperative Game: Surrogate-Assisted Layer Contribution Estimation for Large Language Models8 Feb 2026
- 2026TraceNAS: Zero-shot LLM Pruning via Gradient Trace Correlation2 Feb 2026
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimation6 Nov 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Crown, Frame, Reverse: Layer-Wise Scaling Variants for LLM Pre-Training8 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2024Outlier-weighed Layerwise Sampling for LLM Fine-tuning
- 2026Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity
- 2021Efficient Large Scale Language Modeling with Mixtures of Experts
- 2026Latent Performance Profiling of Large Language Models
- 2025Layer-Wise High-Impact Parameter Ratio Optimization in Post-Training Quantization for Large Language Models
- 2026Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores
- 2024Exploring the Trade-Offs: Quantization Methods, Task Difficulty, and Model Size in Large Language Models From Edge to Giant
- 2024How to Train Data-Efficient LLMs