arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.12836cs.CLcs.LG
收藏

知识增强语言模型验证

Knowledge-Augmented Language Model Verification

KAIST(韩国科学技术院)

Jinheon Baek, Soyeong Jeong, Minki Kang, Jong C. Park, Sung Ju Hwang

AI总结:

本文提出一种独立的验证器机制,通过指令微调的小型语言模型检测知识增强语言模型中的检索与生成错误,并结合指令集成提升验证可靠性,使模型输出更符合事实。

摘要:

近期的语言模型在利用参数内化的知识生成文本方面展现出了令人印象深刻的能力。然而,由于模型的知识可能不准确、不完整且过时,它们经常对给定查询生成事实上不正确的响应。为解决此问题,先前的工作提出用从外部知识源检索到的知识来增强语言模型。然而,这类方法常因两个原因表现出次优的文本生成性能:1)模型可能无法检索到与给定查询相关的知识,或 2)模型可能在生成的文本中未能忠实地反映检索到的知识。为克服这些问题,我们提出用一个独立的验证器来验证知识增强语言模型的输出和知识,该验证器是一个小型语言模型,通过指令微调训练来检测这两类错误。然后,当验证器识别出错误时,我们可以通过检索新知识或生成新文本来纠正它。此外,我们使用来自不同指令的输出与单一验证器进行集成,以增强验证过程的可靠性。我们在多个问答基准上验证了所提验证步骤的有效性,结果表明所提出的验证器有效识别了检索和生成错误,使语言模型能提供更多事实上正确的输出。

英文摘要:

Recent Language Models (LMs) have shown impressive capabilities in generating texts with the knowledge internalized in parameters. Yet, LMs often generate the factually incorrect responses to the given queries, since their knowledge may be inaccurate, incomplete, and outdated. To address this problem, previous works propose to augment LMs with the knowledge retrieved from an external knowledge source. However, such approaches often show suboptimal text generation performance due to two reasons: 1) the model may fail to retrieve the knowledge relevant to the given query, or 2) the model may not faithfully reflect the retrieved knowledge in the generated text. To overcome these, we propose to verify the output and the knowledge of the knowledge-augmented LMs with a separate verifier, which is a small LM that is trained to detect those two types of errors through instruction-finetuning. Then, when the verifier recognizes an error, we can rectify it by either retrieving new knowledge or generating new text. Further, we use an ensemble of the outputs from different instructions with a single verifier to enhance the reliability of the verification processes. We validate the effectiveness of the proposed verification steps on multiple question answering benchmarks, whose results show that the proposed verifier effectively identifies retrieval and generation errors, allowing LMs to provide more factually correct outputs. Our code is available at https://github.com/JinheonBaek/KALMV.

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

↑