This paper, presented as a "Tiny Paper" at ICLR 2024, offers a surprisingly simple yet effective "free lunch" for improving the performance of Consistency Models.
TL;DR
By simply rescaling two sets of internal features with constant scalars after a model has already been trained, researchers can significantly improve image quality and reduce Fréchet Inception Distance (FID) scores. This method requires zero additional training and negligible computational overhead, making it a highly practical post-processing optimization for one-step generative models.
What Problem Does This Paper Address?
Diffusion models are the current gold standard for high-quality image generation, but they are notoriously slow because they require dozens or hundreds of denoising steps. Consistency Models (CMs) were recently introduced to solve this by learning to map noise to an image in a single step.
However, there is a catch: the mathematical objective used to train these models doesn't always align perfectly with human-perceived image quality. Even after a model is fully trained, it might produce images with artifacts or lack fine detail. Traditionally, fixing this would require expensive re-training or fine-tuning. This paper asks: Can we improve a pre-trained consistency model's output by just tweaking its internal "volume knobs" without any new training?
Methods
The authors introduce a method that rescales intermediate features within the model’s U-Net architecture using two scalars, $s_0$ and $s_1$:
- $s_1$ (Embedding Scale): This scalar multiplies the output of the embedding layer. Intuitively, this regulates the intensity of the conditioning (e.g., how strongly the model follows the class label "dog").
- $s_0$ (Skip Connection Scale): This scalar multiplies the features passing through the skip connections from the encoder to the decoder. This controls how much the model reuses high-resolution structural features from the initial input.
To find the best values, the authors perform a simple grid search (typically an $11 \times 11$ grid around the default value of 1.0). They generate a small batch of images for each combination and select the pair that yields the best FID score. This process is computationally "cheap," taking only a couple of hours on a single consumer-grade GPU.
Datasets
The researchers evaluated their method on three standard benchmarks:
- ImageNet: A massive dataset for class-conditional image generation.
- LSUN-cat: A dataset focused on images of cats.
- LSUN-bedroom: A dataset focused on interior bedroom scenes.
They tested both Consistency Distillation (CD) models (distilled from pre-trained diffusion models) and Consistency Training (CT) models (trained from scratch).
Key Insights and Ideas
- The "Pug" Phenomenon: One of the most striking insights is that rescaling can "rescue" a failed generation. The authors noted instances where the original model ($s_0=1, s_1=1$) produced a blurry, unrecognizable mess, but incrementally increasing $s_1$ caused a distinct figure to emerge. This suggests that the model "knows" how to draw the object, but the internal feature scales were preventing that information from surfacing.
- Artifact Mitigation: Decreasing $s_0$ (the skip connection scale) often helps smooth out textures and remove visual artifacts. This implies that pre-trained models sometimes over-rely on noisy high-resolution features.
- Pose Control: Beyond just quality, changing these scalars can elicit different outputs from the same initial noise—such as changing the pose of an animal. This provides a new way to explore a model's latent capabilities.
- No "One Size Fits All": The optimal scalars vary by dataset. For example, ImageNet CD performed best at $s_0=0.96, s_1=1.02$, while LSUN-bedroom CD preferred $s_0=0.96, s_1=0.9$.
Key Results
The quantitative improvements were consistent across all tested datasets:
- ImageNet (CD): FID improved from 6.19 to 5.21.
- LSUN-cat (CD): FID improved from 10.88 to 9.52.
- LSUN-bedroom (CD): FID improved from 8.20 to 7.57.
- Consistency Training (CT): The gains were even more dramatic in some cases, such as ImageNet CT improving from an FID of 12.83 to 11.07.
Qualitatively, the rescaled models produced images with noticeably better clarity, more realistic features, and fewer "hallucinated" artifacts.
Limitations and Future Work
- Manual Search: While the grid search is relatively fast, it still requires manual setup and a small sampling batch.
- Global vs. Local Scaling: The current work applies a single scalar to all skip connections. The authors suggest that applying different scalars to different layers or specific time steps might yield even better results.
- Scope: The study focused on Consistency Models. Future work is needed to see if this "rescaling trick" applies to other fast-sampling frameworks like Rectified Flow or Latent Consistency Models (LCM).
Summary updated