arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.18976cs.CLcs.AI
收藏

“抱歉,请再说一遍?”提示——通过注入[PAUSE]的最优改写增强理解并减少幻觉

"Sorry, Come Again?" Prompting -- Enhancing Comprehension and Diminishing Hallucination with [PAUSE]-injected Optimal Paraphrasing

AI Institute, University of South Carolina(南卡罗来纳大学AI研究院);Indian Institute of Technology, Kharagpur(印度理工学院克勒格布尔分校);Islamic University of Technology(伊斯兰科技大学);Stanford University(斯坦福大学);Amazon AI(亚马逊AI研究院)

Vipula Rawte, S. M Towhidul Islam Tonmoy, S M Mehedi Zaman, Prachi Priya, Aman Chadha, Amit P. Sheth, Amitava Das

AI总结:

本文提出SCA提示方法,通过最优改写和注入[PAUSE]标记增强LLM对提示的理解,从而减少幻觉生成。

摘要:

幻觉已成为当代大语言模型(LLMs)最脆弱的方面。本文提出了“抱歉,请再说一遍”(Sorry, Come Again, SCA)提示方法,旨在通过以下方式避免LLM幻觉:(i)最优改写和(ii)注入[PAUSE]标记以延迟LLM生成。首先,我们对21个LLM的提示语言细微特征——正式性、可读性和具体性——进行了深入分析,并阐明了这些细微特征如何导致幻觉生成。可读性、正式性或具体性较低的提示会给LLM带来理解困难,这与人类面临的情况类似。在此类场景中,LLM倾向于推测并基于其想象(联想记忆)生成内容以填补这些信息空白。尽管这些推测偶尔可能与事实信息一致,但其准确性无法保证,往往导致幻觉。近期研究表明,LLM经常忽略较长提示的中间部分,这一现象被称为“迷失在中间”。虽然某种特定改写可能适合某个LLM,但相同的改写版本可能从另一个LLM引发不同的响应。因此,我们提出一种最优改写技术,以识别给定提示中最易理解的改写版本,并使用积分梯度(及其变体)进行评估,以保证LLM准确处理所有词语。在阅读长句时,人类经常在不同位置停顿,以更好地理解迄今所读的含义。我们微调了一个注入了[PAUSE]标记的LLM,使LLM在阅读较长提示时能够停顿。这带来了几项关键贡献:(i)确定注入[PAUSE]的最优位置,(ii)确定要插入的[PAUSE]标记数量,以及(iii)引入反向代理调优来微调LLM以进行[PAUSE]插入。

英文摘要:

Hallucination has emerged as the most vulnerable aspect of contemporary Large Language Models (LLMs). In this paper, we introduce the Sorry, Come Again (SCA) prompting, aimed to avoid LLM hallucinations by enhancing comprehension through: (i) optimal paraphrasing and (ii) injecting [PAUSE] tokens to delay LLM generation. First, we provide an in-depth analysis of linguistic nuances: formality, readability, and concreteness of prompts for 21 LLMs, and elucidate how these nuances contribute to hallucinated generation. Prompts with lower readability, formality, or concreteness pose comprehension challenges for LLMs, similar to those faced by humans. In such scenarios, an LLM tends to speculate and generate content based on its imagination (associative memory) to fill these information gaps. Although these speculations may occasionally align with factual information, their accuracy is not assured, often resulting in hallucination. Recent studies reveal that an LLM often neglects the middle sections of extended prompts, a phenomenon termed as lost in the middle. While a specific paraphrase may suit one LLM, the same paraphrased version may elicit a different response from another LLM. Therefore, we propose an optimal paraphrasing technique to identify the most comprehensible paraphrase of a given prompt, evaluated using Integrated Gradient (and its variations) to guarantee that the LLM accurately processes all words. While reading lengthy sentences, humans often pause at various points to better comprehend the meaning read thus far. We have fine-tuned an LLM with injected [PAUSE] tokens, allowing the LLM to pause while reading lengthier prompts. This has brought several key contributions: (i) determining the optimal position to inject [PAUSE], (ii) determining the number of [PAUSE] tokens to be inserted, and (iii) introducing reverse proxy tuning to fine-tune the LLM for [PAUSE] insertion.

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

↑