arXiv:2412.06676cs.LGcs.CL2024-12NeurIPS被引 33

让大模型学会说‘我不知道’,减少胡说八道。

I Don't Know: Explicit Modeling of Uncertainty with an [IDK] Token

  • 引入[IDK]特殊标记,让模型在不确定时明确表达未知。
  • 在多个任务上显著降低错误率,同时保持知识容量几乎不变。
  • 适合需要高可靠性、避免幻觉的场景,如医疗与法律问答。

大型语言模型虽能捕捉真实世界知识,在诸多下游任务中表现优异,但仍易产生幻觉,生成不实内容。本文提出一种新型校准方法:在模型词表中添加特殊标记[IDK]('我也不知道'),并通过目标函数将错误预测的概率质量转移到[IDK]上。该方法使模型能够显式表达不确定性。我们在多种模型架构和事实性下游任务上评估该方法,发现训练后的模型在易出错处能更准确地表达不确定,且仅轻微损失原有知识。我们还进行了大量消融实验,并详细分析了方法在精确率与召回率间的权衡关系。

原文摘要 · Abstract (English)

Large Language Models are known to capture real-world knowledge, allowing them to excel in many downstream tasks. Despite recent advances, these models are still prone to what are commonly known as hallucinations, causing them to emit unwanted and factually incorrect text. In this work, we propose a novel calibration method that can be used to combat hallucinations. We add a special [IDK] ("I don't know") token to the model's vocabulary and introduce an objective function that shifts probability mass to the [IDK] token for incorrect predictions. This approach allows the model to express uncertainty in its output explicitly. We evaluate our proposed method across multiple model architectures and factual downstream tasks. We find that models trained with our method are able to express uncertainty in places where they would previously make mistakes while suffering only a small loss of encoded knowledge. We further perform extensive ablation studies of multiple variations of our approach and provide a detailed analysis of the precision-recall tradeoff of our method.

大模型幻觉不确定性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。