arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.13991cs.CL
收藏

分析序列构成对语言模型预训练的影响

Analysing The Impact of Sequence Composition on Language Model Pre-Training

University of Edinburgh(爱丁堡大学);Xiaomi AI Lab(小米AI实验室);University of Warsaw(华沙大学);Weco AI(维科人工智能)

Yu Zhao, Yuanbin Qu, Konrad Staniszewski, Szymon Tworkowski, Wei Liu, Piotr Miłoś, Yuxiang Wu, Pasquale Minervini

AI总结:

针对预训练序列构成策略对模型泛化影响未充分探索的问题,本研究发现因果掩码导致的跨文档干扰会降低性能,提出文档内因果掩码及BM25Chunk方法,有效提升模型多项能力且不牺牲效率。

摘要:

大多数语言模型预训练框架将多个文档连接成固定长度的序列,并使用因果掩码计算每个token在其上下文下的可能性;该策略因其简单性和高效性被广泛采用。然而,迄今为止,预训练序列构成策略对模型泛化特性的影响仍未得到充分探索。在本工作中,我们发现应用因果掩码会导致预训练期间包含来自先前文档的干扰信息,这对模型在语言建模和下游任务上的性能产生负面影响。在文档内因果掩码中,每个token的可能性仅以同一文档中的先前token为条件,消除了来自先前文档的潜在干扰信息并显著提升性能。此外,我们发现连接相关文档可减少预训练期间的一些潜在干扰,而我们提出的高效检索式序列构建方法BM25Chunk在不牺牲效率的情况下,可提升语言模型的上下文学习(+11.6%)、知识记忆(+9.8%)和上下文利用(+7.2%)能力。

英文摘要:

Most language model pre-training frameworks concatenate multiple documents into fixed-length sequences and use causal masking to compute the likelihood of each token given its context; this strategy is widely adopted due to its simplicity and efficiency. However, to this day, the influence of the pre-training sequence composition strategy on the generalisation properties of the model remains under-explored. In this work, we find that applying causal masking can lead to the inclusion of distracting information from previous documents during pre-training, which negatively impacts the performance of the models on language modelling and downstream tasks. In intra-document causal masking, the likelihood of each token is only conditioned on the previous tokens in the same document, eliminating potential distracting information from previous documents and significantly improving performance. Furthermore, we find that concatenating related documents can reduce some potential distractions during pre-training, and our proposed efficient retrieval-based sequence construction method, BM25Chunk, can improve in-context learning (+11.6\%), knowledge memorisation (+9.8\%), and context utilisation (+7.2\%) abilities of language models without sacrificing efficiency.

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

↑