Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Koubbi, Hugo, Hernandez, Louis, Boussard, Matthieu
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909040505782272
author Koubbi, Hugo
Hernandez, Louis
Boussard, Matthieu
author_facet Koubbi, Hugo
Hernandez, Louis
Boussard, Matthieu
contents Low-Rank Adaptation (LoRA) is the dominant parameter-efficient fine-tuning method due to its favorable compute-performance trade-off, yet it suffers from catastrophic forgetting. We study forgetting through a tractable _mean-field self-attention_ toy model, where tokens evolve as an interacting particle system and LoRA acts as a low-rank perturbation. Using tools from partial differential equations and dynamical systems, we characterize regimes suggesting a phase transition between forgetting and non-forgetting behavior. We show that one phase transition appears with respect to the norm of the perturbation, and the other with respect to the depth of the Transformers. We further bound the time-to-deviation in terms of the perturbation size and spectral quantities, and corroborate the predicted trends with experiments and exploratory analyses on real models under LoRA fine-tuning.
format Preprint
id arxiv_https___arxiv_org_abs_2402_15415
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics
Koubbi, Hugo
Hernandez, Louis
Boussard, Matthieu
Machine Learning
Dynamical Systems
Low-Rank Adaptation (LoRA) is the dominant parameter-efficient fine-tuning method due to its favorable compute-performance trade-off, yet it suffers from catastrophic forgetting. We study forgetting through a tractable _mean-field self-attention_ toy model, where tokens evolve as an interacting particle system and LoRA acts as a low-rank perturbation. Using tools from partial differential equations and dynamical systems, we characterize regimes suggesting a phase transition between forgetting and non-forgetting behavior. We show that one phase transition appears with respect to the norm of the perturbation, and the other with respect to the depth of the Transformers. We further bound the time-to-deviation in terms of the perturbation size and spectral quantities, and corroborate the predicted trends with experiments and exploratory analyses on real models under LoRA fine-tuning.
title Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics
topic Machine Learning
Dynamical Systems
url https://arxiv.org/abs/2402.15415