TL;DR
This paper introduces PC-LoRA, a novel method that progressively removes pre-trained model weights during fine-tuning, achieving significant model compression and parameter efficiency. By gradually decaying the original weights to zero while relying on low-rank adapters, PC-LoRA drastically reduces model size and computational cost with only a minor drop in performance.
What Problem Does This Paper Address?
Large-scale pre-trained models, particularly in Natural Language Processing (NLP) and Computer Vision (CV), have achieved remarkable performance. However, their sheer size and computational demands pose significant challenges for deployment and fine-tuning on downstream tasks. While parameter-efficient fine-tuning methods like LoRA have emerged to address this, they still require the original pre-trained model as a backbone, leading to substantial memory usage during inference. The authors aim to bridge this gap by developing a method that not only fine-tunes efficiently but also compresses the model to the point where the original weights are no longer needed.
Methods
The core innovation is Progressive Compression LoRA (PC-LoRA), an extension of the existing Low-Rank Adaptation (LoRA) technique. PC-LoRA introduces a weight decay scheduling mechanism. During fine-tuning, the original pre-trained weights ($W$) are gradually decayed to zero using a decay factor ($d$). Simultaneously, low-rank adapter matrices (A and B, and bias C) are trained. The model's output is a combination of the decayed original weight's output and the LoRA adapter's output. As training progresses, the decay factor $d$ transitions from 1 to 0, effectively phasing out the original weights and leaving only the trained LoRA adapters to handle the task. This process is structured into three phases: Warm-Up (no decay), Decay (gradual decay), and Cool-Down (original weights are zeroed out). This approach aims to ensure that the LoRA adapters learn the necessary representations while the original weights are progressively removed, leading to a compressed model.
Datasets
The paper evaluates PC-LoRA on two standard benchmark datasets:
- IMDb: A dataset for text classification, containing movie reviews.
- CIFAR-10: A dataset for image classification, consisting of 60,000 color images across 10 classes.
Key Insights and Ideas
- Decoupling Fine-tuning from Pre-trained Weights: The central idea is to demonstrate that it's possible to achieve good performance on downstream tasks using only the learned low-rank adapters, without the original pre-trained weights. This is a significant step towards truly compressed models.
- Weight Decay Scheduling is Crucial: The paper highlights that simply training with LoRA adapters and zeroing out weights without a structured decay process leads to completely unattainable learning. The gradual decay is essential for the adapters to learn the necessary representations.
- Orthogonality to Other Compression Methods: PC-LoRA is presented as being orthogonal to techniques like quantization and knowledge distillation, suggesting it can be combined with these methods for even greater compression.
Key Results
PC-LoRA achieves substantial model compression with only a minor performance degradation:
- Parameter Reduction:
- Vision models: 94.1% reduction (excluding embedding layers).
- NLP models: 93.5% reduction (excluding embedding layers).
- FLOPs Reduction:
- Vision models: 89.1% reduction.
- NLP models: 84.2% reduction.
- Performance Degradation: An average performance drop of approximately -3.085% compared to LoRA fine-tuning.
- Ablation Study: Training without weight decay scheduling resulted in negligible accuracy (around 50% for IMDb and 10% for CIFAR-10), underscoring the importance of the proposed scheduling.
Limitations and Future Work
- Limitations: The paper acknowledges that there is a performance drop, albeit minor, compared to methods that retain the full pre-trained model. The specific performance impact can vary across different model architectures (e.g., XLNet had a 58.3% parameter reduction and 45.4% FLOPs decrease due to method application constraints).
- Future Work: The authors suggest several promising directions:
- Developing more optimized weight decay schedulers.
- Incorporating knowledge distillation (KD) loss to further regularize and potentially improve performance.
- Comparing PC-LoRA with other compression techniques like pruning and traditional low-rank factorization.
Summary updated