Capturing human category representations by sampling in deep feature spaces

Joshua C. Peterson, Jordan W. Suchow, Krisha Aghi, Alexander Y. Ku, Tom Griffiths

Abstract

Understanding how humans mentally represent categories is a fundamental challenge in cognitive science. Traditional methods like classification images (CI) are often inefficient, producing low-quality results due to their reliance on pixel-level perturbations. We introduce Deep MCMCP (Markov Chain Monte Carlo with People), a novel framework that leverages the latent spaces of deep generative models to map human mental templates. By using human judgments as the acceptance criterion in an MCMC chain, we can efficiently sample high-dimensional semantic spaces. Our results demonstrate that this approach significantly outperforms traditional pixel-based methods in both visual quality and classification accuracy on real-world datasets.

Introduction

How do we define the mental "template" of a category like "dog" or "happy face"? Because mental representations are not directly observable, researchers must infer them from behavior. A common technique, classification images (CI), involves adding white noise to pixels and asking participants to categorize the resulting images. However, pixel-level noise is semantically sparse; most changes do not correspond to meaningful features, requiring thousands of trials to produce even blurry, "blob-like" results.

Deep MCMCP addresses this by shifting the search from raw pixels to the latent space of pre-trained deep generative models. This allows the sampling process to operate on semantic features—like the curve of a smile or the shape of an eye—making the process far more efficient and naturalistic.

Methods: Deep MCMCP

The core of the method is a human-in-the-loop adaptation of the Metropolis-Hastings algorithm. Instead of a mathematical acceptance function, the "Barker acceptance" rule is determined by human choice.

Schematic of the Deep MCMCP framework, showing the interaction between the generative model's latent space and human judgment.

The process follows these steps:

  1. Latent Perturbation: A latent vector $z$ is sampled and perturbed to create a proposal $z^*$.
  2. Decoding: A pre-trained decoder transforms these vectors into images $x$ and $x^*$.
  3. Human Judgment: A participant is shown both images and asked, "Which is more like a [category]?"
  4. Chain Update: If the participant selects $x^*$, the chain moves to $z^*$; otherwise, it stays at $z$.

By operating in a space that captures "essential variation," the search converges on the participant's mental prototype much faster than pixel-based methods.

Results

The researchers validated Deep MCMCP using face categories (male, female, happy, sad) and natural objects from ImageNet.

Latent space visualization (left) showing category separation and a comparison of MCMCP vs. CI results (right).

Visual Quality and Multi-modality

As shown in the comparison above, the "mental templates" (means) generated by MCMCP are significantly clearer and more representative than the blurry CI results. For example, the "happy" face in the MCMCP mean shows a distinct smile, whereas the CI mean is barely differentiated. Furthermore, MCMCP can capture multi-modality—different chains can converge on different "types" of a category (e.g., different breeds of birds), reflecting the true complexity of human knowledge.

Classification Performance

To quantify these results, the authors used human-derived samples to train classifiers for real-world images from Flickr. In one experiment, the MCMCP-based model achieved an accuracy of 0.42, significantly outperforming the CI-based model's 0.26 (where chance was 0.20). This suggests that the representations captured by Deep MCMCP are not just visually pleasing but are semantically accurate enough to generalize to real-world data.

Discussion and Limitations

While Deep MCMCP offers a significant leap forward, it is constrained by the latent space dependency of the underlying generative model. The method can only explore features that the model has already learned. Additionally, while more efficient than CI, the vastness of latent spaces still requires careful tuning of proposal distributions to ensure convergence.

Despite these hurdles, Deep MCMCP provides a powerful tool for "opening the black box" of human cognition, offering a path toward building machine learning architectures that are more aligned with human visual understanding.

Summary updated

BibTeX
@inproceedings{peterson2018capturing,
  author = {Joshua C. Peterson and Jordan W. Suchow and Krisha Aghi and Alexander Y. Ku and Tom Griffiths},
  title = {{Capturing human category representations by sampling in deep feature spaces}},
  booktitle = {CogSci},
  year = {2018},
}
Figure