PRIME: Prioritizing Interpretability in Failure Mode Extraction

Keivan Rezaei, Mehrdad Saberi, Mazda Moayeri, Soheil Feizi

Introduction

Deep learning models are notorious "black boxes." An image classification model might boast 90% overall accuracy, but it could fail catastrophically on a specific subpopulation—for instance, misidentifying "waterbirds" whenever they appear on land. These systematic errors are known as failure modes.

Existing tools attempt to find these failures by clustering "hard" or misclassified images in a model's latent (internal) representation space, and then using a secondary vision-language model to guess a text description for that cluster. However, the authors of PRIME point out a major flaw in this pipeline: latent space is not semantic space. Two images might be mathematically close in a model's embeddings but share no human-meaningful features. This misalignment often leads to "hallucinated" or nonsensical descriptions of why a model is failing.

To address this, the researchers introduce PRIME (PRIoritizing Meantime Extraction), a novel framework that identifies exactly why models fail by prioritizing human-understandable "tags" over abstract mathematical clusters.

The PRIME Framework

PRIME flips the standard script by putting interpretability first. Rather than clustering first and explaining later, the process follows a "bottom-up" approach:

  1. Obtaining Relevant Tags: Instead of analyzing abstract latent vectors, PRIME uses a pre-trained tagging model (such as the Recognize Anything Model, or RAM) to label every image in a dataset with human-understandable concepts (e.g., "grass," "black," "zoo," "standing").
  2. Detecting Failure Modes via Exhaustive Search: The system then searches for combinations of these tags where the target model’s accuracy takes a significant nosedive.

Crucially, PRIME looks for a minimal set of tags. If a model fails on the combination "fox + white + zoo," but performs fine on just "fox + white," then the combination of all three is identified as a unique, minimal failure mode. This ensures that the resulting description isn't just a post-hoc guess—it is the literal, verifiable reason the subpopulation was selected.

Examples of failure modes discovered by PRIME, showing specific tag combinations and their associated error rates.

Experimental Setup

The researchers evaluated PRIME across several diverse benchmarks to ensure robustness:

  • Living17, Entity13, & NonLiving26: Subsets of ImageNet used to test hierarchical classification.
  • Waterbirds: A classic dataset for studying spurious correlations (e.g., birds vs. backgrounds).
  • CelebA: Used for face-related attribute classification.
  • CUB-200: A fine-grained bird species dataset used to analyze the gap between latent and semantic spaces.

Key Insights and Results

  • Bridging the Semantic Gap: The paper provides empirical evidence that distance in latent space (like CLIP embeddings) is a misleading measure of semantic similarity. Images sharing many semantic tags are often far apart in latent space, explaining why previous clustering-based methods produce noisy descriptions. By forcing the failure mode discovery to happen within the space of human tags, the cluster is the interpretation.
  • The Power of Combinations: Failure is rarely caused by a single attribute. For example, a model might handle "black apes" and "apes on branches" reasonably well, but its accuracy collapses specifically when an ape is black AND hanging AND on a branch (dropping from ~86% to ~41%).
  • Higher Quality Descriptions: PRIME outperformed baseline methods (like DOMINO) across three automated metrics: Similarity (how well the text matches the images), Coherency (how similar the images in a failure group are to each other), and Specificity (how unique the description is to that specific failure).
  • Generative Validation: To prove the accuracy of their findings, the authors used the discovered failure descriptions as prompts for text-to-image models (like Stable Diffusion). The generated "hard" images successfully caused the target model to fail, proving that PRIME captures the true essence of the model's weaknesses.

Limitations and Future Work

While highly effective, PRIME has a few limitations. First, it is dependent on the initial tagging model; if the tagger misses a specific attribute, PRIME cannot find failure modes related to it. Second, adjective alignment can be tricky—adjectives like "white" might be attributed to the background rather than the primary object, slightly muddying results. Finally, while the paper uses an exhaustive search for combinations of up to 4 tags, searching for much larger combinations in massive datasets could become computationally expensive, necessitating greedy search alternatives.

Future work could involve integrating PRIME directly into the training loop, allowing models to automatically "fix" these interpretable failure modes as they are discovered.

Summary updated

BibTeX
@inproceedings{rezaei2024prime,
  author = {Keivan Rezaei and Mehrdad Saberi and Mazda Moayeri and Soheil Feizi},
  title = {{PRIME: Prioritizing Interpretability in Failure Mode Extraction}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=QrEHs9w5UF},
}
Figure