betaFeedback

WorksMathematics

Retrieval-Based In-Context Learning: A Domain Adaptation Framework

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 PP of the database may differ from the target distribution QQ 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.

Introduction

In-context learning (ICL) is the ability of a pretrained model to predict the label of a query point using input-output demonstrations provided in its context, without updating the model’s parameters. In most theoretical models of ICL, these demonstrations are modeled as i.i.d. draws from the same distribution that governs the query-label pair [19, 21]. Throughout this paper, ICL refers to this standard setting with i.i.d. demonstrations.

In this work, we consider retrieval-based ICL, in which the input-output demonstrations are selected as a function of the query point. In particular, given access to a large database of demonstrations, a retrieval algorithm selects examples whose feature representations are similar to that of the query point. It has been observed empirically that such retrieved demonstrations can substantially improve performance over randomly sampled demonstrations [38, 46, 30, 28]. Following recent work, we refer to this setting as in-context retrieval (ICR) [40, 22].

Prior work has begun to explain the benefits of ICR theoretically, but several important regimes remain unexplored. In particular, existing statistical models [36, 22] are restricted to linear-Gaussian settings. Moreover, while these models allow the retrieved demonstrations and the query-label pair to be governed by different marginal distributions, the regression function remains the same: in other words, they model covariate shift, but not a posterior drift that changes the optimal predictor.

We introduce a nonparametric statistical framework for binary classification that casts ICR as a domain adaptation problem admitting both covariate shift and posterior drift. The source domain governs the corpus of demonstrations, the target domain governs the query-label pair, and the predictor operates on a query-dependent subset of retrieved source examples. Throughout, we treat the pretrained model as frozen and study the statistical effect of the demonstrations selected for its context, abstracting away from transformer-level mechanisms for implementing in-context learning.

Within this framework, we characterize the performance of ICR in terms of four key quantities: the context size nn, the corpus size mm, the degree of posterior drift, and distributional properties of the domains (in particular, the smoothness of the class posterior). Under a nearest-neighbor model of retrieval and prediction, we establish a finite-(m,n)(m,n) excess risk bound for ICR. This bound yields two main conclusions. First, the benefit of retrieval: given a sufficiently large corpus size mm, the ICR bound decays faster in nn than the ICL rate. Second, the price of posterior drift: when the source and target posteriors disagree, the ICR excess risk contains an irreducible bias that no learning rule with access only to the source corpus can uniformly avoid. Consequently, ICR can be asymptotically inconsistent, whereas ICL remains consistent.

Thus, ICR is preferable under a few-shot regime (small nn) with a sufficiently large corpus and limited posterior drift; otherwise, using i.i.d. target demonstrations is the safer choice. We support these findings with experiments on synthetic data and a sentiment-analysis task with annotator disagreement.

Related work

In-context learning. In-context learning (ICL) became prominent with GPT-3 [8] and is now a standard mechanism for adapting language models at inference time [16, 1]. Beyond natural language, this success has also extended to other modalities, such as tabular data, where tabular foundation models [26, 27, 44, 41] represent a compelling application of ICL. A growing theoretical literature analyzes ICL through the behavior of transformers, implicit inference, and task generalization [2, 56, 52, 35, 54, 5], and related work has also examined more challenging regimes such as out-of-distribution tasks, test-time training, and noisy in-context demonstrations [32, 20, 13]. These studies provide useful tools for understanding ICL with i.i.d. demonstrations, but they do not study the retrieval-based setup.

Retrieval-augmented generation. Retrieval-augmented generation (RAG) has become a central paradigm for enriching language models with external knowledge by conditioning generation on retrieved text [29, 17, 23] (Lewis et al. 2020; Borgeaud et al. 2022), and has seen applications beyond language-specific tasks [12]. Recent work has improved many components of RAG systems [11, 39, 53, 3, 34, 50]. Most of the literature on RAG is empirical and method-driven. In this work, we provide theoretical insight into RAG by analyzing ICR, where query-dependent in-context demonstrations are retrieved.

