Abstract
Parameter-efficient fine-tuning (PEFT) enables the creation of specialized language models, but the resulting proliferation of expert modules creates a significant communication bottleneck. In production environments, these modules must be frequently swapped between memory tiers, leading to unacceptable latency. We present ComPEFT (Compressed PEFT), a training-free method that reduces task vector size by 8x–50x through sparsification and ternary quantization. Our evaluation across models ranging from 200M to 65B parameters demonstrates that ComPEFT not only facilitates faster communication but often enhances model performance, particularly as models scale. For LLaMA-65B, ComPEFT outperforms QLoRA by 4.16% on MMLU while achieving a 26x reduction in storage size.
The Communication Bottleneck in PEFT
Modern LLM deployments often utilize PEFT techniques like LoRA to serve diverse tasks. However, the sheer size of these adapters—over 3GB for a 65B parameter model—makes swapping them between CPU and GPU memory a major bottleneck. ComPEFT addresses this by shrinking the "task vector" (the delta between the base model and the fine-tuned expert) to a fraction of its original size, allowing for near-instantaneous loading and higher expert density in VRAM.
Methodology
ComPEFT employs a two-step, training-free pipeline to compress task vectors:
- Sparsification: The method identifies the top-$k$% updates by magnitude, treating low-magnitude updates as noise and setting them to zero.
- Ternary Quantization: The remaining significant updates are quantized into a sparse ternary vector $\{-1, 0, +1\}$.
- Scalar Scaling: To maintain the model's original signal strength, the sparse vector is multiplied by a single learned scalar $\alpha$ derived from the standard deviation of the original weights.
For storage, ComPEFT utilizes Golomb coding to reach near-theoretical entropy limits. Computationally, the resulting sparse ternary structures allow for potential speedups using bitwise operations (XOR/POPCNT) rather than standard high-precision matrix multiplication.
Key Insights and Scaling Laws
Compression as Regularization
A primary finding of this research is that ComPEFT often improves performance over the uncompressed original. By stripping away low-magnitude updates, the process effectively "denoises" the task vector, leading to better generalization. This suggests that many fine-tuning updates are extraneous or even detrimental to the core task.
The Scaling Law of Compressibility
Larger base models exhibit higher robustness to compression. As model size increases, the performance gap between the original and compressed versions not only closes but frequently flips in favor of the compressed model.
Experimental Results
- Massive Storage Reduction: ComPEFT achieves compression ratios between 8x and 50x. For LLaMA-65B, storage requirements dropped from 1.5GB to just 110MB.
- Performance Gains: On the MMLU benchmark, ComPEFT applied to LLaMA-65B outperformed standard QLoRA by 4.16% while being 26x smaller.
- Communication Efficiency: Practical tests showed up to a 32x reduction in download times and a 25x speedup in CPU-to-GPU loading.
- Compositionality: Compressed experts retain their ability to be merged via Task Arithmetic, allowing for the creation of multi-task models without significant accuracy loss.
Conclusion
ComPEFT provides a Pareto-optimal solution for serving large-scale PEFT experts. By combining sparsification with ternary quantization, it resolves the communication bottleneck inherent in multi-expert systems while simultaneously providing a regularizing effect that improves performance in large-scale models. Future work will focus on developing specialized CUDA kernels to translate these sparse structures into direct computational speedups.
Summary updated