arXiv:2409.07431cs.LGcs.AI2024-09ICLR被引 59

用合成数据提升小语料下的模型知识获取效率

Synthetic continued pretraining

  • 用实体连接生成大量合成文本,增强小规模领域数据
  • 模型在无源文档时仍能准确回答相关问题,正确率达78.3%
  • 适合低资源领域微调,尤其对检索增强生成有增益

在大规模互联网文本上预训练使语言模型获得大量世界知识,但这一过程数据效率低——学习一个事实需数百至数千种不同表达。这在适配小规模领域文档时构成挑战,因每个事实可能仅出现一次或极少出现。本文提出合成持续预训练:利用小规模领域文档生成更易学习的大型合成语料,并在此上进行持续预训练。我们以EntiGraph为例,该算法从源文档中提取关键实体,通过连接这些实体生成多样化文本。使用EntiGraph进行合成持续预训练后,模型可在不访问原始文档的情况下回答与源文档相关的问答和通用指令。若推理时可访问源文档,则本方法所学知识与检索增强生成能力叠加。为深入理解结果,我们构建了EntiGraph的数学模型,证明合成数据可“重构”知识分布,实现更高效学习。

原文摘要 · Abstract (English)

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.

预训练合成数据知识获取小样本学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。