In-context retrieval. The basic motivation for in-context retrieval (ICR) is that the empirical performance of ICL depends heavily on the choice of in-context examples [38]. In particular, retrieval-based prompt selection has been shown to outperform randomly sampled demonstrations [46]. This idea has been broadly validated across a range of settings [40], including in-domain labeled data [30, 28, 55], cross-domain or cross-lingual retrieval [14, 48], and LLM-generated demonstrations [57] (Li and Qiu 2023).

Most prior work on ICR is empirical, with limited theoretical understanding of when and why retrieval helps. Two recent works begin to fill this gap: Li et al. [ [36] model demonstrations whose features are α\alpha-correlated with the query and show that higher correlation yields improved ICR performance, while Guo et al. [ [22] analyze the covariate shift between i.i.d. training-time demonstrations and retrieved test-time demonstrations. Both works study linear-regression settings where source and target share the same regression function. In this work, in contrast, we develop a nonparametric framework for binary classification that admits general domain shift and characterizes when retrieval helps versus hurts.

Additional connections to the literature are made below, including to domain adaptation theory.

A statistical framework for in-context retrieval

This section develops the statistical models underlying our analysis. We cast standard in-context learning as conventional classification, and in-context retrieval as domain adaptation with a retrieval-based learner. We then revisit the two closest prior theory works [36, 22] within this general framework.

ICL as conventional classification

We begin by recalling the standard statistical learning setup for binary classification, with feature space X⊆Rd\mathcal{X} \subseteq\mathbb{R}^{d} and label space Y={0,1}\mathcal{Y} = \{0,1\}. Let DD be a probability distribution on X×Y\mathcal{X} \times\mathcal{Y}, referred to as a domain. The XX-marginal is denoted by DXD_X and the class posterior distribution Y∣XY|X is fully characterized by the posterior probability function (or posterior)

ηD(x):=D(Y=1∣X=x).\eta_D(x) := D(Y = 1 \mid X = x).

A classifier is a function f:X→{0,1}f : \mathcal{X} \to\{0,1\}, whose risk (with respect to DD) is

RD(f):=P(X,Y)∼D(f(X)≠Y).R_D(f) := \mathbb{P}_{(X,Y)\sim D}(f(X) \ne Y).

A Bayes classifier fD∗f_D^* is one that minimizes RDR_D, and the canonical Bayes classifier is

fD∗(x):=1ηD(x)≥12.f_D^*(x) := \mathbb{1}_{\eta_D(x) \ge\frac{1}{2}}.

The excess risk of ff is ED(f):=RD(f)−RD∗\mathcal{E}_D(f) := R_D(f) - R_D^*, where RD∗:=RD(fD∗)R_D^* := R_D(f_D^*) is the Bayes risk.

A learner is a function f^:X×(X×Y)n→{0,1}\hat{f} : \mathcal{X} \times(\mathcal{X} \times\mathcal{Y})^n \to\{0,1\} that takes as input a query point xx and labeled training data Sn={(Xi,Yi)}i=1nS_n = \{(X_i,Y_i)\}_{i=1}^{n} and outputs a label. For fixed SnS_n, the map fSn:=f^(⋅,Sn)f_{S_n} := \hat{f}(\cdot,S_n) is a conventional classifier: the classifier induced by SnS_n. The performance of the learner is measured by the expected excess risk

ED(f^):=ESn∼D⊗n[RD(fSn)−RD∗],(1)\mathcal{E}_D(\hat{f}) := \mathbb{E}_{S_n\sim D^{\otimes n}} \left[R_D(f_{S_n}) - R_D^*\right], \tag*{(1)}

where Sn∼D⊗nS_n \sim D^{\otimes n} indicates that (Xi,Yi)∼i.i.d.D(X_i,Y_i) \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} D.

Assuming a frozen, pretrained model, we view standard ICL as conventional classification where the learner f^\hat{f} is the frozen model and the training data SnS_n are the in-context demonstrations. Throughout, the domain governing the query and the ICL demonstrations is called the target domain and denoted QQ, and we denote the test query-label pair by (Xq,Yq)(X_q,Y_q); the data-generation process of ICL is:

Demonstrations: Sn={(Xi,Yi)}i=1nS_n = \{(X_i,Y_i)\}_{i=1}^{n}, (Xi,Yi)∼i.i.d.Q(X_i,Y_i) \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} Q,

