Manuscript Offprint

arXiv:2610.33740

A Distribution-Matching Perspective on LLM Training Algorithms

Yanxing Huang, Bingzhang Yan, Zihan Tang, Wenzhe Li, Peng Li, Yang Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

In this work, we propose a unified framework for training algorithms across different stages of modern large language model development, based on the perspective of distribution matching. We show that a broad class of language model training algorithms can be interpreted as minimizing a certain divergence between the current model and a target distribution, and that characterizing the properties of this target distribution provides substantial insight into the behavior of the corresponding training algorithms. By analyzing specific forms of the target distribution, we establish that On-Policy Distillation (OPD) enjoys an advantage over classical Knowledge Distillation (KD) when the current model distribution is close to the target distribution, while exhibiting a disadvantage when the two distributions are far apart. Furthermore, when the target distribution itself depends on the model being optimized, we show that the accumulation of estimation variance can induce a deterministic degradation of the target distribution. These results provide a theoretical explanation, at least in part, for the long-term behavior of existing Reinforcement Learning (RL) algorithms. With this intuition we further designed Conditional KL (CKL) regularization for mitigating the degradation of the target distribution. CKL can effectively preserve mode diversity while relaxing the constraint imposed by classical KL regularization on reward improvements. We believe this theoretical perspective can bring some new understanding of language model training algorithms and provide useful guidance for future research.

1 INTRODUCTION

Modern Large Language Models (LLMs) require a complex training pipeline with different algorithms from pre-training to post-training (Team et al., 2026; DeepSeek-AI et al., 2026; GLM-5-Team et al., 2026). These algorithms are motivated by different intuitions. For example, the objectives of pre-training and Supervised Fine-Tuning (SFT) arise directly from distribution matching under the cross-entropy loss; On Policy Distillation (OPD) is constructed around on-policy sampling (Lochab et al., 2026); Reinforcement Learning (RL) aims to maximize the expected reward (Williams, 1992); and MaxRL can be viewed as arising from maximum-likelihood estimation of correct solutions (Tajwar et al., 2026). We hope to identify the commonalities and essential differences among these algorithms, which will provide a more unified understanding and insight into the study of their properties.

Many of the training algorithms of LLMs already admit a distribution matching interpretation (Korbak et al., 2022a; Khalifa et al., 2021), whereas RL is often viewed fundamentally distinct. In this work we first studied the property of an ideal update step in RL and show that, under binary rewards, it preserves the conditional distribution associated with a given reward value. Moreover, if we consider the forward KL divergence between the current model and the true conditional distribution, we will obtain the training objective of MaxRL (Tajwar et al., 2026), which is closely related to RL. Similar results can also be extended to RL with nonbinary rewards.

This provides a unified perspective that places the mainstream training algorithms for LLMs within a common distribution-matching framework. Analyzing how the target distribution changes and affects the learning dynamics under different conditions can yield a variety of interesting theoretical results that characterize the properties of these algorithms.

Depending on whether the target distribution being optimized depends on the current model distribution, these algorithms can be further categorized into iterative and non-iterative methods. In what follows, we progressively examine the properties of three classes of algorithms, from simpler to more complex cases: non-iterative methods, iterative methods with zero-mean gradients, and iterative methods with nonzero-mean gradients.

For the first class, we mainly study OPD and SFT-based knowledge distillation (Hinton et al., 2015) algorithms. By analyzing the variance induced by different target distributions under different assumptions, we roughly classified the boundary of effectiveness of these algorithms, providing a theoretical explanation for previous empirical observations regarding the stability of distillation algorithms (Li et al., 2026; Oh et al., 2026).

The second class primarily consists of the iterative self-distillation algorithms. These methods lie between distillation and RL, while retaining theoretical properties that are more amenable to analysis. Within this class, we identify an intriguing variance accumulation phenomenon in iterative training, which leads to a monotonic decrease in the expected entropy of the target distribution. In contrast to previous local results derived from training dynamics (Cui et al., 2025; Ren & Sutherland, 2025; Jin et al., 2026), our analysis further shows that, although the model entropy may either increase or decrease after an individual update, its long-term behavior exhibits a systematic downward trend under the variance accumulation.

The third class mainly concerns of RL algorithms. In realistic training settings, however, the target distribution invariance of RL and MaxRL under idealized conditions is no longer preserved. Their target distributions instead exhibit collapse, driven in part by effects such as variance accumulation. Such target distribution drift serves as an important manifestation of the discrepancy between practical training dynamics and their idealized counterparts. Inspired by the analysis on the target distribution, we explored Conditional KL (CKL) regularization in RL. CKL regularization directly controls the drift of the target distribution in RL, preserving the diversity of correct samples with relaxed restriction on reward gains.

References (63)