Cognitive Psychology for Deep Neural Networks: A Shape Bias Case Study

Samuel Ritter, David G. T. Barrett, Adam Santoro, Matt M. Botvinick

Introduction

Despite their incredible performance on complex tasks, Deep Neural Networks (DNNs) often remain "black boxes." While we know they work, we frequently lack an understanding of the inductive biases—the underlying rules or shortcuts—they use to make decisions. Most interpretability research attempts to "open the box" using neuroscience-inspired methods, such as visualizing neuron activations. However, researchers from DeepMind propose an alternative: treating DNNs like human subjects by applying experimental tools from developmental psychology to study their behavior.

Specifically, the authors focus on one-shot word learning. When a human child sees a novel object (e.g., a rabbit) for the first time and hears a new word, how do they know the word refers to the whole animal rather than its color, its ears, or the grass it sits on? Cognitive psychologists have long known that humans solve this via a "shape bias"—a preference for categorizing objects by their shape rather than their color or texture. This paper investigates whether our best computer vision models solve the same problem using the same cognitive bias.

Methodology: Behavioral Probing

The authors propose a "hypothesis-driven" approach to AI interpretability, adapting methods from cognitive psychology:

  1. Propose a property: Identify a human-interpretable feature, such as shape, that a model might be relying on to make classifications.
  2. Behavioral Probing: Construct "triples" of images to test the model's categorization preferences. Each triple contains:
  3. A Probe image (e.g., a green, uniquely shaped object).
  4. A Shape-match (e.g., a white object with the same shape but different color).
  5. A Color-match (e.g., a green object with a different shape but the same color).
  6. Evaluation: Force the model to choose which match belongs in the same category as the probe.
Examples of image triples used to probe the models, showing a probe image alongside its shape match and color match.

To test this, the researchers evaluated two architectures pre-trained on ImageNet: an Inception Baseline (IB) (a standard high-performing classifier) and Matching Networks (MN) (a state-of-the-art architecture designed specifically for one-shot learning).

Datasets

The study utilized two primary datasets for probing:

  • CogPsyc Data: 150 images (50 triples) originally used in developmental psychology experiments. These are highly controlled stimuli designed to strictly isolate shape, color, and texture.
  • Probe Data from the Wild: 90 images (30 triples) curated from Google Image Search. These represent real-world objects (e.g., a silver tuning fork vs. a silver guitar capo) to verify if the bias holds outside of controlled laboratory stimuli.

Key Findings

The "Psychology as Debugger" Framework

The paper successfully demonstrates that psychology's rich history of experimental design can be repurposed to "debug" AI models. This behavioral approach provides a higher-level, more intuitive understanding of model decision-making than simply analyzing individual weights or gradients.

Strong Shape Bias in Vision Models

Both tested models exhibited a clear preference for shape over color. The Inception Baseline demonstrated a shape bias ($B_s$) of 0.68 on the CogPsyc data and a staggering 0.97 on the "Wild" data. Matching Networks showed similar results, with a bias of 0.70 (CogPsyc) and 1.0 (Wild). Interestingly, Matching Networks do not develop this bias from scratch; they inherit the shape bias of the pre-trained feature extractor (Inception) they use as a backbone.

The Hidden Variance of Random Seeds

Perhaps the most surprising finding was the impact of random initialization. Models with identical architectures and near-identical overall accuracy can develop wildly different biases. While all 15 tested Inception seeds reached approximately 90% top-5 accuracy on ImageNet, their shape bias scores on the CogPsyc dataset ranged significantly, from roughly 0.53 to 0.73.

Furthermore, within a single model, the shape bias is not static. It emerges very early in the training process but continues to fluctuate significantly even after the model's classification accuracy has stabilized. This suggests that standard accuracy metrics can hide profound qualitative differences in how models "see" and interpret the world.

Limitations and Future Directions

While behavioral probes effectively reveal what biases exist, they leave a "mechanistic gap"—they do not explain how the model implements them (i.e., which specific layers or neurons are responsible). The authors suggest that future work should combine these psychological probes with mechanistic interpretability tools like saliency maps or ablation studies.

Additionally, this study focused exclusively on shape bias. Human language acquisition involves numerous other constraints, such as the "whole-object bias" or "taxonomic bias," which remain untested in DNNs.

Ultimately, understanding these biases has significant practical implications. For certain tasks, like identifying specific medical conditions or classifying fruit, a strong shape bias might actually be detrimental. By utilizing these probing techniques, practitioners could potentially select specific model seeds that possess the "correct" cognitive bias for their specific real-world application.

Summary updated

BibTeX
@inproceedings{ritter2017cognitive,
  author = {Samuel Ritter and David G. T. Barrett and Adam Santoro and Matt M. Botvinick},
  title = {{Cognitive Psychology for Deep Neural Networks: A Shape Bias Case Study}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=SJ4X8hZ_ZS},
}
Figure