Discrete Feynman-Kac Correctors

Mohsin Hasan, Viktor Ohanesian, Artem Gazizov, Yoshua Bengio, Alán Aspuru-Guzik +3 more
1/15/2026
cs.LG

No official code found. Best implementation: hasanmohsin/discrete_fkc (12 stars, last commit 2026-01-19).

Abstract

Discrete diffusion models have recently emerged as a promising alternative to the autoregressive approach for generating discrete sequences. Sample generation via gradual denoising or demasking processes allows them to capture hierarchical non-sequential interdependencies in the data. These custom processes, however, do not assume a flexible control over the distribution of generated samples. We propose Discrete Feynman-Kac Correctors, a framework that allows for controlling the generated distribution of discrete masked diffusion models at inference time. We derive Sequential Monte Carlo (SMC) algorithms that, given a trained discrete diffusion model, control the temperature of the sampled distribution (i.e. perform annealing), sample from the product of marginals of several diffusion processes (e.g. differently conditioned processes), and sample from the product of the marginal with an external reward function, producing likely samples from the target distribution that also have high reward. Notably, our framework does not require any training of additional models or fine-tuning of the original model. We illustrate the utility of our framework in several applications including: efficient sampling from the annealed Boltzmann distribution of the Ising model, improving the performance of language models for code generation and amortized learning, as well as reward-tilted protein sequence generation.

View on arXivView PDF

Code Implementations(1)

Implementation for Discrete Feynman-Kac Correctors

121PythonAug 14, 20259 months ago

Similar Papers

Cite this paper

@article{hasan2026discrete,
  title  = {Discrete Feynman-Kac Correctors},
  author = {Mohsin Hasan and Viktor Ohanesian and Artem Gazizov and Yoshua Bengio and Alán Aspuru-Guzik and Roberto Bondesan and Marta Skreta and Kirill Neklyudov},
  year   = {2026},
  eprint = {2601.10403},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.10403v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.10403.svg)](https://codeofpaper.com/paper/2601.10403)

Discussion