通过神经细胞自动机训练语言模型
Training Language Models via Neural Cellular Automata
AI总结:
通过神经细胞自动机生成合成非语言数据,提升语言模型的预训练效果和推理能力。
摘要:
预训练对于大语言模型(LLMs)至关重要,因为大多数表示和能力都是通过预训练获得的。然而,自然语言预训练存在一些问题:高质量文本是有限的,它包含人类偏见,并且将知识与推理交织在一起。这提出了一个根本性的问题:自然语言是智能的唯一途径吗?我们提出使用神经细胞自动机(NCA)来生成合成的非语言数据,用于预训练LLMs——即先在合成数据上训练,然后再在自然语言上训练。NCA数据具有丰富的时空结构和统计特性,类似于自然语言,同时易于生成且成本低廉。我们发现,仅在1.64亿个NCA标记上预训练,可以将下游语言建模能力提高高达6%,并使收敛速度提高高达1.6倍。令人惊讶的是,这甚至超过了在Common Crawl上预训练160亿个自然语言标记(使用更多计算资源)的效果。这些增益也转移到了推理基准上,包括GSM8K、HumanEval和BigBench-Lite。调查驱动转移的因素,我们发现注意力层是最具可转移性的,且最优的NCA复杂度因领域而异:代码受益于更简单的动态,而数学和网络文本则更倾向于更复杂的动态。这些结果使系统调整个性化合成分布以针对特定领域成为可能。更广泛地说,我们的工作为更高效的模型打开了通过完全合成预训练的道路。
英文摘要:
Pre-training is crucial for large language models (LLMs), as it is when most representations and capabilities are acquired. However, natural language pre-training has problems: high-quality text is finite, contains human biases, and entangles knowledge with reasoning. This raises a fundamental question: is natural language the only path to intelligence? We propose using neural cellular automata (NCA) to generate synthetic, non-linguistic data for pre-pre-training LLMs--training on synthetic-then-natural language. NCA data exhibits rich spatiotemporal structure and statistics resembling natural language while being controllable and cheap to generate at scale. We find that pre-pre-training on only 164M NCA tokens improves downstream language modeling by up to 6% and accelerates convergence by up to 1.6x in 400M-3B models trained with Chinchilla optimal data budgets. Surprisingly, this even outperforms pre-pre-training on 1.6B tokens of high-quality natural language data with more compute. Investigating what drives transfer, we find that attention layers are the most transferable, and that optimal NCA complexity varies by domain: code benefits from simpler dynamics, while math and web text favor more complex ones. These results enable systematic tuning of the synthetic distribution to target domains. More broadly, our work opens a path toward more efficient models with fully synthetic pre-training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。