针对大语言模型的下一个标记预测的符合预测集:在覆盖保证与集合效率之间平衡
Conformal Prediction Sets for Next-Token Prediction in Large Language Models: Balancing Coverage Guarantees with Set Efficiency
AI总结:
本文提出VACP框架,通过语义掩码和温度调整评分,在保证覆盖的前提下显著提升预测集效率,实验证明其在大语言模型下一个标记预测中的有效性。
摘要:
在高风险领域部署大型语言模型(LLMs)需要严格不确定性量化,但标准的softmax概率通常校准不佳。我们系统研究了自适应预测集(APS)在具有大词汇量(超过250,000个标记)的transformer模型中的下一个标记预测应用。我们的核心贡献是识别了覆盖效率的权衡:虽然朴素的符合预测能保证有效覆盖,但会产生数百个标记的预测集,使其信息不明确。我们提出了一种语义掩码和温度调整评分相结合的符合预测框架(VACP),以减少有效预测空间同时保证边际覆盖。在Gemma-2B上使用SQUAD和WikiText基准测试表明,VACP实现了89.7%的经验覆盖(90%目标),同时将预测集的均值大小从847个标记减少到4.3个标记——效率提高了197倍。我们提供了词汇减少的理论分析,并释放了我们的实现以供可重复性。
英文摘要:
Deploying large language models (LLMs) in high-stakes domains requires rigorous uncertainty quantification, yet standard softmax probabilities are often poorly calibrated. We present a systematic study of Adaptive Prediction Sets (APS) applied to next-token prediction in transformer-based models with large vocabularies (greater than 250,000 tokens). Our central contribution is the identification of a coverage-efficiency tradeoff: while naive conformal prediction achieves valid coverage, it produces prediction sets of hundreds of tokens, rendering them uninformative. We propose Vocabulary-Aware Conformal Prediction (VACP), a framework that leverages semantic masking and temperature-adjusted scoring to reduce the effective prediction space while provably maintaining marginal coverage. Experiments on Gemma-2B using SQUAD and WikiText benchmarks demonstrate that VACP achieves 89.7 percent empirical coverage (90 percent target) while reducing the mean prediction set size from 847 tokens to 4.3 tokens -- a 197x improvement in efficiency. We provide a theoretical analysis of vocabulary reduction and release our implementation for reproducibility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。