嵌入信任:语义各向同性预测长文本生成中的非事实性
Embedding Trust: Semantic Isotropy Predicts Nonfactuality in Long-Form Text Generation
AI总结:
该研究提出通过语义各向同性(单位球面上归一化文本嵌入的均匀程度)评估LLMs生成长文本的可信度,其方法无需标注数据等,在多领域仅用少量样本预测非事实性的表现优于现有信号。
摘要:
为了将大语言模型(LLMs)部署到需要对开放式提示给出实质准确响应的高风险应用领域,我们需要可靠且计算成本低的方法来评估LLMs生成的长文本响应的可信度。然而,现有方法通常依赖逐条主张的事实核查,这在计算上成本高昂,且在针对开放式提示的长文本响应中表现脆弱。在本研究中,我们引入语义各向同性——单位球面上归一化文本嵌入的均匀程度——并利用它评估LLMs生成的长文本响应的可信度。为此,我们生成若干长文本响应,对其进行嵌入处理,并将这些响应的语义各向同性水平估计为单位球面上嵌入的角离散度。我们发现,更高的语义各向同性(即更大的嵌入离散度)可靠地表明样本间的事实一致性更低。我们的方法不需要标注数据、微调或超参数选择,可与开放权重或封闭权重嵌入模型配合使用。在多个领域中,我们的方法在仅使用少量样本预测非事实性方面始终优于现有的聚合信任信号,提供了一种实用、低成本的初阶信号,可在实际LLMs工作流程中补充主张级别的验证。
英文摘要:
To deploy large language models (LLMs) in high-stakes application domains that require substantively accurate responses to open-ended prompts, we need reliable, computationally inexpensive methods that assess the trustworthiness of long-form responses generated by LLMs. However, existing approaches often rely on claim-by-claim fact-checking, which is computationally expensive and brittle in long-form responses to open-ended prompts. In this work, we introduce semantic isotropy -- the degree of uniformity across normalized text embeddings on the unit sphere -- and use it to assess the trustworthiness of long-form responses generated by LLMs. To do so, we generate several long-form responses, embed them, and estimate the level of semantic isotropy of these responses as the angular dispersion of the embeddings on the unit sphere. We find that higher semantic isotropy -- that is, greater embedding dispersion -- reliably signals lower factual consistency across samples. Our approach requires no labeled data, no fine-tuning, and no hyperparameter selection, and can be used with open- or closed-weight embedding models. Across multiple domains, our method consistently outperforms existing aggregate trust signals in predicting nonfactuality using only a handful of samples, offering a practical, low-cost first-pass signal that complements claim-level verification in real-world LLM workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。