cs.CLMar 24, 2026

Set-Valued Prediction for Large Language Models with Feasibility-Aware Coverage Guarantees

Authors: Ye Li, Anqi Hu, Yuanchang Ye, Shiyan Tong, Zhiyuan Wang, Bo Fu

Organizations: University of Electronic Science and Technology of China, Chengdu, Sichuan, China · Zhejiang University of Finance and Economics, Hangzhou, Zhejiang, China · Southeast University, Nanjing, Jiangsu, China

Abstract

Large language models (LLMs) inherently operate over a large generation space, yet conventional usage typically reports the most likely generation (MLG) as a point prediction, which underestimates the model's capability: although the top-ranked response can be incorrect, valid answers may still exist within the broader output space and can potentially be discovered through repeated sampling. This observation motivates moving from point prediction to set-valued prediction, where the model produces a set of candidate responses rather than a single MLG. In this paper, we propose a principled framework for set-valued prediction, which provides feasibility-aware coverage guarantees. We show that, given the finite-sampling nature of LLM generation, coverage is not always achievable: even with multiple samplings, LLMs may fail to yield an acceptable response for certain questions within the sampled candidate set. To address this, we establish a minimum achievable risk level (MRL), below which statistical coverage guarantees cannot be satisfied. Building on this insight, we then develop a data-driven calibration procedure that constructs prediction sets from sampled responses by estimating a rigorous threshold, ensuring that the resulting set contains a correct answer with a desired probability whenever the target risk level is feasible. Extensive experiments on six language generation tasks with five LLMs demonstrate both the statistical validity and the predictive efficiency of our framework.

Figures & tables

Explore similar work

CardsList
  1. Adaptive Conformal Prediction for Improving Factuality of Generations by Large Language Models

    Apr 15, 2026Aleksandr Rubashevskii, Dzianis Piatrashyn, Preslav Nakov +1Conformal Prediction for Language ModelsConformal Prediction

  2. Uncertainty Quantification for LLM-based Code Generation

    May 12, 2026Senrong Xu, Yuhao Tan, Yanke Zhou +6Uncertainty QuantificationLLM Uncertainty Estimation

  3. On Calibration of Large Language Models: From Response To Capability

    Feb 14, 2026Sin-Han Yang, Cheng-Kuang Wu, Chieh-Yen Lin +3LLM EvaluationConfidence Estimation in Language Models