In-Context Learning Dynamics with Random Binary Sequences

Eric J. Bigelow, E. Lubana, Robert P. Dick, Hidenori Tanaka, T. Ullman
2/12/2026

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) trained on huge corpora of text datasets demonstrate intriguing capabilities, achieving state-of-the-art performance on tasks they were not explicitly trained for. The precise nature of LLM capabilities is often mysterious, and different prompts can elicit different capabilities through in-context learning. We propose a framework that enables us to analyze in-context learning dynamics to understand latent concepts underlying LLMs' behavioral patterns. This provides a more nuanced understanding than success-or-failure evaluation benchmarks, but does not require observing internal activations as a mechanistic interpretation of circuits would. Inspired by the cognitive science of human randomness perception, we use random binary sequences as context and study dynamics of in-context learning by manipulating properties of context data, such as sequence length. In the latest GPT-3.5+ models, we find emergent abilities to generate seemingly random numbers and learn basic formal languages, with striking in-context learning dynamics where model outputs transition sharply from seemingly random behaviors to deterministic repetition.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bigelow2026incontext,
  title  = {In-Context Learning Dynamics with Random Binary Sequences},
  author = {Eric J. Bigelow and E. Lubana and Robert P. Dick and Hidenori Tanaka and T. Ullman},
  year   = {2026},
  eprint = {2310.17639},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.17639},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.17639.svg)](https://codeofpaper.com/paper/2310.17639)

Discussion