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

冗长≠真实:揭秘大语言模型的冗长补偿行为

Verbosity $\neq$ Veracity: Demystify Verbosity Compensation Behavior of Large Language Models

Penn State University(宾夕法尼亚州立大学)

Yusen Zhang, Sarkar Snigdha Sarathi Das, Rui Zhang

AI总结:

本研究发现大语言模型存在普遍的冗长补偿不良行为,证实其与模型不确定性强相关且不会随模型能力提升自然消失,提出级联算法可有效降低该行为发生率,厘清冗长与真实的关联。

摘要:

尽管大语言模型(LLM)已在各类任务中展现出强大能力,但近期研究发现LLM也存在幻觉、毒性等不良行为,限制了其可靠性与更广泛的应用。本文发现了一种尚未被充分研究的LLM不良行为,我们将其命名为Verbosity Compensation(VC,冗长补偿),该行为类似于人类在不确定状态下的犹豫表现,即模型会通过重复问题、引入模糊表述或提供过度枚举等冗余措辞来作答。本文是首个定义并分析冗长补偿行为、探究其成因并提出简易缓解方法的研究。我们在5个基于知识与推理的问答任务数据集上,对14款新开发的LLM开展实验,得出三项结论。1)我们发现VC行为在所有模型和所有数据集中普遍存在,值得注意的是,GPT-4的VC发生频率达50.40%。2)我们发现冗长回复与简洁回复的性能存在较大差距,在Qasper数据集上的差异高达27.61%。我们还证实,这种差异并不会随着LLM能力的提升而自然缩小。前两项结论均凸显出降低VC行为发生频率、厘清冗长性与真实性关联的紧迫性。我们提出了一种简单却有效的级联算法,用模型生成的其他回复替换冗长回复。结果显示,在Qasper数据集上,该方法可有效将Mistral模型的VC发生率从63.81%降至16.16%。3)我们还发现,在全部5个数据集上,冗长回复均表现出更高的不确定性,表明冗长性与模型不确定性之间存在强关联。我们的数据集和代码可在https://github.com/psunlpgroup/VerbosityLLM 获取。

英文摘要:

Although Large Language Models (LLMs) have demonstrated their strong capabilities in various tasks, recent work has revealed LLMs also exhibit undesirable behaviors, such as hallucination and toxicity, limiting their reliability and broader adoption. In this paper, we discover an understudied type of undesirable behavior of LLMs, which we term Verbosity Compensation (VC), similar to the hesitation behavior of humans under uncertainty, where they respond with excessive words such as repeating questions, introducing ambiguity, or providing excessive enumeration. We present the first work that defines and analyzes Verbosity Compensation, explores its causes, and proposes a simple mitigating approach. Our experiments, conducted on five datasets of knowledge and reasoning-based QA tasks with 14 newly developed LLMs, reveal three conclusions. 1) We reveal a pervasive presence of VC across all models and all datasets. Notably, GPT-4 exhibits a VC frequency of 50.40%. 2) We reveal the large performance gap between verbose and concise responses, with a notable difference of 27.61% on the Qasper dataset. We also demonstrate that this difference does not naturally diminish as LLM capability increases. Both 1) and 2) highlight the urgent need to mitigate the frequency of VC behavior and disentangle verbosity with veracity. We propose a simple yet effective cascade algorithm that replaces the verbose responses with the other model-generated responses. The results show that our approach effectively alleviates the VC of the Mistral model from 63.81% to 16.16% on the Qasper dataset. 3) We also find that verbose responses exhibit higher uncertainty across all five datasets, suggesting a strong connection between verbosity and model uncertainty. Our dataset and code are available at https://github.com/psunlpgroup/VerbosityLLM.

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

↑