Measuring and Decomposing Mode Separation via the Canonical Diffusion

Shaul Tolkowsky, Ori Meidler, Or ZukNeurIPS 2026

TL;DR

Standard tools like entropy and PCA confuse spread with fragmentation—they can’t tell the difference between one giant, fuzzy cloud of data and two tight, distinct islands separated by an empty valley. This paper introduces a physics-inspired way to measure how sharply high-dimensional data splits into distinct modes, and finds the exact axes along which those splits happen. Best of all, it requires no cluster labels and plugs directly into modern diffusion models.

What Problem Does This Paper Address?

Imagine looking at the outputs of an image generator, or the 3D shapes of a folding protein. Often, the things we care about most are the modes—distinct semantic concepts (a bird vs. a construction crane) or stable molecular conformations, separated by low-probability "barriers."

Yet, quantifying this mode separation in high dimensions is surprisingly tricky without ground-truth labels. Our standard label-free toolkit measures dispersion (how spread out the mass is), not fragmentation:

  • Differential entropy goes up when data spreads out, ranking a wide, featureless blob higher than two sharp, distinct clusters.
  • PCA finds directions of maximum variance. Presented with two parallel, pancake-shaped clusters, PCA points along the wide flat side of the pancakes, completely missing the gap between them.
  • Mutual Information captures mode separation, but requires knowing the latent cluster labels in advance.

We lacked a continuous, label-free ruler that responds specifically to barriers between modes, along with a compass that points across them.

Methods

If you drop a random walker into a probability landscape, it will wander freely inside a cluster, but rarely cross a low-density valley. Barriers in space become slow mixing in time.

The authors formalize this by attaching a unique stochastic process to any probability density $f$, called the canonical diffusion. It is a reversible Brownian motion whose stationary distribution is $f$, scaled by $f$'s average variance so the whole setup is invariant to rotation, translation, and unit changes. Crucially, simulating this walk doesn't require knowing $f$ itself—only its score ($\nabla \log f$), which you can get from Kernel Density Estimation in low dimensions, or directly from pretrained diffusion models via Tweedie's identity in high dimensions.

By simulating short trajectories and computing the time-lagged autocovariance matrix $\hat{C}(\tau)$—essentially asking how much where a walker starts predicts where it is at lag $\tau$—the authors extract two new readouts:

  1. SSA (Sum of Squared Autocorrelations): A scalar measure obtained by integrating the squared trace of the autocorrelation over time. Deeper barriers mean slower mixing and higher SSA.
  2. DA (Dominant Autocorrelation directions): The eigenvectors of $\hat{C}(\tau)$, which rank linear directions by metastability (how hard it is to cross) rather than variance.

To prevent finite-sample noise from masquerading as slow modes at long time lags, the authors derive an exact closed-form noise floor (Theorem 2). Generalizing the famous Marchenko–Pastur law from random matrix theory, they calculate the exact eigenvalue spectrum under a featureless isotropic-Gaussian null, giving a sharp upper edge $\lambda_+(\tau)$ to separate real barrier-crossing directions from sampling noise.

Empirical eigenvalue histograms under an isotropic Gaussian null match the authors' analytic free-convolution density and noise floor edge across time lags.

Datasets

No new benchmarks were introduced; the framework was evaluated across three settings:

  • Synthetic Gaussian Mixture Models (GMMs): 2D and 10D mixtures with controlled separations, variances, weights, and mode counts.
  • SDXL 1.0 Generations: Image distributions across 14 text prompts (including lexically ambiguous words like "crane" and "bat") at four classifier-free guidance scales ($w \in \{1, 3, 7.5, 15\}$), embedded into 768D CLIP ViT-L/14 space.
  • Alanine Dipeptide (MDShare): A classic 22-atom molecular dynamics benchmark ($3 \times 250\text{ ns}$ trajectories, 750k frames, featurized as 45 pairwise heavy-atom distances), treated as static, unordered samples.

