元数据条件化加速语言模型预训练
Metadata Conditioning Accelerates Language Model Pre-training
AI总结:
本文提出元数据条件化后冷却方法,在预训练初期引入元数据辅助学习并在后期冷却去除,显著加速预训练(最高减少33%数据量),同时支持通过元数据引导模型推理行为。
摘要:
语言模型预训练语料库中存在的风格、领域和质量水平的巨大多样性对于发展通用模型能力至关重要,但高效地学习并部署这些异构数据源中所体现的正确行为具有挑战性。为了解决这一问题,我们提出了一种新方法,称为元数据条件化后冷却,以在预训练期间引入额外的学习线索。MeCo在训练期间首先在文本旁提供元数据(例如,类似www$.$wikipedia$.$org的URL),随后使用仅包含标准文本的冷却阶段,从而使模型即使在没有元数据的情况下也能正常运行。MeCo显著加速了不同模型规模(600M至8B参数)和训练源(C4、RefinedWeb和DCLM)上的预训练。例如,使用MeCo训练的1.6B语言模型在匹配标准预训练的下游任务性能的同时,使用的训练数据减少了33%。此外,MeCo使我们能够通过对推理提示进行条件化来引导语言模型,条件化的依据可以是编码了输出期望属性的真实或虚构元数据:例如,前置wikipedia$.$org以减少有害生成,或前置factquizmaster$.$com(虚构)以提高常识任务性能。我们还证明了MeCo与不同类型的元数据兼容,例如模型生成的主题。MeCo非常简单,不增加任何计算开销,并在产生更强大、更可控的语言模型方面展现出前景。
英文摘要:
The vast diversity of styles, domains, and quality levels present in language model pre-training corpora is essential in developing general model capabilities, but efficiently learning and deploying the correct behaviors exemplified in each of these heterogeneous data sources is challenging. To address this, we propose a new method, termed Metadata Conditioning then Cooldown (MeCo), to incorporate additional learning cues during pre-training. MeCo first provides metadata (e.g., URLs like www$.$wikipedia$.$org) alongside the text during training and later uses a cooldown phase with only the standard text, thereby enabling the model to function normally even without metadata. MeCo significantly accelerates pre-training across different model scales (600M to 8B parameters) and training sources (C4, RefinedWeb, and DCLM). For instance, a 1.6B language model trained with MeCo matches the downstream task performance of standard pre-training while using 33% less data. Additionally, MeCo enables us to steer language models by conditioning the inference prompt on either real or fabricated metadata that encodes the desired properties of the output: for example, prepending wikipedia$.$org to reduce harmful generations or factquizmaster$.$com (fabricated) to improve common knowledge task performance. We also demonstrate that MeCo is compatible with different types of metadata, such as model-generated topics. MeCo is remarkably simple, adds no computational overhead, and demonstrates promise in producing more capable and steerable language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。