Abstract
Large Language Models (LLMs) face significant deployment challenges due to their high computational and memory requirements. While model compression and data multiplexing have emerged as distinct solutions to improve efficiency, they are rarely utilized in tandem. This paper introduces PruMUX, a framework that combines structured pruning with data multiplexing to achieve massive throughput gains. By simultaneously reducing model size and processing multiple inputs in a single forward pass, PruMUX delivers up to a 29.5x speedup over BERT-base with minimal impact on accuracy, establishing a superior Pareto frontier compared to using either technique in isolation.
Introduction
The resource-intensive nature of LLMs makes real-world deployment expensive and latency-prone. Researchers typically address these bottlenecks through two primary avenues:
- Model Compression: Techniques like pruning or distillation reduce the number of parameters, thereby lowering the computational cost per inference pass.
- Data Multiplexing: Methods such as DataMUX "squash" multiple input sequences into a single representation, allowing the model to process them simultaneously without increasing the model's physical size.
While both methods improve the throughput-to-compute ratio, they have traditionally been studied as independent optimizations. The central challenge in combining them is the potential for a "compounded" accuracy drop, where the noise introduced by multiplexing and the information loss from pruning might render the model ineffective. PruMUX addresses this by strategically integrating these dimensions to optimize the trade-off between speed and performance.
The PruMUX Framework
PruMUX utilizes a three-phase pipeline to integrate DataMUX (multiplexing) with CoFi (a state-of-the-art structured pruning method).
Phase 1: Retrieval Warm-up
The model is initially trained on a token retrieval task. This phase is critical for priming the multiplexed model to learn how to disentangle and recover multiple distinct inputs from a single, mixed representation.
Phase 2: Pre-training & Fine-tuning
The model undergoes standard Masked Language Modeling (MLM) on large-scale corpora (Wikipedia and BooksCorpus), followed by fine-tuning on specific downstream tasks. Throughout this phase, the model is trained to handle $N$ multiplexed inputs simultaneously.
Phase 3: Structured Pruning
Using the CoFi method, the model undergoes structured pruning. Unlike unstructured pruning, which creates sparse weight matrices that are difficult to accelerate on commodity hardware, structured pruning removes entire architectural components—such as attention heads, layers, and hidden dimensions. This results in a physically smaller, denser model that achieves immediate latency reductions.
Auto-PruMUX
To navigate the complex search space of multiplexing width ($N$) and sparsity ($s$), the authors developed Auto-PruMUX. This meta-model predicts the optimal combination of parameters for a given accuracy budget, eliminating the need for exhaustive grid searches.
Experimental Evaluation
The researchers evaluated PruMUX on four major benchmarks from the General Language Understanding Evaluation (GLUE) suite: MNLI, QNLI, QQP, and SST-2. The baseline for comparison was a standard BERT-base model.
Key Findings
- Complementary Dimensions: Pruning and multiplexing attack efficiency from different angles: pruning reduces latency (time per pass), while multiplexing increases concurrency (inputs per pass).
- The Pareto Frontier: PruMUX consistently provides a better Pareto frontier than either method alone. For any target accuracy level, PruMUX almost always offers higher throughput than pushing a single method to its limit.
- Avoiding the "Accuracy Cliff": Both methods exhibit non-linear performance degradation at extreme settings. PruMUX finds that moderate settings for both (e.g., 70% sparsity and 5x multiplexing) yield higher throughput than pushing either method to a breaking point (e.g., 95% sparsity or 20x multiplexing).
Quantitative Results
PruMUX demonstrates significant throughput improvements over the BERT-base baseline:
- MNLI: Achieved a 7.5x to 29.5x throughput improvement within an accuracy range of 80% to 74%.
- SST-2: Improved throughput by 10.1x to 27.8x while maintaining accuracy between 86.5% and 83%.
- Comparative Performance: In nearly all test cases, PruMUX outperformed standalone CoFi (max ~11x) and standalone DataMUX (max ~10x).
- Optimization Efficiency: The Auto-PruMUX meta-model was highly effective, correctly identifying the best parameter pairs within its top 3 suggestions for 80-100% of tested accuracy budgets.
Limitations and Future Work
While PruMUX represents a significant step forward in model efficiency, several areas remain for future exploration:
- Scaling to Decoder-Only Models: This study focused on BERT-base (encoder-only). Future research is needed to determine how these techniques scale to massive decoder-only architectures like Llama-3 or GPT-4.
- Privacy and Security: Processing multiple instances in a single representation introduces a risk of "information leakage" between inputs, which may be a concern for multi-tenant cloud environments.
- Hardware-Specific Kernels: While structured pruning is hardware-friendly, further gains could be realized by developing specialized kernels designed to optimize the specific sparse structures generated by the PruMUX pipeline.
Conclusion
PruMUX demonstrates that model compression and data multiplexing are not just compatible, but synergistic. By balancing the reduction of model latency with the increase of input concurrency, PruMUX provides a robust framework for deploying high-performance language models in resource-constrained environments.
Summary updated