在机器学习中,保持模型在不同领域间的一致性能是一个基本挑战。尽管近期的研究已经探索了使用大语言模型(LLM)生成的数据进行微调,但其对跨领域泛化的影响仍不明确。本文系统地分析表明,使用LLM生成的数据进行微调不仅提高了目标任务的性能,还相比使用真实数据进行微调减少了非目标任务的退化。通过分析不同领域任务中的数据序列,我们证明这种非目标任务鲁棒性的增强源于LLM生成序列中高困惑度标记的减少。根据我们的发现,我们展示了在真实训练数据中屏蔽高困惑度标记可以达到与使用LLM生成数据相似的非目标任务性能保持效果。在不同模型家族和规模上进行了广泛的实验,包括Gemma 2 IT 2B、Llama 3 8B Instruct以及三个其他模型,结果均支持我们的发现。到目前为止,这项工作是首次基于标记困惑度减少提供实证解释,以缓解微调后大语言模型中的灾难性遗忘问题,为开发更具鲁棒性的微调策略提供了有价值的见解。
英文摘要:
Maintaining consistent model performance across domains is a fundamental challenge in machine learning. While recent work has explored using LLM-generated data for fine-tuning, its impact on cross-domain generalization remains poorly understood. This paper presents a systematic analysis revealing that fine-tuning with LLM-generated data not only improves target task performance but also reduces non-target task degradation compared to fine-tuning with ground truth data. Through analyzing the data sequence in tasks of various domains, we demonstrate that this enhancement of non-target task robustness stems from the reduction of high perplexity tokens found in LLM-generated sequences. Following our findings, we showed that masking high perplexity tokens in ground truth training data achieves similar non-target task performance preservation, comparable to using LLM-generated data. Extensive experiments across different model families and scales, including Gemma 2 IT 2B, Llama 3 8B Instruct, and three additional models, agree with our findings. To the best of our knowledge, this is the first work to provide an empirical explanation based on token perplexity reduction to mitigate catastrophic forgetting in LLMs after fine-tuning, offering valuable insights for developing more robust fine-tuning strategies.
AWARe: Mitigating Catastrophic Forgetting via Activation-Weighted Adaptive REtention
School of Software Technology, Zhejiang University(浙江大学软件学院);College of Intelligent Robotics and Advanced Manufacturing, Fudan University(复旦大学智能机器人与先进制造学院);School of Artificial Intelligence, Sun Yat-Sen University(中山大学人工智能学院);Graduate School of Information Science, Hokkaido University(北海道大学信息科学研究院)
Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal
School of Informatics, Xiamen University(厦门大学信息学院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Tencent AI Lab(腾讯AI实验室);Zhejiang University(浙江大学)
SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture
Inspur Genersoft Co. Ltd.(浪潮 Genersoft 有限公司);Inspur Group Co. Ltd.(浪潮集团有限公司);Interactive Entertainment Group, Tencent Inc(腾讯公司互动娱乐集团);Nanjing University of Information Science and Technology(南京信息工程大学);Northeastern University(东北大学)
Finedeep: Mitigating Sparse Activation in Dense LLMs via Multi-Layer Fine-Grained Experts
College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);Chinese Academy of Sciences(中国科学院);Kuaishou Technology(快手科技);Tsinghua University(清华大学)
Pazhou Laboratory(琶洲实验室);Zhejiang University(浙江大学);South China Agricultural University(华南农业大学);Chongqing University of Posts and Telecommunications(重庆邮电大学);Key Laboratory of Big Data and Intelligent Robot, Ministry of Education(教育部大数据与智能机器人重点实验室)
Mitigating Catastrophic Forgetting in Multi-domain Chinese Spelling Correction by Multi-stage Knowledge Transfer Framework
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);State Key Lab of Software Development Environment, Beihang University(北京航空航天大学软件开发环境国家重点实验室);School of Intelligent Systems Engineering, Sun-Yat Sen University(中山大学智能工程学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳))
Unlearning Isn't Deletion: Investigating Reversibility of Machine Unlearning in LLMs
The Hong Kong Polytechnic University(香港理工大学);Carnegie Mellon University(卡内基梅隆大学);University of California, Santa Cruz(加州大学圣克ruz分校);Huawei Technologies(华为技术有限公司);Research Centre for Privacy and Security Technologies in Future Smart Systems, PolyU(未来智能系统中的隐私与安全技术研究中心,PolyU)
Benchmarking Parameter-Efficient Fine-Tuning of Large Language Models for Low-Resource Tajik Text Generation with the Tajik Web Corpus
Institute of Computational Mathematics and Information Technologies, Kazan Federal University(喀山联邦大学计算数学与信息技术研究所);Bokhtar State University named after Nosiri Khusrav(努西里·胡斯劳夫命名的博赫塔国立大学)
Continual Named Entity Recognition without Catastrophic Forgetting
Shenyang Institute of Automation, Chinese Academy of Sciences(中国科学院沈阳自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Baidu Inc(百度公司);Hong Kong Baptist University(香港浸会大学);Australian Artificial Intelligence Institute, University of Technology Sydney(悉尼科技大学澳大利亚人工智能研究所)