EvoPress: Towards Optimal Dynamic Model Compression via Evolutionary Search

Oliver Sieberling, Denis Kuznedelev, Eldar Kurtic, Dan Alistarh · Submission to ICLR 2025 · Rejected

TL;DR

Current dynamic compression techniques for large language models (LLMs) assume that overall model error is simply the sum of individual layer errors—an assumption that often breaks down in practice. EvoPress bypasses heuristic scoring by treating non-uniform compression as an evolutionary search problem over pre-computed layer configurations. Backed by provable convergence guarantees and an aggressive multi-step evaluation strategy, it achieves state-of-the-art results across depth pruning, unstructured sparsity, and mixed-precision quantization in just a few GPU hours.

What Problem Does This Paper Address?

Compressing LLMs uniformly across all layers is suboptimal because different layers exhibit varying sensitivity to compression. Existing non-uniform (dynamic) compression methods attempt to assign per-layer compression budgets (such as bitwidth or sparsity) by computing individual layer "saliency" scores and minimizing their sum via heuristics or dynamic programming.

The authors show that these approaches rely on a flawed assumption: error monotonicity. In practice, the total model degradation does not scale monotonically with per-layer error sums. In fact, removing strictly more blocks can sometimes result in lower end-to-end perplexity than removing fewer blocks. Because existing score-based approaches isolate layers and assume additive error dynamics, they frequently converge to poor compression profiles.

Methods

EvoPress optimizes non-uniform compression directly against an end-to-end objective without retraining:

Pre-computed Compression Levels
           │
           ▼
Parent Model Configuration ──(Level-Switch Mutation)──► λ Offspring Models
                                                             │
                                                             ▼
                                                    Multi-Step Selection
                                                    (Few tokens ➔ Many tokens)
                                                             │
New Fittest Parent ◄─────────────────────────────────────────┘
  1. Discrete Level Database: Each layer or block is compressed independently to multiple discrete settings beforehand (e.g., via SparseGPT for sparsity or GPTQ for quantization). Candidate models are stitched together directly from this database.
  2. $(1 + \lambda)$-Evolutionary Algorithm: The search tracks a single parent configuration and generates $\lambda$ offspring per generation.
  3. Level-Switch Mutation: To maintain the global resource constraint (e.g., target model size or average bitwidth), a mutation randomly increases compression in one layer and compensates by decreasing compression in a matching layer of the same type.
  4. Multi-Step Selection: Evaluating dozens of full LLMs per generation is computationally prohibitive. EvoPress screens candidates in stages: all $\lambda$ offspring are initially evaluated on a tiny snippet of calibration data (e.g., 512–2048 tokens). Only a small set of surviving candidates advance to larger token budgets, and only the best offspring competes against the parent on the full minibatch.
  5. Fitness Objective: The search minimizes the Kullback–Leibler (KL) divergence between the base model and the compressed model on calibration samples.
  6. Theoretical Guarantees: The authors prove via stochastic drift analysis that for any linear fitness function on an $n$-dimensional hypercube under an $\ell_1$ budget constraint, EvoPress converges in expected $O(k(n-k)/\lambda)$ generations.

Datasets

  • Calibration: FineWeb-Edu (fixed at 8M tokens total).
  • Language Modeling / Perplexity: WikiText-2 and C4.
  • Zero-Shot Downstream Tasks: Evaluated via LM Evaluation Harness on WinoGrande, PiQA, HellaSwag, ARC-Easy, and ARC-Challenge.
  • Evaluated Models: Llama-2-7B, Llama-3-8B, Mistral-7B-v0.3, and Phi-3-Medium-14B.

Key Insights and Ideas

  • Heuristic Layer Dropping Is Heavily Biased: Prior depth-pruning heuristics (like ShortGPT and cosine similarity) systematically bias toward dropping deeper layers. EvoPress discovers that deep layers are not universally dispensable; several middle and shallow layers can often be pruned safely while keeping the very final block intact.
  • Failure of Additive Error Metrics: Standard Dynamic Programming (DP) minimizing Normalized Mean Squared Error per layer frequently underperformed uniform baselines at high compression ratios, confirming that local reconstruction error is a misleading proxy for network-wide degradation.
  • Coarse Early Filtering Is Surprisingly Robust: Aggressive pre-selection using as few as 512 tokens introduces high variance per candidate, yet successfully preserves the gradient of improvement, enabling convergence within 1 to 6 hours on a single consumer GPU (RTX 3090).

Key Results

  • Depth Pruning: Baseline methods (ShortGPT, Weight Subcloning, Shortened Llama) suffer complete model collapse beyond 31.25% block dropping on Mistral-7B-v0.3. EvoPress retains functional models even when removing 50% of the transformer blocks (achieving 61.75 WikiText-2 perplexity, whereas baselines degraded into thousands).
  • Unstructured Sparsity (70%): On Llama-3-8B, EvoPress cuts WikiText-2 perplexity down to 28.76 (compared to 48.07 for OWL, 85.84 for uniform SparseGPT, and 116.91 for DP), improving average zero-shot accuracy by +2.4% over OWL and +6.7% over uniform.
  • Sub-3-Bit Quantization: On 3-bit Llama-3-8B, EvoPress yields 7.49 WikiText-2 perplexity and 64.3% zero-shot accuracy, substantially outperforming uniform GPTQ (12.19 perplexity / 60.2% accuracy). It also enables functional extreme quantization at 2.25 and 2.5 average bits per weight.

Limitations and Future Work

  • Search Space Flexibility: The current level-switch mutation requires exact weight-count matching between mutated layers, restricting mutations to layers of identical shapes (e.g., Attention-to-Attention or MLP-to-MLP).
  • Fine-Grained Structural Pruning: The method focuses on post-training depth dropping, unstructured sparsity, and quantization; fine-grained structural pruning (e.g., pruning individual heads, rows, or columns) was not evaluated, as it typically demands extensive retraining.
  • Hardware Benchmarking: While the search produces valid mixed-precision models, hardware-level inference speedups on heterogeneous execution runtimes (such as specialized vLLM kernels) were left for future exploration.

Summary updated

BibTeX
@inproceedings{sieberling2025evopress,
  author = {Oliver Sieberling and Denis Kuznedelev and Eldar Kurtic and Dan Alistarh},
  title = {{EvoPress: Towards Optimal Dynamic Model Compression via Evolutionary Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=l7QzcZpjc5},
}
Figure