Reproduce “Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functions” 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
Satwik Bhattamishra, Arkil Patel, Phil Blunsom, Varun Kanade
Researchers at the University of Oxford systematically investigated in-context learning in Transformers and LLMs using discrete Boolean functions, identifying specific algorithmic limitations such as the failure to learn Parity functions. They demonstrated that pretrained LLMs can perform non-trivial algorithmic learning from context alone, validating the relevance of stylized ICL research.
Key insights
- Transformers, while performing well on many Boolean functions, failed to learn Parity functions, highlighting specific algorithmic limitations of their in-context learning capabilities.
- Attention-free architectures often performed comparably to Transformers on many ICL tasks, suggesting that the attention mechanism is not strictly essential for implementing various learning algorithms.
- Transformers can learn and adaptively select between multiple distinct learning algorithms, switching to more sample-efficient strategies when provided with informative 'teaching sequences'.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.