Manuscript Offprint
arXiv:2610.20035Weighted Adjoint Matching: Finetuning Flow Matching Models with Time-Dependent Control Cost
Abstract
We introduce Weighted Adjoint Matching, a method to finetune a pretrained diffusion or flow matching model given a differentiable reward. We derive it from Adjoint Matching, which reformulates finetuning as a stochastic optimal control problem with a quadratic control cost. Building on the observation that these models generate coarse features before fine details, we place a time-dependent weight on the control cost. A high cost early in the generative process preserves balance and diversity in the coarse features, which carry most of the semantics, while a low cost at the end lets the model increase the reward by refining details. We prove that our method is equivalent to maximizing the reward under time-varying Kullback–Leibler regularization on the generative paths. Experiments on Gaussian mixtures and on MNIST show a better tradeoff between reward and mode balance than Adjoint Matching.
1 INTRODUCTION
Diffusion models [7, 10, 11, 14] and flow matching models [20, 17, 21] are now the state-of-the-art methods for learning and sampling a distribution known from a large dataset of empirical samples. They work by approximating a denoising process, modeled as an ordinary or stochastic differential equation whose drift is learned with score matching [5]. In this article, we focus on the task of finetuning a pretrained flow matching model, denoting the distribution on it samples from.
Finetuning a generative model. To finetune the model, we assume that we are given a differentiable reward function . Our goal is to increase when is a sample from the model.
A first naive way to define the finetuning could be the maximization . But this objective makes the distribution diverge or collapse onto a maximum of the reward ; hence it does not capture any structure in the original data distribution . Therefore, it is natural to constrain the finetuned distribution to be close to the original distribution , for example by penalizing the Kullback–Leibler (KL) divergence from : for some ,
This can be shown to be equivalent to sampling from the tilted distribution ,
Adjoint matching. In practice, optimizing (1) directly is intractable, and different methods aim to sample from by using the structure of the generative process. The generative model can be seen as a stochastic process , for some drift and diffusion coefficient such that the data distribution is the end distribution of the process, . Domingo-Enrich et al. [35] propose to reframe the finetuning as a stochastic optimal control (SOC) problem,
(3)
This is motivated by Girsanov's theorem [see, e.g., 8], which links the squared norm of the control and the KL divergence between the base and the controlled processes. They develop a method to learn the optimal control and prove that it retrieves the tilted distribution (2) with .
Tilting creates imbalance. However, we may wonder if sampling from is what

Figure 1: Trajectories of a flow matching model, in black, first sample the coarse features, illustrated here as the class of the digit, and only later its fine details, here differences in brightness. Suppose we want to finetune the model to produce brighter digits. Adjoint matching [35], in red, penalizes the control uniformly in time. Early in the process, when the coarse features are not yet settled, a small push is enough to move a trajectory towards the class that is brighter on average, here the eights. Weighted adjoint matching, in green, makes the control expensive at the beginning of the process, so that the finetuned trajectories follow the base process until the coarse features are settled, then it refines only the details, leading to a more balanced distribution.
we want in the first place. Indeed, this tilting has the unintended effect of moving mass between different regions of the distribution regardless of distance in sample space. We illustrate this on a simple example
with , and . For , we define the reward to encourage samples to be closer to the first axis. Note that both modes have their means on this axis and only differ by their variances. The tilted distribution is also a mixture of two Gaussian distributions
with covariance matrices and weights and , such that . For the finetuned distribution, the first mode has a weight strictly larger than the second, creating an imbalance that was absent from the data distribution, regardless of the distance between the centers of the modes.
Coarse-to-fine generation in diffusion and flow matching models. To address this issue, we rely on the fact that for natural data such as images, diffusion and flow matching models generate coarse features (the outline of an image) before fine ones (details and textures) [34]. This phenomenon can be understood by looking at the frequency domain [23, 29]: for natural images the magnitude of the (discrete) Fourier transform decays with frequency, whereas it is flat for Gaussian white noise, so progressively adding noise erases high frequencies of low magnitude before low frequencies of high magnitude. The fact that features of high magnitude are generated before those of low magnitude can be understood within the literature on mode speciation. This approach to the question asks what it means for a feature to be “generated” at a given point in the process: past a certain time in the generative process, the feature is already determined, in the sense that almost all trajectories through the current state terminate in samples sharing it [22, 26, 38, 39]. In particular, Li and Chen [31] give non-asymptotic results and analyze hierarchical data in which features live at different scales, showing that each feature emerges in a critical window of time, from features at large spatial scales to features at small spatial scales.
Weighted adjoint matching. Our idea is to exploit this phenomenon by modifying the SOC problem and introducing a time-dependent weight on the control quadratic cost
Modulating the control cost lets us finetune the model differently across the different spatial resolutions of the data distribution. Typically, we penalize the early timesteps more heavily, which preserves the coarse features and lets the finetuning increase the reward by modifying the details. The insight behind this choice is that coarse features carry most of the semantic meaning, while the reward can also be increased by tweaking only finer details.
See Appendix A for the derivations.
While this is the general motivation behind our
Contributions. In this paper, we make the following contributions:
• We introduce a new algorithm (Section 4), weighted adjoint matching, to finetune flow matching and diffusion models while preserving diversity, motivated by the link between time and spatial resolutions in these models. We derive it as a simple modification of adjoint matching [35] with no extra computational cost.
• We show that the SOC problem defining the algorithm is equivalent to maximizing the reward under a KL regularization on every sub-path of the generative process (Section 4.1).
• We illustrate the method on Gaussian mixtures and on MNIST, for which the reward/mode collapse tradeoff can be precisely measured (Section 5).
Several methods (see, e.g., [27, 18]) cast the finetuning of a diffusion model as reinforcement learning, viewing the denoising chain as a Markov decision process (see [32] for a literature review). However, both Uehara et al. [33] and Domingo-Enrich et al. [35] discuss the fact that reinforcement learning with KL regularization at each step does not in general sample from (2). Uehara et al. [33] take this into account by tilting the initial distribution, which requires an auxiliary model. Domingo-Enrich et al. [35] prove that the solution of an SOC problem with quadratic control cost recovers (2), provided the base process uses a particular noise schedule. Another work by Potaptchik, Lee, and Albergo [47] progressively tilts the velocity field of the base generative model to match that of the tilted distribution (2). Marion et al. [37] propose a general framework to finetune different sampling algorithms, including unadjusted Langevin sampling and diffusion models, and in particular for the objective (1).
Some reward-finetuning methods treat the timesteps of the generative process non-uniformly as we do, but for reasons of efficiency or of gradient quality rather than to preserve diversity. As recalled above, Xu et al. [24] backpropagate the reward through a single, randomly selected step, chosen among the last steps of the sampling process, where they report the strongest reward signal. Clark et al. [28] likewise restrict the backward pass to the last K steps. He et al. [42] and Lee and Ye [44] also weight timesteps non-uniformly, but inside GRPO-style policy-gradient objectives that use only scalar rewards, and with the goal of stabilizing credit assignment across steps. Note also that Han, Razaviyayn, and Xu [36] regularize each step of the sampling process with its own KL coefficient in their mathematical derivations, but only use a fixed coefficient in their experiments.
Closer to our motivation, Barceló, Alcázar, and Tobar [25] start from the same observation as we do, building on the works on coarse-to-fine sampling in diffusion models recalled above, and argue that treating the timesteps differently, in particular the early ones, may increase the diversity of the finetuned model by preventing mode collapse. Similarly, after noticing that diversity mostly depends on early steps in the generative process, Liu et al. [45] propose a GRPO-based finetuning method that enforces stronger regularization on those steps. Both these methods are nonetheless based on a reinforcement-learning framework that only uses the reward as a scalar signal, and they do not characterize the finetuned distribution. Guo et al. [41] build like us upon adjoint matching. They replace the stochastic sampler by a deterministic one, which they claim to be more efficient, but therefore also lose the characterization of the finetuned distribution. They also truncate the finetuning to the last steps of the trajectory, motivated by efficiency rather than diversity. This differs from our approach: not computing the loss on the early timesteps does not enforce that the finetuned velocity field stays equal to the base one at those times, since a single neural network is shared across timesteps. Our method instead ensures explicitly that the finetuned model stays close to the base model at the times where the weight is large.
Finally, Domingo-Enrich and Han [40] generalize adjoint matching to a large class of stochastic optimal control objectives, with control-dependent drift and diffusion coefficients and convex running costs. Our time-weighted objective (10) can be partially fitted into this framework, which recovers our weighted adjoint matching loss only for a particular choice of the stabilizing weight . We give more details on this connection in Appendix D.4.
method, we have full flexibility to choose the timesteps that we penalize more, e.g., modify the coarse features and preserve the details, or penalize a specific frequency range.
3 GENERATIVE SDES: SAMPLING FEATURES PROGRESSIVELY
The goal of this section is to motivate the introduction of the time-varying weight as a way to adjust the intensity of the control according to the different phases of the process. We first introduce diffusion and flow matching models, and explain what is special about the choice of memoryless noise schedule proposed by Domingo-Enrich et al. [35]. We then link this choice to the mode speciation results [22, 26, 38, 31, 39] that we illustrate for a Gaussian mixture.
Forward and reverse processes of diffusion models. At the heart of diffusion and flow matching models is a Gaussian noise corruption process (see, e.g., [14, 15]). It starts from and adds noise to it:
where are continuous functions. For each time , the joint distribution of is such that , with coefficients , and . This joint distribution is therefore simple to study and to sample from.
A generative model is obtained by reversing this corruption process. Choosing and a noise schedule , and denoting , , the density of , and a Brownian motion, the process defined by
has the same marginals as .
Different choices of are possible but two are particularly remarkable. Choosing makes the backward process an ODE, and leads to deterministic sampling methods such as DDIM [13]. But the one that interests us here is : then [2]. The backward process preserves not only the marginals of the forward but also the path distribution.
Flow matching and the memoryless noise schedule. Following [35], we use a flow matching model with the Gaussian source distribution. To define it, start from and two independent random variables, and for , , with differentiable schedules such that , , non-decreasing, non-increasing. A flow matching model is a process
with the velocity field defined as the minimizer of the quadratic loss [35] transform the sampling process (6) to an SDE by adding a diffusion coefficient
with
Though defined differently, this is just a diffusion model with a particular choice of time parametrization. Indeed, the velocity field is linked to through (see, e.g., [35] Appendix B.4)
Plugging this equality (8) into the flow matching process (7) gives the diffusion backward process (5) with , and , taken such that and ,
In particular, choosing recovers deterministic diffusion models, while the memoryless noise schedule,
considered by Domingo-Enrich et al. [35] is simply , i.e., the choice for which the backward SDE preserves the joint distributions. The memoryless property is just a consequence of the conservation of the joint distributions as with independent from .
Noising and spatial scale of the target distribution. In Figure 2, we illustrate the advantage of the sampling paths (a) given by the memoryless noise schedule, over the original deterministic paths (b) of flow matching models. For each point, the red component of the pixel color is proportional to the probability that a trajectory going through this point ends up in the upper mode, the blue component to the probability for the lower mode, and transparency is
Detailed derivations are given in Appendix B.

