Discrete Adjoint Matching
Oswin So, Brian Karrer, Chuchu Fan, Ricky T. Q. Chen, Guan-Horng Liu
TL;DR
This work extends entropy-regularized reward optimization to discrete generative models by introducing Discrete Adjoint Matching (DAM), a discrete analogue of Adjoint Matching for Continuous-Time Markov Chains. DAM derives a discrete adjoint estimator via a Dynkin-formulation-inspired approach, yielding a fixed-point characterization of the optimal rate $u^*_t(y,x)$ and a practical matching objective that aligns parameterized rates with the optimum. It further provides tractable implementations, including an analytic discrete adjoint, generalized KL matching, and sampling schemes, plus adaptations to masked diffusion models to handle massive discrete spaces. Empirically, DAM improves convergence to the optimal discrete distribution and enhances performance on synthetic CTMC tasks and mathematical reasoning benchmarks (GSM8K, MATH500, Countdown, Sudoku) compared to baselines like D1, signaling its potential for discrete diffusion-style fine-tuning.
Abstract
Computation methods for solving entropy-regularized reward optimization -- a class of problems widely used for fine-tuning generative models -- have advanced rapidly. Among those, Adjoint Matching (AM, Domingo-Enrich et al., 2025) has proven highly effective in continuous state spaces with differentiable rewards. Transferring these practical successes to discrete generative modeling, however, remains particularly challenging and largely unexplored, mainly due to the drastic shift in generative model classes to discrete state spaces, which are nowhere differentiable. In this work, we propose Discrete Adjoint Matching (DAM) -- a discrete variant of AM for fine-tuning discrete generative models characterized by Continuous-Time Markov Chains, such as diffusion-based large language models. The core of DAM is the introduction of discrete adjoint-an estimator of the optimal solution to the original problem but formulated on discrete domains-from which standard matching frameworks can be applied. This is derived via a purely statistical standpoint, in contrast to the control-theoretic viewpoint in AM, thereby opening up new algorithmic opportunities for general adjoint-based estimators. We showcase DAM's effectiveness on synthetic and mathematical reasoning tasks.
