Understanding Failures of Deep Networks via Robust Feature Extraction

Sahil Singla, Besmira Nushi, Shital Shah, Ece Kamar, Eric Horvitz

Abstract

Traditional evaluation metrics for learned models that report aggregate scores over a test set are insufficient for surfacing important and informative patterns of failure over features and instances. We introduce and study a method aimed at characterizing and explaining failures by identifying visual attributes whose presence or absence results in poor performance. In distinction to previous work that relies upon crowdsourced labels for visual attributes, we leverage the representation of a separate robust model to extract interpretable features and then harness these features to identify failure modes. We further propose a visualization method aimed at enabling humans to understand the meaning encoded in such features and we test the comprehensibility of the features. An evaluation of the methods on the ImageNet dataset demonstrates that: (i) the proposed workflow is effective for discovering important failure modes, (ii) the visualization techniques help humans to understand the extracted features, and (iii) the extracted insights can assist engineers with error analysis and debugging.

Introduction

While standard metrics like accuracy provide a high-level view of model performance, they often mask systematic failures. A model might achieve high overall accuracy while consistently failing under specific conditions, such as a self-driving system struggling with pedestrians in rainy weather. Identifying these "failure modes" typically requires labor-intensive manual tagging of images with metadata. To address this, we present Barlow, a framework that utilizes adversarially trained "robust" neural networks to automatically identify and visualize the underlying causes of deep learning model failures without requiring expensive, manually-labeled metadata.

Methodology: The Barlow Framework

The Barlow workflow leverages the internal representations of a robust model—one trained to resist adversarial attacks—to analyze a standard target model. Robust models are preferred because their internal features tend to align more closely with human perception than those of standard models.

1. Robust Feature Extraction

Barlow uses the penultimate layer of a robust ResNet-50 to extract feature vectors for every image in the dataset. These features serve as the basis for identifying systematic errors.

2. Visualization Techniques

To interpret these features, Barlow employs two primary methods:

  • Class Activation Mapping (CAM): Heatmaps that highlight which parts of an image activate a specific feature.
  • Feature Attacks: A novel technique that modifies an image to "amplify" a specific visual concept, making it more apparent to human observers.
Heatmap visualization (CAM) identifying a dog's collar as a key feature.

3. Failure Mode Generation

Barlow trains shallow decision trees to predict model failure based on the extracted robust features. The branches of these trees identify "failure clusters"—groups of images where the error rate is significantly higher than the baseline.

Key Insights and Results

Our analysis of the ImageNet dataset revealed two primary types of failures:

  1. Spurious Correlations: The model relies on non-essential features that frequently co-occur with a class (e.g., requiring "greenery" to identify a "monastery").
  2. Overemphasized Features: The model over-relies on a single causal feature (e.g., failing to recognize a "purse" if the "buckle" is not visible).
Heatmap visualization (CAM) highlighting a purse buckle, a feature the model may over-rely on.

In quantitative evaluations, Barlow's use of robust features led to a significantly higher Average Leaf Error Rate (ALER) compared to standard features, indicating superior discovery of high-error pockets. Furthermore, a study with 14 ML engineers confirmed that Barlow provides actionable insights for model debugging, such as targeted data augmentation strategies.

Conclusion

Barlow demonstrates that adversarial robustness can be a powerful tool for interpretability. By surfacing human-interpretable "rules" for failure, it moves beyond simple saliency maps to provide a dataset-wide understanding of model weaknesses. Future work will focus on automating the causal analysis of these features to further reduce the need for human-in-the-loop verification.

Summary updated

BibTeX
@inproceedings{singla2021understanding,
  author = {Sahil Singla and Besmira Nushi and Shital Shah and Ece Kamar and Eric Horvitz},
  title = {{Understanding Failures of Deep Networks via Robust Feature Extraction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=VccG8JO1mg},
}
Figure