arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.07431cs.LGcs.AIcs.CLstat.ML
收藏

合成式继续预训练

Synthetic continued pretraining

Stanford University(斯坦福大学)

Zitong Yang, Neil Band, Shuangping Li, Emmanuel Candès, Tatsunori Hashimoto

AI总结:

本文提出合成式继续预训练方法,通过EntiGraph算法从领域特定小语料库合成大规模多样化文本,使语言模型无需访问源文档即可高效学习领域知识,并能与检索增强生成协同提升性能。

摘要:

在大规模非结构化互联网文本上进行预训练,使语言模型能够获取大量世界知识。然而,这种知识获取在数据效率上很低——为了学习一个给定的事实,模型必须在数百到数千种该事实的多样化表征上进行训练。当需要将预训练模型适配到一个领域特定的小型文档语料库时,这就构成了挑战,因为在该语料库中每个事实可能很少出现,甚至只出现一次。我们提出通过合成式继续预训练来弥合这一差距:利用小型领域特定语料库合成一个更有利于学习的大型语料库,然后在合成语料库上执行继续预训练。我们用EntiGraph来实例化这一方案,EntiGraph是一种合成数据增强算法,它从源文档中提取显著实体,然后通过在采样实体之间建立联系来生成多样化文本。基于EntiGraph的合成式继续预训练使语言模型能够在不访问源文档的情况下回答与源文档相关的问题并遵循通用指令。如果源文档在推理时可用,我们表明通过我们的方法获取的知识能够与检索增强生成相互叠加、共同提升。为了更好地理解这些结果,我们构建了一个简单的EntiGraph数学模型,并展示了合成数据增强如何“重新组织”知识,从而实现更高数据效率的学习。

英文摘要:

Pretraining on large-scale, unstructured internet text enables language models to acquire a significant amount of world knowledge. However, this knowledge acquisition is data-inefficient--to learn a given fact, models must be trained on hundreds to thousands of diverse representations of it. This poses a challenge when adapting a pretrained model to a small corpus of domain-specific documents, where each fact may appear rarely or only once. We propose to bridge this gap with synthetic continued pretraining: using the small domain-specific corpus to synthesize a large corpus more amenable to learning, and then performing continued pretraining on the synthesized corpus. We instantiate this proposal with EntiGraph, a synthetic data augmentation algorithm that extracts salient entities from the source documents and then generates diverse text by drawing connections between the sampled entities. Synthetic continued pretraining with EntiGraph enables a language model to answer questions and follow generic instructions related to the source documents without access to them. If, instead, the source documents are available at inference time, we show that the knowledge acquired through our approach compounds with retrieval-augmented generation. To better understand these results, we build a simple mathematical model of EntiGraph, and show how synthetic data augmentation can "rearrange" knowledge to enable more data-efficient learning.

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

↑