TL;DR
EvoPress is a novel framework that uses evolutionary search to find optimal, non-uniform compression profiles for Large Language Models (LLMs). By challenging the common assumption that "more compression always equals more error," it achieves state-of-the-art results in layer dropping, weight sparsity, and quantization, often outperforming existing methods by significant margins while remaining efficient enough to run on a single consumer GPU.
What Problem Does This Paper Address?
As Large Language Models (LLMs) grow in size, the need to compress them for deployment becomes critical. Traditional methods often apply "uniform" compression—treating every layer the same. However, some layers are more "important" or "sensitive" than others.
Existing "dynamic" (non-uniform) methods try to solve this by assigning a sensitivity score to each layer and allocating more "budget" to sensitive ones. This approach relies on two major assumptions:
- Independence: Layers contribute to the total error independently.
- Error Monotonicity: Pruning or compressing a model further will always increase the error.
The authors of EvoPress demonstrate that these assumptions are false.
In a striking example, they show that for a Llama-3-8B model, removing more blocks (bottom row) can actually lead to significantly better perplexity than removing fewer blocks (middle row). Because prior scoring-based methods rely on these flawed assumptions, they often settle for sub-optimal compression configurations.
Methods
To navigate the complex, non-monotonic landscape of LLM compression, the authors propose EvoPress, an evolutionary search framework based on a $(1 + \lambda)$ evolutionary algorithm.
Key Innovations:
- Level-Switch Mutation: To maintain a global compression constraint (e.g., exactly 70% sparsity), the algorithm uses a "budget-neutral" mutation. If it increases the compression level of one layer, it must decrease the compression of another. This ensures the search stays within the required model size while exploring local "neighborhoods" of configurations.
- Multi-Step Selection: Evaluating an LLM is computationally expensive. EvoPress uses a "tournament" style evaluation:
- All $\lambda$ offspring are evaluated on a tiny fraction of data.
- The top performers move to a second stage with more data.
-
The final winner is compared against the parent using a "full" minibatch. This makes the search remarkably sample-efficient.
-
Fitness Function: Instead of using raw perplexity, EvoPress uses KL-Divergence between the original model and the compressed version. This provides a much more robust signal for how much information is being lost during compression.
Datasets
The authors used Fineweb-Edu (8 million tokens) as the source for calibration data during the search process. For evaluation, they used:
- Language Modeling: WikiText-2 and C4.
- Zero-Shot Benchmarks: WinoGrande, PiQA, HellaSwag, ARC-easy, and ARC-challenge (via the LM Eval Harness).
Key Insights and Ideas
- The Death of Monotonicity: The most surprising finding is that the "fitness landscape" of LLM compression is not a simple uphill climb. Because layers interact in complex ways, the "best" model isn't always the one that is compressed the least.
- Smoothness in Complexity: Despite the search space expanding exponentially with the number of layers, the authors found the fitness landscape to be "notably smooth." This allows a simple hill-climbing evolutionary strategy to converge to near-optimal solutions very quickly.
- Hardware Efficiency: EvoPress is highly practical. The "super-fast" version can find an optimal configuration for an 8B parameter model in about one hour on a single NVIDIA RTX 3090 GPU.
- Agnosticism: Unlike previous methods tailored to specific types of compression (like OWL for sparsity or SPDY for quantization), EvoPress is a general-purpose optimizer that works across depth pruning, unstructured sparsity, and quantization.
Key Results
EvoPress consistently sets new benchmarks across all tested models (Llama, Mistral, Phi):
- Depth Pruning: On Mistral-7B, EvoPress identified functional submodels even when removing 50% of the blocks, whereas all other baseline methods (like ShortGPT) saw total performance collapse.
- Unstructured Sparsity: At 70% sparsity on Llama-3-8B, EvoPress achieved a perplexity of 28.76, nearly doubling the performance of the previous state-of-the-art method, OWL (which scored 48.07).
- Quantization: For 3-bit quantization, EvoPress outperformed uniform GPTQ and dynamic programming-based approaches, showing particular strength in extreme low-bit regimes (2.25 and 2.5 bits).
Limitations and Future Work
- Module Independence: Currently, the search treats Attention and MLP modules as independent units but restricts mutations to be between modules of the same type. The authors suggest that allowing "cross-type" mutations (e.g., trading Attention budget for MLP budget) could yield even better results.
- Combined Approaches: The current study looks at pruning, sparsity, and quantization separately. A natural next step is to use EvoPress to optimize a "mixed-bag" of compression techniques simultaneously.
- Finer Granularity: The authors plan to investigate finer-grained structured pruning (e.g., pruning individual heads or hidden dimensions) using the same framework.
Summary updated