arXiv:2512.05156cs.AIcs.CL2025-12被引 1

用信息论和热力学新指标,量化大模型回答与上下文的一致性。

Semantic Faithfulness and Entropy Production Measures to Tame Your LLM Demons and Manage Hallucinations

  • 将大模型视为信息引擎,通过概率矩阵差衡量答案忠实度
  • 提出语义忠实度(SF)与熵产生(SEP)双指标,高忠实度对应低熵
  • 适用于财报摘要等需高可信度场景的模型评估与幻觉控制

评估大语言模型(LLM)在特定任务中的忠实度是一项复杂挑战。本文提出两个基于信息论与热力学的新无监督度量方法。将LLM视为双向信息引擎,隐层作为麦克斯韦妖,通过提示$Q$控制上下文$C$到答案$A$的转换。我们将问题-上下文-答案(QCA)三元组建模为共享主题的概率分布,将从$C$到$Q$和$A$的主题转换分别建模为转移矩阵${\bf Q}$和${\bf A}$,分别编码查询目标与实际输出。语义忠实度(SF)通过这两矩阵间的KL散度衡量,利用凸优化同步推断两矩阵,最小散度映射至[0,1]区间,得分越高表示越忠实。此外,提出基于热力学的语义熵产生(SEP)指标,证明高忠实度通常伴随低熵产生。该框架可用于模型评估与幻觉控制,在企业10-K文件摘要任务中验证有效。

原文摘要 · Abstract (English)

Evaluating faithfulness of Large Language Models (LLMs) to a given task is a complex challenge. We propose two new unsupervised metrics for faithfulness evaluation using insights from information theory and thermodynamics. Our approach treats an LLM as a bipartite information engine where hidden layers act as a Maxwell demon controlling transformations of context $C $ into answer $A$ via prompt $Q$. We model Question-Context-Answer (QCA) triplets as probability distributions over shared topics. Topic transformations from $C$ to $Q$ and $A$ are modeled as transition matrices ${\bf Q}$ and ${\bf A}$ encoding the query goal and actual result, respectively. Our semantic faithfulness (SF) metric quantifies faithfulness for any given QCA triplet by the Kullback-Leibler (KL) divergence between these matrices. Both matrices are inferred simultaneously via convex optimization of this KL divergence, and the final SF metric is obtained by mapping the minimal divergence onto the unit interval [0,1], where higher scores indicate greater faithfulness. Furthermore, we propose a thermodynamics-based semantic entropy production (SEP) metric in answer generation, and show that high faithfulness generally implies low entropy production. The SF and SEP metrics can be used jointly or separately for LLM evaluation and hallucination control. We demonstrate our framework on LLM summarization of corporate SEC 10-K filings.

大模型评估幻觉检测信息论忠实度

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