arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.05110cs.CLcs.AIcs.LG
收藏

工作记忆可控的大语言模型

Large Language Models with Controllable Working Memory

Google Research(谷歌研究院);Deepmind(深度思维)

Daliang Li, Ankit Singh Rawat, Manzil Zaheer, Xin Wang, Michal Lukasik, Andreas Veit, Felix Yu, Sanjiv Kumar

摘要:

大语言模型(LLM)以其出色的理解和生成能力,为自然语言处理(NLP)带来了一系列突破。值得注意的是,让这些模型进一步与众不同的是,它们在预训练期间内化了大量的世界知识。虽然许多下游应用程序为模型提供了一个信息上下文,以帮助其执行底层任务,但模型的世界知识如何与上下文中呈现的事实信息相互作用仍在探索中。作为一种理想的行为,LLM应该优先考虑上下文,只要它包含与模型记忆的知识相冲突的任务相关信息。这使得模型预测能够基于上下文,然后可以用于更新或纠正特定的模型预测,而无需频繁的重新训练。相比之下,当上下文与任务无关时,模型应该忽略它并依赖于其内部知识。在本文中,我们进行了第一次联合研究的上述两个属性,即可控性和鲁棒性,在LLM的上下文中。我们证明了最先进的T5和PaLM(预训练和微调)可能表现出较差的可控性和鲁棒性,并且不会随着模型大小的增加而扩展。作为解决方案,我们提出了一种新方法--知识感知微调(KAFT)--通过将反事实和不相关的上下文纳入标准监督数据集来增强可控性和鲁棒性。我们的全面评估展示了KAFT在模型架构和尺寸上的实用性。

英文摘要:

Large language models (LLMs) have led to a series of breakthroughs in natural language processing (NLP), owing to their excellent understanding and generation abilities. Remarkably, what further sets these models apart is the massive amounts of world knowledge they internalize during pretraining. While many downstream applications provide the model with an informational context to aid its performance on the underlying task, how the model's world knowledge interacts with the factual information presented in the context remains under explored. As a desirable behavior, an LLM should give precedence to the context whenever it contains task-relevant information that conflicts with the model's memorized knowledge. This enables model predictions to be grounded in the context, which can then be used to update or correct specific model predictions without frequent retraining. By contrast, when the context is irrelevant to the task, the model should ignore it and fall back on its internal knowledge. In this paper, we undertake a first joint study of the aforementioned two properties, namely controllability and robustness, in the context of LLMs. We demonstrate that state-of-the-art T5 and PaLM (both pretrained and finetuned) could exhibit poor controllability and robustness, which do not scale with increasing model size. As a solution, we propose a novel method - Knowledge Aware FineTuning (KAFT) - to strengthen both controllability and robustness by incorporating counterfactual and irrelevant contexts to standard supervised datasets. Our comprehensive evaluation showcases the utility of KAFT across model architectures and sizes.

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

↑