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

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

Abstract

Deep Neural Networks (DNNs) have achieved remarkable performance in computer vision, yet they remain difficult to interpret. This paper proposes bridging artificial intelligence and developmental psychology by treating DNNs as opaque intelligent systems similar to human children. By applying behavioral probes used in developmental psychology, the researchers demonstrate that state-of-the-art vision models possess a "shape bias"—a preference for categorizing objects by shape rather than color or texture—mirroring a well-documented stage in human cognitive development. This bias emerges early in training and varies significantly between models with different random seeds, even when their final accuracies are identical.

Introduction

Despite their superhuman performance, DNNs are notoriously difficult to interpret. Most interpretability research focuses on "neuroscience-style" methods (visualizing neurons) or "mathematical" methods (analyzing loss surfaces). The authors argue that we are missing a crucial tool: Cognitive Psychology. In psychology, researchers understand the human mind by observing its behavior in response to carefully controlled stimuli. This paper addresses the "interpretability crisis" by demonstrating how psychological "behavioral probes" can reveal the hidden inductive biases—the underlying "rules of thumb"—that models use to make decisions.

Methodology: The Shape Bias Probe

The authors focused on a classic phenomenon called shape bias. When children learn a new word (e.g., "This is a dax"), they naturally assume other objects with the same shape are also daxes, even if they have different colors or textures. To test this in AI, they evaluated two types of models: an Inception Baseline (IB) and Matching Networks (MN), a state-of-the-art one-shot learning model.

Experimental setup for measuring shape bias: a probe object is compared against a color match and a shape match.

They calculated a Shape Bias ($B_s$) metric: the proportion of times a model chose a shape-match over a color-match when presented with a novel probe object. The study used two distinct datasets:

  • CogPsyc Data: 150 images of physical objects used in actual developmental psychology labs, highly controlled for size and background.
  • Probe Data from the Wild: 90 images of real-world objects sourced from Google Image Search to test the bias in less sterile environments.

Key Insights and Results

  • Strong Shape Preference: The Inception model showed a shape bias of 0.68 on the lab data and 0.97 on real-world data (where 0.5 is neutral). Matching Networks reached a bias of 1.0 on real-world data.
  • Emergent Human-like Logic: Shape bias isn't programmed into these models. It emerges naturally from the combination of CNN architecture and the statistics of natural images, suggesting that "human-like" vision might be a natural byproduct of learning to categorize the real world.
  • The "Random Seed" Lottery: Models with the exact same architecture and data can develop wildly different levels of bias based solely on their random initialization.
  • Early Emergence and Fluctuation: Shape bias begins to appear very early in training, long before peak accuracy. Interestingly, even after accuracy stabilizes, the shape bias continues to fluctuate, suggesting that accuracy is a coarse metric that hides internal behavioral shifts.

Conclusion and Future Work

While behavioral probes tell us what a model is doing, they don't yet explain the mechanistic why. Future work could involve testing for other psychological biases, such as the "whole object bias" or "mutual exclusivity." These probes could eventually be used to select models for specific tasks; for instance, if a task requires color sensitivity over shape, researchers could use these tools to pick the right model seed before deployment.

Summary updated

BibTeX
@inproceedings{ritter2017cognitive,
  author = {Samuel Ritter and David G. T. Barrett and Adam Santoro and Matthew 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