Scaling Laws for Forgetting When Fine-Tuning Large Language Models

Damjan Kalajdzievski
1/11/2024
cs.CLcs.LG

No confident code implementation found for this paper. 7 possible matches can be shown below.

Abstract

We study and quantify the problem of forgetting when fine-tuning pre-trained large language models (LLMs) on a downstream task. We find that parameter-efficient fine-tuning (PEFT) strategies, such as Low-Rank Adapters (LoRA), still suffer from catastrophic forgetting. In particular, we identify a strong inverse linear relationship between the fine-tuning performance and the amount of forgetting when fine-tuning LLMs with LoRA. We further obtain precise scaling laws that show forgetting increases as a shifted power law in the number of parameters fine-tuned and the number of update steps. We also examine the impact of forgetting on knowledge, reasoning, and the safety guardrails trained into Llama 2 7B chat. Our study suggests that forgetting cannot be avoided through early stopping or by varying the number of parameters fine-tuned. We believe this opens up an important safety-critical direction for future research to evaluate and develop fine-tuning schemes which mitigate forgetting

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 7 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kalajdzievski2024scaling,
  title  = {Scaling Laws for Forgetting When Fine-Tuning Large Language Models},
  author = {Damjan Kalajdzievski},
  year   = {2024},
  eprint = {2401.05605},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.05605v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.05605.svg)](https://codeofpaper.com/paper/2401.05605)

Discussion