Manuscript Offprint

arXiv:2610.11380

Equal Path Cost, Unequal Output Effects: Understanding Perturbation Propagation in Diffusion Models

Wei Guo, Yaowen Zhang, Xingtong Ge, Jun Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Wei Guo1,∗^{1,*}, Yaowen Zhang2,∗^{2,*}, Xingtong Ge1^{1}, Jun Zhang1,†^{1,\dagger}

1^{1}iComAI Lab, The Hong Kong University of Science and Technology

2^{2}Department of Physics, The Hong Kong University of Science and Technology

∗^{*}Equal contribution. †\daggerCorresponding author.

Diffusion models have achieved remarkable success in generative modeling, with their sampling procedures routinely modified to control generation and improve efficiency. These modifications introduce perturbations along the sampling trajectory, raising a central question: how do such perturbations affect generated output? To address this question, we develop a theoretical framework to investigate perturbation propagation, combining dynamical analysis of the sampling process with an information-theoretic characterization of output responses. Within this framework, we quantify perturbation strength using the Kullback–Leibler (KL) divergence between perturbed and reference trajectory distributions, termed as path cost, which is shown to bound, but do not determine, changes in the output distribution. Building on this analysis, we derive a response identity that connects the propagation and accumulation of local perturbations with the information captured by a selected feature mean, explaining why changes in the output distribution can remain undetected by its first-order response. We test our theoretical analysis through controlled interventions at equal path cost in pretrained diffusion models, revealing distinct patterns of output sensitivity across sampling stages and spatial frequencies. To assess whether our framework can diagnose perturbations arising from practical approximations, we apply it to cache-based acceleration and show that our propagation analysis reliably identifies sampling intervals where caching causes larger image errors.

1 Introduction

Diffusion models generate samples by simulating learned reverse-time dynamics from a noise distribution to the data distribution (Ho et al., 2020; Song et al., 2020). During inference, these dynamics are perturbed by errors in learned score estimates or denoising predictions (Song et al., 2021; Li and van der Schaar, 2024), by deliberate guidance updates (Dhariwal and Nichol, 2021), and by approximations introduced by fast solvers, quantization, and feature caching (Lu et al., 2022; Li et al., 2023; Ma et al., 2024). Because a perturbation changes the input to subsequent denoising steps, its effect on the generated sample depends on the downstream sampling dynamics, not only on its magnitude at the timestep where it occurs (Li and van der Schaar, 2024; Liu et al., 2026). This creates a mismatch between the trajectory-level quantities used to characterize a perturbation and the output-level quantities used to evaluate its consequences: the former describe the change where it enters the sampling process, whereas the latter concern the endpoint distribution, the response of a selected feature, or the displacement of a generated sample. This mismatch raises a central question: How do perturbations along the sampling trajectory translate into changes in generated outputs, and to what extent can trajectory-level measures characterize those changes?

Existing work has addressed different aspects of this question. Analyses of score estimation and discretization use aggregated errors along the sampling trajectory to bound deviations in the generated distribution (Song et al., 2021; Chen et al., 2022; Benton et al., 2024). Studies of exposure bias and error propagation instead examine how prediction errors accumulate across denoising steps (Ning et al., 2023, 2024; Li and van der Schaar, 2024). More recently, in the setting of recursively trained diffusion models, Khelifa et al. (2026) derive terminal-divergence lower bounds parameterized by an endpoint-observability coefficient, which measures how much pathwise score-error energy remains detectable in the terminal distribution. These results show that inaccuracies along the sampling trajectory can accumulate into the global generation error and the pathwise error may be only partially observable in the terminal distribution. However, they do not fully characterize how the downstream sampling dynamics mediate the relationship between the magnitude of a perturbation along the trajectory and its effect on the final generated output.

To address this gap, we develop a theoretic framework combining information-theoretic analysis with a dynamical characterization of output response, which explains why perturbations of equal strength can produce unequal output effects and derives how local perturbations propagate and accumulate to determine output responses. We measure perturbation strength by the KL divergence between perturbed and reference trajectory distributions, which we call path cost. The analysis shows that a perturbation's effects on generated outputs depend jointly on its path cost, how it propagates and interacts with perturbations at other steps, and how the resulting changes are measured. Our contributions are:

  • A theoretical framework explaining how perturbations affect generated outputs. We derive an exact decomposition of path cost that distinguishes changes in the output distribution from changes in trajectory distributions conditional on the output. We derive a first-order propagation law that quantifies how subsequent sampling dynamics transform local perturbations and how their contributions accumulate to determine the final output response. We further establish bounds relating feature mean responses to local output-distribution changes, explaining why a selected feature mean can fail to detect such changes. These results explain why equal path costs can produce unequal output effects.

  • Experimental support for the theoretical analysis. We test the framework through controlled perturbations at equal path cost, varying the sampling stages at which they are applied and their spatial directions. The resulting output responses differ across sampling stages and directions. The experiments show that first-order propagation can capture the temporal patterns of responses to finite perturbations, although predicted and observed magnitudes can differ substantially. They also show that smaller absolute feature mean responses can correspond to larger changes relative to baseline fluctuations, consistent with our theoretical analysis.

• Applying the framework to diagnose output errors in cache-based acceleration. We apply the framework to cache-based acceleration for diffusion generation, where earlier model predictions are reused to avoid fresh evaluations. By tracing how the resulting approximation errors propagate and accumulate, we assess their impact on the final image and identify sampling intervals where caching causes larger output deviations. This propagation-based diagnostic identifies such intervals more reliably than local error magnitude and path-cost measures, which remains informative even when predicted and observed error magnitudes differ substantially.

