atlas

Research map / Large language models / Language, safety and interpretability

In-Context Learning Dynamics with Random Binary Sequences

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Uses random binary coin-flip sequences as a probe domain to show that GPT-3.5+ LLMs generate subjectively random sequences and exhibit sharp, model-selection-like phase transitions in in-context learning of formal languages, without accessing internal activations.

Problem

Understanding which latent concepts LLMs activate under different in-context prompts, and whether in-context learning changes smoothly (model averaging) or abruptly (model selection), using only black-box behavior.

Approach

Frames ICL as Bayesian model selection over latent concepts and uses random binary sequences (subjective randomness from cognitive science) as a minimal domain to study generation and judgment dynamics; compares GPT outputs to Bernoulli, Window Average, and Markov chain models and measures sharp S-shaped transitions in formal-language concept probabilities as context grows.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Generate sequences with text-davinci-003 instead of sampling from a Bernoulli process with the same meanRandomness Generation · Random binary sequencessequence-mean varianceMixed
Use the Window Average model instead of a Bernoulli processRandomness Generation · Random binary sequencessequence means and longest-run lengthsHelped
Increase context length with examples of a simple formal languagegpt-3.5-turbo-instruct-0914 · Formal Language Generationprobability mass assigned to valid continuationsHelped
Increase context length with a formal-language sequencetext-davinci-003 · Formal Language Generationprobability mass assigned to valid continuationsMixed
Use shallower prediction depths (d < 4)Formal Language Generation analysis · Formal languagesstability of in-context learning dynamicsHurt
Append a repeating Heads-Tails distractor sequence to an MMLU prompttext-davinci-003 · MMLUprobability of returning to the task answerNo clear effect
Use longer formal conceptstext-davinci-003 · Randomness Judgmentsharpness of the transition from Random to Non-randomHurt
Use a fair-coin prompt instead of a prompt describing a fair coin or a non-random algorithmGPT-3.5 · Formal Language Generationformal concept learning dynamicsNo clear effect
Generate sequences with GPT-3.5+ rather than a Bernoulli processRandomness Generation · Sequence complexitynumber of unique subsequences, Gzip file size, and inter-sequence Levenshtein diMixed

Surprising findings

Limitations

Experimental setup

Datasets: MMLU GSM8K

Benchmarks: MMLU

Metrics: sequence mean distribution longest run length sub-sequence frequency gzip compressed size Levenshtein distance predictive probability of formal language concept

Baselines: Bernoulli process Window Average model Markov chain (order 3)

Builds on: Bayesian program induction subjective randomness models (Griffiths & Tenenbaum) Bayesian model selection view of ICL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy