Fine Tuning without Catastrophic Forgetting via Selective Low Rank Adaptation
Reza Akbarian Bafghi, Carden Bagwell, Avinash Ravichandran, Ashish Shrivastava, Maziar Raissi
TL;DR
The paper tackles catastrophic forgetting and degraded robustness during fine-tuning of pretrained vision and vision-language models. It extends Task Adaptive Parameter Sharing (TAPS) by introducing an indicator-based gate for Low-Rank Adaptation (LoRA) blocks, enabling selective activation of a small subset of parameters ($W_ ext{ell} = W_{0, ext{ell}} + I_ au(s_i) A_ ext{ell} B_ ext{ell}$) with sparsity encouraged by $\,\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{original}} + \lambda \sum_i |s_i|$. This approach preserves zero-shot and out-of-distribution performance while achieving substantial inference-time speedups (up to $2.9\times$ for LoRA and $5\times$ for DoRA) and using as little as $5\%$ of active blocks. The method is demonstrated on CLIP and DINO-ViT, showing broad applicability across PEFT variants and tasks, including classification and retrieval, with improved robustness under distribution shifts. Overall, the indicator-gated PEFT provides a practical, memory-efficient strategy for domain adaptation that minimizes knowledge loss and maintains generalization.
Abstract
Adapting deep learning models to new domains often requires computationally intensive retraining and risks catastrophic forgetting. While fine-tuning enables domain-specific adaptation, it can reduce robustness to distribution shifts, impacting out-of-distribution (OOD) performance. Pre-trained zero-shot models like CLIP offer strong generalization but may suffer degraded robustness after fine-tuning. Building on Task Adaptive Parameter Sharing (TAPS), we propose a simple yet effective extension as a parameter-efficient fine-tuning (PEFT) method, using an indicator function to selectively activate Low-Rank Adaptation (LoRA) blocks. Our approach minimizes knowledge loss, retains its generalization strengths under domain shifts, and significantly reduces computational costs compared to traditional fine-tuning. We demonstrate that effective fine-tuning can be achieved with as few as 5\% of active blocks, substantially improving efficiency. Evaluations on pre-trained models such as CLIP and DINO-ViT demonstrate our method's broad applicability and effectiveness in maintaining performance and knowledge retention.
