An Empirical Analysis of Forgetting in Pre-trained Models with Incremental Low-Rank Updates

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Soutif--Cormerais, Albin, Magistri, Simone, van de Weijer, Joost, Bagdanov, Andew D.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908370806505472
author Soutif--Cormerais, Albin
Magistri, Simone
van de Weijer, Joost
Bagdanov, Andew D.
author_facet Soutif--Cormerais, Albin
Magistri, Simone
van de Weijer, Joost
Bagdanov, Andew D.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_18069
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Empirical Analysis of Forgetting in Pre-trained Models with Incremental Low-Rank Updates
Soutif--Cormerais, Albin
Magistri, Simone
van de Weijer, Joost
Bagdanov, Andew D.
Machine Learning
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.
title An Empirical Analysis of Forgetting in Pre-trained Models with Incremental Low-Rank Updates
topic Machine Learning
url https://arxiv.org/abs/2405.18069