Introduction
The current pretrain-finetune paradigm in machine learning has led to significant storage challenges. Finetuning a large foundation model for numerous downstream tasks requires storing a full set of weights for each task, which is often cost-prohibitive. Existing "delta compression" techniques, such as DARE or BitDelta, attempt to mitigate this by storing only the compressed difference (the "delta") between finetuned and pretrained weights. However, these methods rely on a static pretrained base model as a fixed anchor. As compression rates increase (e.g., 99% pruning), the distance between the compressed task model and the static base model becomes too large, resulting in catastrophic performance loss.
Methodology: Dynamic Base Model Shift (DBMS)
To address the limitations of static anchors, this paper proposes Dynamic Base Model Shift (DBMS). DBMS dynamically adapts the base model for each specific task before delta compression, effectively reducing the variance the delta must cover.
The DBMS framework consists of three primary components:
- Shared Base Vector ($\tau_{base}$): A generic shift direction is calculated by averaging deltas across all tasks and compressing the result to 1-bit.
- Dynamic Base Model Shift: For a task $t$, the base model $\theta_{base}^t$ is shifted from the pretrained weights $\theta_{pre}$ using a task-specific scalar $\lambda_1$: $\theta_{base}^t = \theta_{pre} + \lambda_1^t \cdot \tau_{base}$.
- Delta Scale Finetuning: The final task-specific delta is scaled by $\lambda_2$ and compressed. The reconstructed weights are $\theta_{pre} + (\lambda_1 \cdot \tau_{base}) + (\lambda_2 \cdot \text{Compressed Delta})$.
The scalar parameters $\lambda_1$ and $\lambda_2$ are initialized via L2-minimization and then refined through a low-cost MSE distillation process using a small amount of unlabeled data.
Experimental Evaluation
The authors evaluated DBMS across language (GLUE), vision (8 classification tasks), and multi-modal (ImageNet-1K, VQAv2) benchmarks.
Key Results
- Language Models: On GPT-2 using DARE at 99% sparsity, DBMS improved average GLUE accuracy from 61.29% (vanilla) to 76.27%, nearly recovering the uncompressed performance of 81.94%.
- Vision Transformers: The impact was most pronounced in vision tasks. At 99.8% sparsity, vanilla DARE performance crashed to 8.9%, while DBMS rescued it to 80.8%.
- Efficiency: The optimization of the two scalar parameters is highly efficient. Figure 6 illustrates the performance landscape, showing how specific values of $\lambda_1$ can significantly impact model recovery.
Discussion and Insights
The core insight of DBMS is that the pretrained model is often a suboptimal reference point for high-ratio compression. By shifting the base model closer to the target task, the remaining delta parameters become easier to compress mathematically. DBMS acts as a "plug-and-play" wrapper that is orthogonal to existing pruning and quantization methods.
Limitations
While effective, DBMS introduces a small storage overhead for the 1-bit shared base vector. Additionally, it requires a brief distillation phase with unlabeled data to optimize the task-specific scalars.
Conclusion
Dynamic Base Model Shift provides a lightweight yet powerful solution to the performance degradation seen in high-ratio delta compression. By moving away from static anchors, DBMS enables extreme model sparsity while maintaining competitive performance across diverse modalities.
Summary updated