NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Deep Interpretable Features for Binary Image Classification

Robert Hu, Dino Sejdinovic

Introduction

Deep learning models, particularly Convolutional Neural Networks (CNNs), have achieved state-of-the-art performance in image classification. However, their "black box" nature limits their utility in sensitive domains like healthcare, where understanding the reasoning behind a decision is as critical as the decision itself. Conversely, simple linear models offer high interpretability but lack the capacity to handle high-dimensional raw pixel data effectively.

This paper proposes Deep Interpretable Features (DIF), a novel framework designed to bridge this gap. DIF leverages deep generative models to map images into a structured latent space where a simple linear classifier can achieve high accuracy while providing human-understandable visual explanations.

Methodology

The DIF framework is built upon a modified generative model, specifically the IntroVAE. The core innovation lies in how the latent space is organized during training to ensure both separability and interpretability.

The DIF framework maps images to a latent space where a linear classifier operates on interpretable features.

Mean Embedding (ME) Objective

To force the latent representations of different classes to be linearly separable, the authors introduce a supervised regularization term based on the Mean Embedding (ME) test. This non-parametric kernel-based statistic "pulls" the distributions of the two classes apart in the latent space.

Feature Isolation and Visualization

Once the latent space is structured, an $L^1$-regularized (Lasso) logistic regression classifier is trained. The sparsity induced by the $L^1$ penalty ensures that only a few latent dimensions—the most relevant features—are used for classification. Because the model includes a generative decoder, these specific dimensions can be "traversed" (varied incrementally) to visualize the physical traits they represent, such as facial hair or specific pathological markers in medical imaging.

Experimental Setup and Datasets

The framework was evaluated on three distinct binary classification tasks:

  1. CelebHQ: Gender classification (Male vs. Female) using high-resolution face images.
  2. COVID-19 Chest X-rays: Identifying infection (Healthy vs. COVID-19).
  3. MNIST: Distinguishing between similar digits (3 vs. 8).

Results and Discussion

The DIF framework demonstrated superior performance across multiple dimensions: predictive accuracy, generative quality, and interpretability.

Predictive Performance

Surprisingly, the simple Lasso classifier operating on DIF latent features outperformed standard CNNs on raw images for the CelebHQ and COVID-19 datasets. For instance, on CelebHQ, DIF achieved an AUC of 0.983, surpassing the CNN's 0.967.

Qualitative Interpretability

Latent traversals revealed that DIF successfully isolates meaningful visual features. Unlike baseline methods where traversals often result in entangled or noisy changes, DIF produces clean transitions that clearly highlight the features driving the classification.

Latent traversals across CelebHQ, MNIST, and COVID-19 datasets, comparing DIF against Logistic and Vanilla baselines.

Adversarial Robustness

A significant finding was the inherent robustness of the DIF framework. By imposing a strict linear structure on the latent space, the model became more resilient to adversarial attacks. Under visual adversarial tests, DIF maintained the visual characteristics of the target class at higher attack strengths compared to vanilla generative models.

Conclusion

The Deep Interpretable Features (DIF) framework offers a powerful "best of both worlds" solution for binary image classification. By combining the representational power of generative models with the interpretability of linear classifiers through supervised latent space structuring, it provides accurate, robust, and visually explainable results. Future research will further explore the link between structured latent spaces and adversarial resilience.

Note: The medical results presented for the COVID-19 dataset are for illustrative purposes within the machine learning framework and should not be used for clinical conclusions.

Summary updated

BibTeX
@inproceedings{hu2021robust,
  author = {Robert Hu and Dino Sejdinovic},
  title = {{Robust Deep Interpretable Features for Binary Image Classification}},
  booktitle = {NLDL},
  year = {2021},
  doi = {10.7557/18.5708},
}
Figure