Manuscript Offprint

arXiv:2609.03005

Unifying Conformal Language Tasks with In-Context Ensembles

Xiao Shi Huang, Chen-Yuan Lin, Bruce Kuwahara, Kin Kwan Leung, Jesse C. Cresswell

Abstract

Many NLP tasks, such as summarization and extractive question answering, reduce to retrieving relevant content from documents under two constraints: coverage, retaining enough pertinent information to achieve some goal, and conciseness, removing as much irrelevant information as possible. Conformal prediction methods have been used to guarantee coverage, and must be optimized for conciseness through design of a score function. State-of-the-art scoring functions use hand-engineered LLM prompts asking the model to rate the importance of content, but manual prompt engineering is labor-intensive and task-specific. We introduce the Conformal Relevance framework which uses in-context learning example curation and ensembling to create a score function which maintains coverage while improving conciseness with minimal manual input. We demonstrate this framework's application on seven NLP tasks, and also theoretically study the impact of diversity for ensembled conformal scores, giving a complementarity condition that characterizes when ensembling improves worst-case sentence scores, and a saturation bound on ensemble improvement.

1 Introduction

Many NLP tasks, including summarization (Mukherjee et al., 2022), extractive question-answering (QA) (Yang et al., 2018), legal review (Koreeda and Manning, 2021), and clinical evidence selection (DeYoung et al., 2020), reduce to retrieving relevant content from documents. Systems for these tasks must satisfy two demands: coverage (relevant content is retained) and conciseness (irrelevant content is excluded). Conformal prediction (Vovk et al., 2005) has become popular as a general purpose framework for providing distribution-free, finite sample coverage guarantees. It operates by calibrating an arbitrary scoring function over a labeled dataset. While coverage is guaranteed, conciseness strongly depends on the scoring function's predictive power.

Several examples of this framework have been studied in detail, differing in their relevance criterion. For question-answering, Mohri and Hashimoto (2024) define relevant content as non-hallucinated claims in the answer, while hallucinations should be filtered out. Kuwahara et al. (2025) look at extractive summarization, defining relevant content as important sentences, and filter out unimportant sentences for conciseness. For these NLP tasks and others, the scoring function is typically a large language model (LLM) configured through task-specific prompt engineering, which is labor-intensive, brittle, and not scalable (Lu et al., 2022; Min et al., 2022).

We aim to subsume all such content-selection tasks under a general purpose relevance scoring function that replaces manual prompt-writing with in-context learning (ICL) (Brown et al., 2020; Dong et al., 2023) example curation. Rather than describing a relevance criterion in natural language as done in past work, we demonstrate it through curated examples and let the LLM infer the criterion from the demonstrations. We call this framework Conformal Relevance: recall-oriented conformal calibration paired with a relevance scoring function, instantiated through an ICL-driven LLM score.

To address the diversity of relevance criteria in a unified way, we develop multiple ICL example selection strategies that induce LLM scoring functions with systematically different strengths and failure modes. Ensembling these scores improves performance while remaining entirely task-agnostic. Concretely, we average K mechanistically distinct ICL-based scoring functions—chosen to span different signal types so that their failures are unlikely to coincide—and treat the result as a single conformal scoring function (Ochoa Rivera et al., 2025; Waldron, 2026). We mathematically formalize a complementarity condition that char-acterizes when ensembling improves worst-case conformal scores. The marginal gain from each additional sub-scoring function gives diminishing returns, bounded by O(1/K)O(1/K).

We apply a fixed ICL scoring configuration on seven NLP datasets spanning five domains and show performance improvements over manually crafted prompts that define the relevance criterion per task. Our Conformal Relevance method removes substantially more irrelevant content at the same coverage on all seven tasks, with up to a ~50% reduction in retained length. Through several ablations and controls, we determine that the gain stems from retrieval-induced diversity across the ensemble's in-context demonstrations. The required label budget is modest: 150–440 labels per task, comprising a shared ICL pool plus a 100-sample calibration set. Our contributions are:

  1. A universal ICL ensemble scoring function for disparate content selection tasks with conformal coverage guarantees.

  2. Four mechanically diverse sub-scoring functions spanning distinct signal types.

  3. A mathematical formalization of score ensembling for recall-oriented conformal prediction.