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.
翻译:大型语言模型(LLMS)因其理解程度和生成能力优异,导致自然语言处理(NLP)的一系列突破。显著的是,这些模型进一步使这些模型分开的是,在培训前,它们内部内部吸收了大量的世界知识。许多下游应用为模型提供了一个信息背景,以帮助其完成基本任务,但模型的世界知识如何与背景中提供的事实信息相互作用,仍在探讨中。作为一种可取的行为,当它包含与模型的记忆知识相冲突的任务相关信息时,LLMM应优先考虑背景。这样可以使模型预测以背景为基础,然后可以用来更新或纠正具体的模型预测,而无需经常再培训。相比之下,当背景与任务无关时,模型应当忽视模型,并依赖其内部知识。在LLMS中,我们对上述两种特性进行了第一次联合研究,即可控性和稳健的模型。我们证明,先进的T5和PALM(预先和精细的模型)能够以背景为基础为基础,然后用来更新或纠正具体的模型,用于更新或纠正特定的模型的模型,从而强化了我们不断更新的KAFA的精确控制方法。