Reproduce “Understanding the Generalization of In-Context Learning in Transformers: An Empirical Study” 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

Xingxuan Zhang, Haoran Wang, Jiansheng Li, Yuan Xue, Shikai Guan, Renzhe Xu, Hao Zou, Han Yu and 1 more

This research from Tsinghua University systematically investigates the generalization capabilities of in-context learning (ICL) in transformers, using a hierarchical framework and diverse tasks. The findings indicate that models exhibit strong generalization within a problem domain but struggle to generalize across different problem types, with training data diversity playing a crucial role in enabling robust ICL.

Key insights

  • Transformers exhibit strong in-context learning (ICL) generalization within a problem domain (intra-problem) and within a specific task (intra-task).
  • Transformers struggle with ICL generalization across fundamentally different problem types (inter-problem), indicating a need for training exposure to the specific problem domain.
  • The diversity of training data significantly enhances a model's ICL generalization capabilities, particularly for complex tasks.

Summary by alphaXiv.

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