Query-label: (Xq,Yq)∼Q(X_q,Y_q) \sim Q, independent of SnS_n.

In particular, the performance of f^\hat{f} is measured by Equation (1) with D=QD = Q, and we write EQICL(f^):=EQ(f^)\mathcal{E}^{\mathrm{ICL}}_Q(\hat{f}) := \mathcal{E}_Q(\hat{f}) for the expected excess risk of ICL.

ICR as retrieval-based domain adaptation

Domain adaptation is a variation on standard classification in which there are two probability distributions PP and QQ on X×Y\mathcal{X} \times\mathcal{Y}, referred to as the source and target domains. In domain adaptation, the training data SnS_n come from PP, but the test points follow QQ. A learner is still a function f^:X×(X×Y)n→{0,1}\hat{f} : \mathcal{X} \times(\mathcal{X} \times\mathcal{Y})^n \to\{0,1\}, but now its performance is measured with respect to

EP,Q(f^):=ESn∼P⊗n[RQ(fSn)−RQ∗].\mathcal{E}_{P,Q}(\hat{f}) := \mathbb{E}_{S_n\sim P^{\otimes n}} \left[R_Q(f_{S_n}) - R_Q^*\right].

In our setting, the target domain QQ governs the test query-label pair (Xq,Yq)(X_q,Y_q), while PP governs the source corpus from which demonstrations are retrieved.

A domain shift occurs when P≠QP \ne Q. We focus on two particular types of domain shift, which can be expressed in terms of the feature marginals PXP_X and QXQ_X and class posterior distributions PY∣XP_{Y|X} and QY∣XQ_{Y|X} of the source and target. In covariate shift, PX≠QXP_X \ne Q_X [49], while in posterior drift, PY∣X≠QY∣XP_{Y|X} \ne Q_{Y|X} [47, 9, 42, 58, 31]. These two types of domain shift may co-occur.

We view ICR as domain adaptation with a retrieval-based learner. Given m≥nm \ge n, an (m,n)(m,n)-retriever is a function Tn:X×(X×Y)m→(X×Y)nT_n:\mathcal{X} \times(\mathcal{X} \times\mathcal{Y})^m \to(\mathcal{X} \times\mathcal{Y})^n that takes as input a query point xqx_q and a source corpus of demonstrations Dm={(Xi,Yi)}i=1m\mathcal{D}_m = \{(X_i,Y_i)\}_{i=1}^m, and selects the nn demonstrations Sn(xq):=Tn(xq,Dm)S_n(x_q) := T_n(x_q,\mathcal{D}_m) in Dm\mathcal{D}_m whose feature vectors are most similar to xqx_q (e.g., in ℓ2\ell_2 distance). A retrieval-based learner f^T\hat{f}_T is then a function of the form

f^T(x,Dm)=f^(x,Tn(x,Dm))=f^(x,Sn(x)),\hat{f}_T(x,\mathcal{D}_m)=\hat{f}(x,T_n(x,\mathcal{D}_m))=\hat{f}(x,S_n(x)),

where f^\hat{f} is any conventional learner as described above. Note that for a fixed corpus Dm\mathcal{D}_m, the map fDm:=f^T(⋅,Dm)f_{\mathcal{D}_m}:=\hat{f}_T(\cdot,\mathcal{D}_m) is the classifier induced by the corpus, analogous to fSnf_{S_n} above. Although the corpus has size mm, this classifier uses only n≪mn \ll m demonstrations as context for any given query. In summary, the data-generation process of ICR is:

