TL;DR
Sememe is a new depth-pruning method that uses causal inference to identify and remove redundant layers in Large Language Models (LLMs). By treating layer removal as a controlled intervention within a Structural Causal Model, it achieves high accuracy retention and hardware-agnostic speedups using as few as 32 calibration examples—significantly more data-efficient than prior state-of-the-art methods.
What Problem Does This Paper Address?
As LLMs grow, so do their inference costs in terms of latency, memory, and energy. While weight-level pruning (making the model "sparse") is a popular research area, it rarely translates to actual speedups on standard hardware without specialized kernels. Depth pruning—physically removing entire transformer blocks—offers a cleaner solution: if you remove 20% of the layers, the model runs roughly 20% faster on any device.
The core challenge is deciding which layers to cut. Existing methods often rely on simple heuristics, like comparing input/output activations or averaging losses over a large calibration set. These approaches often discard the "variance structure"—how different layers contribute to the model's success on specific types of prompts. Furthermore, many current methods require hundreds of calibration examples to remain stable, making them expensive to run on massive models.
Methods
The authors introduce Sememe, which reframes block importance as a causal inference problem. Instead of just looking at correlations, they treat the presence or absence of a layer as an intervention in a Structural Causal Model (SCM).
The process follows a greedy iterative loop:
- Intervene: For every remaining layer, the method "test-prunes" it (replaces it with a skip connection).
- Evaluate: The model is run on a small calibration set, recording the per-example loss for each intervention.
- Model: Sememe-I (the primary variant) uses Ordinary Least Squares (OLS) to fit a linear structural equation. This jointly estimates the "path coefficient" (importance score) for every block based on the full matrix of per-example losses.
- Prune: The block with the least negative impact on loss is permanently removed.
The authors also explore Sememe-C, a counterfactual variant that uses Gaussian Mixture Models (GMM) to model the full distribution of losses, though they find the simpler linear version (Sememe-I) is often more robust in low-data regimes.
Datasets
The researchers evaluated Sememe across several model families, including Llama2 (7B, 13B), Llama3.1 (8B, 70B), Mistral-7B, and Qwen3-8B.
To measure performance, they used standard downstream benchmarks:
- HellaSwag (Common sense reasoning)
- Winogrande (Pronoun resolution)
- ARC-Easy & ARC-Challenge (Science questions)
- PIQA (Physical interaction QA)
- WikiText-2 (To measure perplexity/language modeling fluency)
For calibration, they used either generic text (WikiText-2) or small sets of task-specific data for their "Sememe-I-Skill" variant.
Key Insights and Ideas
- Causality is the "Secret Sauce": By framing pruning as an intervention (the "do-operator"), the authors can prove that their importance estimates are unbiased. This allows them to capture the specific contribution of a layer to the final output more accurately than simple averaging.
- Extreme Data Efficiency: Because the causal model captures the relationship between specific blocks and specific examples, Sememe needs very little data. Using just 32 examples, it matches the performance of previous methods (like SLEB) that require 256 to 512 examples.
- The "Middle-Out" Pattern: Across all models, Sememe consistently finds that the middle layers are the most redundant. The first few layers (feature extraction) and the last few layers (output projection) are almost always essential and are rarely pruned.
- Scale Breeds Resilience: Larger models are much better at handling depth pruning. Llama3.1-70B retained over 93% of its accuracy even after losing 20% of its layers, suggesting that massive models have significant structural redundancy that can be exploited for efficiency.
Key Results
Sememe consistently outperformed or matched existing training-free depth pruning methods like ShortGPT and SLEB.
- Accuracy Retention: On Llama2-13B at 20% sparsity, Sememe-C retained 88.35% of the dense model's accuracy, compared to SLEB's 83.64%.
- Task-Awareness: The "Sememe-I-Skill" variant, which prunes using task-specific data, reached 92.4% accuracy retention on Llama2-13B, approaching the performance of methods that actually modify or add new parameters to the model.
- Efficiency: As shown in the table below, the computational overhead of the causal estimation step is negligible (milliseconds on a CPU), meaning the total time is dominated by the forward passes on the GPU.
Limitations and Future Work
While highly effective, the authors note several areas for improvement:
- Greedy Suboptimality: The current method prunes one block at a time. While they experimented with joint multi-block removal, a full non-greedy search remains an open (and computationally expensive) challenge.
- Evaluation Scope: The study focused on classification benchmarks. It is currently unclear how depth pruning affects long-form generation or complex agentic reasoning.
- Granularity: The causal modeling approach could theoretically be applied to individual weights or channels, but the number of units would make the OLS calculation quadratically more expensive. Finding a way to scale this causal logic to finer-grained pruning is a promising future direction.
Summary updated