arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.14315cs.CL
收藏

通过低困惑度标记学习缓解大语言模型微调中的遗忘问题

Mitigating Forgetting in LLM Fine-Tuning via Low-Perplexity Token Learning

Appier AI Research(Appier AI研究院);National Taiwan University(国立台湾大学)

Chao-Chung Wu, Zhi Rui Tam, Chieh-Yen Lin, Yun-Nung Chen, Shao-Hua Sun, Hung-yi Lee

AI总结:

本文通过降低标记困惑度来缓解大语言模型微调后的遗忘问题,发现使用LLM生成数据可提升目标任务性能并减少非目标任务退化。

摘要:

在机器学习中,保持模型在不同领域间的一致性能是一个基本挑战。尽管近期的研究已经探索了使用大语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