Estimating and Orthogonalizing Unknown Pre-training Gradients for Continual Fine-tuning of Large Language Models
Bing Wang, Changchun Li, Xin-Qiang Cai, Lin Y Wu, Ximing Li, Gang Niu, Masashi Sugiyama
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Catastrophic Forgetting in Continual Learning · Type: new method · Keywords: continual fine-tuning, catastrophic forgetting, gradient orthogonalization, large language models, pseudo data generation
Areas: Continual Learning & Adaptation › Catastrophic Forgetting and Unlearning › Catastrophic Forgetting
Summary
EoupCT estimates unknown pre-training gradients and orthogonalizes them with new task updates to mitigate catastrophic forgetting in continual fine-tuning of large language models.
Explained to a 5-year-old
Large language models are like smart computers that can talk and write. When we teach them new things, they sometimes forget what they already knew. Existing tricks can't stop this forgetting because they don't know what the models originally learned. The new idea makes pretend data that shows what would be forgotten and uses it to guide new learning. This helps the model keep both old knowledge and new skills.
Explained to a 5-year-old, longer
Large language models are computer programs that can understand and generate human language. When we give them new information, they sometimes forget the things they learned before. This forgetting is called catastrophic forgetting and can make the model less useful. Existing methods try to stop forgetting, but they need to know the original data the model was trained on. The original training data is often hidden and very varied, so it's hard to use. The paper creates fake data that looks like the kind of information that would be forgotten. This fake data helps the model figure out what it originally knew. Then the model learns new things while making sure its new knowledge does not interfere with the old knowledge. It does this by using a special training technique that keeps the new updates separate from the old ones. The result is that the model can keep both its old skills and learn new things without losing anything. This makes the model more reliable for real-world uses where it needs to adapt over time. Overall, the approach helps large language models stay smart and flexible as they grow.
For a technical reader
Continual fine-tuning of LLMs often leads to catastrophic forgetting, eroding previous task performance and general knowledge. Existing orthogonalization techniques rely on known pre-training gradients, which are unavailable for off-the-shelf models. EoupCT estimates these unknown gradients by generating pseudo data that is prone to forgetting via a learnable soft prompt with Gumbel-Softmax relaxation. It then jointly optimizes model parameters and the prompt using a Pareto optimizer to enforce orthogonality between new updates and the estimated gradients. Experiments across multiple LLMs show that this approach preserves both task-specific proficiency and pre-training knowledge while mitigating forgetting.
Problem
Continual fine-tuning of large language models suffers from catastrophic forgetting, causing loss of previous task performance and general knowledge. Existing methods cannot preserve pre-training knowledge because the original pre-training data and gradients are unknown and highly diverse.
Method
The approach estimates pre-training gradients by generating pseudo data that is prone to forgetting using a learnable soft prompt with Gumbel-Softmax relaxation, and it jointly optimizes LLM parameters and the prompt with a Pareto optimizer to enforce orthogonality between new task updates and the estimated gradients.
Results
The approach preserves task-specific proficiency and general knowledge while mitigating catastrophic forgetting across multiple LLMs.
Contributions
A method to estimate unknown pre-training gradients via pseudo data generation and a joint optimization framework that enforces orthogonality to retain both task performance and pre-training knowledge during continual fine-tuning.
Practical relevance
Enables reliable continual adaptation of LLMs in dynamic real-world applications without losing prior knowledge.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction