{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-12015","title":"UCS: Estimating Unseen Coverage for Improved In-Context Learning","arxiv_id":"2604.12015","date":"2026-04-13","proceeding":null,"authors":["Jiayi Xin","Xiang Li","Evan Qiang","Weiqing He","Tianqi Shang","Weijie J. Su","Qi Long"],"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.","url_abs":"https://arxiv.org/abs/2604.12015","url_pdf":"https://arxiv.org/pdf/2604.12015","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2604.12015","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.12015"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Raina-Xin/UCS","reach":null}],"summary":{"ran":3,"ran_fixture":1,"ran_honours":1},"by_repo_kind":{"found_in_text":{"samples":5,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"ea39531e989f3aea","entry":"SGTSpectrumState","repo":"Raina-Xin/UCS","repo_kind":"found_in_text","path":"selection.py","file_url":"https://github.com/Raina-Xin/UCS/blob/HEAD/selection.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea39531e989f3aea"}},{"code_sha256_prefix":"2c628a194ffc52a5","entry":"greedy_sgt_selection_fast","repo":"Raina-Xin/UCS","repo_kind":"found_in_text","path":"selection.py","file_url":"https://github.com/Raina-Xin/UCS/blob/HEAD/selection.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2c628a194ffc52a5"}},{"code_sha256_prefix":"0567f974c2773512","entry":"init_seed_indices","repo":"Raina-Xin/UCS","repo_kind":"found_in_text","path":"selection.py","file_url":"https://github.com/Raina-Xin/UCS/blob/HEAD/selection.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0567f974c2773512"}},{"code_sha256_prefix":"55eaf59c2948f163","entry":"smooth_counts_powerlaw","repo":"Raina-Xin/UCS","repo_kind":"found_in_text","path":"selection.py","file_url":"https://github.com/Raina-Xin/UCS/blob/HEAD/selection.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55eaf59c2948f163"}},{"code_sha256_prefix":"fd1a96b8bff26ae5","entry":"smoothed_good_toulmin_sgt","repo":"Raina-Xin/UCS","repo_kind":"found_in_text","path":"selection.py","file_url":"https://github.com/Raina-Xin/UCS/blob/HEAD/selection.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd1a96b8bff26ae5"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}