[论文解读] Conformal Language Modeling
该论文提出了一种基于采样的保守预测框架,用于生成式语言模型,能够在具有统计保证的前提下给出预测集合,并提供一种在长文本中识别独立正确组件的方法。
We propose a novel approach to conformal prediction for generative language models (LMs). Standard conformal prediction produces prediction sets -- in place of single predictions -- that have rigorous, statistical performance guarantees. LM responses are typically sampled from the model's predicted distribution over the large, combinatorial output space of natural language. Translating this process to conformal prediction, we calibrate a stopping rule for sampling different outputs from the LM that get added to a growing set of candidates until we are confident that the output set is sufficient. Since some samples may be low-quality, we also simultaneously calibrate and apply a rejection rule for removing candidates from the output set to reduce noise. Similar to conformal prediction, we prove that the sampled set returned by our procedure contains at least one acceptable answer with high probability, while still being empirically precise (i.e., small) on average. Furthermore, within this set of candidate responses, we show that we can also accurately identify subsets of individual components -- such as phrases or sentences -- that are each independently correct (e.g., that are not "hallucinations"), again with statistical guarantees. We demonstrate the promise of our approach on multiple tasks in open-domain question answering, text summarization, and radiology report generation using different LM variants.
研究动机与目标
- 通过避免对输出空间进行全枚举,将保守预测与生成式语言模型结合起来。
- 对采样候选输出以形成充分预测集合的停止规则进行校准。
- 引入拒绝机制以在保留覆盖率的前提下剪枝低质量或冗余样本。
- 将保守方法扩展到在长文本生成中识别独立正确的组件。
- 在开放领域问答、文本摘要和放射科报告生成等多样化任务中,使用不同的语言模型演示有效性与可行性。
提出的方法
- 从语言模型 pθ(y|x) 采样候选输出 y。
- 若输出满足最低质量 Q(x,y) 且与现有集合相比具有多样性,使用相似度 S 进行判定并接受样本;否则拒绝。
- 在集合 Cλ 增长,直到集合级别的置信 F(Cλ) 达到阈值 λ3 时停止。
- 通过 Learn Then Test (LTT) 对超参数配置 λ = (λ1, λ2, λ3) 进行校准,以在高概率下控制风险。
- 使用 LTT 计算每个 λ 的有效 p 值,并应用控制家族错误率(FWER)的选择程序来挑选有效配置。
- 分配一个准入函数 A 与一个保守的 Ā;证明在测试时最终集合 Cλ 至少以概率 ≥ 1−ε 含有一个可接纳的 y(等式 (Eq. 1))。
- 将框架扩展到通过将输出分解为带有 E 的组件来识别长文本生成中的自信组件,关联组件级的准入 A^c 和置信度 F^c,并 calibrating γ 以在保持保障的同时最大化自信组件的数量。

实验结果
研究问题
- RQ1我们是否能够在不枚举整个输出空间的情况下,为生成式语言模型的输出提供覆盖性保证?
- RQ2如何对基于采样的生成进行校准,以产生较小、精确的预测集合,并以高概率接受至少一个可接纳的输出?
- RQ3在统计保证下,是否能够可靠地识别长文本生成中的独立正确组件(如短语或句子)?
- RQ4该方法在放射科报告生成、新闻摘要和开放域问答等多样任务上的表现如何?
主要发现
- 该方法提供正式保证:输出集合在高概率下包含至少一个可接纳的响应。
- 在经过校准后,输出集合在经验上更为精确(平均更小)。
- 能够在更长的生成文本中识别自信组件,并具有统计保证。
- 该框架对模型是无关的,已在放射科报告生成、CNN/DM 摘要和 TriviaQA 问答等任务中,使用不同的语言模型进行演示。
- 通过 Learn Then Test 和 Pareto Testing 实现高效的超参数搜索和风险控制。
- 实验表明,与基线相比,在多任务上获得有意义且经过校准的不确定性集合。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。