TRANSMISSION // 2602.01997v5
Why pruning LLM layers can impair reasoning
Source published
In tested models, layer pruning improved throughput under specific conditions, but arithmetic and generation deficits persisted after recovery training.

Removing whole layers can make a language model smaller, and may increase its throughput under particular hardware and inference settings. But does a model that still performs well on multiple-choice tests retain its ability to calculate, solve problems or write valid code? An arXiv preprint examines that gap and finds that, in the models and recovery setups tested, generative abilities were harder to restore than classification performance.
A smaller model, but at what cost?
Layer pruning compresses a language model by deleting entire transformer blocks. It can reduce model depth without specialized hardware, though any speed gains depend on the setup. Success on classification tests—where a model selects among fixed answers—does not necessarily mean it can reliably generate a calculation, a sequence of steps or syntactically valid code.
Safal Shrestha and colleagues examine what post-pruning training can recover with limited data and computing resources. Their paper is an arXiv preprint: its findings are research evidence, not settled consensus.
Comparing pruning and recovery
The researchers tested instruction-tuned Gemma 2, Llama 3.1, Qwen 2.5 and Mistral models. They removed layers using strategies including Block Influence, which uses similarity between a layer’s input and output, and a method that prunes from the model’s end. They then fine-tuned the pruned models, mainly using QLoRA, which reduces training memory requirements.
A central method used self-generated responses: the original, unpruned model answered prompts, and those answers became training examples for the pruned model. The team compared classification benchmarks with tasks requiring generated responses, including GSM8K math problems, code-generation benchmarks and summarization. Most main experiments used one 80-gigabyte GPU. Additional tests used full-parameter fine-tuning on GSM8K-specific examples and reinforcement-learning fine-tuning.
To investigate failure modes, the researchers removed individual layers and tested simple arithmetic and code generation. A separate controlled probe tested whether Qwen could supply a missing bracket in 200 synthetic Python expressions generated with GPT-5.6 Sol. These tests help distinguish basic arithmetic or syntax difficulties from problems that arise only during long-form generation.
Recovery was uneven
Self-generated-response training improved performance, particularly on classification tests. In one specific setup—Llama 3.1 pruned with Block Influence and trained on self-generated Dolci responses—the model retained about 90% of its unpruned classification performance. Its mean retention across the reported generative benchmarks was 63.4%. These figures describe that setup, not a general estimate for language models.
The gap persisted under a more favorable test: pruned models were fully fine-tuned on responses generated for GSM8K itself. Llama’s GSM8K score rose from 0.9% after pruning to a peak of 51.5%, still below its 79.3% unpruned score. Qwen and Mistral also improved without reaching their respective baselines.
More recovery data did not erase the gap in every task. For BI-pruned Qwen 2.5-7B-Instruct with seven layers removed, mean retention across four generative benchmarks was 0.468 in the main QLoRA setup. It reached 0.484 with full fine-tuning on the same self-generated data, and 0.480 with QLoRA using ten times as much data and compute. Individual benchmark results varied; these averages do not show that more training is ineffective in general.
The diagnostic results point beyond repetitive or awkward text. At a 25% pruning ratio, average accuracy across three model families on a simple arithmetic task fell from 72.5% before pruning to 29% afterward, then rose to 51.1% with self-generated-response fine-tuning. In Qwen’s separate bracket-completion probe, accuracy went from 85% to 40% after pruning and recovered to 49.5%. The results suggest that some losses involve basic abilities used in reasoning and structured generation, not just producing a long answer. They do not identify exactly which internal computations changed.
A trade-off, not a verdict on pruning
The results do not show that layer pruning always fails. Some individual layers could be removed with little effect, and outcomes varied by model, task and layer-selection strategy. In this study, removing only a small number of layers could preserve much of the original generative performance while providing modest throughput gains. More aggressive pruning tended to bring larger losses on reasoning-intensive tasks.
The authors also evaluated a depth-pruned Llama-3.1-Minitron-4B checkpoint. It had received about 94 billion post-pruning distillation tokens before the authors further fine-tuned it with self-generated responses for their evaluation. The model still showed arithmetic and reasoning deficits in those tests. This is suggestive evidence, not a controlled comparison: the checkpoint’s pruning ratio, layer-selection method, data and training pipeline differed from the main experiments. It cannot establish that large-scale training generally fails to recover pruned models.
The study tests a finite set of models, pruning methods, benchmarks and recovery procedures; it does not exhaust possible training recipes. Its arithmetic and bracket probes cover narrow aspects of reasoning and structured generation. The authors explicitly caution that their experiments do not establish that recovery is impossible.
For developers, the practical message is to evaluate compressed models on the tasks they are meant to perform. Classification scores alone may miss weaknesses in calculation, multi-step answers or code generation. The preprint’s results warrant further testing and replication across models and recovery strategies.
- large language models
- layer pruning
- model compression
- generative reasoning
- arithmetic
- code generation
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A Few Channels May Help Repair Pruned Language Models
Source published
Shared keywords: large language models, layer pruning, model compression
CPU-Eval Finds Gaps in AI Hardware Coding
Source published
Shared keywords: large language models
Why shrinking vehicle AI is only half the job
Source published
Shared keywords: model compression
Where GPU Software Fails Beneath Large Language Models
Source published
Shared keywords: large language models
Getting language models onto small devices takes more than shrinking them
Source published
Shared keywords: large language models, model compression