Source-linked AI summary

Revisiting Diffusion Model Predictions Through Dimensionality

Qing Jin, Chaoyang Wang

arXiv:2601.21419v2cs.LGcs.CV

TL;DR

The paper asks how data geometry determines the optimal diffusion or flow-matching prediction target and whether targets beyond ε, v, and x are useful. It develops a dimensionality-based theory and k-Diff, which learns the target parameter directly; experiments show comparable or superior performance to fixed-target baselines in latent and pixel spaces.

  • Problem

    Existing theory does not establish whether ε, v, and x exhaust useful prediction targets or explain rigorously how data dimensionality affects their efficiency and stability.

  • Method

    The paper generalizes diffusion prediction targets through a parameterized formulation, derives their dependence on intrinsic and ambient dimensions, and learns the target parameter k with one trainable scalar.

  • Results

    k-Diff consistently achieves comparable or superior results to fixed-target baselines across latent-space and pixel-space image generation.

  • Takeaways & Limitations

    The learned target provides a principled, automated alternative to explicit intrinsic-dimension estimation for optimizing diffusion-model objectives.

  • Takeaways & Limitations

    The theoretical optimum depends not only on intrinsic and ambient dimensions but also on the objective scaling, sampling distribution, and integration interval.

Abstract

from arXiv · show

Recent advances in diffusion and flow matching models have highlighted a shift in the preferred prediction target -- moving from noise ($\varepsilon$) and velocity (v) to direct data (x) prediction -- particularly in high-dimensional settings. However, a formal explanation of why the optimal target depends on the specific properties of the data remains elusive. In this work, we provide a theoretical framework based on a generalized prediction formulation that accommodates arbitrary output targets, of which $\varepsilon$-, v-, and x-prediction are special cases. We derive the analytical relationship between data's geometry and the optimal prediction target, offering a rigorous justification for why x-prediction becomes superior when the ambient dimension significantly exceeds the data's intrinsic dimension. Furthermore, while our theory identifies dimensionality as the governing factor for the optimal prediction target, the intrinsic dimension of manifold-bound data is typically intractable to estimate in practice. To bridge this gap, we propose k-Diff, a framework that employs a data-driven approach to learn the optimal prediction parameter k directly from data, bypassing the need for explicit dimension estimation. Extensive experiments in both latent-space and pixel-space image generation demonstrate that k-Diff consistently outperforms fixed-target baselines across varying architectures and data scales, providing a principled and automated approach to enhancing generative performance.

1. Introduction

Diffusion models have shifted from noise and velocity prediction toward x-prediction in high-dimensional settings, but the governing principles remain theoretically unresolved. The paper introduces a generalized target framework and k-Diff to connect dimensionality with target selection and learn the target automatically.

  • High-resolution, pixel-space research increasingly finds x-prediction more stable and effective than noise or velocity prediction.
  • Existing theory does not establish whether better targets exist beyond ε, v, and x or explain how ambient and intrinsic dimensionality determine target efficiency.
  • The paper analyzes a single-layer linear diffusion model trained across the full SNR range to study target-learning dynamics.
  • The generalized target u = kx−(1−k)n forms a continuous objective space containing ε-, v-, and x-prediction at k = 0, 0.5, and 1, respectively.
  • k-Diff learns the target parameter through one additional learnable parameter and achieves comparable or superior results to fixed-target baselines across latent- and pixel-space generation.

2. Related Work

Prior work established noise and velocity prediction for lower-dimensional diffusion settings, while high-resolution pixel-space models increasingly use x-prediction for stability. This transition remains largely heuristic, and the paper positions its analysis as a quantitative explanation grounded in data dimensionality.

  • Low-Dimensional Diffusion Models: Early diffusion models primarily used ε-prediction for relatively low-resolution or low-dimensional data regimes.
  • Low-Dimensional Diffusion Models: As diffusion and flow matching moved toward deterministic sampling and straighter probability paths, velocity prediction became prominent.
  • Pixel-Space High-Resolution Diffusion: High-resolution pixel-space models increasingly adopt x-prediction or SNR-weighted losses because noise and velocity targets show greater limitations.
  • Pixel-Space High-Resolution Diffusion: The superiority of x-prediction for sparse, detailed high-resolution images has been empirical, with the shift from v to x remaining largely heuristic.
  • Learning and Generalization Dynamics of Diffusion Models: Related studies analyze diffusion generalization, memorization, architecture inductive biases, and phase transitions in reverse-time generation.
  • Learning and Generalization Dynamics of Neural Networks: Neural-network research links learning stability to training dynamics, initialization, signal variance, and loss-landscape geometry.

3. Theoretical Analysis of the Optimal Prediction

