基于近邻的不可交换保形语言生成
Non-Exchangeable Conformal Language Generation with Nearest Neighbors
AI总结:
针对文本生成中独立同分布假设不成立导致保形预测难应用的问题,提出基于近邻的不可交换保形核采样方法,可后处理应用于任意模型,提供带统计保证的词元级预测集,在机器翻译和语言建模任务上生成质量与覆盖度表现优异。
摘要:
量化自动生成文本中的不确定性,对于帮助人类排查潜在幻觉问题、提升系统可靠性至关重要。保形预测(conformal prediction)是一类能提供具备统计保证的预测结果的理想框架,但将其应用于文本生成颇具挑战,因为任何独立同分布(i.i.d.)假设都不符合实际场景。本文利用不可交换保形预测的最新研究成果填补了这一空白,该方法仍能保证覆盖范围边界。最终提出的不可交换保形核采样(non-exchangeable conformal nucleus sampling),是保形预测框架面向基于近邻的生成任务的全新扩展。我们的方法可作为后处理手段应用于任意模型,无需额外训练,还能提供具备统计保证的词元级校准预测集。在机器翻译和语言建模任务上的实验显示,该方法在生成质量上取得了令人鼓舞的结果。同时它还能生成覆盖度良好且更紧凑的预测集,为实现具备保形保证的采样提供了更具理论原则性的方案。
英文摘要:
Quantifying uncertainty in automatically generated text is important for letting humans check potential hallucinations and making systems more reliable. Conformal prediction is an attractive framework to provide predictions imbued with statistical guarantees, however, its application to text generation is challenging since any i.i.d. assumptions are not realistic. In this paper, we bridge this gap by leveraging recent results on non-exchangeable conformal prediction, which still ensures bounds on coverage. The result, non-exchangeable conformal nucleus sampling, is a novel extension of the conformal prediction framework to generation based on nearest neighbors. Our method can be used post-hoc for an arbitrary model without extra training and supplies token-level, calibrated prediction sets equipped with statistical guarantees. Experiments in machine translation and language modeling show encouraging results in generation quality. By also producing tighter prediction sets with good coverage, we thus give a more theoretically principled way to perform sampling with conformal guarantees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。