Dynamic Orthogonal Continual Fine-tuning for Mitigating Catastrophic Forgettings

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Zhixin, Wei, Zeming, Sun, Meng
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909813071413248
author Zhang, Zhixin
Wei, Zeming
Sun, Meng
author_facet Zhang, Zhixin
Wei, Zeming
Sun, Meng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_23893
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Dynamic Orthogonal Continual Fine-tuning for Mitigating Catastrophic Forgettings
Zhang, Zhixin
Wei, Zeming
Sun, Meng
Machine Learning
Artificial Intelligence
Computation and Language
Cryptography and Security
Optimization and Control
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.
title Dynamic Orthogonal Continual Fine-tuning for Mitigating Catastrophic Forgettings
topic Machine Learning
Artificial Intelligence
Computation and Language
Cryptography and Security
Optimization and Control
url https://arxiv.org/abs/2509.23893