EGC: Image Generation and Classification via a Diffusion Energy-Based Model

Abstract

Learning image classification and image generation using the same set of network parameters presents a formidable challenge. Recent advanced approaches perform well in one task often exhibit poor performance in the other. This work introduces an energy-based classifier and generator, namely EGC, which can achieve superior performance in both tasks using a single neural network. Unlike conventional classifiers that produce a label given an image (i.e., a conditional distribution p(y|x)), the forward pass in EGC is a classification model that yields a joint distribution p(x,y), enabling a diffusion model in its backward pass by marginalizing out the label y to estimate the score function. Furthermore, EGC can be adapted for unsupervised learning by considering the label as latent variables. EGC achieves competitive generation results compared with state-of-the-art approaches on ImageNet-1k, CelebA-HQ and LSUN Church, while achieving superior classification accuracy and robustness against adversarial attacks on CIFAR-10. This work marks the inaugural success in mastering both domains using a unified network parameter set. We believe that EGC bridges the gap between discriminative and generative learning.

Cite

Text

Guo et al. "EGC: Image Generation and Classification via a Diffusion Energy-Based Model." International Conference on Computer Vision, 2023. doi:10.1109/ICCV51070.2023.02098

Markdown

[Guo et al. "EGC: Image Generation and Classification via a Diffusion Energy-Based Model." International Conference on Computer Vision, 2023.](https://mlanthology.org/iccv/2023/guo2023iccv-egc/) doi:10.1109/ICCV51070.2023.02098

BibTeX

@inproceedings{guo2023iccv-egc,
  title     = {{EGC: Image Generation and Classification via a Diffusion Energy-Based Model}},
  author    = {Guo, Qiushan and Ma, Chuofan and Jiang, Yi and Yuan, Zehuan and Yu, Yizhou and Luo, Ping},
  booktitle = {International Conference on Computer Vision},
  year      = {2023},
  pages     = {22952-22962},
  doi       = {10.1109/ICCV51070.2023.02098},
  url       = {https://mlanthology.org/iccv/2023/guo2023iccv-egc/}
}