The analysis decomposes prediction error into manifold-parallel and ambient-perpendicular contributions, linking their relative importance to intrinsic and ambient dimensions. Under a k-parameterized target, this yields distinct optimal regimes: v-prediction for dense data, x-prediction for sparse high-dimensional data, and intermediate targets otherwise.

  • Generalized prediction formulation: The generalized diffusion process models noisy input z and target u using process parameters α, σ, φ, and ψ, with x- and v-prediction as special cases.For flow matching, v-prediction uses φ = 1 and ψ = −1, while x-prediction uses φ = 1 and ψ = 0.
  • Learning dynamics: The linear model’s learning dynamics separate into parallel and perpendicular modes relative to the data manifold.The parallel mode reflects data recovery, whereas the perpendicular mode is dominated by noise elimination in the ambient space.
  • Optimal loss decomposition: The optimal loss contains an intra-manifold term proportional to d and an ambient residual term proportional to D − d.The two contributions impose different requirements on the target parameters, with the ambient term independent of α and φ.
  • Dimensional regimes: When D ≈ d, the intra-manifold contribution dominates, whereas D ≫ d makes the ambient contribution primary and ψ = 0 removes it.Because ψ = 0 corresponds to x-prediction, x-prediction leaves only the intra-manifold contribution in the loss.
  • k-parameterized target: The k-parameterization defines a continuous target family, recovering ε-, v-, and x-prediction at k = 0, 0.5, and 1, respectively.Theorem 3.2 analyzes this family under flow matching with uniform t and unit loss weighting, deriving its optimum as a function of d and D.
  • Theoretical regimes: The theory predicts k* ≈ 0.5 for dense data, k* → 1 for high-dimensional sparse data, and 0.5 < k* < 1 for intermediate regimes.Thus, general data distributions need not have ε-, v-, or x-prediction as the exact optimum.

4. Learnable Diffusion Prediction Target

k-Diff learns the prediction target directly by making the target parameter k trainable, avoiding explicit intrinsic-dimension estimation. The framework supports constant or time-dependent targets and integrates into diffusion pipelines with minimal overhead.

  • Learnable Target: k-Diff parameterizes k as a sigmoid-transformed trainable scalar optimized jointly with network weights by standard backpropagation.This formulation enables data-driven target selection without explicitly estimating intrinsic dimension.
  • Learnable Target: The generalized target balances noise elimination and data recovery through the learnable parameter k.
  • Target Parameterization: A time-dependent k(t) can be represented with piecewise-linear interpolation across learnable sigmoid-transformed bin endpoints.The interval [0, 1] is partitioned into N bins, such as N = 128.
  • Practical Integration: k-Diff is evaluated in latent- and pixel-space diffusion and is designed to eliminate manual hyperparameter tuning across data domains.The method is described as orthogonal to existing diffusion enhancements and integrable into existing pipelines.
  • Implementation: The training and sampling procedures include denominator clamping to a minimum value of 0.05 for numerical stability.

5. Experiments

Experiments evaluate k-Diff across latent- and pixel-space ImageNet generation at 256×256 and 512×512 resolutions. The learned target adapts differently across representations while maintaining strong convergence and generation quality.

  • Experimental Setup: Experiments cover ImageNet at 256×256 and 512×512 using LightningDiT-XL/1 for latent space and JiT architectures for pixel space.ImageNet-512 evaluation uses JiT-B/32 in pixel space.
  • Latent Space Diffusion: The latent-space model reaches a minimum FID of 1.22 at epoch 384, followed by a final FID of 1.34 after 800 epochs.The later degradation is associated with an overfitting trend during extended training.
  • Latent Space Diffusion: In latent space, k increases from 0.5 to a steady-state value of 0.66, while constant k performs optimally over the tested time-dependent formulation.A 128-bin time-dependent parameterization provides no further improvement.
  • Latent Space Diffusion: The latent-space samples show structural integrity and fine-grained textures across biological and architectural ImageNet classes.The reported learned target is k = 0.66.
  • Pixel Space Diffusion: After 200 epochs, k-Diff and x-prediction both reach FID=4.70 in pixel-space ImageNet-256 generation.The learnable target converges near k = 1.0, corresponding to x-prediction, in fewer than 30 epochs.
  • Benchmark Results: Across ImageNet-256 and ImageNet-512 benchmarks, k-Diff consistently matches or outperforms fixed-target approaches.The comparisons span latent-space and high-resolution pixel-space generation.

6. Conclusion

The paper links the optimal prediction target to intrinsic and ambient dimensionality and introduces k-Diff to learn that target from data. Experiments show that this adaptive approach matches or exceeds manually tuned baselines across latent and pixel spaces.

  • Conclusion: The theoretical analysis identifies intrinsic and ambient dimensions as governing factors in diffusion training efficiency.The derived relationship is k∗ = D/(D + d).
  • Conclusion: k-Diff learns the optimal prediction target through backpropagation using one additional learnable scalar, bypassing explicit dimension estimation.
  • Conclusion: Experiments across latent and pixel spaces show that k-Diff matches or exceeds manually tuned baselines while adding negligible computational and parameter overhead.The framework is presented as an automated approach for scaling generative models to novel domains.

