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

建立语言模型中的知识偏好

Establishing Knowledge Preference in Language Models

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Virginia(弗吉尼亚大学)

Sizhe Zhou, Sha Li, Yu Meng, Yizhu Jiao, Heng Ji, Jiawei Han

AI总结:

本文提出知识偏好问题,定义三级偏好层级,并利用数据集合成方法微调7B模型,使其在遵循知识偏好层级上实现超过18%的性能提升。

摘要:

已知语言模型通过预训练编码了大量事实知识。然而,此类知识可能不足以满足用户请求,需要模型整合外部知识源并遵循用户提供的规范。当回答关于正在进行的事件的问题时,模型应使用最近的新闻文章来更新其回答;当被要求提供推荐时,模型应优先考虑用户规范而非检索到的产品评论;当模型中的某些事实被编辑时,更新后的事实应覆盖模型先前学习到的所有知识,即使它们相互冲突。在上述所有情况下,模型都面临其自身参数化知识、(检索到的)上下文知识和用户指令知识之间的决策。在本文中,我们(1)将此类设置统一为知识偏好问题,并定义这些知识源的三级偏好层级;(2)编译一组现有数据集IfQA、MQuAKE和MRQA,涵盖各种设置组合(有/无用户规范,有/无上下文文档),以系统评估模型遵循预期知识偏好的程度;(3)提出一种数据集合成方法,该方法组合具有用户假设和相关上下文的多样化问答对,直接微调语言模型以灌输知识层级。我们证明,仅使用我们提出的方法自动生成的几千个示例微调一个7B模型,就能在遵循所需知识偏好层级方面有效实现卓越性能(在所有评估基准上提升超过18%)。

英文摘要:

Language models are known to encode a great amount of factual knowledge through pretraining. However, such knowledge might be insufficient to cater to user requests, requiring the model to integrate external knowledge sources and adhere to user-provided specifications. When answering questions about ongoing events, the model should use recent news articles to update its response; when asked to provide recommendations, the model should prioritize user specifications over retrieved product reviews; when some facts are edited in the model, the updated facts should override all prior knowledge learned by the model even if they are conflicting. In all of the cases above, the model faces a decision between its own parametric knowledge, (retrieved) contextual knowledge, and user instruction knowledge. In this paper, we (1) unify such settings into the problem of knowledge preference and define a three-level preference hierarchy over these knowledge sources; (2) compile a collection of existing datasets IfQA, MQuAKE, and MRQA covering a combination of settings (with/without user specifications, with/without context documents) to systematically evaluate how well models obey the intended knowledge preference; and (3) propose a dataset synthesis method that composes diverse question-answer pairs with user assumptions and related context to directly fine-tune LMs for instilling the hierarchy of knowledge. We demonstrate that a 7B model, fine-tuned on only a few thousand examples automatically generated by our proposed method, effectively achieves superior performance (more than 18% improvement across all evaluation benchmarks) in adhering to the desired knowledge preference hierarchy.

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

↑