[Paper Review] Discrete Feynman-Kac Correctors
The paper introduces Discrete Feynman-Kac Correctors (DFKC) to control inference-time distributions of discrete diffusion models via annealing, product marginals, and reward-tilting, without retraining. It provides CTMC-based theory and demonstrates applications in Ising model sampling, code-generation language modeling, and reward-guided protein sequence generation.
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.
Motivation & Objective
- Motivate the use of discrete diffusion models for discrete data to avoid strict token ordering and exposure biases.
- Develop a principled inference-time framework to control generated distributions without retraining.
- Introduce and analyze Discrete Feynman-Kac Correctors for annealing, product marginals, and reward-tilting.
- Demonstrate practical applications across physics, programming, and protein sequence generation.
Proposed method
- Model discrete diffusion via continuous-time Markov chains and forward Kolmogorov equations.
- Derive transformed marginals under temperature annealing, product marginals, geometric averaging, and reward-tilted marginals using modified rate matrices (A_t, B_tau).
- Apply Feynman-Kac framework to compute weights and enable Self-Normalized Importance Sampling for weighted samples.
- Provide reverse-time process parameterizations for masked diffusion compatible with existing denoising predictions.
- Show how to implement inference-time corrections with no additional training or fine-tuning.
Experimental results
Research questions
- RQ1Can inference-time transformations (annealing, product, and reward-tilting) steer discrete diffusion model samples toward target distributions?
- RQ2How can the forward Kolmogorov equation be modified to produce annealed, product, or reward-tilted marginals in discrete diffusion?
- RQ3Are these corrections realizable efficiently for masked diffusion with existing predictors (scores/denoising probabilities)?
- RQ4Do inference-time corrections improve performance in Ising model sampling, language-based coding tasks, and protein sequence generation?
Key findings
- Temperature annealing enables sampling from annealed Boltzmann distributions and remains effective beyond training temperature bounds.
- Product marginals and geometric averages allow collaborative sampling across multiple models or conditions.
- Reward-tilted marginals enable optimization toward external reward functions during sampling.
- The framework yields practical improvements in Ising model sampling, code generation accuracy, and reward-guided protein design without retraining.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.