Generative Max-Mahalanobis Classifiers for Image Classification, Generation and More

Abstract

Joint Energy-based Model (JEM) of Grathwohl et al. shows that a standard softmax classifier can be reinterpreted as an energy-based model (EBM) for the joint distribution p(x,y); the resulting model can be optimized to improve calibration, robustness, and out-of-distribution detection, while generating samples rivaling the quality of recent GAN-based approaches. However, the softmax classifier that JEM exploits is inherently discriminative and its latent feature space is not well formulated as probabilistic distributions, which may hinder its potential for image generation and incur training instability. We hypothesize that generative classifiers, such as Linear Discriminant Analysis (LDA), might be more suitable for image generation since generative classifiers model the data generation process explicitly. This paper therefore investigates an LDA classifier for image classification and generation. In particular, the Max-Mahalanobis Classifier (MMC), a special case of LDA, fits our goal very well. We show that our Generative MMC (GMMC) can be trained discriminatively, generatively, or jointly for image classification and generation. Extensive experiments on multiple datasets show that GMMC achieves state-of-the-art discriminative and generative performances, while outperforming JEM in calibration, adversarial robustness, and out-of-distribution detection by a significant margin. Our source code is available at https://github.com/sndnyang/GMMC.

Cite

Text

Yang et al. "Generative Max-Mahalanobis Classifiers for Image Classification, Generation and More." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2021. doi:10.1007/978-3-030-86520-7_5

Markdown

[Yang et al. "Generative Max-Mahalanobis Classifiers for Image Classification, Generation and More." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2021.](https://mlanthology.org/ecmlpkdd/2021/yang2021ecmlpkdd-generative/) doi:10.1007/978-3-030-86520-7_5

BibTeX

@inproceedings{yang2021ecmlpkdd-generative,
  title     = {{Generative Max-Mahalanobis Classifiers for Image Classification, Generation and More}},
  author    = {Yang, Xiulong and Ye, Hui and Ye, Yang and Li, Xiang and Ji, Shihao},
  booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
  year      = {2021},
  pages     = {67-83},
  doi       = {10.1007/978-3-030-86520-7_5},
  url       = {https://mlanthology.org/ecmlpkdd/2021/yang2021ecmlpkdd-generative/}
}