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

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150808) · [OpenReview](https://openreview.net/forum?id=fGFv81kGOt) · [Open on the map](../papers.html#p150808)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Drifting Generative Modeling](../pgroup/690.md) · Type: new method · Keywords: contrastive distribution matching, reward-tilted sampling, discrete diffusion, sequential Monte Carlo, amortized inference, text generation

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Diffusion Model Optimization › Training-Free Diffusion Sampling

## Summary
CDM is a novel amortized framework that learns a twist function via contrastive matching to speed up reward-tilted sampling in discrete diffusion models, achieving less than 5% extra compute and strong performance across text, DNA, protein, and LLM alignment tasks.

## Explained to a 5-year-old
A computer program can create new things like sentences, DNA, or protein shapes. It can be given a rule that says what is good or bad. For example, it should not write mean words. Making the program follow that rule well is slow and uses a lot of computer power. The paper finds a way to learn a quick rule that helps the program avoid bad things without using a lot of power.

## Explained to a 5-year-old, longer
A computer program can create new things like sentences, DNA, or protein shapes. It can be given a rule that says what is good or bad. For example, it should not write mean words. Making the program follow that rule well is slow and uses a lot of computer power. The researchers noticed that many existing ways to do this are slow and need a lot of computer power. They wanted to find a faster way that still works well. They came up with a new idea: they teach the program a shortcut that tells it how to avoid bad things quickly. This shortcut is learned from examples of good and bad things. When the program uses this shortcut, it needs only a tiny extra amount of computer time. It still makes good things and avoids bad ones. The new method works for many different kinds of things, like writing text, designing DNA, making proteins, and aligning language models. This makes the technology useful for many real-world problems.

## For a technical reader
The paper introduces a learned twist function that approximates the optimal reward-tilted distribution, reducing the per-sample cost of Twisted SMC. By using contrastive matching and the known forward kernels of discrete diffusion models, the gradient estimator becomes cheap and the twist can be evaluated with minimal overhead. Empirically, the method matches or exceeds baseline performance while using far less compute, making it suitable for deployment in text, bioinformatics, and model-alignment pipelines.

## Problem
Efficiently sampling from reward-tilted distributions in discrete diffusion models is computationally expensive because estimating the optimal twist function requires costly Monte Carlo approximations, limiting practical use of exact methods like Twisted SMC.

## Method
The approach learns a parameterized twist function using contrastive matching on positive and negative samples and leverages the closed-form forward kernels of discrete diffusion models to compute efficient gradient estimators. This amortized twist is evaluated during inference with negligible extra cost, enabling fast reward-tilted sampling.

## Results
The approach adds less than 5% computational overhead and consistently achieves better performance than baselines within the same wall-clock time.

## Contributions
A contrastive distribution matching framework that amortizes twist learning for reward-tilted sampling, an efficient gradient estimator using diffusion forward kernels, and empirical validation across text, DNA, protein, and LLM alignment tasks.

## Practical relevance
By drastically reducing inference cost, the method enables practical deployment of reward-tilted generation in resource-constrained settings and diverse domains such as text moderation, DNA design, and protein engineering.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150808)
