Learning Dynamics of LLM Finetuning

Yi Ren, Danica J. Sutherland
2/12/2026

No official code found. Best implementation: Joshua-Ren/Learning_dynamics_LLM (225 stars, Apache-2.0, last commit 2025-12-23).

Abstract

Learning dynamics, which describes how the learning of specific training examples influences the model's predictions on other examples, gives us a powerful tool for understanding the behavior of deep learning systems. We study the learning dynamics of large language models during different types of finetuning, by analyzing the step-wise decomposition of how influence accumulates among different potential responses. Our framework allows a uniform interpretation of many interesting observations about the training of popular algorithms for both instruction tuning and preference tuning. In particular, we propose a hypothetical explanation of why specific types of hallucination are strengthened after finetuning, e.g., the model might use phrases or facts in the response for question B to answer question A, or the model might keep repeating similar simple phrases when generating responses. We also extend our framework and highlight a unique"squeezing effect"to explain a previously observed phenomenon in off-policy direct preference optimization (DPO), where running DPO for too long makes even the desired outputs less likely. This framework also provides insights into where the benefits of on-policy DPO and other variants come from. The analysis not only provides a novel perspective of understanding LLM's finetuning but also inspires a simple, effective method to improve alignment performance.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
22514Shell, PythonFeb 19, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{ren2026learning,
  title  = {Learning Dynamics of LLM Finetuning},
  author = {Yi Ren and Danica J. Sutherland},
  year   = {2026},
  eprint = {2407.10490},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.10490},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.10490.svg)](https://codeofpaper.com/paper/2407.10490)

Discussion