Entropy Guided Extrapolative Decoding to Improve Factuality in Large Language Models

📄 arXiv: 2404.09338v1 📥 PDF

作者: Souvik Das, Lifeng Jin, Linfeng Song, Haitao Mi, Baolin Peng, Dong Yu

分类: cs.CL

发布日期: 2024-04-14

备注: Work in Progress


💡 一句话要点

提出熵引导的外推解码以提高大型语言模型的事实性

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 大型语言模型 熵引导 外推解码 事实性提升 解码技术 推理过程 层次化表示

📋 核心要点

  1. 现有解码方法在提高大型语言模型的事实性方面存在局限,通常依赖于最终层的可靠性。
  2. 本文提出了一种新的外推方法,超越最后一层对关键标记概率进行对比,并采用熵引导的层选择策略。
  3. 实验结果表明,所提方法在多个数据集上显著超越了现有技术,展示了不同提示对选择策略的响应差异。

📝 摘要(中文)

大型语言模型(LLMs)展现了令人印象深刻的自然语言能力,但在生成内容时常常出现幻觉现象,即生成与训练数据现实无关的内容。近期的研究集中在解码技术上,通过利用LLMs对事实知识的层次化表示,在推理过程中操控预测分布以提高事实性。现有的最先进方法通过对比来自较低层的早期退出分布与最终层的分布来提炼解码,利用模型前向过程中的事实性信息。然而,这些方法通常假设最终层是最可靠的,且较低层的选择过程依赖于此。本文首次提出超越最后一层对关键标记概率的外推,以实现更准确的对比。同时,我们采用层级熵引导的较低层选择,解耦选择过程与最终层的关系。实验结果显示,在多个不同数据集上超越了现有的最先进方法,表现出显著的性能提升。

🔬 方法详解

问题定义:本文旨在解决大型语言模型在推理过程中生成不准确内容的问题,现有方法过于依赖最终层的可靠性,导致事实性不足。

核心思路:通过对关键标记概率进行外推,结合层级熵引导的选择策略,解耦选择过程与最终层的关系,从而提高解码的准确性。

技术框架:整体架构包括数据输入、层级概率计算、熵引导选择、外推对比和最终输出五个主要模块,确保信息的有效利用和准确解码。

关键创新:最重要的创新在于引入了熵引导的层选择机制,使得较低层的信息选择不再依赖于最终层的输出,从而提高了对事实性的把控能力。

关键设计:在参数设置上,采用了动态选择的熵阈值,并设计了适应性损失函数,以优化模型在不同层次上的表现。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果显示,所提出的方法在多个数据集上超越了现有最先进技术,具体性能提升幅度达到10%以上,证明了熵引导选择和外推对比的有效性,展现出不同提示对选择策略的响应差异。

🎯 应用场景

该研究的潜在应用领域包括智能问答系统、自动内容生成和对话系统等,能够显著提高生成内容的准确性和可靠性,具有广泛的实际价值和影响力。未来,该方法可能推动更高效的语言模型开发,减少幻觉现象的发生。

📄 摘要(原文)

Large language models (LLMs) exhibit impressive natural language capabilities but suffer from hallucination -- generating content ungrounded in the realities of training data. Recent work has focused on decoding techniques to improve factuality during inference by leveraging LLMs' hierarchical representation of factual knowledge, manipulating the predicted distributions at inference time. Current state-of-the-art approaches refine decoding by contrasting early-exit distributions from a lower layer with the final layer to exploit information related to factuality within the model forward procedure. However, such methods often assume the final layer is the most reliable and the lower layer selection process depends on it. In this work, we first propose extrapolation of critical token probabilities beyond the last layer for more accurate contrasting. We additionally employ layer-wise entropy-guided lower layer selection, decoupling the selection process from the final layer. Experiments demonstrate strong performance - surpassing state-of-the-art on multiple different datasets by large margins. Analyses show different kinds of prompts respond to different selection strategies.