(a) Stochastic sampling paths.
(b) Deterministic sampling paths.
Figure 2: Red component proportional to probability that trajectory going through the point ends up in upper mode, blue to probability for lower mode, and transparency proportional to density of marginal distribution.
proportional to the density of the marginal distribution at this point. We see that for the memoryless sampling process (a), before the time window delimited by the two gray dotted lines, the class is undetermined (mostly purple) while after this window, the two classes are distinguishable. On the other hand, for a deterministic sampling process (b), classes are predetermined from the initial sampling at time 0.
More generally, the times of this destroying/generating of features depends on the spatial scale of the feature [23, 22, 34, 29, 26, 38, 39]. In particular, [31] characterize these critical windows where a feature emerges as , where both bounds depend directly on the spatial scale of the feature. Moreover, they generalize this result for a hierarchical model, with features at different spatial scales, leading to successive time windows, starting from large spatial scales to finer ones.
4 WEIGHTED ADJOINT MATCHING
We introduce a time-dependent weight in the quadratic control cost of the SOC problem (3):
s.t.
where is the reward function and the tilting parameter of (1). To keep the exposition light, this section is written for the finetuning task, using a flow matching model with the memoryless noise schedule (9) and . Every result stated here holds for an arbitrary running cost , terminal cost , and base SDE on (hence including the finetuning of diffusion models), and is stated and proven in that generality in Appendix C and Appendix D. We assume that is a function of bounded variation such that
In particular, a differentiable satisfies these equalities with , but the assumption also allows discontinuous weights such as piecewise constant functions. We denote the probability distribution on the path defined by a control and the one of the base generative model.
4.1 Path-KL regularized objective
We denote by the KL divergence between the controlled and the base processes on the time interval , conditionally on the initial condition,
The weighted control cost of (10) can be rewritten in terms of these path KL divergences, which turns the weighted SOC problem into an objective regularized by the KL divergence on every sub-path .
Proposition 1. Assume that w satisfies (12). Then the weighted SOC problem (10) is equivalent to
This result is proven in Appendix C, which also contains a dual reformulation, regularized by the KL on the sub-paths , and the link between the two.
Compared to adjoint matching of [35], the KL between the paths on enters the objective with weight , which for a non-increasing w is negative and therefore adds regularization.
Example. To penalize more heavily the part of the process before mode speciation, we can take a piecewise constant function , with ,
for which divergence from the base distribution on is penalized a second time by :
4.2 Algorithm
In this section, we derive an algorithm to learn the optimal control of the weighted SOC problem (10). We adapt the adjoint matching method [35]. We give here a general overview; the complete proofs of the results are given in Appendix D. We aim to learn the optimal control by using the fact that it satisfies
with the cost function defined as
It is the expectation of the adjoint state, defined by
where denotes the derivative with respect to the value of the process at time , keeping the trajectory of the Brownian motion fixed. It can be computed by solving the backward ODE
(16)
with initial condition .
Adjoint matching relies on two key ideas. First, using the adjoint state in the equation (15) gives
Secondly, for the optimal control , the term in (16) has zero expectation. Having a conditional expectation in (17), we can try to enforce this equality by using a square-norm matching trick similar to Vincent [5]. This leads to the following loss, where is the lean adjoint state, obtained by dropping the zero-expectation terms,
where
Our adaptation of adjoint matching turns out to be straightforward, with the extra time weight that only appears at one place in the loss.
Proper formulation of the “stopgrad”. The stopgrad is convenient both as a notation and for implementing the algorithm in an autodiff framework. However, when taking the derivative in u of (18), the mathematical object that we consider is in fact the function of two variables
that we differentiate with respect to then take :
. While commonly used and accepted in the literature, doing gradient descent on an objective with a stopgrad gives no guarantee of decreasing the objective or of converging to a fixed point. We can, however, characterize the critical points of the objective, where the derivative is zero.
Proposition 2. The only critical point is , the optimal control of the weighted SOC problem (10).
The derivations above are detailed, and this result is proven, in Appendix D. Note also that the critical point is characterized through the derivative with respect to the control itself, i.e., the functional derivative defined in Appendix D. In practice, is parametrized by a neural network, with , and so is the loss, . The chain rule gives , with the Jacobian of and its adjoint. Hence the condition is weaker than : is not injective, since a finite-dimensional parameter cannot move the control in every direction.
Parametrization of the control. The pretrained flow matching model is a deep neural network with parameters . We choose to parametrize the control as
with and we initialize with , i.e., . The loss is therefore
For the classical choice of schedules and , , so the factors and blow up as and . Consequently, we observed numerical instability when using (20). It turns out that this can be solved by adding a time-dependent weight .
Adding an additional time-dependent weight for numerical stability. In the time integral of the loss (18), we can insert a positive time-dependent weight without changing the critical point, leading to the loss:
(21)
For the parametrization of the control above, taking cancels the exploding factors and of (20):
The algorithm is then obtained by discretizing the generative SDE (11) and the adjoint ODE (19) and estimating the expectation over a batch of trajectories. It is summarized in Algorithm 1 in Appendix D.5.
5 EXPERIMENTS
We ran several experiments to demonstrate how weighted adjoint matching achieves a better tradeoff between reward maximization and balance.
The optimal control of the weighted SOC problem (10) is invariant under the rescaling for , so the value of is only meaningful relative to . Adjoint matching corresponds to choosing constant, while weighted adjoint matching uses a varying . We fix the normalization for all our weights. Since different weights still regularize differently at the same , we plot the quantities of interest against the achieved average reward rather than against .
5.1 Gaussian mixture

(a) Exponential weight .

(b) Piecewise constant weight .
Figure 3: Average reward with respect to weight of positive mode for adjoint matching and weighted adjoint matching, using different functions .
We use the Gaussian mixture defined in Section 1
We train a flow matching model to sample from , then use both adjoint matching [35] and our weighted adjoint matching to finetune the model with the reward , which encourages samples to be closer to the first axis. We take , and and different values of . For weighted adjoint matching, we use different types of weighting function : an exponential function , , and a piecewise constant function , . Both regularize more the beginning of the process to try to preserve balance between the two modes; takes the value on to force the finetuned model to be almost identical to the base model on this interval.
In Figure 3, we plot empirical estimates of and for different runs of the algorithms at different values of , as well as the theoretical curve for the tilted distribution (2) derived in Appendix A as a red dotted line. For the tilted distri-
Experiment details and additional experiments can be found in Appendix E.
For the theoretical curve, we use the mode weights

Figure 4: Average brightness reward on the MNIST dataset with respect to class count ratio .
bution , a higher reward comes with a more unbalanced distribution. We observe that adjoint matching follows the theoretical curve , meaning that higher reward is achieved at the price of an unbalanced distribution. For high values of the reward, corresponding to high values of a, the distribution is even more unbalanced than the theory predicts, which could be a consequence of optimization artifacts.
On the other hand, weighted adjoint matching with both and gives a better tradeoff between reward and balance, with outputs in the upper right corner. With , the reward is increased without changing the balance between the modes for , while for , it remains close to adjoint matching. This is explained by the fact that at time 0.25, the two modes are not yet separated, and mass can still move between them.
5.2 MNIST
We train a flow matching model on MNIST [4]. We do not condition on the labels, as we use them as a proxy to evaluate how diversity is preserved. The reward is the average luminosity: for a digit represented as with , . We generate 50 000 samples for each finetuned model and classify them with a pretrained classifier. Denoting the number of elements in the largest class and in the smallest class, we evaluate diversity by computing the ratio . For the pretrained models, this ratio is close to that of the MNIST dataset, which is roughly 0.80. Results are plotted in Figure 4. Distributions of all digits, for the different methods at an achieved reward of 0.16 and 0.18, are given in Tables 1 & 2 in the Appendix. Overall, weighted adjoint matching achieves a better tradeoff (closer to the upper right corner) between reward and class balance. For example, for a reward of 0.176, adjoint matching generates 18.0% of zeros and only 3.4% of ones, while weighted adjoint matching ( ) reaches a reward of 0.180 with 10.5% of zeros and 9.1% of ones.
6 DISCUSSION
Wasserstein regularization. Another route would be to drop the KL regularization of (1) altogether and to regularize with the Wasserstein distance instead. This penalizes how far each sample moves from its initial position, and therefore limits the transfer of mass between distant modes. This problem has an explicit solution: first sample , then apply the proximal operator (see, e.g., [9, 19, 12, 46]). Every sample takes one proximal step on the reward, which roughly preserves the mode weights, but may drive samples out of the data manifold. For example, on MNIST with the brightness reward, the gradient of is the constant white image: the background turns gray instead of the digits getting brighter.
What is a good reward? Some rewards, such as the average luminosity on MNIST of Section 5.2, are very easy to define and to interpret, but have two caveats: they can be increased by going in a direction orthogonal to the data manifold (e.g., making the black background of MNIST digits turn gray) and are not meaningful for comparing samples far apart (dark eights are brighter than bright ones). We believe that this cannot be easily solved by changing the reward. Rewards are contextual, and the values have little meaning by themselves: one needs to add the knowledge of the base distribution. KL regularization addresses the first caveat, since it forces reward maximization to take place on the data manifold, but not the second: it has no notion of distance within the support, so mass can move between distant modes. Our method, using the link between spatial resolution and time in diffusion models, addresses the second caveat.
Future work. We have focused on the case of unconditional generative modeling and simple datasets for which balance could be evaluated precisely. Future work could be dedicated to scaling this work to conditional flow matching models on large image datasets beyond MNIST and to other types of data used in practical applications.
Acknowledgments
estimated for the pretrained base model instead of .
This is consistent with the claim of [35] that it samples from the tilted distribution (2).
The authors thank Marylou Gabrié, Benjamin Dupuis, Tyler Farghly, and Adam Perbost for insightful discus-
Class size in training set from 5421 (5's) to 6742 (1's).
sions related to this work. The authors are grateful to the CLEPS infrastructure from the Inria of Paris for providing resources and support This work has received support from the French government, managed by the National Research Agency, under the France 2030 program with the reference “PR[AI]RIE-PSAI” (ANR-23-IACL-0008).
AI use statement
In this work, we used generative AI tools to check equations and proofs of the results, and suggest corrections when appropriate. AI was also used to write and review the code of our experiments. The core implementation of Algorithm 1 was written by the authors, then reviewed and improved with AI assistance. AI tools played a larger role in the rest of the code: implementing neural nets, suggesting optimization hyperparameters, writing scripts to launch training runs and to save and retrieve checkpoints and results, generating figures from experimental data, and consolidating the codebase. Additionally, we used generative AI tools to proofread and improve the writing of the manuscript (including correcting grammar mistakes, suggesting rephrasing to improve clarity and fluency, brainstorming a title and keywords, drafting some paragraphs from bullet points, moving parts of the text to the appendix), to identify relevant literature, and to source or search for information (e.g., to answer background mathematical questions). Figure 1, which is purely illustrative, was created using Claude Design from a hand drawing by the authors. We also used AI to brainstorm and explore some research directions that do not appear in the paper. We have reviewed all AI-assisted work. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
[1] Wendell Fleming and Raymond Rishel. Deterministic and Stochastic Optimal Control. Springer New York, 1975.
[2] U. G. Haussmann and E. Pardoux. "Time Reversal of Diffusions". In: The Annals of Probability 14.4 (Oct. 1986).
[3] Hannes Risken. The Fokker-Planck Equation: Methods of Solution and Applications. Second. 18. Springer, 1996.
[4] Yann LeCun. "The MNIST Database of Handwritten Digits". In: http://yann.lecun.com/exdb/mnist/ (1998).
[5] Pascal Vincent. “A Connection between Score Matching and Denoising Autoencoders”. In:
Neural Computation 23.7 (July 2011), pp. 1661–1674.
[6] Vladimir Bogachev, Nicolai Krylov, Michael Röckner, and Stanislav Shaposhnikov. Fokker-Planck-Kolmogorov Equations. Vol. 207. Mathematical Surveys and Monographs. American Mathematical Society, Dec. 2015.
[7] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. "Deep Unsupervised Learning Using Nonequilibrium Thermodynamics". In: International Conference on Machine Learning. June 2015.
[8] Jean-François Le Gall. Brownian Motion, Martingales, and Stochastic Calculus. Vol. 274. Graduate Texts in Mathematics. Springer International Publishing, 2016.
[9] Jose Blanchet and Karthyek R. A. Murthy. "Quantifying Distributional Model Risk via Optimal Transport". In: Mathematics of Operations Research 44.2 (2019).
[10] Yang Song and Stefano Ermon. “Generative Modeling by Estimating Gradients of the Data Distribution”. In: Advances in Neural Information Processing Systems. 2019.
[11] Jonathan Ho, Ajay Jain, and Pieter Abbeel. “Denoising Diffusion Probabilistic Models”. In: Advances in Neural Information Processing Systems. 2020.
[12] Aman Sinha, Hongseok Namkoong, Riccardo Volpi, and John Duchi. Certifying Some Distributional Robustness with Principled Adversarial Training. arXiv:1710.10571. May 2020.
[13] Jiaming Song, Chenlin Meng, and Stefano Ermon. “Denoising Diffusion Implicit Models”. In: International Conference on Learning Representations. 2021.
[14] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. "Score-Based Generative Modeling through Stochastic Differential Equations". In: International Conference on Learning Representations. 2021.
[15] Tero Karras, Timo Aila, Miika Aittala, and Samuli Laine. “Elucidating the Design Space of Diffusion-Based Generative Models”. In: Advances in Neural Information Processing Systems. 2022.
[16] Patrick Kidger. “On Neural Differential Equations”. PhD thesis. University of Oxford, 2022.
[17] Michael S Albergo and Eric Vanden-Eijnden. "Building Normalizing Flows With Stochastic Interpolants". In: International Conference on Learning Representations. 2023.
[18] Ying Fan, Olivia Watkins, Yuqing Du, Hao Liu, Moonkyung Ryu, Craig Boutilier, Pieter Abbeel, Mohammad Ghavamzadeh, Kangwook Lee, and Kimin Lee. "DPOK: Reinforcement Learning for Fine-Tuning Text-to-Image Diffusion Models". In: Advances in Neural Information Processing Systems. 2023.
[19] Rui Gao and Anton J. Kleywegt. “Distributionally Robust Stochastic Optimization with Wasserstein Distance”. In: Mathematics of Operations Research 48.2 (2023).
[20] Yaron Lipman, Ricky T Q Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. "Flow Matching for Generative Modeling". In: International Conference on Learning Representations. 2023.
[21] Xingchao Liu, Chengyue Gong, and Qiang Liu. "Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow". In: International Conference on Learning Representations. 2023.
[22] Gabriel Raya and Luca Ambrogioni. “Spontaneous Symmetry Breaking in Generative Diffusion Models”. In: Advances in Neural Information Processing Systems. 2023.
[23] Severi Rissanen, Markus Heinonen, and Arno Solin. “Generative Modelling With Inverse Heat Dissipation”. In: International Conference on Learning Representations. 2023.
[24] Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. "ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generation". In: Thirty-Seventh Conference on Neural Information Processing Systems. Nov. 2023.
[25] Roberto Barceló, Cristóbal Alcázar, and Felipe Tobar. Avoiding Mode Collapse in Diffusion Models Fine-Tuned with Reinforcement Learning. arXiv:2410.08315. Oct. 2024.
[26] Giulio Biroli, Tony Bonnaire, Valentin De Bortoli, and Marc Mézard. “Dynamical Regimes of Diffusion Models”. In: Nature Communications 15.1 (2024), p. 9957.
[27] Kevin Black, Michael Janner, Yilun Du, Ilya Kostrikov, and Sergey Levine. “Training Diffusion Models with Reinforcement Learning”. In: International Conference on Learning Representations. 2024.
[28] Kevin Clark, Paul Vicol, Kevin Swersky, and David J. Fleet. “Directly Fine-Tuning Diffusion Models on Differentiable Rewards”. In: International Conference on Learning Representations. 2024.
[29] Sander Dieleman. Diffusion Is Spectral Autoregression. https://sander.ai/2024/09/02/spectral-autoregression.html. Sept. 2024.
[30] Carles Domingo-Enrich, Jiequn Han, Brandon Amos, Joan Bruna, and Ricky T Q Chen. "Stochastic Optimal Control Matching". In: Advances in Neural Information Processing Systems. 2024.
[31] Marvin Li and Sitan Chen. “Critical Windows: Non-Asymptotic Theory for Feature Emergence in Diffusion Models”. In: International Conference on Machine Learning. 2024.
[32] Masatoshi Uehara, Yulai Zhao, Tommaso Biancalani, and Sergey Levine. Understanding Reinforcement Learning-Based Fine-Tuning of Diffusion Models: A Tutorial and Review. arXiv:2407.13734. July 2024.
[33] Masatoshi Uehara, Yulai Zhao, Kevin Black, Ehsan Hajiramezanali, Gabriele Scalia, Nathaniel Lee Diamant, Alex M. Tseng, Tommaso Biancalani, and Sergey Levine. Fine-Tuning of Continuous-Time Diffusion Models as Entropy-Regularized Control. arXiv:2402.15194. Feb. 2024.
[34] Binxu Wang and John J. Vastola. Diffusion Models Generate Images Like Painters: An Analytical Theory of Outline First, Details Later. arXiv:2303.02490. Mar. 2024.
[35] Carles Domingo-Enrich, Michal Drozdzal, Brian Karrer, and Ricky T. Q. Chen. “Adjoint Matching: Fine-Tuning Flow and Diffusion Generative Models with Memoryless Stochastic Optimal Control”. In: International Conference on Learning Representations. 2025.
[36] Yinbin Han, Meisam Razaviyayn, and Renyuan Xu. “Stochastic Control for Fine-Tuning Diffusion Models: Optimality, Regularity, and Convergence”. In: International Conference on Machine Learning. 2025.
[37] Pierre Marion, Anna Korba, Peter Bartlett, Mathieu Blondel, Valentin De Bortoli, Arnaud Doucet, Felipe Llinares-López, Courtney Paquette, and Quentin Berthet. “Implicit Diffusion: Efficient Optimization through Stochastic Sampling”. In: International Conference on Artificial Intelligence and Statistics. 2025.
[38] Antonio Sclocchi, Alessandro Favero, and Matthieu Wyart. “A Phase Transition in Diffusion Models Reveals the Hierarchical Nature of Data”. In: Proceedings of the National Academy of Sciences 122.1 (2025).
[39] Beatrice Achilli, Marco Benedetti, Giulio Biroli, and Marc Mézard. “Theory of Speciation Transitions in Diffusion Models with General Class Structure”. In: Journal of Statistical Mechanics: Theory and Experiment 2026.4 (2026).
[40] Carles Domingo-Enrich and Jiequn Han. “Adjoint Matching through the Lens of the Stochastic Maximum Principle in Optimal Control”. In: Transactions on Machine Learning Research (2026).
[41] Zhengyi Guo, Jiayuan Sheng, David D. Yao, and Wenpin Tang. Improved Techniques for Fine-Tuning Flow Models via Adjoint Matching: A Deterministic Control Pipeline. arXiv:2605.06583. May 2026.
[42] Xiaoxuan He, Siming Fu, Yuke Zhao, Wanli Li, Jian Yang, Dacheng Yin, Fengyun Rao, and Bo Zhang. “TempFlow-GRPO: When Timing Matters for GRPO in Flow Models”. In: International Conference on Learning Representations. 2026.
[43] Rishi Leburu, Levon Nurbekyan, and Lars Ruthotto. Differentiating through Stochastic Differential Equations: A Primer. arXiv:2601.08594. Jan. 2026.
[44] Jeongjae Lee and Jong Chul Ye. “PCPO: Proportionate Credit Policy Optimization for Preference Alignment of Image Generation Models”. In: International Conference on Learning Representations. 2026.
[45] Henglin Liu, Huijuan Huang, Jing Wang, Chang Liu, Xiu Li, and Xiangyang Ji. “DiverseGRPO: Mitigating Mode Collapse in Image Generation via Diversity-Aware GRPO”. In: Conference on Computer Vision and Pattern Recognition (CVPR). 2026.
[46] Ankur Moitra, Andrej Risteski, and Dhruv Rohatgi. The Tractability Landscape of Diffusion Alignment: Regularization, Rewards, and Computational Primitives. arXiv:2605.11361. May 2026.
[47] Peter Potaptchik, Cheuk-Kit Lee, and Michael S. Albergo. “Tilt Matching for Scalable Sampling and Fine-Tuning”. In: International Conference on Machine Learning. 2026.
Weighted Adjoint Matching: Finetuning Flow Matching Models with Time-Dependent Control Cost Supplementary Materials
A GAUSSIAN MIXTURE WITH KL-REGULARIZED OBJECTIVE
We compute the tilted distribution of a two-component Gaussian mixture in and show that it does not preserve the weights of the modes. We define as a mixture of two modes
with , , , and such that . For , we define the reward to encourage samples to be closer to the first axis. The tilted distribution is
with . It can be rewritten as:
with and for
We recognize a mixture of two Gaussian distributions with the weight of the first mode and the weight of the second mode equal to
from which we deduce that
In particular, the ratio depends on , and as , the tilted distribution converges to a mixture of two degenerate Gaussian distributions (a projection on the first axis defined by the equation ) with a weight ratio
We also define and , which will be close to and if the modes are well separated, but easier to estimate empirically:
where is the cumulative distribution function (CDF) of the standard normal distribution. Finally, we compute the optimal reward achieved by :
B DIFFUSION AND FLOW MATCHING MODELS: FORWARD NOISING AND REVERSE PROCESSES
In this section, we give more details on the derivation of Section 3.
Forward process of diffusion models. The Gaussian noise corruption process [see, e.g., 14, 15] is defined by
where are continuous functions. To derive the closed-form solution of (4), denote , with . Itô's formula [see, e.g., 8] gives
hence
leading to the closed-form solution,
In particular, for each time , the joint distribution satisfies
with independent from and .
Backward process. The idea behind diffusion models is to fix a large , such that is close to a standard normal distribution, and then to find a process that has the same marginal laws as to map a Gaussian to the target distribution. The marginal laws of are characterized by the Fokker–Planck equation [see, e.g., 3, 6] that governs the evolution of the density of
Reversing time with , , , , gives
but here the term in front of the Laplacian is negative, so this cannot be read as the Fokker–Planck equation of an SDE. The trick is to introduce , and use to get
With a positive term in front of , this is the Fokker–Planck equation of the process defined by
with a Brownian motion. Hence this process satisfies .
Note that the Fokker–Planck equation can only ensure the equality of the marginal laws. However, a result by Haussmann and Pardoux [2] proves that taking also preserves the path distribution .
Flow matching and the memoryless noise schedule. Domingo-Enrich et al. [35] generalized flow matching (6) by adding a diffusion coefficient as
They give the closed form of the velocity field (in their Appendix B.4)
hence
Using this expression, we see that (7) is just the backward SDE (5) for a specific choice of and . Indeed, taking
gives
and
The forward process has therefore marginals , independent from , going from data , , to pure noise at time , with , . The backward process (5), plugging the values , , and , is then simply (7).
The flow matching SDE of Domingo-Enrich et al. [35] is therefore just a diffusion model with a particular choice of time schedule. Moreover, the choice of memoryless noise schedule is
which is exactly the choice of that also conserves the path distribution according to Haussmann and Pardoux [2].
C PATH-KL REGULARIZED OBJECTIVE
This appendix and Appendix D are written for the weighted SOC problem on a time horizon , with an arbitrary running cost and terminal cost ,
of which the finetuning problem (10) of the main text is the particular case , and . This section is dedicated to the proof of Proposition 1, in the general form of Proposition 4, and to a dual reformulation of (22) in which the regularization applies to the sub-paths instead of the sub-paths . Both reformulations rely on the following consequence of Girsanov's theorem, which expresses the quadratic control cost on a time interval as the KL divergence between the controlled and the base processes on that interval.
Proposition 3. For every and every ,
Proof. For and , this is Theorem 2 and Appendix C.4 of Domingo-Enrich et al. [35]. The general case follows from the same argument applied to the process started at .
In particular, defined in (13) satisfies
C.1 KL -path regularization
Proposition 4. Assume that w satisfies (12). Then the weighted SOC problem (22) is equivalent to
Proposition 1 is the particular case , , .
Proof. Using that the weight function satisfies (12), (24), and exchanging integrals,
Plugging this equality into (22) gives (25).
C.2 KL -path regularization
Considering the process between time and , Proposition 3 gives
Proposition 5. Under the assumptions of Proposition 4, the weighted SOC problem (22) is also equivalent to
Proof. With (12) and (26), as is Markovian, we get
Plugging this equality into (22) gives (27).
Compared to the non-weighted SOC problem, the KL divergence between the paths on enters the objective with weight , which for a non-decreasing is negative and therefore adds regularization.
Example. Taking a piecewise constant function
we get the equivalent objective
Divergence from the base distribution on is penalized twice.
C.3 Link between the two reformulations
Proposition 6. For every ,
and the regularization terms of (25) and of (27) coincide,
Proof. The first equality is immediate from the definitions of in (13) and of in (26). For the second one, as is Markovian
hence
☐
D THE WEIGHTED ADJOINT MATCHING ALGORITHM
As in Appendix C, this section is written for the weighted SOC problem with an arbitrary running cost f and terminal cost g,
The finetuning problem (10) of the main text is the particular case , and . Note also that this SOC problem and the algorithm that we propose can be defined outside the framework of flow matching. In (22), can be any drift and invertible, provided the process is well defined for . When coming back to our original problem, we will use real-valued and .
This section is dedicated to the derivation of the weighted adjoint matching algorithm and to the proof of Proposition 2. We roughly follow and adapt the original derivations by Domingo-Enrich et al. [35], though we differ when necessary or when we believe it makes the exposition clearer. We try to be as self-contained as possible. See also Domingo-Enrich et al. [30] for an earlier work that lays the groundwork for the adjoint matching method. A more recent work [40] proposes a more general Hamiltonian framework for adjoint matching that can partly retrieve our derivation of the weighted adjoint matching. It does not, however, include the extra time weight that balances the loss between the different timesteps and gives a more stable algorithm.
D.1 Characterization of the optimal control
Infinitesimal generator. The infinitesimal generator associated with
is defined by
for any function such that the limit exists. Assuming that , a second-order Taylor expansion gives
with , leading to
which we can rewrite as
Similarly, for some control , the infinitesimal generator associated with
is
Cost and value function. The SOC problem that we consider is (22). The cost function is defined, for some control and , as
and the value function,
Verification theorem and Hamilton–Jacobi–Bellman equation. The verification theorem [see, e.g., 1, Chapter VI, Theorem 4.1] states that is characterized by, for all ,
or equivalently
Solving for the optimal , we get the following equation, often referred to as the Hamilton–Jacobi–Bellman (HJB) equation,
We will assume that all functions are regular enough for the verification theorem to apply.
with the optimal u given by
Using the definition of V, we get
In fact, the equation characterizes the optimal control , as stated by the following lemma.
Lemma 7. Assume that the control u satisfies
Then u is the optimal control of (22).
Proof. We prove that if satisfies the relation, then solves the HJB equation. Firstly, we have
Moreover,
hence
Therefore, we have
For , the HJB equation becomes
which is satisfied under the assumption
By definition, satisfies the boundary condition, as
By the verification theorem, , and the optimal control is given by
☐
D.2 The adjoint state
Adjoint. For some control , we define the adjoint state as
where is the solution to . The adjoint state is a random variable that depends on the random trajectory , and denotes the derivative with respect to the value of the process at time , keeping the trajectory of the Brownian motion fixed. For more details on differentiating through solutions of SDEs, see Kidger [16] and Leburu, Nurbekyan, and Ruthotto [43]. We will not discuss technical details in this article and will assume that the processes are regular enough to be differentiated. Taking the conditional expectation of the adjoint state gives the gradient of the cost function . To compute the adjoint, we will use the fact that it solves an ODE, as stated by the following lemma.
Lemma 8. The adjoint solves the ODE
To simplify notation, we denote in the rest of this section
and
Proof. The adjoint state is
where corresponds to the change in when changing the value at time . Using the chain rule, for such that we have
Hence
As is the solution to the SDE ,
hence
leading to
Taking in (29) gives
Finally,
Integrating (28) gives
Denoting and taking the conditional expectation in the equation above, we have
(30)
We prove in the following lemma that equation (30) characterizes .
Lemma 9. Let and be measurable. Assume that there is a measurable such that in operator norm for all , and for every . Suppose that and are two processes of the form , with measurable and , that both satisfy, for all ,
where and are assumed integrable. Then .
Proof. Let and . Subtracting the two equations, the terminal and source terms cancel
Using the triangle inequality and the bound on A, we get
and taking expectations leads to
Fix . As is integrable on , Grönwall's lemma gives on . As is arbitrary, almost surely for every . For , we then have
hence almost surely.
Remark: the assumption on holds for the flow matching drift. In the flow matching setting of the main text, and we have
If and are -Lipschitz in uniformly in , then
for every , and the same bound holds for . For , we have , which is not an issue: the lemma only requires integrability away from the initial time, because the backward Grönwall argument starts at the terminal time . For a general control Lipschitz in , adds the term , which is bounded on .
D.3 Proof of Proposition 2
We start by restating Proposition 2 more precisely:
Proposition 10. For the loss defined by
(31)
the only critical point is , the optimal control of the weighted SOC problem (22).
The rest of this section is dedicated to the proof of Proposition 10.
Functional gradient. For a measure on , a functional and , we define the functional gradient as the function such that for all
First step, critical point condition. For a fixed control, and the measure we have
It follows that, for ,
hence is a critical point of if and only if
Second step, lean adjoint equation. By construction satisfies for
Denoting , we get that
Third step, critical point implies optimal control. Multiplying (32) by , we get
Plugging this equality into (33) gives
By Lemma 9, applied with and , , i.e.,
and Lemma 7 gives : a critical point is necessarily the optimal control.
Fourth step, optimal control is a critical point. Conversely, we check that satisfies (32), i.e., that it is a critical point. Take . By (15), Y_t=\mathbb{E}[a(t,\mathbf{X}^u^*, u^*)|X_t^u^*]=\nabla_x J(u^*, X_t^u^*, t) satisfies u^*(X_t^u^*, t)=-\frac{\gamma(t)^\top}{w(t)}Y_t, hence for all ,
Plugging this identity into the equation (30) satisfied by , we get
which is also the equation (33) satisfied by . Lemma 9, applied with and , gives , hence
which is (32) for .
Adding an additional time-dependent weight. Adding an additional time-dependent weight , as in (21)
does not change the critical points, as it only changes the base distribution to compute the functional gradient.
D.4 Link with Domingo-Enrich and Han [40]
Recently, Domingo-Enrich and Han [40] proposed a more general Hamiltonian framework for adjoint matching. They derived the corresponding adjoint matching loss for a general problem of the form
Taking
they recover exactly (Theorem 2 and Remark 3) the adjoint matching from Domingo-Enrich et al. [35]. We can also apply their result (Theorem 2) to our weighted SOC problem (22), with
leading to an adjoint matching formulation
where
This is (21) with . The framework of Domingo-Enrich and Han [40] therefore recovers our loss for one choice of , but lacks the extra degree of freedom that provides.
Algorithm 1 Weighted Adjoint Matching to finetune a flow matching model
Input: Flow matching model , reward function , control weight , loss weight , number of discretization steps , number of trajectories per finetuning iteration , number of finetuning iterations . Initialize parameters of the finetuned model , i.e., . Define and for , .
for do
Sample trajectories for
Solve the adjoint ODE backwards in time
Take and .
Compute the Weighted Adjoint Matching objective:
Compute the gradient and update the parameters using gradient descent. end for
Output: Finetuned model
D.5 Description of the algorithm
To run the algorithm, we first discretize the generative SDE (11), giving (34), then the adjoint ODE (19), leading to (35). We get a stochastic estimate of the loss by averaging over trajectories and timesteps. We then take a stochastic gradient descent step on . The full procedure is summarized in Algorithm 1. In our implementation, we also subsample timesteps at random in (36) to reduce its computational cost. For the classical choice , , two terms of (34), and , are singular at . For the first step only, we evaluate these terms at instead of .
E EXPERIMENT DETAILS AND ADDITIONAL EXPERIMENTS
E.1 Experiment details
Compute infrastructure. The experiments were run on an academic Slurm cluster. Each job was launched on a single NVIDIA GPU (RTX 2080Ti/6000/8000, V100, A100, H100 or H200), with 4–8 CPU cores and up to 12 GB of RAM. The experiments, including preliminary experiments, experiments not reported in the paper and jobs that were preempted or lost, ran for about 480 GPU-hours. The source code will be released at the time of publication.
Gaussian mixtures. For the first Gaussian mixture experiment of Section 5.1, the base model is an MLP with 4546 parameters, trained using Adam (constant learning rate ) and a batch size of 100 for 100 epochs, each epoch using fresh samples of the target. We use the exponential moving average (with decay 0.999) of its weights. Finetuning is done over 80 epochs of 10 batches of 1000 trajectories, sampled using 40 discretization steps. The optimizer is Adam (learning rate ), and we use an exponential moving average of the weights with decay 0.99. We sweep for adjoint matching and for the piecewise constant

