Skip to main content
QUICK REVIEW

[论文解读] Distinguishing the Knowable from the Unknowable with Language Models

Gustaf Ahdritz, Tian Qin|arXiv (Cornell University)|Feb 5, 2024
Explainable Artificial Intelligence (XAI)Computer Science被引用 3
一句话总结

本文提出一种方法,通过使用更大的模型作为真实分布的代理,来区分大语言模型(LLM)输出中的认知不确定性(基于知识的不确定性)与随机不确定性(固有的随机性)。该方法引入了有监督的线性探测器和一种无监督的上下文学习测试(ICLT),利用模型激活来分类不确定性类型,在不同领域中实现了非平凡的准确率与泛化能力,表明LLM天然编码了可区分的不确定性表征。

ABSTRACT

We study the feasibility of identifying epistemic uncertainty (reflecting a lack of knowledge), as opposed to aleatoric uncertainty (reflecting entropy in the underlying distribution), in the outputs of large language models (LLMs) over free-form text. In the absence of ground-truth probabilities, we explore a setting where, in order to (approximately) disentangle a given LLM's uncertainty, a significantly larger model stands in as a proxy for the ground truth. We show that small linear probes trained on the embeddings of frozen, pretrained models accurately predict when larger models will be more confident at the token level and that probes trained on one text domain generalize to others. Going further, we propose a fully unsupervised method that achieves non-trivial accuracy on the same task. Taken together, we interpret these results as evidence that LLMs naturally contain internal representations of different types of uncertainty that could potentially be leveraged to devise more informative indicators of model confidence in diverse practical settings.

研究动机与目标

  • 为解决在自由形式LLM输出中区分认知不确定性(知识缺乏)与随机不确定性(固有分布熵)的挑战。
  • 开发一种实用框架,用于识别模型不确定性源于无知而非固有随机性的情况,尤其是在非结构化文本中。
  • 通过在生成过程中检测认知不确定性,实现更优的模型置信度估计与幻觉缓解。
  • 探索LLM是否天然编码了可分离的不同不确定性类型的表征,从而可通过探测器或自监督方法进行检测。

提出的方法

  • 使用更大、更强大的LLM作为真实底层分布的代理,为小型目标模型中的不确定性类型打标签。
  • 在冻结的预训练模型激活上训练线性与非线性探测器,基于大模型的置信度预测小型模型中不确定性是认知性还是随机性。
  • 提出一种无监督的上下文学习测试(ICLT),通过在重复提示中评估模型行为与候选词的响应,推断不确定性类型而无需标签。
  • 将多次上下文前向传播中最小熵作为大模型不确定性的代理,据此对小型模型的不确定性进行分类。
  • 在多种文本领域中应用该方法,评估探测器的泛化能力与对分布偏移的鲁棒性。
  • 利用缩放定律来支持较大模型降低认知不确定性的假设,作为标签方案的基础。
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ

实验结果

研究问题

  • RQ1能否通过使用更大模型作为真实分布的代理,在自由形式LLM输出中分离认知不确定性与随机不确定性?
  • RQ2在冻结模型激活上训练的小型线性探测器能否在不同文本领域中准确预测不确定性类型?
  • RQ3像ICLT这样的无监督方法能否在无标签数据的情况下实现非平凡的性能,以识别认知不确定性?
  • RQ4LLM是否天然编码了可区分的不同不确定性类型的表征,从而可被有效探测?
  • RQ5不确定性分类在多大程度上能提升幻觉检测与模型置信度估计的性能?

主要发现

  • 在冻结的模型嵌入上训练的小型线性探测器,利用大模型作为代理,能以高准确率预测小型模型的不确定性是认知性还是随机性。
  • 在某一文本领域上训练的探测器能有效泛化到其他领域,表明其不确定性表征具有鲁棒性与可迁移性。
  • 无监督的上下文学习测试(ICLT)在无需标签数据的情况下,实现了非平凡的准确率,能够识别认知不确定性。
  • 结果表明,LLM天然编码了可分离的认知不确定性与随机不确定性内部表征,可被用于置信度估计。
  • 该方法可通过识别主要为认知不确定性的高风险幻觉易发词元,实现在生成过程中的干预检测。
  • 该框架为通过不确定性感知的生成与微调,提升LLM输出的真实性提供了基础。
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。