Using Compositionality to Learn Many Categories from Few Examples

Ilia Sucholutsky, Bonan Zhao, Thomas L. GriffithsPsyArXiv 2024

Abstract

Humans have the remarkable ability to learn new categories from few examples, but how few examples can we actually learn from? Recent studies suggest it may be possible to learn more novel concepts than the number of examples. Previous approaches to such less-than-one-shot (LO-shot) learning used soft labels to provide weighted mappings from each example to multiple categories. Unfortunately, people find soft labels unintuitive and this approach did not provide plausible, cognitively-grounded mechanisms for LO-shot learning at scale. We propose a new paradigm that leverages well-established learning strategies: reducing complex stimuli to primitives, learning by discrimination, and generalizing to novel compositions of features. We show that participants can learn 22 categories from just 4 examples, shedding light on the mechanisms involved in LO-shot learning. Our results provide valuable insights into the human ability to learn many categories from limited examples, and the strategies people employ to achieve this impressive feat.

Introduction: The Challenge of Less-Than-One-Shot Learning

In machine learning and cognitive science, "one-shot learning"—the ability to learn a new concept from a single example—has long been considered the gold standard of efficiency. However, recent theoretical work suggests that "less-than-one-shot" (LO-shot) learning is possible: learning $N$ categories from $M$ examples, where $M < N$.

While mathematically sound, previous LO-shot methods relied on "soft labels" (e.g., telling a student that a specific image is 60% dog and 40% wolf), which humans find highly unintuitive. This paper investigates the cognitive mechanisms that allow humans to perform this feat, specifically testing if compositionality—the ability to reduce complex stimuli into primitive features and recombine them—is the missing link.

Experimental Paradigm

The researchers designed a novel experiment involving a fictional world of "alien" creatures. The study compared an experimental group, which received "soft" feature information, against a control group to see how explicit feature mapping aids generalization.

The experimental paradigm: mapping soft feature weights from example aliens to novel compositional types.

Methods

  1. Feature Alignment: Participants were shown 4 "example" aliens. The experimental group saw these paired with "soft feature weights"—unlabeled scores for eight different attributes (Features A-H). Participants had to deduce which "Feature" corresponded to which visual attribute (e.g., realizing "Feature E" referred to the number of eyes).
  2. Compositional Learning: Participants were then given textual descriptions of 18 new alien categories they had never seen. These descriptions were compositional (e.g., "Alien 11 is like Alien 1 but with more of Feature E").
  3. The Test: Participants categorized a "stack" of 22 alien images (the 4 original examples plus 18 novel ones) into the correct slots.

This approach focuses on representational alignment—how humans map abstract labels to physical properties—rather than just simple pattern matching.

Results and Key Insights

The study demonstrated that humans are remarkably adept at using compositional building blocks to expand their knowledge base far beyond the initial training set.

Comparison of classification accuracy between experimental and control groups across various test conditions.
  • Extreme Efficiency and Accuracy: Participants in the experimental group successfully learned 22 categories from 4 examples, achieving an overall test accuracy of 70% (±30%), significantly higher than the control group's 40% (±30%).
  • Alignment Predicts Success: A participant's ability to correctly map abstract labels (Feature A, B, etc.) to visual traits was a massive predictor of final classification accuracy ($R^2 = 0.689$).
  • Implicit Feature Detection: Interestingly, even the control group performed significantly above chance. This suggests that humans are naturally "tuned" to look for compositional features when faced with new categories, even without explicit guidance.
  • Robustness to Format: Generalization remained high regardless of whether compositional information was presented in a compact text format or a detailed table format.

Conclusion and Future Work

This research provides a roadmap for building AI that learns more like humans—not by seeing millions of images, but by understanding the underlying "alphabet" of features that make up the world. While the current study used relatively simple artificial stimuli, it proves that compositionality is a powerful force multiplier for learning. Future work will explore how these mechanisms scale to the noisier, more complex feature sets found in real-world categories like architecture or biology.

Summary updated

BibTeX
@misc{sucholutsky2024using,
  author = {Ilia Sucholutsky and Bonan Zhao and Thomas L. Griffiths},
  title = {{Using Compositionality to Learn Many Categories from Few Examples}},
  year = {2024},
  doi = {10.31234/osf.io/upn8e},
  howpublished = {PsyArXiv},
}
Figure