Impact Statement

The impact statement frames k-Diff as a principled method for learning diffusion prediction targets and improving the efficiency and fidelity of generative image synthesis. The supplied technical passages describe how target losses are related across parameterizations.

  • Impact Statement: The paper presents k-Diff as a method intended to improve training efficiency and fidelity while reducing manual hyperparameter tuning for image synthesis.
  • Impact Statement: The impact statement acknowledges that improvements in generative modeling can be dual-use.
  • Prediction Targets: The generalized target framework relates arbitrary linear combinations of data and noise to corresponding prediction losses.
  • Prediction Targets: The loss relationship is used to recover specific ε-, v-, and x-loss formulations as examples of the generalized parameterization.

B. Derivation of the Learning Dynamics in Eq. 9

The derivation obtains learning dynamics for the weight matrix by differentiating the MSE objective and decomposing the dynamics into projected modes under the model assumptions.

  • The learning dynamics for W are derived from the gradient-descent update associated with the MSE loss.
  • Independence of x and n, zero-mean noise, the data projection, and white-noise assumptions simplify the expectation terms.
  • The resulting projected equations reproduce the learning dynamics stated in Eq. 9.
  • Multiplication by PP^⊤ and I−PP^⊤ separates the dynamics into components aligned with and orthogonal to the data subspace.

C. Derivation of the Optimal Loss ∆∗in Theorem 3.1

The optimal loss is obtained by solving the equilibrium conditions for the projected weight modes and substituting the resulting optimum into the MSE expression.

  • The optimal parallel and orthogonal weight modes are determined by setting their time derivatives in Eq. 9 to zero.
  • Substituting the optimal weights into the MSE objective yields the expression for the optimal loss.
  • Dummy variables are introduced to avoid symbolic ambiguity in the optimal-loss derivation.
  • The resulting expression is identified as Eq. 12.
  • For α=t, σ=1−t, φ=k, and ψ=−(1−k), the optimal loss simplifies for constant k in [0,1].
  • Using the original MSE loss sets κ=1 and gives the condition stated in Eq. 14.

E. Ablation Study

The ablation study compares constant and time-dependent parameterizations of k and one versus two trainable coefficients, finding that the single constant parameter performs best among these variants.

  • Number of independent parameters: 2.04 FID for two independent parameters is nearly identical to 2.05 for single-parameter k-Diff.
  • Number of independent parameters: The similar FID values indicate that a single interpolation constant captures the data–noise relationship without significant generative benefit from an extra parameter.
  • Constant vs. Time-Dependent k: 2.17 FID for time-dependent k(t) is worse than the 2.05 FID of constant k-Diff.
  • Constant vs. Time-Dependent k: The learned k(t) decreases from 0.56 near t≈0 toward approximately 0.3 as t approaches 1.
  • Table 3 reports 64-epoch LightningDiT-XL/1 experiments on ImageNet 256×256 in latent space.
  • Constant vs. Time-Dependent k: The time-dependent parameter remains near its initial 0.5 at t∈{0,1}, where logit-normal sampling density vanishes and gradients are insufficient.

F. Implementation Details

The experiments use specified solver, sampling-step, and classifier-free-guidance settings for latent- and pixel-space diffusion, with additional hyperparameters listed in Table 4.

  • Latent diffusion: Latent diffusion uses the Heun solver with 50 sampling steps, NFE=99, and CFG scale 1.5.
  • Pixel-space diffusion: Pixel-space diffusion follows JiT's training and inference protocol with Heun sampling, 50 steps, and CFG scale 2.9.
  • Table 4 provides a comprehensive summary of the architectural and sampling hyperparameters.

G. Generalization to Colored Data in Ambient Space

The framework extends k-Diff from whitened low-dimensional data to colored data in the full ambient space by analyzing covariance eigenmodes. Each mode can favor a different prediction target depending on its eigenvalue and signal-to-noise ratio.

  • Ambient-space generalization: The generalized setting uses a symmetric positive semi-definite covariance matrix Σ in the ambient space, with whitened low-dimensional data as the special case Σ = PP^T.The special case satisfies Tr Σ = d, matching the main-text result.
  • Mode-wise analysis: Because Σ decomposes into orthogonal eigenmodes, the learning dynamics, equilibrium weights, and optimal loss can be analyzed separately for each eigenvalue λ_i.The framework derives mode-specific dynamics and final optimal quantities before reconstructing the full weight matrix and loss.
  • Prediction-target regimes: The optimal prediction target is obtained from the derived mode-dependent expression, so target selection can vary across covariance modes.The loss decomposition explicitly allows different modes to have different optimal predictions.
  • Prediction-target regimes: For large λ_i and high SNR, the φ contribution dominates and ε-prediction is optimal, whereas small λ_i favors ψ and x-prediction.The large-eigenvalue regime is characterized by λ_i ≫ 1, while the small-eigenvalue regime is characterized by λ_i ≪ 1.
Loading 2601.21419v2…