arXiv:2410.11366cs.CL2024-10被引 1

让大模型生成查询时更真实,通过分离内容与形式减少幻觉。

LargePiG: Your Large Language Model is Secretly a Pointer Generator

  • 将大模型转为指针生成器,用其注意力权重决定复制内容。
  • 在文档和视频场景中,显著降低查询幻觉率,提升准确率。
  • 无需训练、适配任意大模型,尤其适合问答与事实评估任务。

近期查询生成研究多依赖大语言模型(LLM),虽性能优越,却常引入幻觉问题。本文提出“相关性幻觉”与“真实性幻觉”新分类体系。提出一种模型无关、无需训练的方法,将LLM转化为指针生成器(LargePiG):利用模型高层注意力权重作为指针分布,通过高层与最后一层词表分布的差异计算复制概率。构建两个新数据集评估文档与视频场景下的幻觉问题。实验证明,LargePiG在多个大模型上均有效,显著降低幻觉,提升基于文档的问答与事实评估任务精度,并可推广至大视觉语言模型。

原文摘要 · Abstract (English)

Recent research on query generation has focused on using Large Language Models (LLMs), which despite bringing state-of-the-art performance, also introduce issues with hallucinations in the generated queries. In this work, we introduce relevance hallucination and factuality hallucination as a new typology for hallucination problems brought by query generation based on LLMs. We propose an effective way to separate content from form in LLM-generated queries, which preserves the factual knowledge extracted and integrated from the inputs and compiles the syntactic structure, including function words, using the powerful linguistic capabilities of the LLM. Specifically, we introduce a model-agnostic and training-free method that turns the Large Language Model into a Pointer-Generator (LargePiG), where the pointer attention distribution leverages the LLM's inherent attention weights, and the copy probability is derived from the difference between the vocabulary distribution of the model's high layers and the last layer. To validate the effectiveness of LargePiG, we constructed two datasets for assessing the hallucination problems in query generation, covering both document and video scenarios. Empirical studies on various LLMs demonstrated the superiority of LargePiG on both datasets. Additional experiments also verified that LargePiG could reduce hallucination in large vision language models and improve the accuracy of document-based question-answering and factuality evaluation tasks.

大模型查询生成幻觉抑制指针生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。