TL;DR
Depth pruning small language models (1–2B parameters) causes a catastrophic collapse in complex reasoning tasks like mathematical reasoning and function calling, while basic instruction following remains relatively robust. While sophisticated data-mixture planning can help recover these skills, the authors find that simply "healing" the model for longer on a uniform data mixture is a surprisingly difficult baseline to beat once the computational cost of planning is accounted for.
What Problem Does This Paper Address?
As we push large language models (LLMs) onto edge devices like phones and laptops, efficiency is king. Depth pruning—the process of deleting entire Transformer blocks—is a popular way to make models smaller and faster without requiring specialized hardware kernels.
However, we don't fully understand the "collateral damage" of this pruning. Does it break everything equally, or are some skills more fragile? Furthermore, once a model is damaged, we usually "heal" it with a short burst of fine-tuning. The authors investigate how to best allocate a limited "healing budget" (in tokens) to recover specific agentic capabilities like following instructions, calling tools, and generating valid JSON.
Methods
The researchers studied four model families: Llama-3.2-1B, Qwen2.5-1.5B, SmolLM2-1.7B, and OLMo-2-1B. Their experimental pipeline followed a clear path:
- Prune: Identify and remove the "least influential" blocks using the ShortGPT metric.
- Diagnose: Measure the damage across six specific capabilities.
- Heal: Fine-tune the pruned model using different strategies:
- Adaptation Scopes: Comparing Low-Rank Adaptation (LoRA) on all blocks versus full fine-tuning of only the last few blocks (last-k).
- RAH (Recoverability-Aware Healing): A sophisticated planner that runs 21 short "pilot" heals to map out how quickly different skills recover, then optimizes the final data mixture.
- Token-Matched Control: A simple uniform data mixture that is given the same total number of tokens used by RAH (pilots + main heal) to ensure a fair comparison.
Datasets
The authors used a diverse evaluation suite to track six capabilities:
- Structured Output: JSONSchemaBench (GitHub-easy).
- Function Calling: Berkeley Function Calling Leaderboard (BFCL) v3.
- Instruction Following: IFEval.
- Mathematical Reasoning: GSM8K.
- Safety Refusal: XSTest.
- Knowledge: MMLU.
Healing data was drawn from six corresponding pools, including Glaive (function calling), Alpaca (instructions), and the GSM8K training set, using the unpruned model as a "teacher" for self-distillation.
Key Insights and Ideas
- The Fragility of Logic: Function calling and math are the first to go. In every model tested, these capabilities collapsed to near-zero (0.00–0.07 retention) immediately after pruning, even when other skills like safety refusal remained mostly intact.
- Parameter Choice is Crucial: It’s not just what you train, but where. Tuning the last three blocks of a model (a common strategy) performed significantly worse than using LoRA across all blocks, losing up to 0.18 in mean retention.
- The "Planning Tax": Sophisticated data-mixing algorithms like RAH are often evaluated at a fixed budget after the planning is done. The authors argue this is misleading. When you add the tokens spent on "pilot" runs to the total budget, a simple uniform heal often performs just as well or better.
- Math is a Slow Recoverer: The reason planning often fails is that mathematical reasoning recovers much more slowly than pilots can detect. Short pilot runs misjudge "slow" recovery as "no" recovery, leading the planner to starve the very skills that need the most help.
Key Results
- Universal Breakage Pattern: The order in which capabilities break is remarkably consistent across different model families (Kendall’s $W = 0.92$).
- Healing Baseline: A longer uniform heal (4.48M tokens) was never significantly worse than the optimized RAH plan. In fact, it retained math skills significantly better on three out of four model families.
- Fixed Budget Gains: If the budget is strictly fixed (ignoring pilot costs), RAH raised math retention by 0.17 on Llama and 0.14 on OLMo. However, these gains were often confounded by the choice of adaptation scope.
Limitations and Future Work
- Model Scale: The study focused exclusively on sub-2B parameter models. Whether these patterns hold for 7B+ models remains to be seen.
- Language: All data and evaluations were in English.
- Benchmark Alignment: The healing pools were closely aligned with the evaluation benchmarks. The authors note that this might overstate recovery on tasks that fall outside this specific distribution.
- Future Directions: The authors suggest exploring "pilot-free" math-heavy baselines and testing different pruning criteria beyond Block Influence.
For those interested in reproducing the study, the authors have released their full code and data recipes at https://github.com/piyushdhoka/depth-pruned-slm-recovery.
Summary updated