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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wu, Chao-Chung, Tam, Zhi Rui, Lin, Chieh-Yen, Chen, Yun-Nung, Sun, Shao-Hua, Lee, Hung-yi
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911311852470272
author Wu, Chao-Chung
Tam, Zhi Rui
Lin, Chieh-Yen
Chen, Yun-Nung
Sun, Shao-Hua
Lee, Hung-yi
author_facet Wu, Chao-Chung
Tam, Zhi Rui
Lin, Chieh-Yen
Chen, Yun-Nung
Sun, Shao-Hua
Lee, Hung-yi
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_14315
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mitigating Forgetting in LLM Fine-Tuning via Low-Perplexity Token Learning
Wu, Chao-Chung
Tam, Zhi Rui
Lin, Chieh-Yen
Chen, Yun-Nung
Sun, Shao-Hua
Lee, Hung-yi
Computation and Language
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.
title Mitigating Forgetting in LLM Fine-Tuning via Low-Perplexity Token Learning
topic Computation and Language
url https://arxiv.org/abs/2501.14315