Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biases
Abstract
Pretraining transformers on formal languages that capture hierarchical dependencies improves natural language acquisition and generalization more efficiently than equivalent natural language training, with attention mechanisms showing persistent syntactic relevance.
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.
Get this paper in your agent:
hf papers read 2502.19249 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 5
gizemyc/pythia-160m-c4-dyck-ppt
Datasets citing this paper 1
alexkstern/dyck-k128-seq_len_2048-1B
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper