Contrastive Distribution Matching for Amortized Sequential Monte Carlo in Discrete Diffusion
Jaihoon Kim, Taehoon Yoon, Prin Phunyaphibarn, Seungjun Kim, Morteza Mardani, Minhyuk Sung
SPIGM @ ICML 2026
TL;DR. Amortized sequential monte carlo sampling for discrete diffusion
Abstract. Discrete diffusion models have emerged as powerful frameworks for generating structured categorical data. However, efficiently sampling from reward-tilted distributions remains a fundamental challenge. While Twisted Sequential Monte Carlo (SMC) offers asymptotic exactness for this task, estimating the optimal twist function in discrete state spaces necessitates costly Monte Carlo approximations, resulting a severe computational bottleneck at inference. To overcome this limitation, we introduce Contrastive Distribution Matching (CDM), a novel framework that amortizes the cost of SMC inference by learning a parameterized twist function via positive and negative samples. For efficient training, we reformulate the gradient estimator to leverage the closed-form forward kernels of discrete diffusion models. In practice, evaluating our learned twist function incurs less than 5% additional computational overhead compared to base model inference. Through extensive empirical evaluations, we demonstrate that CDM consistently outperforms existing baselines under matched wall-clock time. We validate the effectiveness and versatility of our approach across a diverse range of applications, including toxic text generation, regulatory DNA sequence design, protein designability, and diffusion large language model alignment.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studied an amortized SMC for reward-guided sampling in discrete diffusion models. A lighweight twisting function is learned via a contrastive objective. The clean positive samples are reused across timesteps using the closed-form forward kernel. Experiments on DNA, protein design, and dLLM alignment show interesting comparisons with the standard SMC, regression-based twist learning, and other baselines.
Pros: the amortized learning method to tackle the insufficient learning of the twisting functions in TSMC. Reviewers all believe the method is technically sound and sufficiently evaluated on various experiments. The forward-kernel sample reuse is the strongest contribution; the use of held-out rewards plus real-time comparisons strengthens the empirical claims.
Cons: there may be some gap between the ideal target and the actual training procedure. Positive samples are generated with finite particles using twists estimated via Monte Carlo samples. The twist is learned on an approximate target, and some analysis on how the approximation errors propagate would help deepen the understanding. Moreover, the method seems to have expensive upfront sampling and training costs, but it didn't provide sufficient guidance on the trade-offs. Finally, the sampler still works in a high-dimensional state space and lacks key diagnostics such as ESS. Sensitivity to sparse/ noisy rewards and limited coverage is not well studied.
These issues look fixable via clarifications rather than major new experiments. The authors should explain the finite-particle approximation effects, report or estimate training/ reward costs in the amortization stage, and include ESS or similar analysis. Discussions on the sparse/ noisy rewards would also help. If these points are convincingly addressed and exactness claims appropriately qualified, that would be an important consideration as we discuss the paper.
Final justification
The paper provides a nice adaptation of Zhao, etc'24 from AR models to diffusion models. The rebuttal addressed the (meta) reviewers' concerns about the amortization trade-off, ESS analysis, and sensitivity analysis. After considering the rebuttal and reviewer discussion, I recommend spotlight acceptance. I encourage the authors to discuss the limitations, including sparse/noisy/ expensive rewards, particle degeneracy, and amortization cost, in the final version.
Read meta-review
Meta-review
This paper studied an amortized SMC for reward-guided sampling in discrete diffusion models. A lighweight twisting function is learned via a contrastive objective. The clean positive samples are reused across timesteps using the closed-form forward kernel. Experiments on DNA, protein design, and dLLM alignment show interesting comparisons with the standard SMC, regression-based twist learning, and other baselines.
Pros: the amortized learning method to tackle the insufficient learning of the twisting functions in TSMC. Reviewers all believe the method is technically sound and sufficiently evaluated on various experiments. The forward-kernel sample reuse is the strongest contribution; the use of held-out rewards plus real-time comparisons strengthens the empirical claims.
Cons: there may be some gap between the ideal target and the actual training procedure. Positive samples are generated with finite particles using twists estimated via Monte Carlo samples. The twist is learned on an approximate target, and some analysis on how the approximation errors propagate would help deepen the understanding. Moreover, the method seems to have expensive upfront sampling and training costs, but it didn't provide sufficient guidance on the trade-offs. Finally, the sampler still works in a high-dimensional state space and lacks key diagnostics such as ESS. Sensitivity to sparse/ noisy rewards and limited coverage is not well studied.
These issues look fixable via clarifications rather than major new experiments. The authors should explain the finite-particle approximation effects, report or estimate training/ reward costs in the amortization stage, and include ESS or similar analysis. Discussions on the sparse/ noisy rewards would also help. If these points are convincingly addressed and exactness claims appropriately qualified, that would be an important consideration as we discuss the paper.
Final justification
The paper provides a nice adaptation of Zhao, etc'24 from AR models to diffusion models. The rebuttal addressed the (meta) reviewers' concerns about the amortization trade-off, ESS analysis, and sensitivity analysis. After considering the rebuttal and reviewer discussion, I recommend spotlight acceptance. I encourage the authors to discuss the limitations, including sparse/noisy/ expensive rewards, particle degeneracy, and amortization cost, in the final version.
1 comment
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the problem of sampling from a reward tilted distribution for pre-trained discrete diffusion models. Approximate sampling from this target is achieved by using a SMC method. For SMC to be efficient in this high-dimensional context, it is necessary to learn an approximation to the optimal twist. The key contribution of the paper is to develop an novel contrastive learning approach to learn such twist functions. The method is demonstrated on various applications and shown to improve reward-quality tradeoffs and wall-clock efficiency compared to various baselines.
Strengths and weaknesses
Quality: Contrastive learning to learn the twist functions for SMC has already been explored in the context of standard AR LLMs generation (see Zhao et al, ICML 2024). However, the diffusion context explored in this paper is significantly different and requires the development of new methodology. Approximate samples from the target tilted distribution are generated using an expensive SMC method using Monte Carlo approximations of the twist functions, these samples are then noised and use to learn the twists functions by a minimization of a forward KL. So while generating such approximate samples (corresponding to time t=0 for the diffusion model) is expensive, they can at least been amortized to generate many samples at time t.
The experimental results appear solid. The paper considers quite a large variety of tasks ranging from protein design to diffusion language model alignement and the method appears to perform well on such tasks compared to various baselines.
Clarity: The paper is quite well-motivated and easy to read. It explains well the distinction between value regression and their constrative approach.
Significance: The paper addresses an interesting problem, how to learn twist functions for SMC in the context of diffusion models.
Originality: As mentioned earlier, the authors are not the first to use contrastive learning ideas to learn SMC twist functions. However, as their context is different (diffusions rather than AR), then the resulting methodology is significantly different. So the method is, to the best of my knowledge, original.
Weaknesses:
-
The method is significantly different from Zhao et al. (2024) but this should be clarified in the main text for non-specialists as it might bring confusion.
-
Clearly the main weakness of the proposed method is that it requires obtaining a good approximation from the target titled distribution we are interested in in order to learn the tilt function. Without such a good approximation, we cannot expect to learn decent tilt functions and so the method will fail. The authors obtain such samples using twisted SMC where the twist functions are approximated by Monte Carlo rollouts. However, for sparse rewards, i expect that the variance of such Monte Carlo rollouts estimates is huge. The limitations are not very clearly discussed.
-
After having learned the twist functions, inference is performed using twisted SMC. The state in this case is the whole noisy sequence at time t, which is high dimensional, so what is the average ESS you obtain? I would expect it to remain rather low.
-
The training is very expensive because it requires sample approximately from the target distribution of interest. So it is really only beneficial in applications where you need a lot of downstream samples. That is not really stated explicitly anywhere. In some domains, I guess it is unclear whether it is really worth the cost.
Questions
-
The training is very expensive because it requires sampling approximately from the target distribution of interest. So, except if you really need many downstream samples, you could simply do inference-time scaling using the algorithm you used at training time. I think it'd be good somehow to report the complete cost of training as a function of total reward/model call budget to see when amortization becomes beneficial.
-
You need to report the ESS of the final twisted SMC algorithm you have learned. In this high-dimensional context, I conjecture it might be quite low.
-
The current paper does not appear to include a comparison where the value function has been learned using standard regression. You say that typically you are out of distribution (at the end of page 4) but you could alternatively consider the regression objective using sample x_t from the approximate target instead of from the base distribution to bypass this problem. Using the same number of approximate clean (positive) samples as the contrastive method, perhaps this estimate is also good. Such a comparison would be worth adding.
-
Have you investigated using the learned twists in conjunction with Monte Carlo rollouts to improve the positive buffer? Then retrain/refine the twist.
If these questions are not answered, I will be decreasing my score.
Limitations
The limitations of the methodology are not really detailed. The authors should include a comprehensive description of the failure models of this method: poor Monte Carlo approximations of the value functions (e.g. sparse rewards), negative-sampling collapse.
Final justification
The authors have addressed most of my concerns in their rebuttal.
Formatting concerns
No
8 comments
W1. Distinction from Zhao et al. (2024)
As noted in L208-210 and L256-260 of the main paper, the distinction from Zhao et al. (2024) is as follows. As the reviewer points out, the previous work also use contrastive twist learning, but for autoregressive LLMs, where there is no forward corruption kernel to exploit. CDM instead exploits the closed-form diffusion forward kernel, so that a single clean positive can be re-noised and reused across timesteps. Additionally, we explore twist learning in the context of diffusion models, which are widely used in scientific domains such as DNA and protein design, thereby enabling efficient inference-time alignment. As suggested by the reviewer, we will revise the main paper to make this distinction more explicit.
W2. Limitations and scope of the work
We appreciate the reviewer's request for a clearer account of the failure modes. We agree that this will provide better guidance for practitioners, and we delineate below the limitations of CDM: when it can fail, and when it is and is not preferred.
CDM can fail when the reward is very sparse, since the SMC sampler is then high-variance and the positive samples are poorly aligned with the target, leaving little signal to learn. Additionally, it offers little benefit when only a few samples are needed against a cheap reward. In these cases, inference-time scaling (BoN or SMC) can be the more economical choice. On the training side, CDM relies on drawing positive samples, which may underrepresent the target when the particle count or the buffer size is too small, and purely online optimization of the contrastive objective can be unstable, exhibiting negative-sampling collapse, which we prevent with an EMA soft target.
On the other hand, CDM is preferred when reward evaluation is expensive and many downstream samples are required, so that the one-time cost of learning the twist is amortized across inference. Additionally, compared to fine-tuning-based methods, CDM remains proposal-agnostic, which enables composing with fine-tuned models for additional gains.
We deeply appreciate the reviewer's constructive feedback and insightful comments on the paper. We will incorporate these clarifications and new results, namely the cost analysis, the ESS report, the regression ablation, and the twist function positive sampling, into the revised paper.
Q4. Learned twist for positive sampling
We thank the reviewer for this suggestion, and we agree it is an interesting direction. We interpret this question as replacing the reward queries at the intermediate steps of positive sampling during CDM training with the learned twist function, and reweighting with the given reward at the terminal step for correction.
We present the following cases:
- Twist-guided SMC: the learned twist replaces the Monte Carlo reward estimate at every intermediate step of positive sampling, with reward reweighting only at the terminal step.
- Reward Twist (25% / 50% / 75%): the Monte Carlo reward estimate is used for the first given fraction of the training iterations, after which the positive sampling switches to twist-guided SMC (1).
- CDM (ours): our current positive sampler, which uses the Monte Carlo reward estimate throughout. This is identical to Case (2) at 100%.
The results are presented in Tab. R3-4. First, we observe that twist-guided SMC underperforms, which we assume is due to the twist function being severely undertrained, so that the resulting positive samples in the buffer are largely misaligned with the target. Instead, to further reduce the positive sampling cost, one could set a threshold which uses reward in the beginning of the train iterations and switch to twist function. We observe consistent improvement as the coverage of the Monte Carlo reward goes up (25% 50% 75%) during training, which trades off train compute and the downstream sample reward.
Table R3-4. Twist-Guided Positive Sampling.
Q3. Soft Value sampling ablation study
Thank you for the insightful suggestion, and we agree that such a comparison isolates the contribution of the contrastive objective. Here, we present a full ablation of the sampling process used in the regression objective. The cases are:
- (1) Base-sample regression (): current Soft Value baseline, trained on base-distribution samples.
- (2) Target-sample regression (): draw from the approximate target and regress onto the Monte Carlo twist target.
- (3) Forward-noised target regression (): case (2) with the forward kernel to amortize training, as in Eq. 11.
- (4) CDM (ours): Contrastive gradient obejctive with forward-kernel amortization.
Note that Case (2) requires a separate SMC run to draw at every timestep, which can be less efficient than (3), which utilizes our proposed forward-based amortization technique.
We provide the results in Tab. R3-3. As expected, Case (2) fails to generate high-reward samples, likely due to the ineffienct sampling process. For the toxicity case, we observe that Case (3) outperforms (1), but still falls short of CDM, whereas in the DNA generation task, Case (3) shows performance comparable to or slightly worse than Case (1).
Table R3-3. Soft Value Sampling Ablation.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces Contrastive Distribution Matching (CDM), a framework for efficient reward alignment in discrete diffusion models. CDM assumes a pretrained diffusion backbone and a reward function, typically a classifier, that scores generated outputs. The core challenge is sampling from reward-tilted distributions, where Twisted Sequential Monte Carlo (SMC) provides asymptotic exactness but requires expensive Monte Carlo estimation of the twist function at every denoising step. The main contribution of CDM is to eliminate this inference bottleneck by learning a lightweight Twist Head, attached to the backbone's final layer, that predicts the optimal twist in a single forward pass with less than five percent overhead. The head is trained via a contrastive objective derived from forward KL divergence, increasing weight of high-reward positive samples and decreasing weight of suboptimal negative samples. Leveraging the closed-form forward kernel of discrete diffusion, CDM reuses clean samples across timesteps to reduce reward evaluations during training. Across tasks including toxic text generation, DNA design, protein generation, and LLM alignment, CDM outperforms gradient-based guidance, Monte Carlo SMC, and regression-based twist learning under matched wall-clock time.
Strengths and weaknesses
The paper is technically sound and complete, with rigorous derivations and thorough experimental validation across distinct domains with different reward structures. The authors carefully report both given and heldout rewards, match wall-clock time across comparisons, and include ablation studies on key hyperparameters. The compatibility experiments with fine-tuned proposals demonstrate versatility and potential for synergistic improvements. The clarity is strong, with precise mathematical notation, effective figures, and a logical progression from problem formulation to solution. However, several limitations warrant discussion. The method critically depends on pretrained components, specifically a diffusion backbone and a reward function. If the classifier provides weak signals, for instance probabilities near random guessing, the contrastive gradient may vanish, offering little guidance for the twist head. This sensitivity to reward quality is not systematically investigated. Additionally, the architecture of the twist head, the KL weight, and the number of diffusion steps are strongly task-dependent, yet the paper provides no precise recipes for choosing these hyperparameters beyond reporting experimental values. The buffer-based training scheme, while efficient, stores a finite set of well-distinguished positive samples, and it remains unclear how the learned twist head generalizes to states outside the buffer distribution. The significance of this work is substantial: by reducing twist evaluation to a constant-time operation, CDM makes SMC-based alignment practical for expensive reward functions such as protein folding models and API-based preference scores. The applicability to non-differentiable rewards and the demonstrated scalability to modern architectures address timely problems in generative AI. Nevertheless, the dependence on pretrained components means CDM is a powerful add-on rather than a standalone solution, and real-world deployment with noisy or misspecified rewards may pose challenges not explored in the benchmark evaluations. The originality lies in reformulating twist learning as contrastive distribution matching rather than regression, a shift that fundamentally changes training dynamics by introducing negative samples that calibrate the learned distribution. The forward-kernel trick for efficient training is a creative and diffusion-native contribution, enabling sample reuse across timesteps. While the method synthesizes existing ideas from contrastive learning and amortized inference, the combination is well-motivated and empirically validated. Overall, CDM advances the state of the art in reward-aligned discrete diffusion, offering a practical and scalable solution. I would be willing to increase my score from weak accept to accept if the authors address the raised issues regarding reward model sensitivity, hyperparameter selection guidelines, and out-of-buffer generalization in the final version.
Questions
-
The performance of CDM depends critically on the quality of the reward function. In cases where the classifier provides weak or noisy signals, for instance probabilities near random guessing (0.49 for toxic and 0.51 for non-toxic), the contrastive gradient may vanish. How does CDM behave under such conditions? Could you provide an analysis of performance as a function of classifier accuracy, and perhaps suggest strategies to mitigate this sensitivity?
-
The architecture of the twist head, the KL weight beta, and the number of diffusion steps T are all task-dependent, yet the paper reports only the values used in each experiment without offering guidance for new applications. Could you provide more systematic recommendations or heuristic rules for selecting these hyperparameters in practice, especially for tasks where computational resources or reward evaluation costs are constrained?
-
The buffer-based training scheme stores a finite set of well-distinguished positive samples. How does the learned twist head generalize to states that were not represented in the buffer, particularly those in regions of the state space that were poorly explored during positive sampling? Have you investigated the sensitivity of the method to buffer size or to the quality and diversity of the stored samples?
-
The method assumes a pretrained discrete diffusion backbone, which is not always available for all domains. If a user does not have access to a pretrained backbone, what would you recommend? Is it necessary to train a backbone from scratch before applying CDM, or could the twist head be trained jointly with the backbone in an end-to-end fashion? How does the total cost of training both components compare to the inference-time savings reported in the paper?
Limitations
Regarding the limitations and implications of the work, the authors have not adequately addressed them. While a Limitations section exists, it appears only in the Appendix rather than in the main body, and it is notably sparse. The limitations discussed in this review, including sensitivity to classifier quality, lack of hyperparameter selection guidelines, and concerns about out-of-buffer generalization, are not reflected in the paper's limitations section, which mentions only the need for more sophisticated twist architectures and the challenge of sparse rewards. This incomplete coverage of limitations suggests that the authors may not be fully transparent about the practical constraints of their method. Expanding the limitations discussion in the main text would significantly improve the paper's honesty and usefulness to practitioners.
Final justification
Based on the discussion and the authors' responses, my main concerns have been fully addressed. The authors were able to produce various experiments during the discussion period, which not only demonstrates the reproducibility of the method but also shows their responsiveness to constructive feedback.
The additional experiments on reward-model sensitivity, out-of-buffer generalization, and the comprehensive cost-benefit analysis provide valuable practical guidance for practitioners. The hyperparameter selection recipes will significantly improve the usability of the method in new applications.
I appreciate the authors' engagement with the review process and their efforts to strengthen the manuscript. The paper makes a solid contribution to reward alignment in discrete diffusion models, and the revised version will be a valuable resource for both researchers and practitioners.
I increase my score to Accept.
Formatting concerns
Limitations section appears only in the Appendix.
7 comments
Q4. Pretrained-backbone dependency
We thank the reviewer for raising this. While we considered applications where a pretrained diffusion model is already available, the training scheme when such a model is absent can take one of two forms:
- Sequential training. Train the backbone on ground-truth data (reward-agnostic), then train the twist function. This is the practice we followed, except that we did not train the diffusion model ourselves.
- Joint training. Run SMC to sample approximate-target data, use them to supervise the diffusion model, and train the twist function, iterating the two stages. The backbone is thus trained on reward-aligned samples.
Since our main paper covered the sequential training case, we provide experimental results for joint training below. In fact, joint training resembles the classical RL actor-critic algorithms which jointly optimize the actor and the critic given the reward.
For this experiment, we matched the compute to that of the CDM twist learning in the main paper, which can be insufficient, as the diffusion model also needs to be trained in this scheme. Hence, note that this experiment is intended as a proof of concept, rather than as an apple-to-apple comparison.
Table R2-3. Joint Training.
Even though it was a proof-of-concept experiment, we observe that joint training also produces target data with reasonable reward. However, as it has only been trained on the toxicity reward, it fails to generate plausible sentences, (e.g., generative perplexity > 10,000). This is expected, as the diffusion model has never been trained on human sentences.
Therefore, in cases where there is no pretrained diffusion model, we suggest training the base model and then the twist function sequentially, to ensure that the generative model captures the support of the underlying data distribution, and that the twist function sharpens the high-reward regions. Lastly, we present an analysis of the training cost of amortization and the saved inference cost in our response to Reviewer oWSW, Q1 (W3), Amortization Cost Analysis.
Limitations and scope of the work
We appreciate the reviewer's request for a clearer account of the failure modes. We agree that this will provide better guidance for practitioners, and we delineate below the limitations of CDM: when it can fail, and when it is and is not preferred.
CDM can fail when the reward is very sparse, since the SMC sampler is then high-variance and the positive samples are poorly aligned with the target, leaving little signal to learn. Additionally, it offers little benefit when only a few samples are needed against a cheap reward. In these cases, inference-time scaling (BoN or SMC) can be the more economical choice. On the training side, CDM relies on drawing positive samples, which may underrepresent the target when the particle count or the buffer size is too small, and purely online optimization of the contrastive objective can be unstable, exhibiting negative-sampling collapse, which we prevent with an EMA soft target.
On the other hand, CDM is preferred when reward evaluation is expensive and many downstream samples are required, so that the one-time cost of learning the twist is amortized across inference. Additionally, compared to fine-tuning-based methods, CDM remains proposal-agnostic, which enables composing with fine-tuned models for additional gains.
We appreciate the reviewer for suggesting the clarification, and we will revise the main paper to better elucidate the scope and limitations of the work.
References:
- Lightman, Hunter, et al. "Let's verify step by step." International Conference on Learning Representations. Vol. 2024. 2024.
- Chan, Alex J., et al. "Dense reward for free in reinforcement learning from human feedback." arXiv preprint arXiv:2402.00782 (2024).
- Zhou, Zhanhui, et al. "Weak-to-strong search: Align large language models via searching over small language models." Advances in Neural Information Processing Systems 37 (2024): 4819-4851.
- Hu, Zijing, et al. "Towards better alignment: Training diffusion models with reinforcement learning against sparse rewards." Proceedings of the Computer Vision and Pattern Recognition Conference. 2025.
- Qin, You, et al. "SOAR: Self-Correction for Optimal Alignment and Refinement in Diffusion Models." arXiv preprint arXiv:2604.12617 (2026).
- Wang, Peiyi, et al. "Math-shepherd: Verify and reinforce llms step-by-step without human annotations." Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024.
Q3. Out-of-buffer generalization and buffer size sensitivity
We thank the reviewer for pointing this out. We interpret this question as asking about the robustness of CDM to using a finite number of positive samples. To this end, we provide an ablation study varying the total number of positive samples used during CDM training.
We report results using 6.25%, 25%, 50%, and 100% of the total distinct positive samples used in the default setup. In Tab. R2-2, we test four cases for the text toxicity and DNA design tasks. For both toxicity and DNA tasks, we observe that the CDM twist shows relatively robust performance even with 50% of the positive data, meaning that the training could further benefit from reducing the number of positive samples. However, going beyond this point, we start to observe that the learned twist becomes more inefficient as we scale down the number of positive samples; that is, it requires a larger number of particles to achieve the same quality. In an extreme case where we only use 6.25% of the total positive samples, we observe that both toxicity and DNA show noticeable degradation, not being able to catch up even with a larger particle size.
We appreciate this point, and we will revise our paper accordingly to better discuss how the number of positive samples used during training affects the learned twist.
Table R2-2. Positive Sample Size Sensitivity.
Q2 (W2). Hyperparameter-selection guidance
We appreciate the reviewer's suggestion, and we agree that more rationale would help practitioners deploy the method and extend it to new applications. We provide a practical recipe backed by our ablations.
- Twist-head architecture. The recipe is to match the head to what the backbone already provides. We use an MLP head when the backbone already carries positional and context information (DiT text, DPLM-2 protein), add sinusoidal positional encodings (MLP+PE) when it does not (CNN DNA backbone), and use a small Transformer head for large dLLMs (Table 2, Fig. 6). Head width tracks the backbone feature dimension.
- KL weight . We scale it with the reward's numerical range. A that is too small can make the twist exponentially large, whereas a that is too large over-regularizes and weakens alignment. Empirically, we choose so that the twist function stays within roughly 0 to 10.
- Buffer size and . The buffer size is the number of clean positives that are reused over the next iterations. In our experiments, setting the buffer size to was sufficient, and we varied to control the total number of positive samples used for training. We increased when the reward is expensive (e.g., protein uses ) to amortize positive sampling. In addition to the ablation in Fig. 7 of the Appendix, we present additional results for the number of total positive samples used for training in Q3.
- Monte Carlo size . Choose to balance quality against compute. We first sweep with vanilla SMC, which samples fastest because it needs no training, to locate the range that gives the best quality-compute trade-off. Then for training, we can use that was found in the previous search. Empirically, as shown in Table 3a of the Appendix, we observed that CDM was relatively robust to the choice of .
- Diffusion steps . We inherit from the base model's setting, which trades off quality against compute. In principle, one can apply CDM at inference with any number of timesteps, at the cost of quality.
Resource-constrained setting. To narrow down the search space for applications where resources are severely constrained, we can first sweep and run SMC with a fixed particle size, and choose the KL weight that best balances quality and compute. Additionally, scale SMC again at a fixed particle size with different and observe its scaling behavior, and use the smallest once performance plateaus.
During CDM training, initially set large to maximize positive sampling amortization. While compute budget allows, decrease to consume more distinct positives. Note that this cost is paid once: after training, the twist is reused across all downstream sampling at constant per-step cost. However, if many downstream samples are not needed, inference-time scaling can be a more efficient choice. Please refer to our cost analysis in the response to Reviewer oWSW, Q1 (W3).
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies amortized Sequential Monte Carlo (SMC) for reward-guided sampling in discrete diffusion models. Existing twisted SMC methods require expensive Monte Carlo estimation of the twist function at every inference step, particularly when the downstream reward is computationally expensive. The proposed Contrastive Distribution Matching (CDM) framework instead learns a parameterized twist function offline using a contrastive objective derived from forward KL minimization. A key technical contribution is a specific training scheme that exploits the closed-form forward corruption process, allowing expensive positive samples to be reused across many timesteps and optimization steps. Experiments on toxic text generation, regulatory DNA design, protein designability, and alignment of diffusion language model demonstrate improved reward-quality tradeoffs with minimal inference overhead.
Strengths and weaknesses
Strengths: The paper addresses an important practical bottleneck in twisted SMC for discrete diffusion. From my perspective, the forward-kernel reformulation is the strongest contribution. The authors exploit the factorization of the diffusion forward process and amortize expensive reward evaluations across multiple training updates in a way that is specific to diffusion language models. The derivations are technically sound and the lightweight twist parameterization introduces very little inference overhead. Moreover, the experimental evaluation is also broad and spans multiple areas and data of different types like language, DNA and proteins.
Weaknesses: Please refer to the "Questions" part below.
Questions
Below is a list of the reviewer's questions:
(1) It seems that there exists some gap between the theoretical objective and the algorithm actually being optimized. Although CDM avoids Monte Carlo twist estimation during inference, training still relies on positive samples generated using finite-particle SMC with Monte Carlo twist estimates. Consequently, the learned twist is trained on an approximation of the optimal target distribution rather than the target itself. While this does not invalidate the method, would it be possible for the authors to provide a few theoretical insights on how this approximation affects the learned twist or how errors in the positive sampler propagate during training?
(2) Another side note: though the authors have performed a relatively comprehensive review of related work on sampling or search based methods for the inference/test time scaling of continuous/discrete diffusion models. An incomplete list of missing related work includes [1-13]. To further enhance the quality of the manuscript, the authors are strongly encouraged to take these missing work into consideration while revising the manuscript.
References:
[1] He, Jiajun, José Miguel Hernández-Lobato, Yuanqi Du, and Francisco Vargas. "RNE: a plug-and-play framework for diffusion density estimation and inference-time control." arXiv preprint arXiv:2506.05668 (2025).
[2] He, Jiajun, Paul Jeha, Peter Potaptchik, Leo Zhang, José Miguel Hernández-Lobato, Yuanqi Du, Saifuddin Syed, and Francisco Vargas. "CREPE: Controlling Diffusion with Replica Exchange." arXiv preprint arXiv:2509.23265 (2025).
[3] Trippe, B. L., Yim, J., Tischer, D., Baker, D., Broderick, T., Barzilay, R., & Jaakkola, T. (2022). Diffusion probabilistic modeling of protein backbones in 3d for the motif-scaffolding problem. In The Eleventh International Conference on Learning Representations (ICLR), 2023.
[4] Dou, Z., & Song, Y. (2024). Diffusion posterior sampling for linear inverse problem solving: A filtering perspective. In The Twelfth International Conference on Learning Representations (ICLR), 2024.
[5] Chen, Haoxuan, Yinuo Ren, Martin Renqiang Min, Lexing Ying, and Zachary Izzo. "Solving inverse problems via diffusion-based priors: An approximation-free ensemble sampling approach." arXiv preprint arXiv:2506.03979 (2025).
[6] Dang, Meihua, Jiaqi Han, Minkai Xu, Kai Xu, Akash Srivastava, and Stefano Ermon. "Inference-time scaling of diffusion language models with particle gibbs sampling." arXiv preprint arXiv:2507.08390 (2025).
[7] Chen, Tianlang, Minkai Xu, Jure Leskovec, and Stefano Ermon. "RFG: Test-Time Scaling for Diffusion Large Language Model Reasoning with Reward-Free Guidance." arXiv preprint arXiv:2509.25604 (2025).
[8] Zhang, Xiangcheng, Haowei Lin, Haotian Ye, James Zou, Jianzhu Ma, Yitao Liang, and Yilun Du. "Inference-time scaling of diffusion models through classical search." arXiv preprint arXiv:2505.23614 (2025).
[9] Jain, Vineet, Kusha Sareen, Mohammad Pedramfar, and Siamak Ravanbakhsh. "Diffusion Tree Sampling: Scalable inference-time alignment of diffusion models." arXiv preprint arXiv:2506.20701 (2025).
[10] Tang, Sophia, Yuchen Zhu, Molei Tao, and Pranam Chatterjee. "TR2-D2: Tree Search Guided Trajectory-Aware Fine-Tuning for Discrete Diffusion." arXiv preprint arXiv:2509.25171 (2025).
[11] Rout, Litu, Andreas Lugmayr, Yasamin Jafarian, Srivatsan Varadharajan, Constantine Caramanis, Sanjay Shakkottai, and Ira Kemelmacher-Shlizerman. "Test-Time Anchoring for Discrete Diffusion Posterior Sampling." arXiv preprint arXiv:2510.02291 (2025).
[12] Chu, Wenda, Zihui Wu, Yifan Chen, Yang Song, and Yisong Yue. "Split gibbs discrete diffusion posterior sampling." arXiv preprint arXiv:2503.01161 (2025).
[13] Cardoso, Gabriel, Yazid Janati El Idrissi, Sylvain Le Corff, and Eric Moulines. "Monte Carlo guided diffusion for Bayesian linear inverse problems." arXiv preprint arXiv:2308.07983 (2023).
Limitations
yes
Final justification
Most of the reviewer's concerns have been addressed by the authors' detailed rebuttal. Therefore, the reviewer is glad to maintain a positive rating (4) of the paper and recommend acceptance (given that the authors revised the camera-ready version of the paper based on the reviews and rebuttals accordingly).
Formatting concerns
The paper is generally well organized and easy to follow.
5 comments
Q2. Related works
We thank the reviewer for bringing these works to our attention, and we will revise our related work section to incorporate this line of work and make the overview more comprehensive. Below we position each work relative to CDM, grouped by its relationship to our method:
-
Sequential Monte Carlo for Generative Modeling: [1-5, 13] propose advanced SMC samplers for tasks such as compositional distributions [1-2], protein design [3], and inverse problems [4-5, 11-13]. [6] proposes particle Gibbs sampling for dLLMs.
-
Inference-Time Scaling: [7-10] propose advanced search methods to sample from the target distribution.
-
Proposal Fine-Tuning: [10] utilizes tree search to construct reward-aligned targets to fine-tune the proposal model.
References:
- Zhao, Stephen, et al. "Probabilistic inference in language models via twisted sequential monte carlo." arXiv preprint arXiv:2404.17546 (2024).
- Chopin, Nicolas. "Central limit theorem for sequential Monte Carlo methods and its application to Bayesian inference." (2004): 2385-2411.
- Johansen, Adam. "A tutorial on particle filtering and smoothing: Fifteen years later." (2009).
(3) The learned twist error affects the sampling variance at inference.
We now give an informal argument for how the finite training budget propagates to inference. Please note that the analysis is meant to convey the qualitative behavior rather than a tight guarantee.
The twist is itself learned from a finite number of positive-sample particles. The positive sampler in CDM training (Alg. 2) is an SMC procedure with particles targeting , so by the same SMC CLT applied at training time, its empirical target converges at rate .
Under the ideal-training assumption, the learned twist is a smooth functional of this empirical target whose population limit recovers the optimal twist , and thus inherits the same rate. Writing the log-twist error as
we assume it vanishes at the training rate, . This error is the only quantity through which the finite training budget reaches inference.
Now fix such a twist and run inference SMC with particles. By (1), the terminal potential is exact, so the sampler stays consistent: the error perturbs only the CLT variance constant, which we write as with at the optimal twist.
Assuming the variance depends smoothly on the twist, then since , the variance constant is perturbed at the following rate:
Combining with the result from (2), and using that the estimator is unbiased about for any twist, we have:
At an intuitive level, this suggests that with the learned twist the empirical distribution stays unbiased and its variance vanishes at rate , while reduces the variance via the second term. Furthermore, because SMC is sequential, the variance of earlier empirical distributions changes the downstream variance constants for all . Thus can have an additional sequential variance reduction effect. As this derivation is non-trivial and is beyond the scope of our paper, we do not provide this sequential analysis of the variance.
In practice, additional factors such as optimization convergence, model capacity, and approximation error may also influence the learned twist, so the effective role of can be more nuanced.
Empirical Analysis.
We additionally report the performance of CDM with varying and . As suggested by our theoretical analysis, the performance of CDM improves as and increase.
We are grateful for the careful and constructive review, and for identifying the forward-kernel reformulation as "the strongest contribution" of the paper. We also appreciate the reviewer's assessment that CDM addresses "an important practical bottleneck in twisted SMC for discrete diffusion", that our "derivations are technically sound", and that the experimental evaluation is "broad and spans multiple areas". We present our responses to each of the questions below.
Q1. Finite Positive Sample Approximation Error
We provide theoretical analysis on the bias and variance due to the finite positive sample approximation. We present this analysis in three parts: (1) at inference, the empirical target distribution is always unbiased regardless of the learned twist, since the given reward is used to reweight the particles at the final denoising step, (2) the number of particles used during inference affects the variance which decreases as we scale the particle size, and (3) the error in the learned twist induced by finite positive samples with particles during training affects the variance of the sampler at inference time, for which we provide an informal argument. Finally, we include empirical results on the effect of and on CDM performance at inference-time.
Theoretical Analysis.
(1) Finite-particle approximation does not bias the unnormalized target distribution at inference. We clarify that the learned twist does not asymptotically bias the unnormalized target distribution, and its normalization constant is unbiased [1]. Following Eq. (9) of [1], we use learned twist functions at intermediate timesteps and the exact reward potential only at the terminal timestep. The unnormalized intermediate targets are
We write the exact terminal potential as . The incremental weight is given as
After multiplying the incremental weights along a trajectory, all the twist factors telescope, leaving only the terminal rewards. Therefore, intermediate twist does not bias the final unnormalized target but mainly affects sampling variance, as will be explained next.
(2) Finite-particle approximation during inference affects sampling variance. Let be the empirical distribution obtained from SMC sampling with particles at inference. By the Central Limit Theorem (CLT) for SMC [2], we have
which gives to the following rate [3]. Thus as the number of particles during inference increases, the variance of the approximate distribution decreases. Furthermore, since , increasing the number of particles ensures convergence to the correct target distribution in addition to unbiasedness result from (1). Note that this holds for any fixed twist, which enters only through the variance constant. Next, based on this result, we can (informally) show how a twist learned with finite training budget affects the variance.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for the careful summary and for the constructive guidance. Below we pair each concern raised in the meta-review with what we have addressed.
Error propagation from finite-particle approximation. In our response to Q1 of Reviewer 1s7d, we clarify that at inference time, CDM applies the given reward at the terminal timestep. Hence, the sampler remains asymptotically unbiased for any twist, and the variance decreases as we scale the inference particle size. Additionally, we provide theoretical insights into how the error in the twist learned from finite positive samples affects the sampling variance at inference time. We further present empirical observations from a sweep over the training and inference particle counts.
Amortization training and sampling analysis. In our response to Q1 of Reviewer oWSW, we provide a cost model to compare the cost of amortization training and vanilla inference-time scaling. We clearly show the regime in which amortization training can be more economical than inference-time scaling.
ESS and reward model sensitivity. In our response to Q2 of Reviewer oWSW, we report the normalized ESS along the full denoising schedule together with the resampling rate for every application. We clarify the scope of the work and state the limitations of our method when applied to sparse rewards in our response to Reviewer NxBN.
Additionally, we added ablations on the sampling choice of the Soft Value regression objective and on twist-guided positive sampling in our response to Q3-4 of Reviewer oWSW. We truly appreciate the Area Chair and the reviewers for their constructive feedback, and we will incorporate these clarifications and results into the revision.