TL;DR
TrajP-L is a lightweight, learnable plugin that drastically speeds up diffusion models by correcting their sampling trajectories using a 3D geometric prior. By combining Low-Rank Adaptation (LoRA) with a novel trajectory correction module, it enables high-quality image synthesis in as few as two steps, requiring only a fraction of the training data and time compared to traditional distillation methods.
What Problem Does This Paper Address?
Diffusion models (DMs) are the current gold standard for image generation, but they have a "speed limit." To turn random noise into a crisp image, they typically require hundreds of iterative denoising steps. While "distillation"—training a smaller student model to mimic a complex teacher model—can reduce these steps, it usually comes with a high price tag: you often need massive datasets (over 200,000 teacher trajectories) and significant GPU time.
Furthermore, when you try to generate an image in very few steps (low "Number of Function Evaluations" or NFE), "discretization errors" accumulate. The model essentially takes "giant leaps" that miss the intended path, resulting in blurry or distorted images. TrajP-L aims to fix these "leaps" without the massive overhead of traditional distillation.
Methods
The authors introduce two main components that work in synergy:
- 3D Trajectory Fitting: The researchers observed that the sampling paths of diffusion models are remarkably similar across different images. They found that these paths can be effectively represented in a 3D space using the first three principal components (PCs). They fit these PCs using a combination of mathematical functions: quadratic polynomials, exponential terms, and Gamma functions. This creates a mathematical "ideal path" (a prior) that the model can reference.
- The TrajP-L Plugin:
- LoRA (Low-Rank Adaptation): Instead of retraining the entire diffusion model, they use LoRA to update only a tiny fraction (less than 5%) of the parameters. This keeps the original model weights intact and makes training incredibly fast.
- TrajP Module: This is a correction unit. During sampling, it looks at the current denoising direction and historical directions. It performs an "implicit PCA" via convolution and uses the 3D trajectory prior to "nudge" the student model back onto the correct path.
Datasets
The authors evaluated TrajP-L across a variety of resolutions and domains:
- Pixel Space: CIFAR-10 (32x32), FFHQ (64x64), and ImageNet (64x64).
- Latent Space: LSUN-Bedroom (256x256) and MS-COCO (512x512) using the Stable Diffusion v1.5 checkpoint.
Key Insights and Ideas
- The Geometry of Denoising: The most striking "aha moment" is that the complex process of image generation can be boiled down to a 3D trajectory. This geometric simplicity allows the model to "know" where it should be going even when it's taking very few steps.
- Extreme Data Efficiency: Unlike previous methods that required 200k trajectories, TrajP-L achieves state-of-the-art results with just 3k to 7k trajectories.
- Speedy Training: Because it uses LoRA and a small dataset, the model can be fine-tuned in about 10 minutes on a single consumer-grade GPU (NVIDIA RTX 3090).
- Direction over Destination: Instead of just trying to predict the final image, TrajP-L focuses on correcting the direction of each step, which effectively mitigates the accumulation of errors over time.
Key Results
- CIFAR-10: At just 2 sampling steps (NFE=2), TrajP-L improved the FID score (a measure of image quality where lower is better) from a blurry 169.50 (standard DDIM) to a sharp 5.02.
- Stable Diffusion: On the MS-COCO dataset, TrajP-L outperformed other popular acceleration methods (like AMED-Solver), achieving an FID of 17.91 at 8 steps compared to the baseline's 21.59.
- Parameter Efficiency: The plugin introduces virtually no additional computational overhead during the actual image generation process while reducing trainable parameters by over 95% during distillation.
Limitations and Future Work
- Trajectory Saturation: The authors noted that while more training trajectories generally help, there is a threshold (around 5k-7k) where performance plateaus or even slightly degrades, suggesting a risk of overfitting to the teacher's specific "style" of movement.
- Teacher Dependency: The quality of the student is strictly capped by the quality of the teacher's trajectories. If the teacher model has inherent biases or flaws in its 1000-step path, the student will likely inherit them.
- Future Directions: The paper suggests that this "trajectory-aware" approach could be extended to other generative tasks, such as video or 3D generation, where sampling speed is an even greater bottleneck.
Summary updated