CLSep 29, 2024

Learning Attentional Mixture of LoRAs for Language Model Continual Learning

arXiv:2409.19611v112 citationsh-index: 4
Originality Incremental advance
AI Analysis

This addresses the problem of forgetting in sequential task learning for LLM users, but it is incremental as it builds on existing LoRA-based methods.

The paper tackles catastrophic forgetting in continual learning for large language models by proposing Attentional Mixture of LoRAs (AM-LoRA), which uses an attention mechanism and sparsity constraints to adaptively integrate LoRAs from different tasks, achieving superior results on benchmarks.

Fine-tuning large language models (LLMs) with Low-Rank adaption (LoRA) is widely acknowledged as an effective approach for continual learning for new tasks. However, it often suffers from catastrophic forgetting when dealing with multiple tasks sequentially. To this end, we propose Attentional Mixture of LoRAs (AM-LoRA), a continual learning approach tailored for LLMs. Specifically, AM-LoRA learns a sequence of LoRAs for a series of tasks to continually learn knowledge from different tasks. The key of our approach is that we devise an attention mechanism as a knowledge mixture module to adaptively integrate information from each LoRA. With the attention mechanism, AM-LoRA can efficiently leverage the distinctive contributions of each LoRA, while mitigating the risk of mutually negative interactions among them that may lead to catastrophic forgetting. Moreover, we further introduce $L1$ norm in the learning process to make the attention vector more sparse. The sparse constraints can enable the model to lean towards selecting a few highly relevant LoRAs, rather than aggregating and weighting all LoRAs collectively, which can further reduce the impact stemming from mutual interference. Experimental results on continual learning benchmarks indicate the superiority of our proposed method.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes