Research
Cross-fluctuation phase transitions reveal sampling dynamics in diffusion models
Overview Research area: Machine learning, specifically generative modeling with score-based diffusion models, bridging statistical physics fluctuation theory, finite Markov chain mixing/coupling theor
- arXiv
- 2511.00124
- Published
- 2025-10-31
- Authors
- Sai Niranjan Ramachandran, Manish Krishan Lal, Suvrit Sra
AI summary
Overview
Research area: Machine learning, specifically generative modeling with score-based diffusion models, bridging statistical physics fluctuation theory, finite Markov chain mixing/coupling theory, and modern sampling diagnostics.
Technical level: Advanced. The paper relies on stochastic differential equations, centered-moment tensor statistics, and diffusion-model sampling mechanics, though the practical outcome (early stopping, guidance windows) is described in accessible terms.
Scope: The paper introduces "cross-fluctuations" — a centered-moment statistic — to detect discrete phase transitions during diffusion sampling, and shows how those transitions can be exploited to accelerate sampling, improve class-conditional and rare-class generation, and boost two zero-shot tasks without retraining or grid search.
What This Paper Is About
Diffusion models generate data by starting from isotropic noise and progressively adding structure, but the internal sampling process is largely a black box: it is unclear when in the trajectory the model begins to commit to distinguishable outcomes. This paper proposes that the moment structure of the sample distribution undergoes sharp, discrete transitions — "merger" events — that can be measured with a physics-derived statistic called cross-fluctuation. The goal is to detect these transitions cheaply and use their timing (the first merger index i*) to improve sampling, conditioning, and zero-shot tasks.
Key Contributions
-
Framework and theory. A rigorous framework using fluctuation theory from statistical physics to identify and quantify discrete phase transitions in the diffusion process, treating user-specified goals as "desirable events" whose dynamics can be tracked. It also connects ensemble-based statistical mechanics to classical mixing-coupling results for Markov chains, giving a unified perspective on probability flows.
-
Practical toolkit. A diagnostic toolkit — operationalized as Algorithm 1 — with clear criteria for identifying discrete transitions in cross-fluctuations and computing the first merger step
i*. For variance-preserving SDEs the authors derive a closed-form for these cross-fluctuations that is efficiently computable for the reverse trajectory. -
Illustrative applications. The framework is demonstrated on accelerated sampling, class-conditional generation, rare-class coverage, zero-shot image classification, and zero-shot style transfer, with the authors noting that a simple fluctuation-driven tweak can improve baseline methods.
-
Generalization beyond Markov samplers. The viewpoint is stated to extend to stochastic SDEs and non-Markovian samplers, and to generalize the coupling time of a Markov chain.
Main Findings
-
Discrete phase transitions occur. Starting from an unbiased isotropic normal distribution, samples undergo sharp, discrete transitions, eventually forming distinct events of a desired distribution while progressively revealing finer structure. Because the process is reversible, the same transitions occur in reverse, where intermediate states progressively merge back toward the initial distribution.
-
Transitions are detectable as discontinuities. These transitions are detected as discontinuities in nth-order cross-fluctuations. For variance-preserving SDEs, a closed-form for the cross-fluctuations is derived and shown to be efficiently computable for the reverse trajectory.
-
Early stopping preserves quality with large savings. Starting the reverse sampler at
t = i*instead oft = npreserves visual quality while saving steps. Reported comparisons: DiT-XL/2 on ImageNet goes from FID 3.42 ± 0.21 at 250 steps and 4100 GFLOPs to FID 3.37 ± 0.31 at 175 steps and 2870 GFLOPs; DDPM on MNIST goes from FID 2.27 ± 0.19 at 1000 steps / 2000 GFLOPs to FID 2.29 ± 0.17 at 600 steps / 1200 GFLOPs; DDPM on CIFAR-10 goes from FID 3.62 ± 0.35 at 500 steps / 6000 GFLOPs to FID 3.47 ± 0.34 at 300 steps / 3600 GFLOPs. FID scores are averaged over three runs with 95% confidence intervals. -
Class-conditional gains without grid search. Using fluctuation analysis to supply both Interval Guidance bounds for free (
t_start = i*,t_end = max{t : M_kl^(2)(t) < 1 for some l ≠ k}), the method matches or improves the IG baseline. DiT-XL/2 on ImageNet improves from FID 3.22 ± 0.16 to 2.86 ± 0.15, with Precision from 0.78 ± 0.01 to 0.83 ± 0.02, Recall from 0.23 ± 0.05 to 0.26 ± 0.04, Density from 0.83 ± 0.01 to 0.85 ± 0.01, and Coverage from 0.35 ± 0.02 to 0.39 ± 0.02. DDPM on MNIST improves from FID 2.15 ± 0.06 to 1.99 ± 0.11; DDPM on CIFAR-10 improves from FID 3.32 ± 0.25 to 3.01 ± 0.14. -
Rare-class generation improves with merger-aware windows and corrupted exemplars. On CUB-200 (200 bird species) and iNaturalist 2019 with Stable Diffusion, the merger-aware schedule outperforms the baseline, and a variant that interpolates a forward-noised exemplar inside the window (described as a class-specific variant of ILVR with intervals) gives the largest gains. For iNaturalist, CLIP Similarity rises from 0.21 ± 0.03 (IG baseline) to 0.24 ± 0.02 (IG Ours) to 0.27 ± 0.01 (IG-ILVR Ours); for CUB200, from 0.24 ± 0.05 to 0.26 ± 0.01 to 0.27 ± 0.02.
-
Zero-shot classification improves. On a Stable Diffusion backbone, merger-aware weighting beats the uniform baseline of Li et al.. Reported accuracies: uniform (Li et al.) 54.96 ± 0.67 on ImageNet, 84.67 ± 1.23 on CIFAR-10, 82.87 ± 0.39 on Oxford-IIIT Pets; uniform (ours) 57.91 ± 0.53, 85.17 ± 0.17, 86.17 ± 0.26; inverse-SNR 64.17 ± 0.33, 87.26 ± 0.67, 88.17 ± 0.29; truncated inverse-SNR (best) 65.28 ± 0.46, 88.38 ± 0.43, 89.15 ± 0.26. A CLIP RN-50 line is also listed at 58.41 ± 0.35 on ImageNet and 75.42 ± 0.26 on CIFAR-10.
-
Connection to Markov chains and normality testing. The first merger index
i*generalizes the coupling time of a Markov chain. In the warm-up study, detecting onset of convergence is described as being in practice equivalent to a multivariate normality test onp_i; the authors use the D'Agostino-Pearson omnibus test with a 0.05 p-value threshold on MNIST, CIFAR-10, and a compressed INT-8 variant of ImageNet.
Methodology in Plain English
The authors frame generation as a sequence of distributions evolving from data at time 0 to noise at time T, and they pick two events (for example, two object classes) that start out distinct. They track how "distinguishable" those events are at every step using a statistic they call the normalized cross-fluctuation, M, which compares the conditional expected moment tensors of the two events. When M ≈ 1, the two events' statistics have collapsed onto each other — a "merge." For the covariance case (n = 2), this quantity is exactly Centered Kernel Alignment (CKA) between the two conditional covariance matrices.
To turn the smooth M curve into a crisp indicator of a discrete transition, they replace it with a thresholded version: if the within-event fluctuation magnitudes are far apart, report M; otherwise report 1. The earliest index at which this reads 1 is i*, which they interpret as generalizing a Markov chain's coupling time. Crucially, because the forward process is cheap and unbiased estimates of all terms come from a single forward Monte-Carlo sweep, the diagnostic is inexpensive. The authors argue that when the data distribution has compact support the reverse-time process preserves continuity, so any jump must be a genuine phase transition.
They then apply this to five settings: using i* as a stopping time for reverse sampling; using class merger times to define the (t_start, t_end) window for Interval Guidance; extending that window logic to rare tail classes with a corrupted-exemplar interpolation; restricting a class score sum to timesteps before the first class merger for zero-shot classification; and a style-transfer experiment (details of which are not reported in the excerpt provided).
Why This Matters
Impact on research. The paper offers a diagnostic vocabulary — cross-fluctuations and merger times — that unifies discrete Markov chain theory, phase-transition analysis, and modern diffusion sampling. It also suggests that some hyperparameters currently found by grid search (like guidance intervals) can instead be computed directly from the data distribution's statistics, which reframes a tuning problem as a measurement problem.
Real-world applications:
- Faster image generation on resource-constrained hardware, by stopping sampling early with little or no quality loss (thousands of GFLOPs saved in reported cases).
- Better synthesis of rare or tail categories — birds, flora and fauna — where off-the-shelf diffusion models were identified as failure cases.
- Stronger zero-shot classifiers built on class-conditional diffusion backbones, without training new models.
- More controllable style transfer, listed as one of the zero-shot tasks improved by the approach.
Industry relevance. The reported wins are achieved "without expensive grid search or retraining," which matters economically: inference cost is a dominant expense for deployed diffusion systems, and the ability to pick guidance windows automatically (rather than sweeping them per class) reduces engineering overhead when scaling to large label sets.
Future Directions
- Clarify the Brownian equilibrium heuristic. The authors note that an unrelated theorem on Brownian equilibrium time predicts
i*surprisingly well for their data, and state that clarifying this connection is left to future work. - Extend to higher-order fluctuations at scale. The experiments fix
n = 2because higher-order fluctuations for vector states become unwieldy; an experiment with higher-order fluctuations simplified using Isserlis'/Wick's theorem is mentioned, but scaling this remains a natural next step. - Broaden beyond Markov/variance-preserving settings. The framework claims to extend to stochastic SDEs and non-Markovian samplers; further empirical validation across sampler families is an open direction.
- Investigate probability-mass transfer more generally. A footnote notes the augmented-process construction is designed to measure mass transfer from any marginal
p_itoward anotherp_jwithj > i, but the paper only concerns itself withj = n; other targets are unexplored.
Target Audience
This paper is best suited to machine learning researchers and graduate students working on diffusion models, score-based generative modeling, or the intersection of statistical physics and probabilistic machine learning. Practitioners who deploy diffusion systems at scale and care about inference cost, guidance scheduling, or rare-class coverage will also find the toolkit relevant, as will theoretically inclined readers interested in Markov chain coupling and phase-transition analysis of continuous dynamics. Readers without a background in SDEs, covariance-based statistics, or diffusion sampling will find the theory sections challenging, though the application results are stated in relatively accessible terms.
Authors’ abstract
We analyse how the sampling dynamics of distributions evolve in score-based diffusion models using cross-fluctuations, a centered-moment statistic from statistical physics. Specifically, we show that starting from an unbiased isotropic normal distribution, samples undergo sharp, discrete transitions, eventually forming distinct events of a desired distribution while progressively revealing finer structure. As this process is reversible, these transitions also occur in reverse, where intermediate states progressively merge, tracing a path back to the initial distribution. We demonstrate that these transitions can be detected as discontinuities in $n^{\text{th}}$-order cross-fluctuations. For variance-preserving SDEs, we derive a closed-form for these cross-fluctuations that is efficiently computable for the reverse trajectory. We find that detecting these transitions directly boosts sampling efficiency, accelerates class-conditional and rare-class generation, and improves two zero-shot tasks--image classification and style transfer--without expensive grid search or retraining. We also show that this viewpoint unifies classical coupling and mixing from finite Markov chains with continuous dynamics while extending to stochastic SDEs and non Markovian samplers. Our framework therefore bridges discrete Markov chain theory, phase analysis, and modern generative modeling.