Key Insights and Ideas

  • Fragmentation vs. Dispersion decoupled: On two parallel elliptical clusters, PCA gets fooled by within-mode spread, whereas DA1 points cleanly across the empty barrier between them. Meanwhile, SSA ranks the fragmented ellipses higher than a wide Gaussian blob (1.822 vs. 1.022), inverting differential entropy (5.14 vs. 6.06 nats).
  • Classifier-free guidance has a "Goldilocks" zone for structure: In text-to-image generation, entropy drops monotonically as guidance $w$ increases. SSA reveals what's actually happening geometrically: at $w=1$, outputs are a noisy, unguided soup; at $w=15$, modes collapse into repetitive clones; right in the middle ($w \in \{3, 7.5\}$), the distribution fractures into distinct, coherent visual archetypes.
  • Recovering dynamics without trajectories: In computational chemistry, finding slow collective variables usually requires time-ordered simulation trajectories (via TICA). Because kinetic barriers are encoded in the static equilibrium density's score, DA recovers the exact same slow coordinates from scrambled, static snapshots alone.
SSA tracks Mutual Information across 10D GMM sweeps (a-d), while SSA and DA separate fragmentation from dispersion on 2D parallel ellipses where entropy and PCA fail (f).

Key Results

  • Synthetic GMMs: Across 50 random 10D bimodal mixtures, SSA strongly tracks ground-truth Mutual Information without needing component labels (Spearman $\rho = 0.890, p = 5.5 \times 10^{-18}$). While MI saturates at $\log k$ as barriers deepen, SSA continues growing exponentially with barrier height.
  • SDXL Text-to-Image: Across all 10 prompts showing multimodal structure, SSA peaked at intermediate guidance ($w=3$ or $7.5$)—never at the extremes. The highest SSA (1.54) appeared on the ambiguous prompt "crane", capturing the bird-vs.-machinery split. On "a portrait of an elderly person" ($w=7.5$), DA1 isolated a clean gender axis ($|\rho| = 0.90$), whereas PC1 muddled gender with artistic style.
Table 1: SSA across ten prompts and four guidance scales (SDXL Base 1.0, N = 200 trajectories per cell; every cell reaches the 1/N stopping floor). Bold: per-prompt peak. All bootstrap SEs (B = 2,000) are ≤0.05 (full per-cell SEs in Appendix H.4). Four further prompts with peak ˆS < 1.1 are excluded as inconclusive (Appendix H.5); the 1.1 cutoff is a margin above the unimodal- Gaussian baseline of 1 (Appendix B.7).
  • Alanine Dipeptide: From static samples, DA recovered the ground-truth slow backbone dihedrals in the exact physical ordering ($\psi$ then $\phi$, with $|r(\psi)| = 0.672$ for DA1 and $|r(\phi)| = 0.873$ for DA2), matching trajectory-based TICA and outperforming PCA and Spectral Map.

Limitations and Future Work

  • Linearity & Score Fidelity: DA only finds linear axes, so curved mode geometries can be missed. Furthermore, "garbage-in, garbage-out" applies to the score oracle—estimation errors in $\nabla \log f$ bias both SSA and DA and won't vanish simply by drawing more samples.
  • Anisotropy: Stretching a single unimodal Gaussian makes walkers take longer along the long axis, nudging SSA above its isotropic baseline of 1. Small SSA excesses must be paired with 1D unimodality tests (like Hartigan's dip test, which the authors build into their pipeline) before claiming multiple modes exist.
  • Compute Cost & Future Directions: Simulating $N \times T$ denoiser steps on giant models is expensive. If amortized, however, SSA is fully differentiable through the score—opening the door to using it as a training or prompt-tuning objective to actively steer generative models toward more diverse, distinct modes. Extending Theorem 2's random matrix theory to anisotropic nulls and Tracy–Widom edge fluctuations also remains wide open.

Summary updated

BibTeX
@inproceedings{tolkowsky2026measuring,
  author = {Shaul Tolkowsky and Ori Meidler and Or Zuk},
  title = {{Measuring and Decomposing Mode Separation via the Canonical Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=H63M35DFX7},
}
Figure