# Contrastive Distribution Matching for Amortized Sequential Monte Carlo in Discrete Diffusion

DevFeed: [Contrastive Distribution Matching for Amortized Sequential Monte Carlo in Discrete Diffusion](<https://devfeed.tech/articles/contrastive-distribution-matching-for-amortized-sequential-monte-carlo-in-discrete-diffusion-123164.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.23346>)

Author: Jaihoon Kim, Taehoon Yoon, Prin Phunyaphibarn, Seungjun Kim, Morteza Mardani, Minhyuk Sung

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [AI Development](<https://devfeed.tech/topics/ai-development.md>), [diffusers](<https://devfeed.tech/topics/diffusers.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [ai alignment](<https://devfeed.tech/topics/ai-alignment.md>)

Tags: [alignment](<https://devfeed.tech/tags/alignment.md>), [applications](<https://devfeed.tech/tags/applications.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [diffusion-models](<https://devfeed.tech/tags/diffusion-models.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [dna](<https://devfeed.tech/tags/dna.md>), [estimator](<https://devfeed.tech/tags/estimator.md>), [inference](<https://devfeed.tech/tags/inference.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [language](<https://devfeed.tech/tags/language.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [learning](<https://devfeed.tech/tags/learning.md>), [matching](<https://devfeed.tech/tags/matching.md>), [model](<https://devfeed.tech/tags/model.md>), [model-alignment](<https://devfeed.tech/tags/model-alignment.md>), [models](<https://devfeed.tech/tags/models.md>), [monte-carlo](<https://devfeed.tech/tags/monte-carlo.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [sequence](<https://devfeed.tech/tags/sequence.md>)

## AI overview

Contrastive Distribution Matching (CDM) reduces the inference burden of reward-tilted sampling with discrete diffusion by learning a parameterized twist function from positive and negative samples, amortizing part of Twisted Sequential Monte Carlo's costly twist estimation. Its training gradient uses the diffusion model's closed-form forward kernels. The abstract reports that evaluating the learned twist adds less than 5% overhead relative to one base-model forward pass and that CDM outperforms existing baselines at matched wall-clock time. Evaluations cover toxic text generation, regulatory DNA design, protein designability, and diffusion language model alignment; the supplied text does not provide detailed results for these tasks.

## Source excerpt

arXiv:2605.23346v2 Announce Type: replace 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 a single forward pass of the base model. 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.