cs.LGOct 29, 2026

Composing and Steering Diffusion Models with Generalized Feynman-Kac Correctors

Authors: Wael Mattar, Daniel Freedman

Organizations: School of Mathematical Sciences, Tel Aviv University, Israel.

Abstract

Diffusion models have become the leading paradigm in generative modeling, yet many applications require sampling from distributions that are not those of any single pretrained model, but are instead defined through combinations of several models, possibly tilted toward high values of a downstream reward. Naively combining the scores of the models yields incorrect samples, while existing corrections are restricted to specific families of targets. In this work, we introduce the generalized Feynman-Kac correctors (GFKC), a principled framework for sampling from an arbitrary target function of several pretrained diffusion models. We show that the geometric interpolation between an arbitrary initial function and the target function of the models satisfies a Feynman--Kac partial differential equation, and derive its potential in closed form. To evaluate this potential during generation, we further generalize the log-probability ODE to track the density of each model along trajectories driven by a different velocity field. The resulting algorithm operates entirely in the log domain, incorporates reward-based steering at no additional conceptual cost, and corrects the generation on the fly, without retraining or fine-tuning the models. We validate the method on analytic Gaussian models, where it closely matches the ground-truth targets, and on diffusion models trained on MNIST, where it samples from non-trivial combinations of the models and enables effective steering.

Figures & tables

Explore similar work

CardsList
  1. Error-Corrected Inference-Time Scaling for Imperfect Diffusion Models

    Oct 1, 2026Zuokai Wen, Louis Grenioux, Weinan E +1Markov Chain Monte CarloDiffusion Model Sampling

  2. General and Efficient Steering of Diffusion Models

    Feb 11, 2026Qingsong Wang, Mikhail Belkin, Yusu WangDiffusion Model GuidanceActivation Steering

  3. Correction Training for Diffusion Models

    Oct 9, 2026Donghoon Ahn, Runqian Wang, Alexei A. Efros +2Diffusion-Based Image GenerationDiffusion Models