arXivDaily arXiv每日学术速递 周一至周五更新
​通知:联邦节假日调休:哥伦布日 / 原住民日(Columbus Day / Indigenous Peoples' Day),今日(13日)无更新。
arXiv 2502.03199cs.CLcs.AI

通过大语言模型的逐词跨层熵提升解码事实性

Improve Decoding Factuality by Token-wise Cross Layer Entropy of Large Language Models

Harbin Institute of Technology(哈尔滨工业大学);Beijing Wispirit Technology(北京智语科技);Xuanwu Hospital(宣武医院);Tsinghua University(清华大学)

Jialiang Wu, Yi Shen, Sijia Liu, Yi Tang, Sen Song, Xiaoyi Wang, Longjun Cai

AI总结:

本文提出无需训练的跨层熵增强解码方法END,通过逐词量化跨层概率变化来优先选择事实性更高的词,从而在保持问答准确率的同时显著缓解大语言模型的幻觉问题。

摘要:

尽管大语言模型(LLMs)能力令人印象深刻,但即使它们具备正确知识,也常常面临生成不准确或虚构内容的幻觉问题。本文将对隐藏状态预测变化与输出事实性之间相关性的探索扩展到更深的逐词(token-wise)层面。基于这些见解,我们提出了跨层熵增强解码(END),这是一种无需额外训练即可缓解幻觉的解码方法。END利用跨层内部概率变化来单独量化每个候选词所需的事实知识,并调整最终预测分布,以优先选择事实性更高的词。在幻觉和问答基准上的实验表明,END显著提升了生成内容的真实性和信息量,同时保持了稳健的问答准确率。此外,我们的工作为理解固有知识与输出事实性之间的相关性提供了更深入的视角。

英文摘要:

Despite their impressive capacities, Large language models (LLMs) often struggle with the hallucination issue of generating inaccurate or fabricated content even when they possess correct knowledge. In this paper, we extend the exploration of the correlation between hidden-state prediction changes and output factuality into a deeper, token-wise level. Based on the insights , we propose cross-layer Entropy eNhanced Decoding (END), a decoding method that mitigates hallucinations without requiring extra training. END leverages inner probability changes across layers to individually quantify the factual knowledge required for each candidate token, and adjusts the final predicting distribution to prioritize tokens with higher factuality. Experiments on both hallucination and QA benchmarks demonstrate that END significantly enhances the truthfulness and informativeness of generated content while maintaining robust QA accuracy. Moreover, our work provides a deeper perspective on understanding the correlations between inherent knowledge and output factuality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