UCS: Estimating Unseen Coverage for Improved In-Context Learning

Jiayi Xin, Xiang Li, Evan Qiang, Weiqing He, Tianqi Shang +2 more
4/13/2026
cs.LGcs.CL

Official code: Raina-Xin/UCS (2 stars, MIT, last commit 2026-05-03).

Abstract

In-context learning (ICL) performance depends critically on which demonstrations are placed in the prompt, yet most existing selectors prioritize heuristic notions of relevance or diversity and provide limited insight into the coverage of a demonstration set. We propose Unseen Coverage Selection (UKS), a training-free, subset-level coverage prior motivated by the principle that a good demonstration set should expose the model to latent cluster unrevealed by the currently selected subset. UCS operationalizes this idea by (1) inducing discrete latent clusters from model-consistent embeddings and (2) estimating the number of unrevealed clusters within a candidate subset via a Smoothed Good--Turing estimator from its empirical frequency spectrum. Unlike previous selection methods, UCS is coverage-based and training-free, and can be seamlessly combined with both query-dependent and query-independent selection baselines via a simple regularized objective. Experiments on multiple intent-classification and reasoning benchmarks with frontier Large Language Models show that augmenting strong baselines with UCS consistently improves ICL accuracy by up to 2-6% under the same selection budget, while also yielding insights into task- and model-level latent cluster distributions. Code is available at https://github.com/Raina-Xin/UCS.

View on arXivView PDF

Code Implementations(1)

Raina-Xin/UCSOfficial100%
MIT

[ACL 2026 Findings] UCS: Estimating Unseen Coverage for Improved In-Context Learning

20Shell, PythonApr 10, 20265 months agoMIT
demonstration-selectionin-context-learninglarge-language-modelssmoothed-good-turingunseen-coverage-estimation

Similar Papers

Cite this paper

@article{xin2026ucs,
  title  = {UCS: Estimating Unseen Coverage for Improved In-Context Learning},
  author = {Jiayi Xin and Xiang Li and Evan Qiang and Weiqing He and Tianqi Shang and Weijie J. Su and Qi Long},
  year   = {2026},
  eprint = {2604.12015},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.12015v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.12015.svg)](https://codeofpaper.com/paper/2604.12015)

Discussion