paper-with-me

홈 › Papers

MoFO: Momentum-Filtered Optimizer for Mitigating Forgetting in LLM Fine-Tuning

2024-07-30 · Yupeng Chen, Senmiao Wang, Yushun Zhang, Zhihang Lin, Haozhe Zhang, Weijian Sun, Tian Ding, Ruoyu Sun

Large language models (LLMs) have demonstrated remarkable capabilities across a wide range of tasks. Typically, LLMs are first pre-trained on large corpora and subsequently fine-tuned on task-specific datasets. However, during fine-tuning, LLMs may forget some knowledge acquired in the pre-training stage, leading to a decline in general capabilities. Existing approaches to mitigate forgetting often rely on access to pre-training data, which may be unavailable in many real-world scenarios--such as fine-tuning checkpoint-only open-source LLMs. To address this challenge, we propose a new fine-tuning algorithm termed Momentum-Filtered Optimizer (MoFO). MoFO is an extension of greedy block coordinate descent (BCD) methods: in each iteration, MoFO only updates the model parameters with the largest momentum magnitudes, while keeping all other parameters fixed. MoFO achieves similar fine-tuning performance to the default fine-tuning algorithm while effectively mitigating knowledge forgetting. We validate MoFO through rigorous convergence analysis and extensive experiments, demonstrating its effectiveness in mitigating forgetting without pre-training data.

📄 PDF Abstract BibTeX arXiv:2407.20999

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Momentum Streams for Optimizer-Inspired Transformers

2026-05-23 · Jingchu Gai, Nai-Chieh Huang, Jiayun Wu arxiv

The residual update of a pre-norm Transformer layer admits an interpretation as one step of a first-order optimizer acting on a surrogate token energy, wherein the attention and MLP sublayers function as gradient oracles…

Logits Replay + MoClip: Stabilized, Low-Cost Post-Training with Minimal Forgetting

2025-10-10 · Suming Qiu, Jing Li, Zhicheng Zhou, Junjie Huang 외 arxiv

Large language models (LLMs) often face a trade-off in post-training: improvements on specialized domains frequently come at the expense of general capabilities. Existing solutions attempt to mitigate this tension via re…

Domain Adaptation

DeltaMomentum: A Key-Value based Anisotropic Momentum Update via Delta Rule

2026-08-19 · Euijin Hong, Guannan Qu arxiv

Most modern optimizers form their momentum as an exponential moving average (EMA) of past gradients, forgetting every direction at one fixed rate. However, the inputs a deep network sees during training can be highly ani…

FOGO: Forgetting-aware Orthogonalization Optimizer

2026-06-09 · Toan Nguyen, Yang Liu, Trung Le, Celso de Melo 외 arxiv

We argue that forgetting is not confined to continual learning but is a general optimization phenomenon: during standard training, dominant mini-batch gradients suppress rare but useful update directions, causing short-t…

Continual Learning

SPAM: Spike-Aware Adam with Momentum Reset for Stable LLM Training

2025-01-12 · Tianjin Huang, Ziquan Zhu, Gaojie Jin, Lu Liu 외

Large Language Models (LLMs) have demonstrated exceptional performance across diverse tasks, yet their training remains highly resource-intensive and susceptible to critical challenges such as training instability. A pre…

Time Series Forecasting