Selecting Stable Sampling Dynamics for Compositional Diffusion: A Feynman-Kac Weight Reduction

Sunjin Kim, Sungsoo Ahn, Michael ChertkovarXiv 2026

TL;DR

When combining multiple pre-trained diffusion models to generate complex data (like a molecule that satisfies two different properties), the math often gets "shaky," leading to unstable weights and poor samples. This paper identifies a mathematical "sweet spot"—a specific parameter setting called Feynman–Kac reduction—that cancels out the most volatile terms in the sampling equations. The result is a training-free, principled way to keep your sampling stable and efficient without needing to guess parameters by trial and error.

What Problem Does This Paper Address?

Diffusion models are the current kings of generative AI, but they are usually specialists. If you want a model that generates "a cat" and another that generates "in a spacesuit," you ideally want to combine them into a Product of Experts (PoE) to get "a cat in a spacesuit" without retraining everything from scratch.

The standard way to do this involves "weighted" particles. As you move from noise to a clean image, each particle carries a weight that tells you how well it fits the combined criteria. The nightmare scenario is weight collapse: where one particle gets all the weight and the rest become useless, or the weights fluctuate so wildly that the math breaks.

Until now, researchers mostly tuned the "strength" of these combinations by hand. This paper asks: Is there a mathematically "correct" way to set these dynamics so the weights stay as stable as possible?

Methods

The authors dive into the world of Weighted Stochastic Differential Equations (WSDEs) and the Feynman–Kac formula. They look at a family of sampling dynamics controlled by a parameter $\lambda$, which dictates how strongly a particle follows the combined "score" (the gradient of the probability) of all the experts.

The key innovation is identifying the value $\lambda = 1/B$, where $B$ is the sum of the weights ($\beta_k$) assigned to each expert.

  • Feynman–Kac Reduction: At this specific value, a problematic "squared-score" term in the weight update equation cancels out perfectly.
  • Stability Guarantees: They prove that for positive expert weights, this choice provides an upper bound on how fast the log-weights can change. In certain common settings (like linear diffusion with compact data), it even provides a two-sided bound, meaning the weights are "caged" and cannot explode or vanish.
  • Langevin Gauge: They also explore an additional "knob" ($g_t$) that adds extra noise (Langevin dynamics). While increasing this noise can theoretically lead to "perfect" sampling, the paper notes the practical trade-off: it requires much smaller time steps, increasing computational cost.

Datasets

The authors validated their theory across several benchmarks:

  • Mixture-of-Gaussians (MoG): A toy setting used to visualize how different $\lambda$ values affect the "flatness" of the weight rates.
  • Alanine Dipeptide (ALDP): A classic molecular simulation task.
  • LJ-13: A benchmark involving clusters of 13 atoms governed by the Lennard-Jones potential.
  • Dual-target Molecular Generation: A complex task where the goal is to generate small molecules that bind to two different target proteins simultaneously.

Key Insights and Ideas

  • The "Narrowest" Stable Proposal: The choice $\lambda = 1/B$ is described as the "narrowest" possible proposal that still guarantees stability. If you try to make the particles follow the experts more strongly than this, you risk the weights becoming infinitely volatile.
  • The $t \to 0$ Limit: At the very beginning of the sampling process (when there is mostly noise), any choice other than $\lambda = 1/B$ causes the weight rate to behave like a quadratic function with "infinite curvature," leading to immediate instability. This explains why previous methods often struggled in the early stages of generation.
  • Training-Free Principle: This isn't a new model; it's a better way to use the models you already have. It’s a distribution-agnostic principle that works regardless of what the experts were trained on.

Key Results

The theoretical "flatness" of the weight rate is clearly visible in the paper's visualizations.

Figure 1: A comparison of the log-weight rate from Skreta et al. (2025) λ = 1 (red) and that explored in this paper λ = 1/(P
  • Improved Metrics: In molecular tasks (ALDP and LJ-13), the proposed $\lambda = 1/B$ consistently achieved better Wasserstein distance and Total Variation metrics compared to the standard $\lambda = 1$ used in prior work.
  • Stability in Complexity: In the dual-target molecular generation task, using the stable $\lambda$ allowed for a wider range of Langevin noise settings, making the sampling process more robust even when trying to satisfy very difficult constraints.

Limitations and Future Work

  • The $t \to 1$ Wall: As the sampling nears completion ($t \to 1$), the expert distributions become very sharp and non-smooth. The authors acknowledge that their stability bounds can still diverge at this final limit, suggesting that different strategies might be needed for the very last steps of generation.
  • Not a Global Optimum: While $\lambda = 1/B$ is the most stable choice, the authors found rare cases in experiments where a slightly different value performed better on specific empirical metrics. Stability is a guarantee of reliability, not necessarily a guarantee of the absolute best possible sample quality for every single use case.
  • High-Dimensional Shift: In very high dimensions, "distribution shift" (where the sampler visits regions the experts never saw during training) remains a challenge that no amount of weight stabilization can fully solve.

Summary updated

Abstract

Given $K$ separately trained diffusion models, how should one sample from a $β_k$-weighted product of their terminal laws without jointly retraining the experts? Existing Feynman--Kac constructions provide many weighted stochastic differential equations (SDEs) with the correct target marginal. The consequential question is how to select useful proposal dynamics among them. We study an explicit family of weighted diffusions that realizes the same product-of-intermediate-experts trajectory. A scalar parameter $λ$ controls how strongly the proposal drift follows the composed expert score, while an additional Langevin component can be varied independently. Writing $B=\sum_{k=1}^{K}β_k>0$, we identify the distinguished choice $λ=1/B$. At this value, the aggregate squared-score term in the instantaneous Feynman--Kac log-weight rate cancels exactly. For positive expert exponents, the remaining score-disagreement contribution is non-positive. We call this structural cancellation Feynman--Kac reduction. Under bounded-divergence assumptions, it yields an upper bound on the instantaneous unnormalized log-weight rate for all $λ\leq 1/B$. For linear diffusion protocols with compactly supported expert data, $λ=1/B$ yields two-sided bounds at every nonterminal time, for exponents of either sign. A corresponding result holds for a single expert under the same divergence assumption. In these two-sided settings, the selected value is unique within the specified family in a universal worst-case sense. Experiments on Gaussian mixtures and molecular sampling compare the analytically predicted stability with actual sampling quality, including instances in which parameter choices different from $λ=1/B$ perform better empirically.
BibTeX
@misc{kim2026selecting,
  author = {Sunjin Kim and Sungsoo Ahn and Michael Chertkov},
  title = {{Selecting Stable Sampling Dynamics for Compositional Diffusion: A Feynman-Kac Weight Reduction}},
  year = {2026},
  eprint = {2611.29764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29764},
}
Figure