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

如何在语言模型中“种树”:数据与架构对句法归纳偏置涌现的影响

How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biases

Johns Hopkins University(约翰斯·霍普金斯大学);New York University(纽约大学)

Aaron Mueller, Tal Linzen

AI总结:

本文探究预训练架构与语料对Transformer句法层级归纳偏置的影响,发现模型深度比宽度更关键,且用儿童导向言语预训练能以少一个数量级的数据诱导层级偏置,表明神经语言模型在认知合理的习得场景中数据效率更高。

摘要:

准确的句法表征对于自然语言中的鲁棒泛化至关重要。近期研究发现,预训练可以使语言模型在微调后执行任务时依赖层级句法特征,而非错误的线性特征。我们测试了预训练的哪些方面对于赋予编码器-解码器Transformer以偏向层级句法泛化的归纳偏置是重要的。我们重点关注架构特征(深度、宽度和参数数量),以及预训练语料库的体裁和规模,并使用两个句法转换任务来诊断归纳偏置:英语中的疑问句构成和被动化。我们发现,仅凭参数数量并不能解释层级泛化:模型深度比模型宽度发挥更大的作用。我们还发现,在更简单的语言(如儿童导向言语)上进行预训练,相比在基于网络文本或维基百科的更典型数据集上预训练,能够以少一个数量级的数据诱导出层级偏置;这表明在认知上合理的语言习得环境中,神经语言模型可能比此前认为的更具数据效率。

英文摘要:

Accurate syntactic representations are essential for robust generalization in natural language. Recent work has found that pre-training can teach language models to rely on hierarchical syntactic features - as opposed to incorrect linear features - when performing tasks after fine-tuning. We test what aspects of pre-training are important for endowing encoder-decoder Transformers with an inductive bias that favors hierarchical syntactic generalizations. We focus on architectural features (depth, width, and number of parameters), as well as the genre and size of the pre-training corpus, diagnosing inductive biases using two syntactic transformation tasks: question formation and passivization, both in English. We find that the number of parameters alone does not explain hierarchical generalization: model depth plays greater role than model width. We also find that pre-training on simpler language, such as child-directed speech, induces a hierarchical bias using an order-of-magnitude less data than pre-training on more typical datasets based on web text or Wikipedia; this suggests that in cognitively plausible language acquisition settings, neural language models may be more data-efficient than previously thought.

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

↑