Accelerating Image Generation with Sub-path Linear Approximation Model

Chen Xu, Tianhui Song, Weixin Feng, Xubin Li, Tiezheng Ge, Bo Zheng, Limin Wang

Introduction

Diffusion models have become the cornerstone of high-fidelity image generation. However, their iterative nature—often requiring hundreds of denoising steps—presents a significant computational bottleneck. While Consistency Models (CM) were developed to map noise directly to data in fewer steps, they frequently suffer from cumulative approximation errors. When these models attempt to skip large segments of the generation trajectory, the non-linear nature of the probability flow leads to a performance gap, resulting in blurry or low-quality outputs.

The Probability Flow ODE trajectory from data to noise, illustrating the non-linear path that accelerated models must approximate.

The Sub-Path Linear Approximation Model (SPLAM) addresses this challenge by treating the complex trajectory of diffusion models as a sequence of linear sub-paths. This approach allows for high-quality image synthesis in as few as 2 to 4 steps, significantly reducing both inference time and training costs.

Methodology: Sub-Path Linear ODE

The fundamental innovation of SPLAM is the Sub-Path Linear (SL) ODE. Rather than attempting to bridge the entire gap from noise to data in a single jump, SPLAM approximates the trajectory between two points as a linear interpolation.

Overview of the SPLAM framework, detailing the sub-path linear approximation and the decomposition of the model's drift effect.

Key Technical Components

  • Sub-Path Decomposition: The learning objective is decomposed into the incremental "drift" of the model and the "denoising contribution" from previous steps. This separation simplifies the optimization task.
  • Continuous Estimation: By employing linear interpolation between sub-path endpoints, SPLAM provides a progressive estimation of the trajectory. This creates a smoother optimization landscape compared to the discrete jumps used in standard Consistency Models.
  • Multiple Estimation Strategy: During distillation from a teacher model (e.g., Stable Diffusion), SPLAM utilizes multiple internal steps from the teacher to generate more accurate targets for the student model.
  • $γ$-Conditioned Training: A new parameter, $γ$, represents the relative position along a sub-path. This allows the model to learn the entire transition dynamics rather than just the endpoints, enhancing robustness.

Experimental Evaluation

The researchers evaluated SPLAM on several benchmarks, including LAION-Aesthetics-6+ for training and MS COCO (2014 and 2017 subsets) for zero-shot generalization and comparative evaluation.

Performance and Efficiency

SPLAM demonstrates state-of-the-art performance in few-step generation. On the MS COCO 2014 benchmark, it achieved a Fréchet Inception Distance (FID) of 10.06 in just 4 steps, outperforming Latent Consistency Models (FID 10.68) and specialized GAN-based methods like DMD (FID 11.49). Remarkably, even with only 2 steps, SPLAM maintains a competitive FID of 12.31.

Beyond image quality, SPLAM is exceptionally efficient to train. It requires only 6 A100 GPU days, a fraction of the resources needed for competing methods like DMD, which can exceed 100 GPU days. This efficiency lowers the barrier to entry for high-performance diffusion acceleration.

Key Insights

  • Linearity as a Prior: Approximating the complex probability flow as a series of linear segments provides a powerful and stable training prior.
  • Robustness to Large Skips: The linear approximation allows SPLAM to handle significantly larger "skipping step sizes" ($k=100$) during training, leading to faster convergence (within 2,000 to 6,000 iterations).
  • Visual Fidelity: Qualitative analysis shows that SPLAM preserves fine details—such as fur textures and architectural features—that are often lost or smoothed over by other accelerated models at low step counts.

Limitations and Future Work

While SPLAM offers significant improvements, it faces some common challenges in distilled models. High guidance scales used to improve prompt alignment can occasionally lead to color oversaturation. Additionally, as a distillation method, its performance is inherently tied to the quality of the pre-trained teacher model. Future research may explore extending the Sub-Path Linear approach to more complex domains like video and audio generation.

Summary updated

BibTeX
@inproceedings{xu2024accelerating,
  author = {Chen Xu and Tianhui Song and Weixin Feng and Xubin Li and Tiezheng Ge and Bo Zheng and Limin Wang},
  title = {{Accelerating Image Generation with Sub-path Linear Approximation Model}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73668-1\_19},
}
Figure