用形式语言预训练,让模型学得更像人。
Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biases
- 用能捕捉层级依赖的形式语言做预训练
- 相同数据量下,损失更低且语法泛化更好
- 适合研究模型语言能力与认知机制的学者
在自然语言之前用形式语言预训练语言模型,可提升其对自然语言的习得能力。我们提出假设:有效迁移需满足两个条件——形式语言应包含自然语言中的依存结构,且不能超出模型架构的计算能力。实验发现,能捕捉层级依赖的形式语言显著降低模型在自然语言上的损失,并提升语法泛化能力;同时,符合模型计算限制的形式语言也带来一定优势。令人惊讶的是,预训练仅需33%的自然语言训练量即可达到同等损失,且表现更优。此外,机制分析显示,预训练期间习得的注意力头在句法评估中仍至关重要。
原文摘要 · Abstract (English)
Pretraining language models on formal language can improve their acquisition of natural language. Which features of the formal language impart an inductive bias that leads to effective transfer? Drawing on insights from linguistics and complexity theory, we hypothesize that effective transfer occurs when two conditions are met: the formal language should capture the dependency structures present in natural language, and it should remain within the computational limitations of the model architecture. We experiment with pre-pretraining (training on formal language before natural languages) on transformers and find that formal languages capturing hierarchical dependencies indeed enable language models to achieve lower loss on natural language and better linguistic generalization compared to other formal languages. We also find modest support for the hypothesis that the formal language should fall within the computational limitations of the architecture. Strikingly, pre-pretraining reduces loss more efficiently than training on a matched amount of natural language. For a 1B-parameter language model trained on roughly 1.6B tokens of natural language, pre-pretraining achieves the same loss and better linguistic generalization with a 33% smaller token budget. Finally, we also give mechanistic evidence of transfer from formal to natural language: attention heads acquired during pre-pretraining remain crucial for the model's performance on syntactic evaluations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。