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

Aaron Mueller, Tal Linzen
5/31/2023
cs.CL

No official code found. Best implementation: aaronmueller/emergent-syntax (7 stars, MIT, last commit 2023-09-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "How to Plant Trees in Language Models" (ACL 2023).

71Shell, PythonMay 25, 20233 years agoMIT

Similar Papers

Cite this paper

@article{mueller2023plant,
  title  = {How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biases},
  author = {Aaron Mueller and Tal Linzen},
  year   = {2023},
  eprint = {2305.19905},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.19905v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.19905.svg)](https://codeofpaper.com/paper/2305.19905)

Discussion