The Unreasonable Ineffectiveness of the Deeper Layers

Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, Dan Roberts

TL;DR: Researchers discovered that up to half of the deepest layers in popular Large Language Models (like Llama-2-70B) can be deleted with almost no drop in question-answering performance. By removing these layers and applying a tiny amount of parameter-efficient fine-tuning to "heal" the network, this study reveals a shocking redundancy in deep transformer architectures and suggests that factual knowledge primarily resides in the shallow layers.

The Problem: Knowledge Storage in LLMs

Despite the massive success of Large Language Models (LLMs), the exact mechanisms of how and where they store knowledge within their billions of parameters remain elusive. Transformers are built on residual connections, meaning each layer adds a small update to an ongoing "residual stream" of data. If these updates are small or redundant, could some layers be skipped entirely?

To investigate this, the authors use layer pruning as both an interpretability and compression tool. The premise is straightforward: if removing a specific block of layers doesn't hurt the model's ability to answer trivia questions, then those layers likely weren't storing the facts needed for those answers. Ultimately, the paper questions whether current pretraining methods are effectively utilizing the deeper layers in massive networks.

Methodology: Pruning and Healing

The authors introduce a surprisingly simple pipeline to prune and repair open-weight LLMs:

  1. Similarity-Informed Pruning: Because of the residual stream, the authors hypothesize that layers with similar inputs and outputs can be safely removed. They calculate the "angular distance" between the representations at layer $\ell$ and layer $\ell+n$ over a pretraining dataset. They then identify and delete the block of $n$ layers with the smallest distance.
  2. The Simple Heuristic: As a dead-simple alternative, they also test simply dropping the deepest layers of the network, excluding the very final layer (which is critical for mapping representations back to the vocabulary).
  3. "Healing": Dropping layers creates a mismatch, as the subsequent layer suddenly receives an input it wasn't trained to expect. To fix this, the authors perform a small amount of parameter-efficient fine-tuning (PEFT), specifically using QLoRA and 4-bit quantization, on a standard pretraining dataset.

Remarkably, because of the PEFT approach, this entire pruning and healing process can be executed on a single 40GB A100 GPU, making it highly accessible for researchers and practitioners.

Layer pruning pipeline, angular distance across layers, and the resulting performance phase transition.

Key Insights: The Phase Transition and Division of Labor

The experiments, evaluated on datasets like MMLU, BoolQ, GSM8K, and HellaSwag, yielded several fascinating insights into model architecture:

  • The "Phase Transition" of Knowledge: When pruning layers, question-answering (QA) accuracy does not degrade smoothly. Instead, it remains completely flat up to a massive pruning fraction, and then suddenly falls off a cliff to random guessing.
  • Loss vs. Accuracy Disconnect: Before healing, the model's next-token prediction loss (perplexity) spikes, yet QA accuracy remains robust. Healing smoothly restores the loss to near-baseline levels. This demonstrates that healing doesn't teach the model new facts; it merely repairs the "tissue" at the pruning interface so the model can function properly again.
  • A Division of Labor (Facts vs. Reasoning): While QA benchmarks are highly robust to pruning, performance on reasoning tasks (like GSM8K and HellaSwag) degrades immediately when even a few layers are removed. This implies a fascinating architectural division: shallow layers act as a knowledge retrieval database, while deeper layers are reserved for complex, multi-step reasoning.
  • The Simple Heuristic Wins: The straightforward strategy of chopping out the penultimate block of layers performs almost identically to the math-heavy similarity search after healing. This means practitioners can prune models without needing the VRAM to load the original, unpruned model to compute distances.

Results Across Models

The robustness to pruning varies across different architectures and training recipes:

  • Llama-2-70B can lose roughly 45% to 55% of its layers before MMLU performance collapses.
  • Smaller or differently trained models have different thresholds: Mistral-7B can lose ~35%, Phi-2 ~25%, and the Qwen family ~20%.
  • Across all evaluated models, the deepest layers (excluding the final layer) are consistently the most similar to one another, making them the safest candidates for removal.
  • Healing restores the autoregressive loss on the C4 dataset to near-unpruned levels, scaling linearly with the fraction of layers dropped.

Limitations and Future Directions

While the findings are striking, several questions remain open:

  • The Mechanics of the Phase Transition: The authors note that while healing smooths out the degradation in loss, the sharp cliff in QA accuracy persists. The exact mechanics dictating this threshold are still a mystery.
  • Better Healing Techniques: Healing could potentially be improved by using an auxiliary student-teacher loss—where the pruned model tries to explicitly match the hidden states of the unpruned model—rather than relying solely on standard next-token prediction.
  • Impact of Pretraining: It is unclear how pretraining duration affects prunability. Are "over-trained" models (like Llama-3 or Chinchilla-optimal models) harder to prune because their parameters are less redundant?
  • Improving Deep Layer Utilization: The revelation that half a network can be deleted suggests that current pretraining objectives might be inefficient. Future work could explore techniques like layer dropout or early-exit training to force models to better utilize their deepest parameters.

Summary updated

BibTeX
@inproceedings{gromov2025unreasonable,
  author = {Andrey Gromov and Kushal Tirumala and Hassan Shapourian and Paolo Glorioso and Dan Roberts},
  title = {{The Unreasonable Ineffectiveness of the Deeper Layers}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ngmEcEer8a},
}
Figure