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

LP-LM:逻辑编程实现问答无幻觉

LP-LM: No Hallucinations in Question Answering with Logic Programming

Cornell University(康奈尔大学);Stony Brook University(石溪大学)

Katherine Wu, Yanhong A. Liu

AI总结:

针对大型语言模型(LLMs)问答幻觉问题,提出LP-LM系统,通过Prolog语义解析锚定知识库事实生成可靠答案,实验表明其无幻觉且运行高效。

摘要:

大型语言模型(LLMs)能对用户查询生成类人响应,但存在固有局限,尤其是会产生幻觉。本文介绍LP-LM系统,通过Prolog语义解析将问答答案锚定于知识库(KB)中的已知事实,确保输出可靠答案。LP-LM借助Prolog确定性子句语法(DCG)解析,为输入问题生成最可能的成分分析树及对应Prolog项;该Prolog项与同样表示为Prolog项的自然语言句子知识库执行问答。利用DCG和制表技术,LP-LM对足够多语法规则的输入句子以线性时间运行。实验对比LP-LM与现有知名LLMs的准确性,发现LLMs在简单问题上也会幻觉,而LP-LM不会。

英文摘要:

Large language models (LLMs) are able to generate human-like responses to user queries. However, LLMs exhibit inherent limitations, especially because they hallucinate. This paper introduces LP-LM, a system that grounds answers to questions in known facts contained in a knowledge base (KB), facilitated through semantic parsing in Prolog, and always produces answers that are reliable. LP-LM generates a most probable constituency parse tree along with a corresponding Prolog term for an input question via Prolog definite clause grammar (DCG) parsing. The term is then executed against a KB of natural language sentences also represented as Prolog terms for question answering. By leveraging DCG and tabling, LP-LM runs in linear time in the size of input sentences for sufficiently many grammar rules. Performing experiments comparing LP-LM with current well-known LLMs in accuracy, we show that LLMs hallucinate on even simple questions, unlike LP-LM.

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

↑