REVIEW 4 major objections 6 minor 2 references
Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval
T0 review · 4 major / 6 minor · reviewed 2026-07-12 · grok-4.5
Pith's one-line read An OOD proxy from a source-tuned LLM and its unmodified base model can rank better in-context demonstrations without any target-domain access.
desk verdict Practical target-free demo retrieval that works on BOSS; the proxy ranking story is empirically useful but the theory only bounds ratio error, not ranking fidelity. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The OOD proxy score S(x) = log PPL of the unmodified base model minus log PPL of the source-tuned model (Eq. 3), whose error relative to the true likelihood ratio is bounded by Theorem 1 under mild KL and pointwise-mass assumptions; the score first filters a candidate pool, after which similarity plus a global Mahalanobis diversity constraint (Algorithm 1) selects the final demonstrations.
What would settle it
Construct a target domain known to lie far outside the base model’s pretraining support (e.g., highly specialized medical notes or synthetic adversarial NLI) and check whether the proxy ranking still beats random and pure KNN selection by a statistically significant margin on held-out accuracy; failure on that regime would falsify the claim that the base model is a reliable target proxy.
Extended reading notes
Core claim
DOPA shows that the log-perplexity difference between a source-domain instruction-tuned LLM and the same unmodified base LLM is a usable ranking signal for source examples that behave like an inaccessible target domain, and that combining this ranking with a Mahalanobis-distance diversity constraint yields demonstrations that improve OOD in-context learning across classification and NER tasks on multiple model families.
Load-bearing premise
The method assumes that an unmodified pretrained language model is already a good enough weak stand-in for whatever unknown target domain the user will later face.
Editorial extensions
If this is right
- Practitioners can improve OOD in-context learning without collecting any target-domain examples.
- A single lightweight LoRA instruction-tuning pass on source data is enough to build the ranking signal.
- Pure semantic nearest-neighbor retrieval can underperform or even hurt under strong shift; a behavioral proxy is needed.
- Mahalanobis diversity keeps the proxy from collapsing onto short, high-frequency patterns.
- Closed-source models can still benefit by using an open model as the proxy, as the paper already shows for GPT-4o-mini and GPT-3.5-turbo.
Reading between the lines
- If the base model’s pretraining already covers the target well, the proxy signal strengthens; if the target is truly novel jargon or adversarial text, ranking may degrade toward random.
- The same adapted-versus-unadapted pair can serve as a cheap density-ratio estimator for any retrieval or filtering problem where the target distribution is unobserved or private.
- Replacing the single base-model proxy with an ensemble or a continually updated prior would be a direct way to tighten the practical error of Theorem 1.
- The method’s success on NER and extractive QA hints that the same proxy may help token-level and span-level selection, not only sentence-level classification.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes DOPA, a target-inaccessible demonstration retrieval framework for OOD in-context learning. It constructs an OOD proxy from a source-instruction-tuned LLM and the unmodified base LLM, scores source samples by the log-perplexity difference S(x) (Eq. 3), filters a candidate pool, and then retrieves demonstrations by combining representation similarity with a Mahalanobis-distance diversity constraint (Algorithm 1). Theorem 1 bounds the proxy log-ratio error under KL and pointwise lower-bound assumptions; Lemma 1 argues that a uniform target proxy yields a looser bound. Experiments on the BOSS benchmark (SA, TD, NLI, NER) across six open-source and two closed-source LLMs report consistent gains over Random, KNN, DrICL, Rewrite, InfICL, and DICL, with ablations, k/N sweeps, Wilcoxon tests, and energy-score visualizations supporting the design.
Significance. If the empirical gains hold under stricter scrutiny of the proxy, the work addresses a practically important setting: demonstration selection when no target-domain pool is available. The multi-model, multi-task evaluation, component ablations, significance testing, released code, and energy-score analyses are concrete strengths. The proxy idea is a useful bridge between OOD detection and ICL retrieval. The theoretical contribution is modest but clean as a ratio-error bound; its main value is framing rather than a ranking guarantee. Overall significance is solid for the ICL/OOD robustness literature, contingent on clearer limits of the base-LLM target proxy.
major comments (4)
- [§3.2 Theorem 1 / Eq. (3)] §3.2, Theorem 1 and Eq. (3): Theorem 1 bounds |log(P_t/P_s) − log(P^p_t/P^p_s)| under KL and m_t, m_s > 0, but does not establish that the ranking induced by S(x) preserves the ranking of the true likelihood ratio, nor that ε_t is small for the unmodified base LLM on BOSS targets. Contribution (i) and the abstract present this as demonstrating proxy “soundness” for selecting target-aligned samples. Please either (a) state the claim strictly as a ratio-error bound and separate it from ranking claims, or (b) add analysis (e.g., rank correlation / retrieval metrics against an oracle with target access) showing when S(x) preserves useful orderings. Without this, the theory does not underwrite the central retrieval claim.
- [§3.2 / Appendix F] §3.2 (“LLMs can act as weak proxies for the target distribution”) and Appendix F (anli KDE): The method’s load-bearing assumption is that the unmodified base model keeps the target proxy close enough that low S(x) means “more target-like,” not merely “less source-like.” The paper itself notes that on anli the proxy distribution fails to leave the source. Please quantify proxy quality more systematically (e.g., energy/KL overlap of ˆD_S vs D_T across all datasets; failure cases; correlation of S(x) with target-domain energy or accuracy contribution) and discuss when the assumption breaks. Lemma 1 only rules out the uniform proxy; it does not calibrate the base-LLM prior.
- [Appendix B.3 / Tables 2–3] Appendix B.3 and Tables 2–3: For GPT-4o-mini and GPT-3.5-turbo, both source and target proxies are replaced by Llama-3.2-3B, so S(x) is fully decoupled from the model that performs ICL. Gains on closed-source models are among the more interesting results, yet this substitution is only briefly noted. Please justify why a third-party proxy still ranks useful demonstrations for a different model family, report sensitivity when the proxy model changes (partially in Table 5 for open models), and avoid implying that the same proxy construction used for open models applies unchanged to closed APIs.
- [Tables 1–3] Tables 1–3: Several reported gains over strong baselines are small or mixed (e.g., NLI averages often within ~1 point; some cells where Random or InfICL match or beat DOPA). Wilcoxon significance over nine tasks is helpful, but the OOD-robustness claim would be clearer with effect-size reporting, confidence intervals or multi-seed variance for non-deterministic baselines, and explicit discussion of when DOPA does not help. This is needed so readers can judge practical impact rather than average rank alone.
minor comments (6)
- [§3.2 Eqs. (2)–(3)] Eq. (2) writes S(x) = P_target/P_source ≈ proxy ratio, while Eq. (3) switches to log-PPL difference. State explicitly that lower S(x) is preferred and that log-PPL difference is monotone with the log-likelihood form used in Theorem 1.
- [Algorithm 1] Algorithm 1: notation is slightly inconsistent (C as both initial candidate size and a counter index; “Div Ddemo ≤ Div {ˆx}∪Ddemo”). Clarify initialization of C and the acceptance rule.
- [Figure 1 / §3.1] Figure 1 caption and §3.1: “N×|Y| labeled examples” vs Algorithm 1 “size N” — unify demonstration-count notation for classification vs generative tasks.
- [§2] Related work: briefly contrast with other target-free or domain-generalization ICL selection methods beyond the listed baselines; a short positioning paragraph would help.
- [Throughout] Typos/style: “ademonstrationoptimization”, “OODproxyassessment”, “Wkeglarczyk” (Węglarczyk), and occasional missing spaces after periods in the PDF source.
- [Appendix B.1] Appendix B.1: excluding CoNLL for annotation errors is reasonable; state how label-space unification for NER (Location/Organization/Person only) affects comparability to prior BOSS numbers.
Circularity Check
No load-bearing circularity: proxy score and retrieval are constructive, theory is a standard KL bound independent of results, and claims are evaluated on held-out targets.
full rationale
The core construction (source proxy via instruction tuning on DS, target proxy as the unmodified base LLM, S(x) = log PPL_target_proxy(x) - log PPL_source_proxy(x) in Eq. 3, k-filter, then cosine + Mahalanobis diversity in Alg. 1) is definitional and algorithmic; it does not embed the downstream accuracy numbers. Theorem 1 is a generic bound |log(Pt/Ps) - log(Pp_t/Pp_s)| ≤ εt/mt + εs/ms derived from KL and pointwise lower bounds; the short proof in Appendix A uses only the triangle inequality and the definition of KL, with no reference to BOSS accuracies or fitted values. Lemma 1 simply specializes the same bound to a uniform proxy. Experiments compare DOPA against Random/KNN/DrICL/Rewrite/InfICL/DICL on held-out target splits of BOSS (never used to construct the proxies or the ranking), with Wilcoxon tests. The only mild empirical circularity is the usual one: k ∈ {300,500,800,1000} and N ∈ {1..5} are selected after inspecting accuracy curves on the same evaluation suite (Figs. 2–3, Sec. 4.3). That does not force the ranking or the accuracy gains by construction. Self-citations (Song et al. 2024a/b/2025) appear only in related-work or motivation and are not used to justify the proxy, the bound, or uniqueness. Closed-source experiments substitute Llama-3.2-3B as proxy (App. B.3), which is a practical decoupling, not a circular reduction. Overall the paper is self-contained against external baselines; score 1 only for the ordinary hyper-parameter look-ahead.
Assumptions & free parameters
free parameters (4)
- k (proxy-filtered subset size) =
800
- N (demonstrations per label) =
3
- C (initial candidate set size) =
|Y| or 1
- LoRA fine-tuning hyper-parameters =
lr=1e-5, 1 epoch
assumptions (3)
- domain assumption The unmodified base LLM is a sufficiently accurate weak proxy for the unknown target distribution.
- domain assumption KL(P_target || P_proxy_target) ≤ ε_t, KL(P_source || P_proxy_source) ≤ ε_s and pointwise lower bounds m_t, m_s > 0 hold for the relevant samples.
- standard math Triangle inequality and the definition of KL divergence yield the stated proxy-error bound.
invented entities (2)
-
OOD proxy (source-proxy / target-proxy pair)
-
S(x) = log PPL_target_proxy(x) − log PPL_source_proxy(x)
Cite this review
Pith. "Pith review of Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval." pith.science (2026). https://pith.science/paper/O2WLUGGW
@misc{pith2026260600014,
author = {Pith},
title = {Pith review of: Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval},
year = {2026},
howpublished = {\url{https://pith.science/paper/O2WLUGGW}},
note = {Machine review of arXiv:2606.00014}
}
read the original abstract
Although studies have demonstrated that Large Language Models (LLMs) can perform well on Out-of-Distribution (OOD) tasks, their advantage tends to diminish as the distribution shift becomes more severe. Consequently, researchers aim to retrieve distributionally similar and informative demonstrations from the available source domain to boost the inference capabilities of LLMs. However, in practical scenarios where the target domain is inaccessible, evaluating the unknown distribution is challenging, which indirectly impacts the quality of the selected demonstrations. To address this problem, we propose \textbf{DOPA}, a demonstration search framework that incorporates an OOD proxy to approximate the inaccessible target domain and guide the retrieval process. Building on proxy-based evaluation, DOPA further introduces a Mahalanobis distance-based global diversity constraint to ensure sufficient diversity among the retrieved demonstrations. Experimental results on multiple LLMs and tasks demonstrate that DOPA effectively enhances robustness in OOD settings\footnote{https://github.com/bort64/ood\_code}.
Figures
Figures from the paper (4 more)
Reference graph
Works this paper leans on
-
[1]
A survey on evaluation of large language mod- els.ACM Trans. Intell. Syst. Technol., 15(3):39:1– 39:45. Daixuan Cheng, Shaohan Huang, Junyu Bi, Yuefeng Zhan, Jianfeng Liu, Yujing Wang, Hao Sun, Furu Wei, Weiwei Deng, and Qi Zhang. 2023. UPRISE: universal prompt retrieval for improving zero-shot evaluation. InProceedings of the 2023 Conference on Empirical...
arXiv 2023
-
[2]
Revisiting demonstration selection strategies in in-context learning. InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, August 11-16, 2024, pages 9090– 9101. Jie Ren, Peter J. Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark A. DePristo, Joshua V . Dillon, and ...
arXiv 2024
Reviewed July 12, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.