TL;DR
Bidirectional Consistency Models (BCM) unify image generation and inversion into a single, efficient framework by learning to traverse the probability flow ODE in both directions. This enables high-quality one-step generation and precise image editing with significantly fewer computational steps than traditional diffusion models.
What Problem Does This Paper Address?
Diffusion models (DMs) are the current state-of-the-art for image generation, but they are notoriously slow because they require hundreds of iterative steps to produce a single image. Consistency Models (CMs) were recently introduced to solve this by learning to map noise directly to an image in one or two steps.
However, CMs have a major drawback: they are "one-way streets." While they are great at turning noise into images (generation), they lack an efficient way to turn a real image back into its corresponding noise (inversion). Inversion is a critical step for downstream tasks like image editing, interpolation, and restoration. Traditional DMs can perform inversion by solving an Ordinary Differential Equation (ODE) backward, but this brings back the original problem of slow, iterative computation.
Methods
The authors introduce the Bidirectional Consistency Model (BCM), which learns a single neural network $f_\theta(x_t, t, u) \approx x_u$ capable of mapping between any two points $t$ and $u$ along a trajectory.
Key technical contributions include:
- Bidirectional Consistency Training (BCT): A novel training objective that enforces consistency across the entire trajectory. It combines a standard consistency loss (mapping to time 0) with a "soft trajectory constraint" that ensures the model can accurately move both forward (denoising) and backward (adding noise).
- Unified Architecture: BCM expands on existing CM architectures by adding a target time $u$ as an input, allowing the model to navigate the probability flow ODE without time-order restrictions.
- Zigzag Sampling: A new sampling scheme that leverages BCM's ability to move backward. By adding a small amount of noise and then re-denoising, the model can refine image quality while maintaining the original content.
- Scalable Fine-tuning: BCM can be initialized from pre-trained consistency models, significantly reducing training costs and allowing it to inherit the high-quality generation capabilities of existing models.
Datasets
The model was trained and evaluated on several standard image benchmarks:
- CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes.
- ImageNet-64: A 64x64 downsampled version of the massive ImageNet dataset.
- FFHQ (64x64): A high-quality dataset of human faces.
- LSUN Bedroom (256x256): A large-scale dataset of indoor bedroom scenes.
Key Insights and Ideas
- Bidirectionality as a Bijection: The core "aha moment" is that points along the same trajectory should map to each other regardless of time order. By enforcing this bijection, the model learns a much richer representation of the data manifold.
- Regularization through Inversion: Interestingly, fine-tuning a model with the BCM objective actually improves its generation performance compared to the original consistency model. The authors suggest the bidirectional constraint acts as a form of regularization that aids optimization.
- Noise Injection Matters: For tasks like interpolating between two real images, the authors found it crucial to inject different initial noises for each image to avoid sub-optimal results in the latent space.
Key Results
- High-Speed Generation: On CIFAR-10, BCM-deep achieves an impressive FID (Fréchet Inception Distance) of 2.07 in just 4 steps, rivaling the quality of diffusion models that take 35+ steps.
- Efficient Inversion: BCM achieves significantly lower reconstruction error (MSE) than standard ODE-based baselines (like DDIM) while using far fewer function evaluations (NFEs).
- Versatile Applications: The model demonstrates superior performance in downstream tasks. For example, it can interpolate between two real images smoothly, a task that is difficult for standard CMs.
Limitations and Future Work
- Performance Plateau: Like other consistency models, BCM's performance gains tend to plateau quickly. Increasing the number of steps beyond 4-8 does not currently yield significant improvements in image quality.
- Imperfect Inversion: While efficient, the inversion process isn't mathematically exact and can occasionally introduce minor artifacts or slight shifts in image content.
- Future Directions: The authors suggest exploring more accurate inversion techniques and designing better sampling strategies during training to ensure more uniform coverage of the entire ODE trajectory.
Summary updated