Reproduce “Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning” 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

Quanyu Long, Yin Wu, Wenya Wang, Sinno Jialin Pan

Researchers from Nanyang Technological University and The Chinese University of Hong Kong introduced a framework to decompose In-Context Learning's contributions, demonstrating that its primary benefit for Large Language Models lies in regulating output label space and format rather than consistently improving discriminative task-solving ability. The study found that while semantically similar retrieved examples boost discrimination, random examples often lead to inconsistent improvements, and LLMs also mimic demonstration styles in generation tasks.

Key insights

  • ICL's most consistent contribution is regulating an LLM's output label space and format, which often masks its unstable and frequently minimal impact on discriminative performance.
  • ICL functions similarly to explicit detailed instructions in regulating output, suggesting it primarily provides implicit guidance on expected response structure and vocabulary.
  • While retrieval of semantically similar demonstrations can boost discrimination, a "copy effect" means LLMs tend to align with demonstration labels, and label diversity in demonstrations is important for robust output regulation.

Summary by alphaXiv.

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