Reproduce “Data Distributional Properties Drive Emergent In-Context Learning in Transformers” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Stephanie C.Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang, Aaditya Singh, Pierre H. Richemond, Jay McClelland, Felix Hill

The paper tests how data distributions can make a transformer use context examples without weight updates. In Omniglot classification, fixed image-label mappings vary in recurrence and frequency. A 4-shot, 2-way evaluation uses holdout classes but seen labels. With 12,800 classes, burstiness 0.9, and Zipf exponent 1 support both learning modes at high levels in this experiment.

Key insights

  • Naturalistic data properties, such as burstiness, a large number of rare classes, and dynamic meanings, are essential prerequisites for emergent in-context learning in transformers.
  • The transformer architecture plays a unique and essential role in enabling in-context learning, as recurrent neural networks (RNNs) and LSTMs could not replicate this capability.
  • Training on skewed, Zipfian data distributions allows transformers to simultaneously achieve high proficiency in both rapid, context-dependent in-context learning and slower, weight-based in-weights learning for frequent items.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.