CURLoRA: Stable LLM Continual Fine-Tuning and Catastrophic Forgetting Mitigation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autore principale: Fawi, Muhammad
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912002581987328
author Fawi, Muhammad
author_facet Fawi, Muhammad
contents This paper introduces CURLoRA, a novel approach to fine-tuning large language models (LLMs) that leverages CUR matrix decomposition in the context of Low-Rank Adaptation (LoRA). Our method addresses two critical challenges in LLM fine-tuning: mitigating catastrophic forgetting during continual learning and reducing the number of trainable parameters. We propose a unique modification to the CUR decomposition process, utilizing inverted probabilities for column and row selection which acts as an implicit regularization, and initializing the $U$ matrix as a zero matrix, and only fine-tuning it. We demonstrate through experiments on multiple datasets that CURLoRA outperforms standard LoRA in mitigating catastrophic forgetting. It maintains model stability and performance across tasks while significantly reducing the number of trainable parameters. Our results show that CURLoRA achieves very good and stable task accuracy while maintaining base model's perplexity scores fixed compared to LoRA upon continual fine-tuning, particularly in scenarios with limited data.
format Preprint
id arxiv_https___arxiv_org_abs_2408_14572
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CURLoRA: Stable LLM Continual Fine-Tuning and Catastrophic Forgetting Mitigation
Fawi, Muhammad
Machine Learning
Artificial Intelligence
Computation and Language
This paper introduces CURLoRA, a novel approach to fine-tuning large language models (LLMs) that leverages CUR matrix decomposition in the context of Low-Rank Adaptation (LoRA). Our method addresses two critical challenges in LLM fine-tuning: mitigating catastrophic forgetting during continual learning and reducing the number of trainable parameters. We propose a unique modification to the CUR decomposition process, utilizing inverted probabilities for column and row selection which acts as an implicit regularization, and initializing the $U$ matrix as a zero matrix, and only fine-tuning it. We demonstrate through experiments on multiple datasets that CURLoRA outperforms standard LoRA in mitigating catastrophic forgetting. It maintains model stability and performance across tasks while significantly reducing the number of trainable parameters. Our results show that CURLoRA achieves very good and stable task accuracy while maintaining base model's perplexity scores fixed compared to LoRA upon continual fine-tuning, particularly in scenarios with limited data.
title CURLoRA: Stable LLM Continual Fine-Tuning and Catastrophic Forgetting Mitigation
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2408.14572