atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LayerIF, which uses layer-wise influence function scores (DataInf) as a data-driven layer quality estimate to allocate LoRA-MoE experts and set layer-wise sparsity for LLM pruning.

Problem

Existing layer quality estimates for LLMs rely on model-only heuristics (spectral statistics, outliers, uniform allocation) and ignore training data, limiting layer-wise expert allocation in LoRA-MoE and layer-wise sparsity for pruning.

Approach

Compute per-layer influence function scores (with DataInf Hessian approximation) between training and validation samples, sum positive influences per Transformer block, and map these task-specific scores to expert counts or layer sparsity ratios.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use LayerIF Top 25% influence samples for expert allocation instead of the strongest baselineLoRA-MoE expert allocation · Average accuracy across five datasetsaccuracy: 82.27 vs 80.97Helped
use LayerIF +ve for layer-wise sparsity allocation instead of OWLMistral-7b-v0.1 pruning · 50% sparsity, average across pruning methodsaverage accuracy: 58.81 vs 58.30Helped
use LayerIF +ve for sparsity allocation instead of AlphaPruningGemma-7b pruning · 50% sparsityaverage accuracy: 45.62 vs 45.45Helped
retain only the top 25% most influential positive samples rather than all positive samples (ablation)LayerIF expert allocation · Average accuracy across five datasetsaccuracy: 81.76 -> 82.27Helped
include samples of either influence sign instead of only positive-influence samples (ablation)LayerIF expert allocation · Average accuracy across five datasetsaccuracy: 81.76 -> 81.85No clear effect
reverse the allocation so lower-sensitivity layers receive higher pruning ratios (ablation)LayerIF pruning · Mistral-7b-v0.1 at 70% sparsityaverage accuracy: 35.69 -> 34.52Hurt
compute influence scores per Transformer block rather than per matrix (ablation)LayerIF pruning · LLaMA2-7B at 70% sparsity across three pruning methodsaverage accuracy: 2.14% average improvementHelped
apply Savitzky–Golay smoothing to normalized influence scores (ablation)LayerIF pruning · Mistral-7b-v0.1 at 70% sparsity, epsilon 0.1–0.5zero-shot accuracy: (+) 1.49; (+) 0.94; (+) 0.97; (+) 0.52; (+) 1.15; (+) 0.46; (+) 0.03; (+) 0.05; (+) 0.41; (+) 1.81; (-) 0.69; (+) 0.48; Mixed
use Hessian-free TracIn instead of DataInf for influence estimation (ablation)LayerIF expert allocation · MRPC, CoLA, Openbook Q, Text Science Q, Common QSpearman correlation: -0.22; 0.44; 0.09; -0.69; 0.12Mixed
use a Gauss-Newton Hessian (EK-FAC) instead of the DataInf approximation (ablation)LayerIF influence estimation · Influence computationruntime: 160× slowerHurt
vary total expert count across 80, 160, and 224 (ablation)LayerIF expert allocation on Mistral-7b-v0.1 · Average accuracy across expert-count settingsaccuracy: 3.64%Helped

Surprising findings

Limitations

Experimental setup

Datasets: MRPC CoLA ScienceQA CommonsenseQA OpenBookQA BoolQ HellaSwag Winogrande ARC Easy ARC Challenge RTE

Benchmarks: MRPC CoLA ScienceQA CommonsenseQA OpenBookQA BoolQ HellaSwag Winogrande ARC Easy ARC Challenge RTE

Metrics: zero-shot accuracy average accuracy Spearman correlation p-value (t-test)

Baselines: AlphaLoRA MoLA-2468 MoLA-5555 MoLA-8642 Uniform AlphaPruning OWL

Builds on: DataInf MoLA AlphaLoRA AlphaPruning OWL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy