Fragility and dynamics of LLM pruning and recovery stagesThe Fragility and Dynamics of LLM Pruning-Recovery Steps
Llama 3.1 8B at 30% sparsity drops IFEval from 0.74 to 0.41; the authors state in-domain data benefits pruning and instruction data benefits recovery.
- After structural pruning, recovery is usually performed, but the two stages are often tuned separately. The authors examine the order, what data each stage uses, whether the losses are aligned, and how together these determine which capabilities remain in the compressed model.
- Using block-level first-order Taylor pruning as the backbone, with Gemma 3 12B Instruct as teacher, GOLD full-parameter recovery. Scanning stage order, General/Domain/Mix data, and whether pruning loss and recovery loss are the same.
- Llama 3.1 8B Instruct at 30% sparsity, IFEval drops from 0.74 to 0.41. The authors state that in-domain or mixed data is more suitable for pruning, and instruction-style data is more suitable for recovery; the average difference for pruning-first is −0.009; loss alignment yields no benefit. Importance at both extremes is more stable, and rank correlation decreases as sparsity increases.
- The authors note that the pipeline ablation covers only one model family, one scale, and one in-domain task; loss alignment was not separated from optimization properties; and the token budget was limited. Future work includes how the loss acts, why capabilities fail earlier, and whether ranking drift correlates with performance. Tables 1, 2, 5, and 6 do not specify the model.
- Evaluated models
- Llama 3.1 8B InstructLlama 3.2 3B Instruct
- Benchmarks
- GSM8KMMLUARCIFEvalJSONSchemaBenchHellaSwagPIQAWinoGrandeSciQOpenBookQATruthfulQABLiMPWikiTextC4BookCorpusAlpaca
- Metrics
- accuracyperplexityrecovery gainSpearman rank correlationdegenerate response rate
A study of the interaction between structured pruning and recovery stages in LLMs finds that instruction-following ability collapses first under pruning, earlier than knowledge, reasoning, and core language modeling abilities. In-domain data is the strongest pruning signal, and instruction-style data recovers best; pruning's in-domain loss is likely not knowledge loss but rather a failure to produce coherent responses to prompts unrelated to the domain, and the order of the two stages has minimal impact. The study also analyzes the drift of importance rankings before and after pruning.
Paper analysis
What problem does this paper attempt to solve?
Pruning and recovery are often tuned separately; the authors scan order, data, and loss alignment, and state instruction following collapses first.
When structural pruning and recovery are designed separately, it is unclear how they jointly determine what capabilities remain after compression.
- Scenario: The authors believe LLM memory footprint limits deployment, so they use structural pruning to remove groups of parameters, then use knowledge distillation or supervised fine-tuning to recover performance. Although the two stages are coupled, in practice they are often tuned as independent components.
- Gap: The authors state prune-then-recover is widely used for deployment, but one stage's success depends on the other; separate design cannot see whether order, each stage's data, and training objectives are aligned.
- Observation: The authors state instruction following collapses first with pruning ratio, earlier than knowledge, reasoning, and core language modeling. The authors believe much of the in-domain loss is likely not knowledge loss but domain-agnostic inability to respond coherently to prompts.
- Approach: Using Ma et al. (2023) structural pruning as backbone, scan whether to distill first or prune first, General / Domain / Mix data, and whether recovery loss matches pruning loss, and track importance ranking before and after pruning, giving a composable prune–recover recipe.
What related research exists?
Related work is divided into pruning, calibration, and recovery; this paper uses Ma et al. (2023) first-order Taylor structural pruning as the backbone.
Section 2 of the paper divides related work into structural pruning, calibration and importance, and post-pruning recovery; the experimental comparison is among orders, data, and losses within the pipeline, not another set of pruners.
- Structural pruning: Li et al. (2016) distinguish unstructured pruning, which zeros individual weights, from structural pruning, which removes entire blocks and thus does not depend on specialized sparse kernels. Ma et al. (2023) perform task-agnostic structural pruning: they group coupled structures using a dependency graph and estimate group importance with first-order gradients; this paper uses it as the pruning backbone. Xia et al. (2024)'s Sheared-LLaMA prunes a large model to a target shape with dynamic batching; the introduction also cites Frantar and Alistarh (2023) as work that reduces parameters according to a pruning target.
- Importance and calibration: LeCun et al. (1989) and Hassibi and Stork (1992a) use second-order information to estimate parameter significance; Molchanov et al. (2017) use a first-order Taylor expansion of the loss as a criterion for removing filters. Williams and Aletras (2024) and Bandari et al. (2024) report that downstream performance after quantization and pruning varies with calibration data; Ji et al. (2025) report that calibration data close to the training distribution can improve pruning.
- Post-pruning recovery: Knowledge distillation by Hinton et al. (2015) and supervised fine-tuning by Wei et al. (2022) are the two recovery objectives listed in the paper. Ma et al. (2023) use lightweight LoRA to recover structurally pruned LLMs; Zhang et al. (2024) use LoRA to guide pruning to save memory. Xia et al. (2024) report that continued pretraining after structural pruning can yield a smaller LLM with less compute than training from scratch; Thangarasa et al. (2025) perform self-distillation recovery, and Liu et al. (2025) incorporate sparsification into recovery.
- Baselines and data: The comparison is against another order of the same pipeline, another data type, and a matched prune-only model. Pruning General uses BookCorpus, recovery General uses Alpaca, and in-domain uses GSM8K; evaluation also includes MMLU, ARC, IFEval, etc. The authors place this paper after "the two stages are usually designed and tuned separately," examining the order, the data driving each stage, and whether the training objectives are aligned.
How does the paper address this problem?
Using block-level first-order Taylor pruning as the backbone, scanning order, data, and loss alignment, and using GOLD for full-parameter distillation recovery.
Overall is an order-swappable pruning (P)–recovery (D) pipeline: block-level first-order Taylor structural pruning, then full-parameter logit distillation with a larger teacher; using data type and whether losses are the same to disentangle the two stages' interaction.
Pruning Criterion
- Backbone: Uses Ma et al. (2023). On calibration set C, use first-order Taylor approximation of loss change from zeroing weight elements, one causal language modeling backward pass, dropping higher-order terms:
IWik≈(∂ L(𝒞))/(∂ Wik)Wik This is the product of gradient and weight.
- Structural unit: Functionally coupled weights are removed in groups; units are attention heads or MLP intermediate channels; scores are summed within group, locally ranked within each block. Appendix states one-shot (iterative steps=1), all layers, within-group summation, per-block local scope.
- Default calibration: CLM loss, 32 samples, sequence length 128, seed 42.
Stages and Data
- Scan factors: Order is D-first or P-first; pipeline r takes 0.1, 0.2, 0.3, 0.4, 0.5; each stage's data is General, Domain, or their Mix. The paper does not specify Mix's mixing ratio.
- Corpora are not shared: Pruning General is BookCorpus; recovery General is Alpaca (52K instruction demonstrations, which the authors describe as instruction-shaped and used to match GOLD's chat format). Domain is GSM8K (about 8.5K), recovery uses training set, evaluation uses test set.
- Scale: Each dataset samples 32 for pruning; training side samples 1.5 million tokens each, to align calibration scale. Unless otherwise noted, both training and evaluation use the model's built-in instruction chat template.
Recovery and Loss Alignment
- GOLD: Recovery uses trl's General Online Logit Distillation. The student generates continuations itself, then matches teacher's token distribution on these self-generated sequences, i.e., on-policy. Teacher is Gemma 3 12B Instruct, cross-tokenizer enabled; recovery is full-parameter fine-tuning.
- Alignment experiment: Uses only General, to see whether recovery loss should match pruning loss (§3.5). Recovery is SFT under CLM, or KD under GOLD; pruning importance is estimated with corresponding loss. Two-stage losses same is aligned, otherwise misaligned. In this group, both pruning and recovery losses are computed off-policy, budget 2.5 million tokens.
- Appendix hyperparameters: Both recoveries are bf16, max length 2048, learning rate 1e-6, 1 epoch, warmup ratio 0.05. GOLD global batch size 256, SFT 32; GOLD training-side GKD λ=0.5, GKD β=0.3. When using GOLD loss for pruning calibration, JSD β=0.5, softmax temperature 0.9, teacher written as Gemma 3 Instruct 12B.
Importance Analysis
- Fisher: Structural importance analysis additionally uses diagonal empirical Fisher, i.e., mean of squared gradients over N calibration samples, independent of weight magnitude; summed within group similarly.
- Comparison method: On the same calibration set, score each structure in dense and pruned models, map surviving structures back to original positions. Comparison is within-layer, then aggregated weighted by number of surviving structures. Track rank movement within-layer by quintiles Q1–Q5, repeated for each r and both Taylor and Fisher criteria.
Evaluation and Degeneration Marking
- Main tasks: LM Evaluation Harness, fixed seed. GSM8K is in-domain; MMLU and ARC are later collectively called General. Wider suite splits into instruction following (IFEval, JSONSchemaBench), knowledge and reasoning (HellaSwag, PIQA, WinoGrande, ARC-Easy/Challenge, SciQ, OpenBookQA, MMLU, TruthfulQA), language modeling (BLiMP; WikiText and C4 report perplexity). Other tasks report accuracy.
- Degeneration rule: Appendix uses purely lexical detector, no additional reasoning. zlib compression ratio below 0.30, or most frequent trigram covers more than 50%, marked degenerate. Thresholds calibrated against dense model. This decomposition uses only prune-only checkpoints, splitting GSM8K into correct, coherent but wrong, and degenerate.
What experiments did the paper conduct?
Llama 3.1 8B, 30% sparsity, IFEval from 0.74 to 0.41; P-first General gain +0.010.
Experimental Setup
- Models under test: §3.2 lists Llama 3.2 3B Instruct and Llama 3.1 8B Instruct as primary models. KD teacher is Gemma 3 12B Instruct. Figure 1 and §4.1 state that the capability curves are for Llama 3.1 8B Instruct. Table 1, Table 2, Table 5, Table 6 do not specify the model; the paper does not label any table or figure values as Llama 3.2 3B Instruct.
- Data and budget: Pruning General is BookCorpus, recovery General is Alpaca, Domain is GSM8K. Pruning uses 32 samples per episode; pipeline training uses 1.5 million tokens per episode. Loss alignment uses only General, off-policy, 2.5 million tokens.
- Procedure: Order is D-first or P-first; pipeline r ranges from 0.1 to 0.5. §4.1 sweeps the ratio to 0.7. Default pruning is one-shot, block-wise, first-order Taylor on CLM; Fisher is used only for importance analysis.
- Metrics: Report accuracy except WikiText and C4 report perplexity. Recovery gain is the change relative to a matched prune-only model (Figure 4). Table 1's Δ=(D-first)−(P-first), negative values favor pruning-first.
- Evaluation: LM Evaluation Harness, fixed seed; no LLM judge used. Appendix degeneration rule is zlib compression ratio below 0.30, or most frequent trigram exceeds 50%.
- Repetition and hardware: §3.8 states one training run per setting, fixed seed; 8 NVIDIA L40 GPUs.
Main Results
§4.1 specifies the model. Table 1 and §4.2 do not specify the model. §4.2 gains are P-first, relative to prune-only, averaged over pruning corpora and ratios. Table 1 title states averaged over tasks, order, and pruning ratio.
Condition Value Source Llama 3.1 8B Instruct, 30% sparsity, IFEval 0.74 → 0.41 §4.1 P-first, General recovery, overall average gain +0.010 (p=0.011) §4.2 P-first, Mix recovery, overall average gain +0.009 (p=0.022) §4.2 P-first, Domain recovery, overall average gain +0.005 (p=0.06) §4.2 All configurations, Δ=(D-first)−(P-first) −0.009 (p<0.001) Table 1 Mixed corpora, same Δ −0.020 (p<0.001) Table 1 Single-source corpora, same Δ −0.003 (p=0.22) Table 1 - Capability order: The authors state that instruction following declines first, knowledge and reasoning decline roughly linearly, and language modeling declines last. The authors state that at 50% sparsity, knowledge and reasoning retain more than half of original accuracy; the paper does not give exact accuracy at that point; and state that JSONSchema structured output compliance has largely collapsed, without giving numbers. The authors believe perplexity only reflects token-level likelihood and does not represent whether the compressed model responds coherently.
- Data asymmetry: The abstract states that in-domain data is the strongest pruning signal and instruction-style data recovers the most. §4.2 states that in-domain or mixed data provides the strongest pruning signal, instruction-style data provides the strongest recovery signal, and claims that even on in-domain evaluation, General and Mixed have nominal statistical advantages over Domain. Recovery-side General is Alpaca.
- Order: The abstract states order has little effect, only marginal. §4.3 states pruning-first wins 31 out of 45 pairs, effect is small, and concentrated in mixed corpora; on single-source, the two orders are statistically indistinguishable. Conclusion states pruning-first is consistently better, but by less than 1 point.
Response Failure Decomposition
- What was measured: Appendix .2 analyzes only prune-only. GSM8K is split into correct, coherent but wrong, and degenerate; the same detector is used for IFEval free-form answers. Figures are faceted by pruning data (Figure 5, Figure 6). The paper does not specify the model for these figures.
- Results: The authors state that degenerate outputs as a share of all GSM8K go from 0.3% in the dense model to 27% at 50% sparsity, and also write as a share of failures from 7% to 30%. At 50%, GSM8K degeneration rate: general-pruning 0.51, domain-pruning 0.10. On IFEval, curves for the three pruning data overlap, rising to 0.5–0.7 at 50%. Spearman ρ between the two tasks' degeneration rates is 0.44. Dense IFEval degeneration floor is 9.2%, dense GSM8K is 0.3%.
- Authors' interpretation: The authors believe the measured in-domain decline overestimates true reasoning loss; a substantial portion is inability to respond coherently to prompts, not loss of task knowledge. The authors state IFEval collapse is largely independent of pruning data, while GSM8K degeneration rate depends on pruning data. The authors note the detector is a lexical heuristic and does not judge semantics.
Importance Ranking Drift
- What was measured: Dense model and surviving structures after pruning, Taylor and Fisher, within-layer quintiles (§4.5, Figure 3, Appendix Figures 12–20).
- Results: The text states importance rank correlation between pre- and post-pruning drops from 0.95–0.98 at 10% sparsity to 0.69–0.77 at 50%. Figure 3 cells are labeled transition fraction: Taylor, r=0.1, Q1→Q1 is 0.78, Q5→Q5 is 0.89; at r=0.5 they are 0.48 and 0.69. Fisher corresponding values are 0.80/0.90 and 0.54/0.72. Caption states this is Spearman correlation; these cells match the MLP channel matrix in Appendix Figure 14. Attention head (Figure 12) at Taylor, r=0.1, Q1→Q1 is 0.94, Q5→Q5 is 0.92. Appendix scatter plots only state that diagonal indicates rank unchanged, colored by layer; the text does not give point coordinates.
- Authors' interpretation: The authors state that the most and least important structures are more stable, middle ranks move the most, retention distribution is U-shaped, for both Taylor and Fisher. Abstract states top and bottom 20% of weights are more likely to stay in original rank, but retention decreases with pruning ratio. The authors believe aligning losses across two stages may align to a stale signal; calibration set and target may better determine final capability profile. The authors believe this may explain why iterative pruning preserves performance better than one-shot. This paper's pruning setting is one-shot. The authors juxtapose "static importance becomes stale after subsequent optimization" with Sanh et al. (2020).
Other Ablations and Analyses
- Table 2 (over pruning r, General): GSM8K aligned and misaligned both 0.075 (p=0.98); General 0.379 vs 0.385 (p=0.13); Average 0.387 vs 0.393 (p=0.12). The authors state they cannot distinguish, numerically slightly favoring misaligned.
- Table 5 note: these runs did not evaluate IFEval. Pruning loss is CLM or GOLD, recovery is none, SFT, or KD. For example, CLM+KD, r=0.1 GSM8K is 0.171, GOLD+KD, r=0.1 is 0.208; table does not specify model.
- Table 6 prune-only rows (model unspecified): at r=0.5, GSM8K is Domain 0.196, Mix 0.105, General 0.015; same column IFE is 0.309, 0.305, 0.281. Base row: GSM8K 0.723, General 0.545, IFE 0.764, Avg 0.656.
- Table 6 definitions: General is mean of MMLU and ARC-easy/challenge, IFE is mean of four IFEval subitems. §4.1's IFEval 0.74 is not the same written number as the base row's 0.764.
- Figure 7 caption states the two main orders have little to no effect on final performance, juxtaposed with §4.3's small difference; endpoint numbers are not printed in the figure.
- Negative results as stated by authors: loss matching yields no benefit; order is indistinguishable on single-source corpora; Domain-only recovery gain is called marginal (p=0.06).
What are some points that can be further explored?
The authors point out that a single model scale and in-domain tasks, loss alignment not separated from optimization characteristics, and limited token budget.
Limitations and Future Directions Noted by the Authors
- Model and task scope: §7 states the pipeline ablation, due to compute constraints, uses only one model family, one scale, and one in-domain task.
- Loss alignment not separated: §7 states the loss alignment comparison does not fully separate "whether the two objectives match" from the different optimization properties of the two losses. §4.4 also leaves further separation to future work.
- Training budget: §7 states training was completed within a limited token budget and was not continued due to compute constraints.
- How the loss acts: §6 lists how the loss affects the two stages as a future direction, to understand the alignment of pruning and recovery objectives.
- Capabilities and ranking: §6 states why some capabilities fail earlier, and whether ranking drift during pruning correlates with performance, remain open questions.
- Detector and hard-to-recover settings: Appendix .2 states the degeneration detector is a lexical heuristic and does not judge semantics; IFEval has a nonzero floor on the dense model because valid lists and JSON are also easily compressed. §4.3 states whether D-first remains viable when recovery after pruning is difficult (e.g., small model with high pruning ratio) is left to future work and was not fully tested.
Experimental Coverage
- Model notation: §3.2 lists Llama 3.2 3B Instruct, Llama 3.1 8B Instruct, with the teacher as Gemma 3 12B Instruct. Figure 1 and §4.1 specify Llama 3.1 8B Instruct, with ratios from 0.1 to 0.7. Tables 1, 2, 5, and 6 do not specify the model.
- Pipeline factors: §3.3 includes D-first/P-first, r∈{0.1,0.2,0.3,0.4,0.5}, General/Domain/Mix; pruning is 32 steps, recovery training is 1.5 million tokens. §3.5's loss alignment uses only General, off-policy, 2.5 million tokens. The paper does not state the Mix mixing ratio.
- Pruning implementation: The appendix states iterative steps=1. Fisher is used for the importance analysis in §3.6–3.7, not as the default pruner. §3.8 is one training per setting, fixed seed, 8 NVIDIA L40. §4.5's discussion of iterative pruning is an explanation of ranking drift, not a set of iterative pruning experiments.
- Evaluation protocol: Evaluation uses the LM Evaluation Harness. §3.9 lists three capability groups. In Table 6, General is the mean of MMLU and ARC-easy/challenge, and IFE is the mean of the four IFEval subitems. Table 5 notes that loss-alignment runs were not evaluated on IFEval. The decomposition in Appendix .2 is limited to prune-only.
- Comparison scope: The result tables compare stage order, data type, whether the loss is the same, and a prune-only baseline. Sheared-LLaMA, LoRA recovery, and PAT in Related Work do not appear as methods in Tables 1–6.
Summarize the main content of the paper
Pruning should use in-domain or mixed data; recovery should use instruction-style data; order has little effect, and loss alignment provides no benefit.
This work analyzes how structural pruning and subsequent recovery together shape a compressed LLM, rather than proposing another pruning algorithm.
- Problem: prune-then-recover is often tuned separately. The authors examine how the stage order, the data for each stage, and whether the training objectives are aligned determine what remaining capabilities look like.
- Approach: The backbone is Ma et al. (2023)'s block-level first-order Taylor pruning, with units as attention heads or MLP channels, and the experimental setting is one-shot. Recovery uses Gemma 3 12B Instruct as a teacher, with GOLD as full-parameter, on-policy distillation. Pruning General uses BookCorpus, recovery General uses Alpaca, and in-domain uses GSM8K. Fisher and quintiles are also used to compare importance before and after pruning.
- Capabilities: Llama 3.1 8B Instruct at 30% sparsity drops IFEval from 0.74 to 0.41. The authors state instruction following collapses first; at 50% sparsity, prune-only, degenerate outputs account for 27% of all GSM8K (dense model 0.3%). The authors believe many of these are failures to answer coherently, not just knowledge loss.
- Recipe numbers: On P-first, the overall average gain relative to prune-only is General +0.010 (p=0.011), Mix +0.009 (p=0.022), Domain +0.005 (p=0.06); the section containing these numbers does not specify the model. Across all configurations, Δ=(D-first)−(P-first) is −0.009 (p<0.001); single-source is −0.003 (p=0.22). In Table 2, aligned and unaligned GSM8K are both 0.075 (p=0.98).
- Ranking: Importance rank correlation drops from 0.95–0.98 at 10% sparsity to 0.69–0.77 at 50%. The authors state the ends are more stable and the middle is more volatile, and suggest this may relate to iterative pruning preserving performance.
- Authors' conclusions: Pruning imprints a capability profile when selecting structures; recovery should most restore instruction following, which drops fastest. Order has little effect. Matching the recovery loss to the pruning loss yielded no measured benefit within the tested losses and budgets.