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

基于上下文的条件语言学习

Conditional Language Learning with Context

Tsinghua University(清华大学)

Xiao Zhang, Miao Li, Ji Wu

AI总结:

提出条件微调方法,通过引入上下文使模型在领域微调中避免学习无用统计信息,实现选择性学习,从而减少遗忘并改善稳定性-可塑性权衡,有益于终身学习。

摘要:

语言模型可以通过拟合原始文本来学习复杂的语言理解技能。它们也会不加选择地学习无用的语料库统计信息和偏差,尤其是在针对特定领域语料库进行微调期间。在本文中,我们提出了一种对因果语言建模的简单修改,称为条件微调(conditional finetuning),即在上下文的条件下执行语言建模。我们表明,上下文可以“解释消除”某些语料库统计信息,使模型避免学习它们。通过这种方式,条件微调实现了从语料库中进行选择性学习,学习对下游任务有用的知识,同时避免学习诸如主题偏差等无用的语料库统计信息。这种选择性学习效果在领域微调中带来了更少的遗忘和更好的稳定性-可塑性权衡,潜在地有益于使用语言模型进行终身学习。

英文摘要:

Language models can learn sophisticated language understanding skills from fitting raw text. They also unselectively learn useless corpus statistics and biases, especially during finetuning on domain-specific corpora. In this paper, we propose a simple modification to causal language modeling called conditional finetuning, which performs language modeling conditioned on a context. We show that a context can "explain away" certain corpus statistics and make the model avoid learning them. In this fashion, conditional finetuning achieves selective learning from a corpus, learning knowledge useful for downstream tasks while avoiding learning useless corpus statistics like topic biases. This selective learning effect leads to less forgetting and better stability-plasticity tradeoff in domain finetuning, potentially benefitting lifelong learning with language models.

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

↑