Figure 5: Plot of with respect to for adjoint matching and weighted adjoint matching with a linear weighting function.
, linear and exponential weighting functions. For each method (adjoint, piecewise, exponential or linear with fixed value of , or ), we start from the smallest value of , then warm start the model's weights using weights from the previous value of , and run the optimization over only 40 epochs. The final checkpoints are evaluated on samples.
For the additional experiment of Appendix E.2.2, the experiment parameters are similar except for and we did not use the linear weighting function. For the additional experiment of Appendix E.2.3, the experiment parameters are similar except for and , no warm start, and we did not use the linear and exponential weighting functions.
MNIST. For the MNIST experiments of Section 5.2 and Appendix E.4, the base model is a UNet with 9.0 million parameters, trained on the MNIST training images rescaled to , with batch size 64, using Adam (learning rate , halved by PyTorch's ReduceLROnPlateau on the validation loss, patience 5) for 50 epochs. We use the exponential moving average (with decay 0.9999) of its weights. Each finetuning run starts from the base model and lasts 25 epochs of 50 batches of 64 trajectories, sampled with 40 discretization steps. We use Adam (learning rate , halved by ReduceLROnPlateau on the mean gradient norm of each epoch, patience 5) and an exponential moving average of the weights with decay 0.995. We sweep for adjoint matching and, for the piecewise constant weighting function, at , at , at , at and at . The final checkpoints are evaluated on samples and classified by the Hugging Face classifier farleyknight/mnist-digit-classification-2022-09-04 (a finetuned ViT-B/16, Apache license 2.0).
E.2 Gaussian mixtures
E.2.1 Using a linear weighting function
For the experiment of Section 5.1, we also tried using a linear function , with and different values for . In Figure 5, we observe that the linear weighting function achieves a better balance/reward tradeoff than classical adjoint matching, but is less effective than the exponential or piecewise constant weighting function.
E.2.2 Gaussian mixture: a shifted mode
In Figure 6, we reproduce the experiment of Section 5.1 with a different base distribution (two modes with the same variance but the second one is shifted off the first axis)
with , , and . The conclusions are unchanged.

(a) Adjoint matching and weighted adjoint matching with an exponential weighting function.

(b) Adjoint matching and weighted adjoint matching with a piecewise constant weighting function.
Figure 6: Average reward with respect to weight of positive mode for adjoint matching and weighted adjoint matching, using different functions .
E.2.3 Gaussian mixture: four modes
We ran an additional experiment with a mixture of 4 Gaussians as base distribution
with , , , and . The reward is and grows by moving to the upper right. In Figure 7, we plot samples of the base distribution alongside samples of the output of adjoint matching and weighted adjoint matching with the piecewise constant function for different values of and . While adjoint matching quickly collapses to the top-right mode, we see that this effect is mitigated by weighted adjoint matching depending on the value of . Collapse is still observed with , though it happens later. For , we have a collapse within each pair of vertically adjacent modes, but not a collapse between left and right. This is because the horizontal spacing of the modes is larger than the vertical spacing, hence the left-right splitting happens earlier along the generative trajectory. Here the left-right feature is the coarse feature that is preserved, while the top-bottom feature is the finer feature that is changed during finetuning. Finally, for and , we observed that both left-right and top-bottom features are preserved, and reward maximization happens only within each mode by shifting locally the samples to the upper right.
E.3 MNIST main experiment
In Tables 1 & 2, we have the distributions of all digits (from 50 000 samples classified by the pretrained classifier), for the base model, adjoint matching and weighted adjoint matching with different . For each, we select a specific value of by looking at the one that has an achieved reward closest to 0.16 (Table 1) and 0.18 (Table 2). We observed that for an average achieved reward of 0.176, adjoint matching generates 18.0% of zeros and only 3.4% of ones, while weighted adjoint matching with reaches a reward of 0.180 with 10.5% of zeros and 9.1% of ones. Samples of the base model, adjoint matching and weighted adjoint matching with , grouped by predicted class, are shown in Figures 9 & 10.
E.4 MNIST with darkness reward
We also ran an additional experiment with darkness as the reward, defined, for , as . Results are in Figure 8 and Table 3. Samples of the base model, adjoint matching and weighted adjoint matching with , grouped by predicted class, are shown in Figure 11. The conclusions are unchanged.
Adjoint Matching
Weighted Adjoint Matching (w(t) = 100000 for t < t_s and 1 for t > t_s)


Figure 7: Sample of base distribution (blue) and finetuned models (orange), for adjoint matching and weighted adjoint matching for different values of and .

Figure 8: Average reward with respect to ratio .
Table 1: Predicted class of the generated samples, in percent, for the run of each method whose average luminosity is closest to 0.16.
| Method | Predicted class (%) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |||
| Base | - | 0.140 | 10.2 | 9.9 | 9.9 | 10.8 | 9.4 | 9.1 | 9.8 | 10.0 | 10.1 | 10.9 |
| Adjoint | 5.7 | 0.159 | 14.8 | 5.8 | 12.0 | 12.0 | 7.4 | 8.5 | 10.0 | 8.0 | 12.1 | 9.4 |
| Weighted, | 21 | 0.161 | 10.6 | 6.6 | 11.4 | 11.8 | 8.9 | 8.1 | 10.2 | 9.1 | 13.0 | 10.4 |
| Weighted, | 34 | 0.162 | 10.5 | 7.4 | 10.6 | 10.9 | 9.4 | 8.5 | 9.2 | 9.2 | 12.9 | 11.4 |
| Weighted, | 52 | 0.161 | 10.6 | 8.8 | 10.2 | 11.0 | 9.2 | 7.7 | 9.8 | 9.0 | 12.3 | 11.2 |
| Weighted, | 80 | 0.160 | 10.5 | 9.5 | 10.0 | 10.7 | 9.2 | 8.4 | 9.7 | 9.3 | 11.5 | 11.2 |
| Weighted, | 120 | 0.160 | 10.3 | 9.7 | 9.8 | 10.6 | 9.1 | 8.5 | 9.8 | 9.6 | 11.2 | 11.3 |
Table 2: Predicted class of the generated samples, in percent, for the run of each method whose average luminosity is closest to 0.18.
| Method | Predicted class (%) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |||
| Base | - | 0.140 | 10.2 | 9.9 | 9.9 | 10.8 | 9.4 | 9.1 | 9.8 | 10.0 | 10.1 | 10.9 |
| Adjoint | 10 | 0.176 | 18.0 | 3.4 | 12.5 | 12.3 | 7.0 | 7.9 | 10.7 | 6.5 | 13.1 | 8.6 |
| Weighted, | 37 | 0.181 | 12.0 | 3.4 | 13.7 | 11.3 | 8.2 | 7.8 | 8.0 | 7.7 | 17.4 | 10.6 |
| Weighted, | 57 | 0.180 | 11.9 | 6.1 | 11.2 | 11.6 | 8.1 | 6.4 | 8.9 | 8.4 | 16.0 | 11.2 |
| Weighted, | 92 | 0.180 | 10.6 | 7.8 | 11.0 | 10.7 | 8.5 | 7.6 | 9.7 | 8.6 | 14.2 | 11.4 |
| Weighted, | 143 | 0.180 | 10.7 | 8.4 | 10.4 | 10.5 | 8.6 | 7.6 | 9.8 | 9.1 | 13.3 | 11.6 |
| Weighted, | 227 | 0.180 | 10.5 | 9.1 | 10.2 | 10.3 | 8.9 | 7.9 | 9.7 | 9.3 | 12.4 | 11.5 |
Class: 0
9.0%
Class: 1
9.5%
Class: 2
9.5%
Class: 3
10.0%
Class: 4
9.4%
Class: 5
9.8%
Class: 6
10.0%
Class: 7
10.5%
Class: 8
11.5%
Class: 9
10.8%
(a) Base model, average reward
Class: 0
14.2%
Class: 1
5.1%
Class: 2
11.7%
Class: 3
12.5%
Class: 4
7.4%
Class: 5
9.1%
Class: 6
9.7%
Class: 7
7.9%
Class: 8
12.2%
Class: 9
10.2%
(b) Adjoint matching, ,
Class: 0
9.4%
Class: 1
9.8%
Class: 2
9.2%
Class: 3
10.0%
Class: 4
8.8%
Class: 5
9.0%
Class: 6
9.7%
Class: 7
10.0%
Class: 8
12.7%
Class: 9
11.4%
(c) Weighted adjoint matching, , ,
Figure 9: Generated samples grouped by predicted class, for the run of each method whose average luminosity is closest to 0.16. Percentages are computed on the 1000 displayed samples, and therefore differ from those of Table 1, computed on 50 000 samples.
Class: 0
9.0%
Class: 1
9.5%
Class: 2
9.5%
Class: 3
10.0%
Class: 4
9.4%
Class: 5
9.8%
Class: 6
10.0%
Class: 7
10.5%
Class: 8
11.5%
Class: 9
10.8%
(a) Base model, average reward
Class: 0
16.5%
Class: 1
2.8%
Class: 2
12.7%
Class: 3
11.4%
Class: 4
7.3%
Class: 5
8.4%
Class: 6
11.3%
Class: 7
6.3%
Class: 8
14.3%
Class: 9
9.0%
(b) Adjoint matching, ,
Class: 0
9.7%
Class: 1
9.1%
Class: 2
9.8%
Class: 3
10.3%
Class: 4
9.2%
Class: 5
8.9%
Class: 6
9.2%
Class: 7
9.7%
Class: 8
13.2%
Class: 9
10.9%
(c) Weighted adjoint matching, , ,
Figure 10: Generated samples grouped by predicted class, for the run of each method whose average luminosity is closest to 0.18. Percentages are computed on the 1000 displayed samples, and therefore differ from those of Table 2, computed on 50 000 samples.
Class: 0
11.8%
0
Class: 1
9.5%
1
Class: 2
9.2%
2
Class: 3
11.8%
3
Class: 4
9.6%
4
Class: 5
7.7%
5
Class: 6
8.4%
6
Class: 7
9.0%
7
Class: 8
11.9%
8
Class: 9
11.1%
9
(a) Base model, average reward
Class: 0
6.2%
0
Class: 1
20.6%
1
Class: 2
7.4%
2
Class: 3
10.1%
3
Class: 4
8.7%
4
Class: 5
9.3%
5
Class: 6
7.9%
6
Class: 7
9.4%
7
Class: 8
8.7%
8
Class: 9
11.7%
9
(b) Adjoint matching, ,
Class: 0
8.1%
0
Class: 1
10.0%
1
Class: 2
9.2%
2
Class: 3
10.1%
3
Class: 4
9.0%
4
Class: 5
11.8%
5
Class: 6
9.3%
6
Class: 7
10.6%
7
Class: 8
10.6%
8
Class: 9
11.3%
9
(c) Weighted adjoint matching, , ,
Figure 11: Generated samples grouped by predicted class, for the run of each method whose average darkness is closest to 0.88. Percentages are computed on the 1 000 displayed samples, and therefore differ from those of Table 3, computed on 50 000 samples.
Table 3: Predicted class of the generated samples, in percent, for the run of each method whose average darkness is closest to 0.88.
| Method | Predicted class (%) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |||
| Base | - | 0.857 | 10.4 | 10.1 | 9.4 | 10.8 | 9.5 | 9.0 | 9.9 | 9.8 | 10.3 | 10.7 |
| Adjoint | 8.6 | 0.880 | 5.3 | 19.6 | 7.8 | 9.9 | 9.6 | 9.6 | 8.9 | 10.8 | 7.8 | 10.6 |
| Weighted, | 25 | 0.880 | 8.8 | 14.8 | 8.1 | 10.4 | 12.0 | 9.0 | 7.3 | 10.4 | 7.6 | 11.6 |
| Weighted, | 43 | 0.880 | 9.3 | 12.2 | 8.8 | 11.1 | 10.2 | 10.0 | 9.6 | 10.7 | 8.1 | 10.1 |
| Weighted, | 63 | 0.880 | 9.8 | 11.2 | 9.0 | 10.5 | 10.6 | 10.5 | 9.4 | 10.4 | 8.4 | 10.2 |
| Weighted, | 98 | 0.879 | 10.1 | 10.6 | 9.4 | 11.0 | 8.5 | 9.8 | 10.0 | 10.4 | 9.1 | 11.1 |
| Weighted, | 160 | 0.881 | 10.1 | 10.3 | 9.8 | 11.0 | 9.9 | 9.9 | 9.1 | 10.3 | 9.2 | 10.5 |