Enhancing Consistency-Based Image Generation via Adversarialy-Trained Classification and Energy-Based Discrimination

Shelly Golan, Roy Ganz, Michael Elad

Abstract

Consistency Models (CMs) offer a high-speed alternative to traditional diffusion models, enabling image generation in just one or two steps. However, this speed often comes at the cost of perceptual quality. This paper proposes a novel post-processing refinement technique using a joint classifier-discriminator. By leveraging adversarial training to produce perceptually aligned gradients, the method "nudges" generated images toward the real data manifold. Experimental results on ImageNet demonstrate significant improvements in visual fidelity, with FID scores reduced by up to 27.48% with minimal computational overhead.

Introduction

Diffusion models have set new standards in image synthesis but suffer from slow inference times due to their iterative nature. Consistency Models (CMs) address this by mapping noise directly to data in a few steps. Despite their efficiency, CMs frequently exhibit a "speed-quality trade-off," resulting in higher Fréchet Inception Distance (FID) scores and lower perceptual quality compared to multi-step diffusion ancestors.

Existing attempts to bridge this gap often involve complex GAN-based training, which can be unstable and computationally demanding. This work introduces a plug-and-play refinement stage that enhances generated images without requiring a full retraining of the generative model, offering a flexible solution to improve the output of any consistency-based generator.

Methodology

The proposed refinement approach utilizes a joint model that functions as both a classifier and an Energy-Based Model (EBM).

Joint Classifier-Discriminator

The core of the method is a ResNet-50 backbone trained to simultaneously perform label classification and "realness" scoring. By interpreting the magnitude of class logits as a proxy for energy, the model avoids the complexities typically associated with traditional EBM training.

Adversarial Training and Perceptually Aligned Gradients (PAG)

Standard classifiers are prone to adversarial noise, leading to uninterpretable gradients. By employing adversarial training, the authors ensure the model is robust. This robustness "unlocks" Perceptually Aligned Gradients (PAG), where gradient-based updates correspond to meaningful visual improvements—such as sharpening textures or refining edges—rather than introducing high-frequency artifacts.

Inference-Time Refinement

During the generation process, the initial output from the CM is iteratively refined using Projected Gradient Descent (PGD) or Stochastic Gradient Langevin Dynamics (SGLD). Guided by the joint model, the image is adjusted to maximize its alignment with the target class and its overall "realness" score. An image-dependent early-stopping mechanism is employed to prevent over-processing high-quality initial samples.

Experimental Results

The method was primarily evaluated on ImageNet 64x64, with additional tests on 128x128 and 256x256 resolutions.

Quantitative Performance

The refinement technique yielded substantial improvements across multiple metrics. On ImageNet 64x64, FID scores improved by 27.48% for Consistency Training and 20.96% for Consistency Distillation. The joint model also outperformed existing refinement techniques like BIGROC by 11.2% in FID, highlighting the efficacy of the integrated discriminator logic.

Quantitative comparison of image generation performance on ImageNet 64x64 across different boosting methods.

Efficiency and Generalization

The refinement process is highly efficient; a single PGD step takes approximately 0.02 seconds, compared to 0.55 seconds for a full CM inference step. This allows for multiple refinement iterations with negligible impact on total generation time. Furthermore, the refiner demonstrated strong generalization, successfully improving images from other architectures like BigGAN and ADM-G, even though it was primarily trained on CM outputs.

Conclusion and Future Work

This work demonstrates that adversarialy-trained joint models can significantly enhance the quality of fast generative models. By providing a computationally efficient "boost" to existing architectures, the method bridges the gap between high-speed generation and high-fidelity output.

Future research directions include:

  • Architectural Scaling: Exploring more advanced backbones beyond ResNet-50 to further improve refinement quality.
  • Dataset Diversity: Training the refiner on a broader array of generative artifacts to increase its robustness across different model families.
  • High-Resolution Synthesis: Extending the effectiveness of the refinement process to high-resolution photorealistic image generation.

Summary updated

BibTeX
@inproceedings{golan2024enhancing,
  author = {Shelly Golan and Roy Ganz and Michael Elad},
  title = {{Enhancing Consistency-Based Image Generation via Adversarialy-Trained Classification and Energy-Based Discrimination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=uBVCPAMDGk},
}
Figure