Lottery Ticket Adaptation: Mitigating Destructive Interference in LLMs

Ashwinee Panda, Berivan Isik, Xiangyu Qi, Sanmi Koyejo, Tsachy Weissman, Prateek Mittal · DOI

Abstract

Large Language Models (LLMs) often suffer from "destructive interference" when adapted to multiple tasks, leading to catastrophic forgetting or capacity bottlenecks. We present Lottery Ticket Adaptation (LoTA), a novel framework that identifies and trains only a sparse subnetwork—a "lottery ticket"—within the LLM for specific tasks. LoTA achieves performance parity with full fine-tuning while maintaining the modularity of parameter-efficient methods. Our results demonstrate that LoTA significantly mitigates catastrophic forgetting and facilitates the seamless merging of models specialized for disparate tasks.

Introduction

Adapting LLMs to new domains typically relies on Full Fine-Tuning (FFT) or Low-Rank Adaptation (LoRA). However, FFT often leads to catastrophic forgetting, where new knowledge overwrites previous capabilities. Conversely, LoRA's low-rank constraints can limit expressive power in complex tasks like mathematical reasoning. Furthermore, merging models trained via these traditional methods often results in performance degradation due to weight clashes. LoTA addresses these challenges by providing a method that is as expressive as FFT but as modular and storable as LoRA.

Methodology: Lottery Ticket Adaptation (LoTA)

The LoTA framework operates in three distinct phases to isolate task-specific parameters:

  1. Mask Calibration: The model undergoes a brief period of full fine-tuning to identify weights critical for the target task.
  2. Mask Extraction: A binary mask is created by selecting the top $k\%$ of weights with the largest magnitude changes (task vectors) from the calibration phase.
  3. Sparse Adaptation: The model is reset to its base state, and only the weights identified by the mask are trained, while the remainder of the model remains frozen.
The three phases of LoTA: Mask Calibration, Mask Extraction, and Sparse Adaptation.

To handle sequential learning, we introduce LoTTO (Lottery Ticket Together Optimization). This algorithm prevents interference by ensuring that new tasks do not update weights already allocated to previous tasks, effectively creating disjoint subnetworks.

Experimental Setup

We evaluated LoTA using Mistral-7B and Llama-3-8B across several benchmarks:

  • Instruction Following: UltraFeedback (AlpacaEval 2).
  • Reasoning: ARC-easy, PIQA, Hellaswag, etc.
  • Mathematics: GSM8k and MathInstruct.
  • Code & Summarization: SQL-create-context and Samsum.
  • Safety: HEx-Phi alignment testing.

Key Results and Discussion

LoTA demonstrates superior performance across diverse tasks, often matching or exceeding FFT while consistently outperforming LoRA in complex domains.

Performance comparison of FFT, LoRA, and LoTA across Mistral and Llama 3 models.

Performance and Expressivity

On Mistral-7B instruction following, LoTA achieved a 19.0% win rate, matching FFT and significantly exceeding LoRA's 15.3%. The "full-rank" nature of the sparse updates in LoTA allows it to handle mathematical reasoning and coding tasks more effectively than low-rank alternatives.

Mitigating Catastrophic Forgetting

In sequential training scenarios, FFT models often see their performance on initial tasks collapse (e.g., from 19.0% to 0.5%). LoTA limits this drop significantly (maintaining ~15.9%), as the majority of the model's original knowledge remains untouched by the sparse updates.

Safety and Model Merging

LoTA acts as a "safety guardrail" by leaving safety-aligned weights unmasked and frozen during adaptation. Additionally, the sparsity of LoTA task vectors reduces mathematical "clashing" during model merging. Merging an instruction-following model with a math model using LoTA yielded a task-average performance of 38.5%, surpassing the best FFT merging methods.

Conclusion and Future Work

LoTA offers a powerful middle ground between full fine-tuning and parameter-efficient adaptation. While it requires a calibration pass and does not currently offer the same training memory savings as LoRA, its ability to prevent destructive interference makes it ideal for multi-task environments. Future research will explore LoTA's application in federated learning and targeted capability "unlearning."

Summary updated

BibTeX
@inproceedings{panda2024lottery,
  author = {Ashwinee Panda and Berivan Isik and Xiangyu Qi and Sanmi Koyejo and Tsachy Weissman and Prateek Mittal},
  title = {{Lottery Ticket Adaptation: Mitigating Destructive Interference in LLMs}},
  booktitle = {NextGenAISafety @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=AfdAZtUWsR},
}
Figure