The Spotlight: A General Method for Discovering Systematic Errors in Deep Learning Models

Greg d'Eon, Jason d'Eon, James R. Wright, Kevin Leyton-Brown

TL;DR

The "Spotlight" is a new, model-agnostic method for automatically discovering systematic errors in deep learning models without requiring pre-defined group labels (like race or gender). By searching for high-loss clusters in a model’s own internal representation space, it uncovers "unknown unknowns"—semantically meaningful failure modes that developers might never have thought to test for.

What Problem Does This Paper Address?

Deep learning models often perform well on average but fail miserably on specific subsets of data. A famous example is the "Gender Shades" study, which revealed that commercial vision models had much higher error rates for Black women.

Currently, to find these biases, researchers must manually partition their data into groups (e.g., by age, skin tone, or lighting) and check performance on each. But what if the model fails on a group you haven't thought to label? For instance, a model might struggle specifically with "side-profile views of children" or "Spanish-language reviews in an English dataset." If you don't have a label for "side-profile," you might never realize the model has a systematic weakness there. This paper addresses the challenge of discovering these hidden, unlabeled pockets of poor performance.

Methods

The authors introduce the spotlight, a method that leverages the internal "logic" of a neural network.

  1. Representation Space: The key insight is that similar inputs tend to cluster together in the final hidden layer of a trained neural network.
  2. Shining the Spotlight: Instead of looking at individual high-loss outliers (which are often just noisy or mislabeled data), the authors "shine a spotlight" on this representation space. Mathematically, this is a parameterized kernel function (a "soft" boundary) defined by a center ($\mu$) and a precision ($\tau$).
  3. Optimization: The method uses an optimization algorithm to move the spotlight around the representation space to find a contiguous region where the model’s average loss is highest, subject to a minimum "size" constraint (to ensure the spotlight doesn't just zoom in on a single weird data point).
  4. Iterative Discovery: Once one failure mode is found, the method can "down-weight" those points and run again to find the next most significant area of weakness.

Datasets

The authors demonstrated the spotlight’s versatility across several domains:

  • Computer Vision: FairFace (100k face images) and ImageNet (the standard 1,000-class object dataset).
  • NLP: Amazon Polarity (4 million sentiment reviews) and SQuAD (Stanford Question Answering Dataset).
  • Recommender Systems: MovieLens 100k (movie ratings).
  • Medical Imaging: A dataset of Chest X-rays for pneumonia detection.

Key Insights and Ideas

  • Beyond "Highest Loss": Simply looking at the images with the highest loss often results in a "diffuse set" of unrelated errors (blurry photos, mislabeled data). The spotlight, by contrast, forces the discovery of clusters, revealing semantically coherent issues like "Asian children" or "animals hidden in foliage."
  • Language Blind Spots: When run on an English sentiment analysis model, the spotlight immediately identified a cluster of Spanish-language reviews. The model consistently rated these as negative because it couldn't parse them—a failure mode that would be invisible if you only looked at English-labeled subsets.
  • Model-Agnosticism: Because it only requires the final hidden layer and the loss values, the spotlight works on almost any deep learning architecture, from ResNets to Transformers.
  • Efficiency: Unlike previous clustering-based approaches (like GEORGE), the spotlight scales linearly with the size of the dataset, making it practical for massive, real-world datasets.

Key Results

  • Quantitative: In comparisons against a naive clustering baseline (Gaussian Mixture Models), the spotlight consistently found regions with higher average loss. On the Amazon dataset, while some clusters had high loss, they were often very small; the spotlight found larger, more "systematic" areas of failure.
  • Qualitative:
    • On FairFace, it identified profile views and young children as high-error groups.
  • On ImageNet, it found "super-classes" the model struggled with, such as "people working" (where the model wasn't sure if the label should be the person or the tool they were using).
  • On MovieLens, it identified specific types of users (e.g., prolific users rating action films) where the model's uncertainty was highest.

Limitations and Future Work

  • Dependence on Embeddings: The method relies on the model having a "well-structured" representation space. If the model hasn't learned to group similar concepts together internally, the spotlight won't be able to find them.
  • Auditing vs. Fixing: Currently, the spotlight is a diagnostic tool. While the authors suggest it could be used for "adversarial training" (forcing the model to improve on the spotlighted regions during training), their initial experiments showed this is difficult to optimize and requires more research.
  • Human in the Loop: The spotlight identifies a cluster, but a human still needs to look at the data and say, "Aha, these are all side-profiles." It automates the discovery, but not the interpretation.

Summary updated

BibTeX
@inproceedings{deon2022spotlight,
  author = {Greg d'Eon and Jason d'Eon and James R. Wright and Kevin Leyton-Brown},
  title = {{The Spotlight: A General Method for Discovering Systematic Errors in Deep Learning Models}},
  booktitle = {FAccT},
  year = {2022},
  doi = {10.1145/3531146.3533240},
}
Figure