Introduction
Deploying Large Language Models (LLMs) on edge devices requires significant model compression. Pruning—the process of removing redundant weights or layers—is a primary technique for achieving this. However, existing pruning methods face a significant "scaling wall" in multi-user environments. Users often have diverse requirements: one might prioritize extreme size reduction (e.g., 70% sparsity) while another requires high accuracy at a moderate reduction (e.g., 50% sparsity).
Current solutions fall into two camps: score-based methods (like ShortGPT), which are fast but often sub-optimal as they ignore layer interactions, and optimization-based methods (like EvoPress), which provide high quality but require a computationally expensive search for every new request. This makes "compression-as-a-service" prohibitively slow.
The UniCuCo Framework
To bridge this gap, the authors propose UniCuCo (Universal Model for Customized Compression). The core idea is to train a single "One-for-All" model that can instantly generate an optimal pruning strategy for any user-defined request.
The framework consists of three innovative components:
- StratNet ($\phi_\theta$): A neural network that maps a compression request vector $\lambda$ (defining the size-performance trade-off) directly to a pruning strategy $\mathbf{x}$.
- Gaussian Process (GP) Estimator: Evaluating a pruning strategy is typically slow and non-differentiable. UniCuCo uses a GP as a fast, differentiable surrogate model. This allows the system to estimate performance instantly and, crucially, enables backpropagation to train the StratNet.
- Weighted Tchebycheff Optimization: To handle the complex, non-convex Pareto fronts of LLM performance, the authors employ a Tchebycheff scalarization function. This ensures the model finds the best possible trade-offs across the entire range of possible requests.
Efficiency and Performance
The primary advantage of UniCuCo is its ability to handle multiple requests with minimal overhead. Once the StratNet is trained, generating a new strategy is a simple forward pass taking less than a second.
In empirical tests on models like Mistral-7B and Llama-3-8B, UniCuCo achieved a 28x speedup over optimization-based methods when handling 64 concurrent requests. In terms of total time overhead for Mistral-7B, it was up to 56 times more efficient.
Beyond speed, UniCuCo maintains high performance. At high sparsity levels (70%), it outperformed score-based methods by an average of 3% accuracy across five zero-shot reasoning benchmarks. While specialized optimization methods might occasionally find a slightly better point for a single specific request, UniCuCo provides a near-optimal solution across the entire request space almost instantly.
Conclusion
UniCuCo represents a significant step toward practical, scalable LLM deployment. By replacing per-request optimization with a learned mapping, it enables real-time customized compression. Future work aims to scale this approach to "mega" models (70B+ parameters) and incorporate hardware-specific metrics like latency and energy consumption directly into the pruning requests.
Summary updated