Retrieval-Based In-Context Learning: A Domain Adaptation Framework
Yilun Zhu, Naihao Deng, Yingcong Li, Naichen Shi, Clayton Scott
Key points
From the paper's conclusion- We investigate the performance of ICR under a flexible class of distributional shifts that substantially extends prior work \citep{li2024fine,guo2025retrieval}, and establish theoretical guarantees that quantify the benefits and pitfalls of this learning paradigm.
Abstract
In-context retrieval (ICR) is a retrieval-based form of in-context learning (ICL) in which demonstrations are retrieved from a source database based on similarity to the query, rather than sampled independently. In this work, we formulate ICR as a type of domain adaptation problem, where the source distribution $P$ of the database may differ from the target distribution $Q$ of the test query-label pair. We investigate the performance of ICR under a flexible class of distributional shifts that substantially extends prior work \citep{li2024fine,guo2025retrieval}, and establish theoretical guarantees that quantify the benefits and pitfalls of this learning paradigm. Our theory is verified by experiments on synthetic and language tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ActICL: Post-Training for Agentic Multimodal In-Context LearningarXiv · 2026
- Learn the Effects, Not the Examples: Implicit ICL via Attention PatchingarXiv · 2026
- Cognitively Decoupled Meta-Induction for Out-of-Distribution GeneralizationarXiv · 2026
- Out of Support, Not Out of Reach: In-Context Learning with Unsupported Instructions and Composed TasksarXiv · 2026
- Capturing In-Context Learning Dynamics with Task OperatorsarXiv · 2026
- From Observation to Intervention: Distilling Self-Generated In-Context Demonstrations via Executable Causal InterventionarXiv · 2026