References (61)

  • Discrete cosine transform
  • Spectral analysis of diffusion models with application to schedule design
  • Nearly d-linear convergence bounds for diffusion models via stochastic localization
  • An optimal control perspective on diffusion-based generative modeling
  • Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions (opens arXiv in a new tab)
  • Elements of Information Theory
  • Dimension-free error estimate for diffusion model and optimal scheduling (opens arXiv in a new tab)
  • Fluctuation-response inequality out of equilibrium
  • Diffusion models beat GANs on image synthesis
  • Path-space information bounds for uncertainty quantification and sensitivity analysis of stochastic dynamics
  • SenCache: Accelerating diffusion model inference via sensitivity-aware caching (opens arXiv in a new tab)
  • Denoising diffusion probabilistic models
  • Quantifying error propagation and model collapse in diffusion models (opens arXiv in a new tab)
  • Statistical physics II: nonequilibrium statistical mechanics
  • Christian Léonard. A survey of the Schrödinger problem and some of its connections with optimal transport. arXiv preprint arXiv:1308.0215, 2013. (opens arXiv in a new tab)
  • Back to basics: Let denoising generative models denoise
  • Q-Diffusion: Quantizing diffusion models
  • On error propagation of diffusion models
  • EpaCache: Error-Propagation-Aware Caching for Accelerating Diffusion-Based Visual Generation
  • DPM-Solver: A fast ODE solver for diffusion probabilistic model sampling in around 10 steps
  • DeepCache: Accelerating diffusion models for free
  • Monte Carlo gradient estimation in machine learning
  • Improved denoising diffusion probabilistic models
  • Input perturbation reduces exposure bias in diffusion models (opens arXiv in a new tab)
  • Elucidating the exposure bias in diffusion models
  • Scalable diffusion models with transformers
  • Ertacache: Error rectification and timesteps adjustment for efficient diffusion
  • Score-Based Generative Modeling through Stochastic Differential Equations
  • Maximum likelihood training of score-based diffusion models
  • We write $H_i = (X_0, \ldots, X_i)$ for the sampling history available before update $i$
  • Each conditional KL compares the two possible updates at the same history; the outer expectation averages over histories reached by the perturbed process
  • Taking the conditional expectation therefore yields
  • We assume that the trajectory space is standard Borel and that Y is a measurable observation
  • Disintegrating $Q_{\varepsilon}$ and P with respect to Y gives
  • When $e_i = 0$, an earlier state change can still propagate through $J_i$
  • Writing $v_i = T_i e_i$, we expand $\langle \sum_i v_i, \sum_j v_j \rangle$ to obtain Eq
  • To obtain second-order KL expansions, we additionally assume that, for some $\delta > 0$ and $\varepsilon_0 > 0$
  • The function $k(x) = (1 + x) \log(1 + x) - x$, extended continuously at $x = -1$, satisfies $k(x) = x^2 / 2 + o(x^2)$ near zero and $k(x) \leq Cx^2$ for $x \geq -1$
  • (16) gives $s_i = u_i^\top \Lambda_i^{-1}(X_{i+1} - \mu_i)$
  • (10) to obtain $\chi_f = \mathrm{Cov}_P(f(Y), S_Y)$
  • (5) proves Eq
  • Writing $\Delta_f(\varepsilon) = \mathbb{E}_{Q_\varepsilon} f(Y) - \mathbb{E}_P f(Y)$, we have $\Delta_f(\varepsilon) = \varepsilon \chi_f + o(\varepsilon)$
  • A smaller absolute response can therefore correspond to a larger $B_f$ when the reference variance is sufficiently smaller
  • Our goal is to hold the noise-normalized intervention strength fixed while changing how its contributions align after propagation
  • We apply deterministic mean controls:
  • Thus the budget depends on the norm of the temporal control, while output change depends on its projection onto the downstream gains
  • We keep the class, initial noise, noise drawn at every sampling step, and spatial template identical in both runs
  • We compute $\widehat{B}_f = \widehat{\chi}_f^2 / s_f^2$, using the same baseline variance for all injection windows of a given feature
  • We use $\lambda_0 = 0.1$, standard normal pixel initialization, and Euler transitions on $t_i = i\Delta t$, $\Delta t = t_*/128$, terminating at $t_* = 0.95$
  • We use the unclamped decoded pixels for response measurements
  • On an $H\times H$ grid, let $\psi_k(r,s)$ be proportional to $\cos(\pi k(s+1/2)/H)$ and normalized to unit Frobenius norm
  • All use 128 stochastic steps, eight injection windows, and path Fisher $F_{\mathrm{path}}=1$
  • For JiT, we use exponential moving average (EMA) weights
  • For comparisons across sampling windows, we keep the classes, initial states, and noise at every step fixed
  • JiT uses $\Delta t=0.95/64$; ADM and DiT use 65 retained diffusion times, comprising 64 stochastic transitions and the final deterministic transition
  • Let $o_i(X_i)$ denote the fresh prediction at step $i$
  • The reference Jacobian $J_{i}$ includes the state dependence of the fresh network prediction
  • For ADM, $o_i$ is the clipped clean prediction, the posterior covariance is fixed, and $e_i = \mu_i(Z_i; o_a) - \mu_i(Z_i; o_i)$
  • Write $\Sigma_i = L_i L_i^\top$ for its diagonal covariance and $\ell_i = \log \text{diag} \Sigma_i$
  • Its reference expectation summed over steps gives the corresponding path Fisher information
  • Images are clipped to $[-1, 1]$ for display; differences use unclipped decoded pixels