References

  1. [1]Rishabh Agarwal, Avi Singh, Lei Zhang, Bernd Bohnet, Luis Rosias, Stephanie Chan, Biao Zhang, Ankesh Anand, Zaheer Abbas, Azade Nova, et al. Many-shot in-context learning. Advances in Neural Information Processing Systems, 37:76930–76966, 2024.arxiv.org/abs/2404.11018
  2. [2]Kwangjun Ahn, Xiang Cheng, Hadi Daneshmand, and Suvrit Sra. Transformers learn to implement preconditioned gradient descent for in-context learning. Advances in Neural Information Processing Systems, 36:45614–45650, 2023.arxiv.org/abs/2306.00297
  3. [3]Akari Asai, Zegiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. Self-RAG: Learning to retrieve, generate, and critique through self-reflection. In The Twelfth International Conference on Learning Representations, 2024.arxiv.org/abs/2310.11511
  4. [4]Jean-Yves Audibert and Alexandre B. Tsybakov. Fast learning rates for plug-in classifiers. The Annals of Statistics, 35(2):608–633, 2007.DOI
  5. [5]Yu Bai, Fan Chen, Huan Wang, Caiming Xiong, and Song Mei. Transformers as statisticians: Provable in-context learning with in-context algorithm selection. Advances in neural information processing systems, 36:57125–57211, 2023.arxiv.org/abs/2306.04637
  6. [6]Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. Advances in neural information processing systems, 19, 2006.
  7. [8]Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  8. [9]T Tony Cai and Hongji Wei. Transfer learning for nonparametric classification: Minimax rate and adaptive classifier. The Annals of Statistics, 49(1):100–128, 2021.arxiv.org/abs/1906.02903
  9. [10]Kamalika Chaudhuri and Sanjoy Dasgupta. Rates of convergence for nearest neighbor classification. Advances in Neural Information Processing Systems, 27, 2014.arxiv.org/abs/1407.0067
  10. [11]Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. M3-embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Findings of the Association for Computational Linguistics: ACL 2024, pages 2318–2335, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-acl.137. URL https://aclanthology.org/2024.findings-acl.137/.DOI
  11. [12]Yiheng Chen, Lingyao Li, Zihui Ma, Qikai Hu, Yilun Zhu, Min Deng, and Runlong Yu. Empowering LLM agents with geospatial awareness: Toward grounded reasoning for wildfire response. arXiv preprint arXiv:2510.12061, 2025.arxiv.org/abs/2510.12061
  12. [13]Chen Cheng, Xinzhi Yu, Haodong Wen, Jingsong Sun, Guanzhang Yue, Yihao Zhang, and Zeming Wei. Exploring the robustness of in-context learning with noisy labels. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5. IEEE, 2025.arxiv.org/abs/2404.18191
  13. [14]Daixuan Cheng, Shaohan Huang, Junyu Bi, Yuefeng Zhan, Jianfeng Liu, Yujing Wang, Hao Sun, Furu Wei, Weiwei Deng, and Qi Zhang. Uprise: Universal prompt retrieval for improving zero-shot evaluation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12318–12337, Singapore, 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.758. URL https://aclanthology.org/2023.emnlp-main.758/.DOI
  14. [15]Mark Díaz, Isaac Johnson, Amanda Lazar, Anne Marie Piper, and Darren Gergle. Addressing age-related bias in sentiment analysis. In Proceedings of the 2018 chi conference on human factors in computing systems, pages 1–14, 2018.
  15. [16]Qingxiu Dong, Lei Li, Damai Dai, Ce Zheng, Jingyuan Ma, Rui Li, Heming Xia, Jingjing Xu, Zhiyong Wu, Baobao Chang, Xu Sun, Lei Li, and Zhihang Sui. A survey on in-context learning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1107–1128, Miami, Florida, USA, November 2024. Association for Computational Linguistics.
  16. [17]Shahul Es, Jithin James, Luis Espinosa Anke, and Steven Schockaert. RAGAs: Automated evaluation of retrieval augmented generation. In Nikolaos Aletras and Orphee De Clercq, editors, Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations, pages 150–158, St. Julians, Malta, March 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.eacl-demo.16. URL https://aclanthology.org/2024.eacl-demo.16/.DOI
  17. [18]Jianqing Fan, Cheng Gao, and Jason M Klusowski. Robust transfer learning with unreliable source data. The Annals of Statistics, 53(4):1728–1752, 2025.arxiv.org/abs/2310.04606
  18. [19]Shivam Garg, Dimitris Tsipras, Percy S Liang, and Gregory Valiant. What can transformers learn in-context? a case study of simple function classes. Advances in neural information processing systems, 35:30583–30598, 2022.arxiv.org/abs/2208.01066
  19. [20]Halil Alperen Gozeten, Muhammed Emrullah Ildiz, Xuechen Zhang, Mahdi Soltanolkotabi, Marco Mondelli, and Samet Oymak. Test-time training probably improves transformers as in-context learners. In Proceedings of the 42nd International Conference on Machine Learning, pages 20266–20295. PMLR, 2025. URL https://proceedings.mlr.press/v267/gozeten25a.html.
  20. [21]Tianyu Guo, Wei Hu, Song Mei, Huan Wang, Caiming Xiong, Silvio Savarese, and Yu Bai. How do transformers learn in-context beyond simple functions? a case study on learning with representations. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=ikwEDva1JZ.arxiv.org/abs/2310.10616
  21. [22]Yang Guo, Yutian Tao, Yifei Ming, Robert D Nowak, and Yingyu Liang. Retrieval-augmented generation as noisy in-context learning: A unified theory and risk bounds. arXiv preprint arXiv:2506.03100, 2025.arxiv.org/abs/2506.03100
  22. [23]Shailja Gupta, Rajesh Ranjan, and Surya Narayan Singh. A comprehensive survey of retrieval-augmented generation (RAG): Evolution, current landscape and future directions. arXiv preprint arXiv:2410.12837, 2024.arxiv.org/abs/2410.12837
  23. [24]Steve Hanneke and Samory Kpotufe. On the value of target data in transfer learning. Advances in Neural Information Processing Systems, 32, 2019.arxiv.org/abs/2002.04747
  24. [25]Steve Hanneke and Samory Kpotufe. Adaptive sample aggregation in transfer learning, 2025. URL https://arxiv.org/abs/2408.16189.
  25. [26]Noah Hollmann, Samuel Müller, Katharina Eggensperger, and Frank Hutter. TabPFN: A transformer that solves small tabular classification problems in a second. arXiv preprint arXiv:2207.01848, 2022.arxiv.org/abs/2207.01848
  26. [27]Noah Hollmann, Samuel Müller, Lennart Prücker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirmeister, and Frank Hutter. Accurate predictions on small data with a tabular foundation model. Nature, 637(8045):319–326, 2025.DOI
  27. [28]Jie Huang, Wei Ping, Peng Xu, Mohammad Shoeybi, Kevin Chen-Chuan Chang, and Bryan Catanzaro. Raven: In-context learning with retrieval-augmented encoder-decoder language models. In Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=GMalVuQ0XL.arxiv.org/abs/2308.07922
  28. [29]Gautier Izacard and Edouard Grave. Leveraging passage retrieval with generative models for open domain question answering. In Paola Merlo, Jorg Tiedemann, and Reut Tsarfaty, editors, Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874–880, Online, April 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.eacl-main.74. URL https://aclanthology.org/2021.eacl-main.74/.DOI
  29. [30]Gautier Izacard, Patrick Lewis, Maria Lomeli, Lucas Hosseini, Fabio Petroni, Timo Schick, Jane Dwivedi-Yu, Armand Joulin, Sebastian Riedel, and Edouard Grave. Atlas: Few-shot learning with retrieval augmented language models. Journal of Machine Learning Research, 24(251):1–43, 2023. URL https://jmlr.org/papers/v24/23-0037.html.arxiv.org/abs/2208.03299
  30. [31]Ivan Kirev, Lyuben Baltadzhiev, and Nikola Konstantinov. Pac learnability in the presence of performativity. arXiv preprint arXiv:2510.08335, 2025.arxiv.org/abs/2510.08335
  31. [32]Soo Min Kwon, Alec S Xu, Can Yaras, Laura Balzano, and Qing Qu. Out-of-distribution generalization of in-context learning: A low-dimensional subspace perspective. arXiv preprint arXiv:2505.14808, 2025. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. Retrieval-augmented generation for knowledge-intensive nlp tasks. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 9459–9474. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/6b493230205f780e1bc26945df7481e5-Paper.pdf.
  32. [34]Xingxuan Li, Ruochen Zhao, Yew Ken Chia, Bosheng Ding, Shafiq Joty, Soujanya Poria, and Lidong Bing. Chain-of-knowledge: Grounding large language models via dynamic knowledge adapting over heterogeneous sources. In The Twelfth International Conference on Learning Representations, 2024a. URL https://openreview.net/forum?id=cPgh4gWlZlZ.arxiv.org/abs/2305.13269
  33. [35]Yingcong Li, Muhammed Emrullah Ildiz, Dimitris Papailiopoulos, and Samet Oymak. Transformers as algorithms: Generalization and stability in in-context learning. In International conference on machine learning, pages 19565–19594. PMLR, 2023.arxiv.org/abs/2301.07067
  34. [36]Yingcong Li, Ankit S Rawat, and Samet Oymak. Fine-grained analysis of in-context linear estimation: Data, architecture, and beyond. Advances in Neural Information Processing Systems, 37:138324–138364, 2024b.arxiv.org/abs/2407.10005
  35. [37]Zihao Li, Yuan Cao, Cheng Gao, Yihan He, Han Liu, Jason M Klosowski, Jianqing Fan, and Mengdi Wang. One-layer transformer provably learns one-nearest neighbor in context. Advances in Neural Information Processing Systems, 37:82166–82204, 2024c.arxiv.org/abs/2411.10830
  36. [38]Jiachang Liu, Dinghan Shen, Yizhe Zhang, William B Dolan, Lawrence Carin, and Weizhu Chen. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd workshop on knowledge extraction and integration for deep learning architectures, pages 100–114, 2022.
  37. [39]Zheng Liu, Chaofan Li, Shitao Xiao, Yingxia Shao, and Defu Lian. Llama2Vec: Unsupervised adaptation of large language models for dense retrieval. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3490–3500, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.191. URL https://aclanthology.org/2024.acl-long.191/.DOI
  38. [40]Man Luo, Xin Xu, Yue Liu, Panupong Pasupat, and Mehran Kazemi. In-context learning with retrieved demonstrations for language models: A survey. Transactions on Machine Learning Research, 2024. URL https://openreview.net/forum?id=NQPo8ZhQPa.arxiv.org/abs/2401.11624
  39. [41]Junwei Ma, Valentin Thomas, Rasa Hossainzadeh, Alex Labach, Jesse C Cresswell, Keyvan Golestan, Guangwei Yu, Anthony L Caterini, and Maksims Volkovs. TabDPT: Scaling tabular foundation models on real data. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.arxiv.org/abs/2410.18164
  40. [42]Subha Maity, Diptavo Dutta, Jonathan Terhorst, Yuekai Sun, and Moulinath Banerjee. A linear adjustment based approach to posterior drift in transfer learning. Biometrika, 2024. URL https://doi.org/10.1093/biomet/asad029.
  41. [43]Yishay Mansour, Mehryar Mohri, and Afshin Rostamizadeh. Domain adaptation: Learning bounds and algorithms. In Proceedings of The 22nd Annual Conference on Learning Theory (COLT 2009), Montréal, Canada, 2009. URL http://www.cs.nyu.edu/~mohri/postscript/nadap.pdf.arxiv.org/abs/0902.3430
  42. [44]Jingang Qu, David Holzmüller, Gaël Varoquaux, and Marine Le Morvan. TabICL: A tabular foundation model for in-context learning on large data. arXiv preprint arXiv:2502.05564, 2025.arxiv.org/abs/2502.05564
  43. [45]Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026. URL https://qwen.ai/blog?id=qwen3.5.
  44. [46]Ohad Rubin, Jonathan Herzig, and Jonathan Berant. Learning to retrieve prompts for in-context learning. In Proceedings of the 2022 conference of the North American chapter of the association for computational linguistics: human language technologies, pages 2655–2671, 2022.
  45. [47]Clayton Scott. A generalized Neyman-Pearson criterion for optimal domain adaptation. In Algorithmic Learning Theory, pages 738–761. PMLR, 2019.arxiv.org/abs/1810.01545
  46. [48]Peng Shi, Rui Zhang, He Bai, and Jimmy Lin. Xricl: Cross-lingual retrieval-augmented in-context learning for cross-lingual text-to-sql semantic parsing. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5248–5259, Abu Dhabi, United Arab Emirates, 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.findings-emnlp.384. URL https://aclanthology.org/2022.findings-emnlp.384/.
  47. [49]Masashi Sugiyama, Matthias Krauledat, and Klaus-Robert Müller. Covariate shift adaptation by importance weighted cross validation. Journal of Machine Learning Research, 8(35), 2007.
  48. [50]Chong Xiang, Tong Wu, Zexuan Zhong, David Wagner, Danqi Chen, and Prateek Mittal. Certifiably robust rag against retrieval corruption. In 2026 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), pages 392–410, 2026. doi: 10.1109/SaTML68715.2026.00029.DOI
  49. [51]Shitao Xiao, Zheng Liu, Peitian Zhang, and Niklas Muennighoff. C-pack: Packaged resources to advance general chinese embedding, 2023.
  50. [52]Sang Michael Xie, Aditi Raghunathan, Percy Liang, and Tengyu Ma. An explanation of in-context learning as implicit bayesian inference. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=RdJVFCHjUMI.arxiv.org/abs/2111.02080
  51. [53]Fangyuan Xu, Weijia Shi, and Eunsol Choi. RECOMP: Improving retrieval-augmented LMs with context compression and selective augmentation. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=m1LJVigNHp.arxiv.org/abs/2310.04408
  52. [54]Tong Yang, Yu Huang, Yingbin Liang, and Yuejie Chi. In-context learning with representations: Contextual generalization of trained transformers. Advances in Neural Information Processing Systems, 37:85867–85898, 2024.arxiv.org/abs/2408.10147
  53. [55]Jiacheng Ye, Zhiyong Wu, Jiangtao Feng, Tao Yu, and Lingpeng Kong. Compositional exemplars for in-context learning. In International Conference on Machine Learning, pages 39818–39833. PMLR, 2023.arxiv.org/abs/2302.05698
  54. [56]Ruiqi Zhang, Spencer Frei, and Peter L Bartlett. Trained transformers learn linear models in-context. Journal of Machine Learning Research, 25(49):1–55, 2024.arxiv.org/abs/2306.09927
  55. [57]Zhuosheng Zhang, Aston Zhang, Mu Li, and Alex Smola. Automatic chain of thought prompting in large language models. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=5NTt8GFjUHKr.arxiv.org/abs/2210.03493
  56. [58]Yilun Zhu, Jianxin Zhang, Aditya Gangrade, and Clay Scott. Label noise: Ignorance is bliss. Advances in Neural Information Processing Systems, 37:116575–116616, 2024.arxiv.org/abs/2411.00079

Paper details

vlnc:W_tbefyytr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents