arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.19249cs.CLcs.AIcs.LG
收藏

在电路与乔姆斯基之间:形式语言上的预预训练赋予语言偏见

Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biases

Center for Data Science(数据科学中心);Department of Linguistics(语言学系)

Michael Y. Hu, Jackson Petty, Chuan Shi, William Merrill, Tal Linzen

AI总结:

本研究通过预预训练实验发现,捕捉层级依赖且处于架构计算限制内的形式语言能提升语言模型对自然语言的泛化,且以更小token预算实现同等损失,并揭示注意力头迁移的机制证据。

摘要:

在形式语言上预训练语言模型可以提高其对自然语言的习得能力。形式语言的哪些特征赋予了导致有效迁移的归纳偏见?借鉴语言学和复杂性理论的见解,我们假设当满足两个条件时会发生有效迁移:形式语言应捕捉自然语言中存在的依赖结构,并且应保持在模型架构的计算限制之内。我们实验了在transformer上进行预预训练(在自然语言之前先训练形式语言),发现与其它形式语言相比,捕捉层级依赖的形式语言确实使语言模型在自然语言上获得更低的损失和更好的语言泛化。我们还发现了适度支持该假设的证据,即形式语言应落在架构的计算限制之内。引人注目的是,预预训练比在匹配数量的自然语言上训练更高效地降低损失。对于一个在约16亿自然语言token上训练的10亿参数语言模型,预预训练以33%更小的token预算实现了相同的损失和更好的语言泛化。最后,我们还提供了从形式语言到自然语言迁移的机制性证据:在预预训练期间获得的注意力头对模型在句法评估上的表现仍然至关重要。

英文摘要:

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.

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

↑