Dynamic Orthogonal Continual Fine-tuning for Mitigating Catastrophic Forgettings

Zhixin Zhang, Zeming Wei, Meng Sun
9/28/2025
cs.LGcs.AIcs.CL

Official code: meloxxxxxx/DOC (1 star, last commit 2025-09-28).

Abstract

Catastrophic forgetting remains a critical challenge in continual learning for large language models (LLMs), where models struggle to retain performance on historical tasks when fine-tuning on new sequential data without access to past datasets. In this paper, we first reveal that the drift of functional directions during the fine-tuning process is a key reason why existing regularization-based methods fail in long-term LLM continual learning. To address this, we propose Dynamic Orthogonal Continual (DOC) fine-tuning, a novel approach that tracks the drift of these functional directions and dynamically updates them during the fine-tuning process. Furthermore, by adjusting the gradients of new task parameters to be orthogonal to the tracked historical function directions, our method mitigates interference between new and old tasks. Extensive experiments on various LLM continual learning benchmarks demonstrate that this approach outperforms prior methods, effectively reducing catastrophic forgetting and providing a robust tool for continuous LLM fine-tuning. Our code is available at https://github.com/meloxxxxxx/DOC.

View on arXivView PDF

Code Implementations(1)

meloxxxxxx/DOCOfficial100%

dynamic orthogonal continual fine-tuning

10PythonSep 28, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2025dynamic,
  title  = {Dynamic Orthogonal Continual Fine-tuning for Mitigating Catastrophic Forgettings},
  author = {Zhixin Zhang and Zeming Wei and Meng Sun},
  year   = {2025},
  eprint = {2509.23893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.23893v1}
}

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/2509.23893.svg)](https://codeofpaper.com/paper/2509.23893)

Discussion