Probing the Geometry of Diffusion Models with the String Method
Authors: Elio Moreau, Florentin Coeurdoux, Grégoire Ferre, Eric Vanden-Eijnden
Organizations: Capital Fund Management, 23 Rue de l’Université, 75007 Paris · ML Lab, Capital Fund Management, 23 Rue de l’Université, 75007 Paris · Courant Institute of Mathematical Sciences, New York University, New York, NY 10012, USA
Understanding the geometry of learned distributions is fundamental to improving and interpreting diffusion models, yet systematic tools for exploring their landscape remain limited. Standard latent-space interpolations fail to respect the structure of the learned distribution, often traversing low-density regions. We introduce a framework based on the string method that computes continuous paths between samples by evolving curves under the learned score function. Operating on pretrained models without retraining, our approach interpolates between three regimes: pure generative transport, which yields continuous sample paths; gradient-dominated dynamics, which recover minimum energy paths (MEPs); and finite-temperature string dynamics, which compute principal curves -- self-consistent paths that balance energy and entropy. We demonstrate that the choice of regime matters in practice. For image diffusion models, MEPs contain high-likelihood but unrealistic ''cartoon'' images, confirming prior observations that likelihood maxima appear unrealistic; principal curves instead yield realistic morphing sequences despite lower likelihood. For protein structure prediction, our method computes transition pathways between metastable conformers directly from models trained on static structures, yielding paths with physically plausible intermediates. Together, these results establish the string method as a principled tool for probing the modal structure of diffusion models -- identifying modes, characterizing barriers, and mapping connectivity in complex learned distributions.
Figures & tables
Figure 1: The likelihood-realism paradox. Top: schematic showing the MEP (green) passing through the high-likelihood region (yellow), while the principal curve (red) stays within the typical set where data concentrates (blue points). Dashed lines indicate Voronoi cells—regions of points closest to each image along the string. Bottom: actual images at numbered locations. Endpoints (1, 2) are identical for both paths; the principal curve intermediate (3) is realistic; the MEP intermediate (4) is cartoonish. Full pathways computed by our method are shown in Figures 4 and 5 .
Figure 2: The string method. Grey dashed arrows show Step 1 (evolution): each image moves according to vt , landing at positions marked with × . Blue dotted arrows show Step 2 (reparametrization): images are redistributed to restore equal arc-length spacing along the string.
Figure 3: Relative score estimation error: Emodel[∣st−s^t∣/∣st∣] as a function of t for a mixture of Gaussians in various dimensions. The error increases sharply near t=1 , motivating the quenching of γt as t→1 . For details see Appendix C
Transport
MEP
Principal curve
γt=0
γt≫1
γt≫1
T=0
T>0
Geometric
No
Yes
Yes
Entropic
No
No
Yes
Realistic
Yes
No
Yes
Table 1: Three regimes of string dynamics.
Figure 4: Effect of score weight γ . Left: string realizations for γ ranging from 15 ( top ) to 2 ( middle ) to 10−2 ( bottom ) in logarithmic steps (factor of 10 ). Higher γ drives paths through abstract, high-likelihood modes; lower γ preserves realism. Right: log-likelihood of images along each string (colored curves), overlaid on the likelihood distribution of ImageNet validation images (heatmap; see Figure 6 for details). The intermediate images along the MEP reach likelihoods far exceeding typical images.
Figure 5: Effect of temperature T . Left: string realizations for T ranging from 0.1 ( top ) to 0.5 ( middle ) to 0.9 ( bottom ). Lower T drives paths through cartoon-like, high-likelihood regions; higher T produces realistic samples. Right: log-likelihood of images along each string (colored curves), overlaid on the likelihood distribution of ImageNet validation images (heatmap; see Figure 6 ). As T increases, the likelihood of the intermediates images decreases toward typical values, and images become more realistic.
Figure 6: Likelihood distributions. Histogram of log-likelihoods for ImageNet 256×256 validation images (blue), compared with images along MEPs (orange) and finite-temperature strings at T=0.1 (green), T=0.5 (red), and T=0.9 (purple), aggregated across multiple strings. MEP intermediates have significantly higher likelihood than real images, confirming they lie outside the typical set. As temperature increases, string images approach the likelihood distribution of real data. Inset: same data on log scale.
Figure 7: Principal curve for images from the goose class. Top row: images along the principal curve, computed as the EMA of associated walkers ( T=0.9 , γ=7 ). Bottom three rows: individual walkers at t=1 . The walkers exhibit subtle variations due to entropic effects (best seen when zoomed in); averaging produces the smoother images in the principal curve.
Figure 8: Adenylate Kinase transition pathway. Pathway between the open (4AKE) and closed (1AKE) conformations computed using DiG. Intermediate structures maintain physical plausibility (secondary structure preservation, no steric clashes).
Figure 9: BBA folding pathway. Top: structures along the initial string obtained by pure transport ( γ=0 ). Bottom: structures along the converged MEP. Both show progressive formation of secondary structure. Left panel: initial string (purple) and MEP (green) projected onto the first two TIC components, overlaid on a free-energy landscape estimated from ScoreMD samples; darker regions indicate lower free energy. Asterisks mark equal arc-length intervals. Right panel: energy profile along each pathway. The MEP achieves significantly lower energy than the initial string.
Figure 10: Chignolin folding pathway. Top: structures along the initial string obtained by pure transport ( γ=0 ). Bottom: structures along the converged MEP. Both show progressive formation of secondary structure. Left panel: initial string (purple) and MEP (green) projected onto the first two TIC components, overlaid on a free-energy landscape estimated from ScoreMD samples; darker regions indicate lower free energy. Asterisks mark equal arc-length intervals. Right panel: energy profile along each pathway. The MEP achieves significantly lower energy than the initial string.
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameters
Values
Neural network
Depth
28
Hidden Size
1152
Patch Size
2
Number of Attention Heads
16
MLP ratio
4.0
Appendix
Table 2: Hyperparameter choices for the SiT Model
Hyperparameter
Initialization
PIDP
Data Training
Model depth
12
Hidden dim (Single)
768
Hidden dim (Pair)
256
Hidden dim (Feed Forward)
1024
Number of Heads
32
Appendix
Table 3: Hyperparameters of the Distributional Graphormer Protein Model.
Model name
hidden_nf
feature_embedding_dim
n_layers
potential
dropout
transformer_large_score
128
16
3
false
0.0
transformer_large_potential
128
16
3
true
0.0
Appendix
Table 4: Graph transformer model definitions extracted from the configuration file.
Entry
Model reference
Range
1
transformer_large_score
[1.0,0.6]
2
transformer_large_score
[0.6,0.1]
3
transformer_large_potential
[0.1,0.0]
Appendix
Table 5: Ranged models configuration extracted from the configuration file of the model, it should be kept in mind that for this model t=0 is actually the interpolant time t=1 and vice versa.
Figure 11: Pathway from extended to folded conformation computed using ConfDiff. Intermediates show progressive formation of secondary structure.
Hyperparameters
Values
Neural network
Number of IPA blocks
4
Dimension of single repr.
256
Dimension of pairwise Repr.
128
Dimension of hidden
256
Number of IPA attention heads
4
Appendix
Table 6: Hyperparameter choices for ConfDiff Model
Figure 12: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 13: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 14: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 15: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 16: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 17: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 18: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 19: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 20: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 21: Effect of temperature T on images principal curve. Lower T drives paths through cartoonish high-likelihood modes (top); higher T preserves realism (bottom).
Figure 22: A principal curves with three realizations coming from this curve
Figure 23: A principal curves with three realizations coming from this curve
Figure 24: A principal curves with three realizations coming from this curve
Figure 25: A principal curves with three realizations coming from this curve
Figure 26: A principal curves with three realizations coming from this curve
Figure 27: A principal curves with three realizations coming from this curve
Figure 28: A principal curves with three realizations coming from this curve
Figure 29: A principal curves with three realizations coming from this curve
Figure 30: A principal curves with three realizations coming from this curve
Figure 31: A principal curves with three realizations coming from this curve
A single text prompt passed to a diffusion model yields a wide range of visual outputs determined solely by a stochastic process, leaving users with no direct control over which semantic variations appear. Exploring this range is difficult: random search offers no guarantee of covering it, while prompt editing is coarse, as even a small change in wording can substantially alter the generated image. We argue that systematic exploration instead requires recovering how the model itself organizes the conditional distributions it can produce. We formalize this structure as a generative manifold, and present ELROND, a method for recovering its tangent space at a given conditioning. To that end, we collect gradients obtained by backpropagating the differences between stochastic realizations of a fixed prompt, and decompose them into interpretable directions using Principal Component Analysis or a Sparse Autoencoder. We show that our method recovers this subspace accurately in a controlled setting and validate it behaviorally on large-scale models. We also demonstrate that recovered structure enables broader exploration of the model's capabilities than methods relying on external representations, and mitigates mode collapse in distilled models without retraining.
Paweł Skierś, Emilia Kaczmarczyk, Tomasz Trzciński +1
Warsaw University of Technology · IDEAS Research Institute
Score-based diffusion models are typically trained by minimizing the L2 score matching error, and standard theoretical analyses rely on this quantity to bound the sampling discrepancy between the learned and target distributions. We show the L2 score error is not the right intrinsic measure of marginal distributional quality: a learned diffusion model can incur arbitrarily large L2 score error while perfectly matching the target distribution. By decomposing score errors into a gradient and a solenoidal component (a Helmholtz-Hodge decomposition), we identify the geometric reason behind this: only the gradient component enters the marginal Fokker-Planck dynamics, while the solenoidal component is structurally invisible. We make this precise in three results. First, building on the corrected geometry, we prove an impossibility result: no monotone function of the L2 score error can uniformly lower bound any divergence between the learned and target distributions. Second, we derive an upper bound on the Kullback-Leibler divergence that depends only on the observable gradient component of the error, tightening the standard Girsanov bound for generic score networks, and identifying its looseness as the cost of operating on path-space rather than marginal-space dynamics. Third, we give a tractable estimator of the gradient component via a dual Sobolev identity, which is shown to empirically correlate substantially better with sample quality than the full L2 error.
Naïl B. Khelifa, Richard E. Turner, Ramji Venkataramanan
Diffusion models for structured scientific generation must produce samples satisfying hard geometric constraints imposed by physics, chemistry, or biology, yet inference in these settings is prohibitively slow, demanding hundreds to thousands of neural-function evaluations per sample. We unify eight state-of-the-art models spanning medical volumetrics, molecular conformations, protein backbone design, crystal structure prediction, and multi-view 3D scenes under a single abstraction, Constraint-Manifold Diffusion Models (CMDMs), in which the target distribution is supported on a manifold defined by an externally specified constraint map. All existing acceleration families fail on this class: quantization exhausts memory on high-dimensional volumetric operators; pruning breaks constraint fidelity; fast ODE solvers allow trajectories to drift off the constraint manifold; and feature-caching heuristics are blind to constraint geometry, inducing mode confusion in the high-noise regime. We introduce ManifoldCache, the first training-free, data-free accelerator designed from first principles for CMDMs. The key insight is that the conditional score decomposes orthogonally into a normal component, which enforces constraint satisfaction, and a tangential component, which navigates within the manifold. Exploiting this structure, we prove that the noise-schedule midpoint is a sharp safe-caching boundary: caching before it incurs provably bounded error, while caching after it guarantees a strictly positive fraction of trajectories suffer mode confusion, a gap that persists up to the boundary. We further prove that deeper network blocks admit provably larger certified cache strides within the safe phase, as a consequence of the score decomposition propagating through block Jacobians. The resulting schedule requires no calibration data, along with zero training overhead.
Prashant Pandey, Devineni Sri Venkatraya Chowdary, Brejesh Lall
Indian Institute of Technology, Delhi · Indian School of Mines, Dhanbad