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

Discover the Unknown Biased Attribute of an Image Classifier

Zhiheng Li, Chenliang XuICCV 2021

Abstract

Recent works find that AI algorithms learn biases from data. Therefore, it is urgent and vital to identify biases in AI algorithms. However, the previous bias identification pipeline overly relies on human experts to conjecture potential biases (e.g., gender), which may neglect other underlying biases not realized by humans. To help human experts better find the AI algorithms’ biases, we study a new problem in this work – for a classifier that predicts a target attribute of the input image, discover its unknown biased attribute. To solve this challenging problem, we use a hyperplane in the generative model’s latent space to represent an image attribute; thus, the original problem is transformed to optimizing the hyperplane’s normal vector and offset. We propose a novel total-variation loss within this framework as the objective function and a new orthogonalization penalty as a constraint. The latter prevents trivial solutions in which the discovered biased attribute is identical with the target or one of the known-biased attributes. Extensive experiments on both disentanglement datasets and real-world datasets show that our method can discover biased attributes and achieve better disentanglement w.r.t. target attributes. Furthermore, the qualitative results show that our method can discover unnoticeable biased attributes for various object and scene classifiers, proving our method’s generalizability for detecting biased attributes in diverse domains of images.

Introduction

AI models are notorious for picking up on "spurious correlations." For example, a model trained to identify "dogs" might actually be looking for "grass" because most training photos of dogs are taken outdoors. Traditionally, identifying these biases requires human experts to guess what might be wrong (e.g., "Is it biased by gender? By age?"). This manual approach has two major flaws: human blindness to non-obvious biases and the high cost of manually labeling new test sets for every potential bias.

Comparison between the previous human-led bias identification pipeline and the proposed automated framework.

This paper introduces a way to automatically discover these biased attributes without needing humans to guess them beforehand or provide manual labels. The core idea is to use the "imagination" of a generative model to probe the "logic" of a classifier by synthesizing counterfactual images.

Methodology

The authors propose a framework that uses a Generative Model (like a GAN or VAE) as a probe. In these models, specific image attributes often correspond to directions (hyperplanes) in the latent space. The framework optimizes a "biased attribute hyperplane" to find a direction that, when traversed, causes the target image classifier to significantly change its predictions.

The technical framework: optimizing a hyperplane in the latent space of a generative model to maximize classifier variation while maintaining orthogonality to known attributes.

The optimization is guided by two primary components:

  1. Total Variation Loss ($L_V$): This objective rewards directions that maximize the change in the classifier's output. If moving along a vector turns a high-confidence prediction into a low-confidence one, that vector likely represents a biased attribute.
  2. Orthogonalization Penalty ($L_\perp$): To prevent the system from simply rediscovering the target attribute, this constraint forces the discovered vector to be perpendicular to the target attribute and any other known attributes.

Once the vector is found, the system generates a "traversal"—a sequence of images showing the attribute changing—allowing a human to easily interpret and name the discovered bias.

Experimental Results

The method was evaluated across diverse domains, including disentanglement benchmarks (SmallNORB, dSprites), face datasets (CelebA, FFHQ), and general object/scene categories (LSUN).

Key findings include:

  • Quantitative Success: On the SmallNORB dataset, the proposed method achieved a significantly higher $\Delta \cos$ metric compared to baselines like the Hessian Penalty, indicating better identification of true biases.
  • Real-World Bias Discovery: In a gender classifier trained on face images, the method automatically discovered that "pose" (head angle) was a major biased attribute—a correlation that might not be immediately obvious to a human auditor.
  • Domain Generalizability: The method successfully found non-obvious biases in other areas, such as "shade of fur color" for cat classifiers, "layout" for conference rooms, and "number of beds" for bedroom classifiers.

Conclusion

By leveraging the latent space of generative models, this research moves beyond the limitations of human-led bias auditing. While the method is dependent on the generative model's ability to synthesize specific features, it provides a powerful tool for uncovering "unknown unknowns" in AI bias. Future work will explore multi-attribute discovery and application to more complex tasks like object detection.

Summary updated

BibTeX
@inproceedings{li2021discover,
  author = {Zhiheng Li and Chenliang Xu},
  title = {{Discover the Unknown Biased Attribute of an Image Classifier}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=CH3aoTIv31-},
}
Figure