Skip to main content
QUICK REVIEW

[Paper Review] Examining CNN Representations with respect to Dataset Bias

Quanshi Zhang, Wenguan Wang|arXiv (Cornell University)|Oct 29, 2017
Adversarial Robustness in Machine LearningComputer Science28 references8 citations
TL;DR

This paper proposes a method to diagnose biased feature representations in pre-trained CNNs without requiring testing data, by mining attribute relationships from internal feature patterns and comparing them to human-annotated ground-truth relationships using KL divergence. The approach effectively identifies blind spots and failure modes caused by dataset bias, outperforming entropy-based baselines in detecting accuracy drops on failure-mode samples.

ABSTRACT

Given a pre-trained CNN without any testing samples, this paper proposes a simple yet effective method to diagnose feature representations of the CNN. We aim to discover representation flaws caused by potential dataset bias. More specifically, when the CNN is trained to estimate image attributes, we mine latent relationships between representations of different attributes inside the CNN. Then, we compare the mined attribute relationships with ground-truth attribute relationships to discover the CNN's blind spots and failure modes due to dataset bias. In fact, representation flaws caused by dataset bias cannot be examined by conventional evaluation strategies based on testing images, because testing images may also have a similar bias. Experiments have demonstrated the effectiveness of our method.

Motivation & Objective

  • To address the critical challenge of diagnosing biased feature representations in pre-trained CNNs when conventional evaluation fails due to testing data bias.
  • To identify representation flaws such as blind spots and failure modes caused by dataset bias, which are invisible to standard accuracy metrics.
  • To develop a method that diagnoses CNN representations using only training data and human-annotated attribute relationships, avoiding reliance on test samples.

Proposed method

  • Mine inference patterns from intermediate conv-layers of a pre-trained CNN to represent attribute-specific features.
  • Compute pairwise attribute relationships (positive, negative, or neutral) based on the co-occurrence of these mined patterns.
  • Define ground-truth attribute relationships using human-annotated rules reflecting common-sense knowledge (e.g., 'black hair' and 'smiling' are unrelated).
  • Measure the discrepancy between mined and ground-truth relationships using Kullback-Leibler (KL) divergence to detect representation flaws.
  • Use high KL divergence values as indicators of poorly learned representations, including blind spots and failure modes.
  • Support flexible ground-truth definitions tailored to specific tasks, enabling compatibility with diverse application domains.

Experimental results

Research questions

  • RQ1Can representation flaws in CNNs caused by dataset bias be detected without using any testing samples?
  • RQ2How can internal feature patterns in a CNN be used to infer attribute relationships and reveal biased representations?
  • RQ3To what extent does KL divergence between mined and ground-truth attribute relationships correlate with actual failure modes in CNN predictions?
  • RQ4Can this method outperform entropy-based baselines in identifying failure modes under dataset bias?
  • RQ5How can human-annotated, cognition-aligned attribute relationships serve as reliable constraints for diagnosing CNN representations?

Key findings

  • Our method detected a 33.59% average accuracy decrease on top-5 failure modes in the CelebA dataset, significantly outperforming the entropy-based method (13.73% decrease).
  • On the SUN Attribute database, our method achieved a 29.68% average accuracy drop on top-40 failure modes, compared to 27.47% for the entropy-based baseline.
  • The top-10 blind spots identified via KL divergence included relationships such as 'foliage not related to man-made' and 'leaves not related to mostly vertical components', which align with semantic expectations.
  • The method successfully uncovered failure modes where CNNs used unrelated visual contexts—like eye or nose features—for attributes such as 'smiling' and 'black hair'—even when accuracy on biased test sets remained high.
  • Experiments showed that high KL divergence values strongly correlate with actual performance degradation on failure-mode samples, validating the method’s diagnostic power.
  • The approach is robust to indirect or ambiguous attribute relationships, allowing researchers to exclude unreliable ground-truth pairs to avoid false positives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.