Rohan Paul (@rohanpaul_ai) — Agentic creativity and cognition

Original post: https://x.com/rohanpaul_ai/status/2118166912714584447
Posted: 2026-11-05T02:22:00Z · Collected: 2026-11-05T15:30:00Z

Why it matters

Mechanistic insight that informs few-shot prompt design for agents.

Summary

@rohanpaul_ai summarises the Stanford paper ‘A Circuit for In-Context Learning’ (arXiv 2611.05344). The authors trace how small LLMs (Qwen3-4B, SmolLM3-3B, Llama-3.2-3B) learn from few-shot examples: label tokens store their sentence’s class, and ~90 later heads match a new input against those stored classes. The lookup only switches on when labels repeat, rising from ~20% to 96% accuracy going from 1 to 6 examples per class. Examples cannot teach a feature the model doesn’t already notice. The attached image is from the paper.

Pull quotes

Title: “A Circuit for In-Context Learning”

For few-shot prompts, repeat every label several times and pick classes the model can already tell apart, since examples cannot teach a feature it lacks.

Screenshot notes

Topics

Keywords

in-context learning, circuit, interpretability, few-shot prompting

Archive

Browse