English

Unveiling Over-Memorization in Finetuning LLMs for Reasoning Tasks

Computation and Language 2025-09-30 v2

Abstract

The pretrained large language models (LLMs) are finetuned with labeled data for better instruction following ability and alignment with human values. In this paper, we study the learning dynamics of LLM finetuning on reasoning tasks and reveal the uncovered over-memorization phenomenon during a specific stage of LLM finetuning. At this stage, the LLMs have excessively memorized training data and exhibit high test perplexity while maintaining good test accuracy. We explore the conditions that contribute to over-memorization and discover that this issue is prevalent across various tasks, models, and fine-tuning methods, with prolonged training and large learning rates exacerbating the problem. Although models with over-memorization demonstrate comparable test accuracy to normal models, they suffer from reduced robustness, poor out-of-distribution generalization, and decreased generation diversity. In light of our findings on over-memorization, we offer recommendations for checkpoint selection and propose techniques such as checkpoint merging and memorization-aware reweighting to mitigate this effect.

Keywords

Cite

@article{arxiv.2508.04117,
  title  = {Unveiling Over-Memorization in Finetuning LLMs for Reasoning Tasks},
  author = {Zhiwen Ruan and Yun Chen and Yutao Hou and Peng Li and Yang Liu and Guanhua Chen},
  journal= {arXiv preprint arXiv:2508.04117},
  year   = {2025}
}
R2 v1 2026-07-01T04:36:38.702Z