An Empirical Analysis of Forgetting in Pre-trained Models with Incremental Low-Rank Updates
Albin Soutif--Cormerais, Simone Magistri, Joost van de Weijer, Andew D. Bagdanov
TL;DR
This work analyzes forgetting in pretrained vision models when incrementally updating them with per-task LoRA adapters that are merged back into the base weights after each task. It compares Vision Transformers (ViT) and ResNet-50 across four fine-grained datasets (Cars, Flowers, Aircraft, Birds) and varying LoRA ranks, under short and long task sequences. Key findings show that lower LoRA rank reduces forgetting of the pretrained task and downstream tasks, and ViTs exhibit contextual forgetting where pretrained classes semantically related to the downstream domain are forgotten, a phenomenon not seen in ResNets; forward transfer can occur in longer sequences for ViT, while LwF further aids stability. The results highlight the importance of rank choice and architecture when applying incremental low-rank updates to pretrained models, suggesting directions for adaptive replay and rank-aware strategies to preserve upstream knowledge while improving downstream performance.
Abstract
Broad, open source availability of large pretrained foundation models on the internet through platforms such as HuggingFace has taken the world of practical deep learning by storm. A classical pipeline for neural network training now typically consists of finetuning these pretrained network on a small target dataset instead of training from scratch. In the case of large models this can be done even on modest hardware using a low rank training technique known as Low-Rank Adaptation (LoRA). While Low Rank training has already been studied in the continual learning setting, existing works often consider storing the learned adapter along with the existing model but rarely attempt to modify the weights of the pretrained model by merging the LoRA with the existing weights after finishing the training of each task. In this article we investigate this setting and study the impact of LoRA rank on the forgetting of the pretraining foundation task and on the plasticity and forgetting of subsequent ones. We observe that this rank has an important impact on forgetting of both the pretraining and downstream tasks. We also observe that vision transformers finetuned in that way exhibit a sort of ``contextual'' forgetting, a behaviour that we do not observe for residual networks and that we believe has not been observed yet in previous continual learning works.
