arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.10193cs.AI
收藏

SAFER:在大语言模型中基于风险的采样-过滤方法

SAFER: Risk-Constrained Sample-then-Filter in Large Language Models

University of California, Santa Cruz(加州大学圣克鲁兹分校);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Qingni Wang, Yue Fan, Xin Eric Wang

AI总结:

SAFER通过两阶段风险控制框架,在大语言模型中实现风险约束的采样与过滤,提升输出可信度与数据效率。

摘要:

随着大语言模型(LLMs)越来越多地应用于对风险敏感的应用,如现实中的开放式问答(QA),确保其输出的可信度变得至关重要。现有的选择性符合预测(SCP)方法通过构建具有受限误覆盖率的预测集来提供统计保证。然而,先前的工作过于天真地假设所有实例的可接受答案可以通过有限的采样获得,即使在缺乏固定有限解空间的开放式QA场景中也是如此。为了解决这个问题,我们引入了一个两阶段的风险控制框架,包括回避意识采样和符合化过滤(SAFER)。首先,在保留的校准集中,SAFER在最大采样上限内校准采样预算,使用Clopper-Pearson精确方法在用户期望的风险水平(即预测集的最大允许误覆盖率)下进行校准。如果无法在上限内满足风险水平,则回避;否则,校准后的采样预算成为测试时的最低要求。然后,我们使用在校准预算下能够获得正确答案的校准实例,并应用符合风险控制方法来确定一个统计上有效的不确定性阈值,从而过滤掉候选集中的不可靠干扰项。在这一阶段,SAFER引入了一个额外的风险水平来指导阈值的计算,从而控制正确答案被排除的风险。此外,我们还展示了SAFER能够与各种任务特定的准入标准和校准-测试分割比例兼容,突显了其稳健性和高效的数据利用。

英文摘要:

As large language models (LLMs) are increasingly deployed in risk-sensitive applications such as real-world open-ended question answering (QA), ensuring the trustworthiness of their outputs has become critical. Existing selective conformal prediction (SCP) methods provide statistical guarantees by constructing prediction sets with a constrained miscoverage rate for correct answers. However, prior works unrealistically assume that admissible answers for all instances can be obtained via finite sampling, even for open-ended QA scenarios that lack a fixed and finite solution space. To address this, we introduce a two-stage risk control framework comprising abstention-aware sampling and conformalized filtering (SAFER). Firstly, on a held-out calibration set, SAFER calibrates a sampling budget within the maximum sampling cap, using the Clopper-Pearson exact method at a user-desired risk level (i.e., the maximum allowable miscoverage rate of the sampling sets). If the risk level cannot be satisfied within the cap, we abstain; otherwise, the calibrated sampling budget becomes the minimum requirements at test time. Then, we employ calibration instances where correct answers are attainable under the calibrated budget and apply the conformal risk control method to determine a statistically valid uncertainty threshold, which filters unreliable distractors from the candidate set for each test data point. In this stage, SAFER introduces an additional risk level to guide the calculation of the threshold, thereby controlling the risk of correct answers being excluded. Furthermore, we show that SAFER is compatible with various task-specific admission criteria and calibration-test split ratios, highlighting its robustness and high data efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