arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.17519cs.CL
收藏

面向检索增强大语言模型的基于熵的解码方法

Entropy-Based Decoding for Retrieval-Augmented Large Language Models

The Chinese University of Hong Kong(香港中文大学);Imperial College London(帝国理工学院);University College London(伦敦大学学院);Tsinghua University(清华大学)

Zexuan Qiu, Zijing Ou, Bin Wu, Jingjing Li, Aiwei Liu, Irwin King

AI总结:

针对检索增强 LLM 易受内外部噪声干扰的问题,提出免训练的基于熵的文档并行集成与对比解码方法,提升可靠外部信息利用,并在开放域问答上验证优越性。

摘要:

利用检索到的外部知识增强大语言模型(LLM),已被证明可有效提高生成回答的事实准确性。尽管取得了成功,检索增强 LLM 仍面临易受干扰的问题:生成回答会受到来自外部和内部知识来源噪声的负面影响。本文提出一种由熵考量指导的新型免训练解码方法,以缓解该问题。该方法采用基于熵的文档并行集成解码,优先利用来自检索文档的低熵分布,从而增强对上下文中相关信息的提取。此外,它引入对比解码机制,将所得低熵集成分布与跨层从模型内部知识得到的高熵分布进行对比,从而确保更强调可靠的外部信息。在开放域问答数据集上的大量实验证明了该方法的优越性。

英文摘要:

Augmenting Large Language Models (LLMs) with retrieved external knowledge has proven effective for improving the factual accuracy of generated responses. Despite their success, retrieval-augmented LLMs still face the distractibility issue, where the generated responses are negatively influenced by noise from both external and internal knowledge sources. In this paper, we introduce a novel, training-free decoding method guided by entropy considerations to mitigate this issue. Our approach utilizes entropy-based document-parallel ensemble decoding to prioritize low-entropy distributions from retrieved documents, thereby enhancing the extraction of relevant information of context. Additionally, it incorporates a contrastive decoding mechanism that contrasts the obtained low-entropy ensemble distribution with the high-entropy distribution derived from the model's internal knowledge across layers, which ensures a greater emphasis on reliable external information. Extensive experiments on open-domain question answering datasets demonstrate the superiority of our method.

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

↑