Hierarchical Koopman Diffusion: Fast Generation with Interpretable Diffusion Trajectory

Hanru Bai, Weiyang Ding, Difan Zou

TL;DR

Hierarchical Koopman Diffusion (HKD) bridges the gap between ultra-fast one-step image generation and the interpretability of iterative diffusion models. By lifting nonlinear diffusion dynamics into a latent space governed by linear operators, HKD enables exact closed-form trajectory solutions for one-step sampling while maintaining precise control over intermediate generative states.

What Problem Does This Paper Address?

Standard diffusion models generate breathtaking images but are notoriously slow because they require iterating through dozens or hundreds of denoising steps. To fix this, recent "one-step" methods (like consistency models or diffusion distillation) bypass the iterations to map noise directly to a clean image.

However, this speedup comes at a cost: it turns the generative process into a black box. By eliminating the step-by-step trajectory, users lose the ability to inspect intermediate states or intervene during generation—capabilities that are vital for downstream applications like fine-grained image editing and controllable synthesis. HKD addresses this dichotomy, providing a framework that is both single-step fast and fully interpretable.

Methods

The core innovation of this paper is the integration of Koopman Operator Theory into diffusion models. Koopman theory states that a complex, nonlinear dynamical system can be mapped (or "lifted") into a different feature space where its time evolution becomes perfectly linear.

The authors introduce Hierarchical Koopman Diffusion (HKD), which consists of three main parts:

  1. Hierarchical Encoder ($\mathcal{E}_\theta$): A U-Net style encoder extracts multi-scale features from a noisy image at any time $t$, capturing scale-specific dynamics.
  2. Koopman Subspaces: Instead of a massive, intractable global matrix, the local dynamics at each spatial location and scale are modeled using a block-diagonal linear operator $A^{(l)}(i,j)$. Because the dynamics in this latent space are linear, the trajectory can be solved analytically in closed form using a matrix exponential: $z_t = e^{A(t-s)}z_s$.
  3. Uniform Decoder ($\mathcal{D}_\phi$): Maps the analytically evolved latent features back into the final image space.

To train the network, the authors introduce a Trajectory Consistency Loss. Unlike standard one-step models that only supervise the final output, this loss enforces that any intermediate state along the analytical Koopman path decodes into an image that matches the true diffusion ordinary differential equation (ODE) trajectory.

Figure 1: The framework of the proposed method. The HKD model first hierarchically extracts different-level features from the given noisy image at any time t by encoder E. Secondly, the Koopman dynamics model is applied for each level to the skips and the bottleneck. Last, a uniform decoder D performs the mapping from the Koopman spaces back to the image space.

Datasets

The authors evaluated their approach on two standard image synthesis benchmarks:

  • CIFAR-10: $32 \times 32$ pixel images across 10 distinct classes, evaluated on both unconditional and class-conditional generation.
  • FFHQ: $64 \times 64$ pixel human face images, providing a structurally complex dataset to test multi-scale feature modeling.

Key Insights and Ideas

  • Linearizing the Trajectory: By forcing the latent space to obey linear dynamics, the entire generation path is mathematically unlocked. You can jump from pure noise ($t=T$) to a clean image ($t=0$) in a single step, or stop at any arbitrary intermediate time step without running iterative loops.
  • Semantic Hierarchy via Spectral Analysis: Because the Koopman operators are linear, they can be decomposed into eigenvalues and eigenvectors. The authors discovered a striking quantitative correspondence between spectral components and image attributes: low-frequency modes govern global structure, mid-frequency modes capture shape and pose, and high-frequency modes handle fine textures.
  • Expressivity Guarantee: The paper provides a formal theoretical proof showing that their Koopman formulation is provably more expressive than trying to directly learn a black-box noise-to-image mapping using standard neural networks of equivalent size.
Figure 4: Visualization of Spectral Contributions in Generated Images Across Koopman Modes. (a) visualizes the contribution of Koopman spectrum with the smallest real-part magnitudes to the reconstructed state over time. It corresponds to the noisy part of the image. (b), (c) and (d) illustrate progressively larger spectral components and their reconstructed image components.

Key Results

  • Competitive One-Step Quality: On CIFAR-10, HKD achieves a one-step Fréchet Inception Distance (FID) of 3.30, outperforming classical distillation methods like Progressive Distillation (8.34) and matching or beating several consistency baselines.
  • FFHQ Performance: On FFHQ $64\times64$, HKD achieves a single-step FID of 5.70, outperforming Easy Consistency Models (ECM), which score 5.99.
  • Downstream Controllability: The explicit trajectory allows for frequency-aware image editing. By injecting high-frequency features from a reference face into the intermediate Koopman trajectory of a generated face, the model can seamlessly alter fine details (like facial hair or expression) without disrupting the global geometry.
Table 1: Sample quality on CIFAR-10 dataset.

Limitations and Future Work

  • Resolution Scaling: The current evaluation is limited to lower-resolution datasets ($32\times32$ and $64\times64$). While the hierarchical architecture is designed to handle multi-scale structures, its efficacy on high-resolution images (e.g., $1024\times1024$) remains an open question.
  • Advanced Training Objectives: The model is trained with standard MSE and LPIPS losses without adversarial training or heavy hyperparameter tuning. Integrating adversarial losses could further push generation quality.
  • Broader Control Modalities: While spectral manipulation works well, extending HKD to support text-guided editing or discrete attribute-specific controls is a promising area for future research.

Summary updated

BibTeX
@inproceedings{bai2025hierarchical,
  author = {Hanru Bai and Weiyang Ding and Difan Zou},
  title = {{Hierarchical Koopman Diffusion: Fast Generation with Interpretable Diffusion Trajectory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=X8C20fJXtx},
}
Figure