arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.02739cs.CL
收藏

通过结构化推理缓解大型语言模型中的提示诱导幻觉

Mitigating Prompt-Induced Hallucinations in Large Language Models via Structured Reasoning

School of Computer Engineering, Jiangsu Ocean University(江苏海洋大学计算机工程学院);School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院)

Jinbo Hao, Kai Yang, Qingzhen Su, Yang Chen, Yifan Li, Chao Jiang

AI总结:

本文通过引入代码模块和结构化推理方法,有效缓解了大型语言模型中的提示诱导幻觉问题,提升了模型的准确性和可验证性。

摘要:

为了解决大型语言模型(LLMs)中的幻觉问题,本文提出了一种缓解提示诱导幻觉的方法。基于知识蒸馏链式模型,我们引入了一个代码模块来引导知识图谱探索,并将代码作为链式思考提示的一部分,形成一个外部知识输入,为模型提供更准确和结构化的信息。基于此设计,我们开发了改进的知识蒸馏链式模型,并利用它来分析和约束LLMs的推理过程,从而提高推理准确性。我们通过GPT-4和LLaMA-3.3在多个公共数据集上经验性地评估了所提出的方法。实验结果表明,结合代码模块显著增强了模型捕捉上下文信息的能力,并有效缓解了提示诱导的幻觉。具体而言,HIT@1、HIT@3和HIT@5分别提高了15.64%、13.38%和13.28%。此外,所提出的方法在多个评估设置中实现了HIT@1、HIT@3和HIT@5分数超过95%。这些结果表明,所提出的方法大大减少了幻觉行为,同时提高了大型语言模型的准确性和可验证性。

英文摘要:

To address hallucination issues in large language models (LLMs), this paper proposes a method for mitigating prompt-induced hallucinations. Building on a knowledge distillation chain-style model, we introduce a code module to guide knowledge-graph exploration and incorporate code as part of the chain-of-thought prompt, forming an external knowledge input that provides more accurate and structured information to the model. Based on this design, we develop an improved knowledge distillation chain-style model and leverage it to analyze and constrain the reasoning process of LLMs, thereby improving inference accuracy. We empirically evaluate the proposed approach using GPT-4 and LLaMA-3.3 on multiple public datasets. Experimental results demonstrate that incorporating code modules significantly enhances the model's ability to capture contextual information and effectively mitigates prompt-induced hallucinations. Specifically, HIT@1, HIT@3, and HIT@5 improve by 15.64%, 13.38%, and 13.28%, respectively. Moreover, the proposed method achieves HIT@1, HIT@3, and HIT@5 scores exceeding 95% across several evaluation settings. These results indicate that the proposed approach substantially reduces hallucination behavior while improving the accuracy and verifiability of large language models.

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

↑