Reproduce “In-Context Learning Dynamics with Random Binary Sequences” 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

Eric J. Bigelow, Ekdeep Singh Lubana, Robert P. Dick, Hidenori Tanaka, Tomer D. Ullman

This research investigates how large language models learn in context by analyzing their behavioral dynamics when processing random binary sequences. The study demonstrates that in-context learning aligns with Bayesian model selection, showing sharp transitions as models rapidly switch between latent concepts, and reveals that LLMs exhibit human-like cognitive biases in generating subjectively random patterns.

Key insights

  • In-context learning (ICL) in large language models (LLMs) often operates via Bayesian model selection, characterized by sharp, S-shaped transitions in behavior as context accumulates, rather than gradual model averaging.
  • The proposed 'Cognitive Interpretability' framework effectively allows inference of LLM latent concepts and learning dynamics through systematic observation of input-output behavior, without requiring internal model access.
  • LLMs exhibit emergent, human-like cognitive biases, such as the Gambler's Fallacy, when generating subjectively random sequences, suggesting an underlying preference for patterns over true randomness.

Summary by alphaXiv.

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