{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T07:36:17Z","timestamp":1794641777013,"version":"4.9.1"},"reference-count":55,"publisher":"MIT Press","license":[{"start":{"date-parts":[[2022,12,23]],"date-time":"2022-12-23T00:00:00Z","timestamp":1671753600000},"content-version":"vor","delay-in-days":356,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["direct.mit.edu"],"crossmark-restriction":true},"short-container-title":[],"published-print":{"date-parts":[[2022,12,22]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>We introduce Transformer Grammars (TGs), a novel class of Transformer language models that combine (i) the expressive power, scalability, and strong performance of Transformers and (ii) recursive syntactic compositions, which here are implemented through a special attention mask and deterministic transformation of the linearized tree. We find that TGs outperform various strong baselines on sentence-level language modeling perplexity, as well as on multiple syntax-sensitive language modeling evaluation metrics. Additionally, we find that the recursive syntactic composition bottleneck which represents each sentence as a single vector harms perplexity on document-level language modeling, providing evidence that a different kind of memory mechanism\u2014one that is independent of composed syntactic representations\u2014plays an important role in current successful models of long text.<\/jats:p>","DOI":"10.1162\/tacl_a_00526","type":"journal-article","created":{"date-parts":[[2022,12,23]],"date-time":"2022-12-23T12:46:31Z","timestamp":1671799591000},"page":"1423-1439","update-policy":"https:\/\/doi.org\/10.1162\/mitpressjournals.corrections.policy","source":"Crossref","is-referenced-by-count":15,"title":["Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scale"],"prefix":"10.1162","volume":"10","author":[{"given":"Laurent","family":"Sartran","sequence":"first","affiliation":[{"name":"DeepMind, UK. lsartran@deepmind.com"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Samuel","family":"Barrett","sequence":"additional","affiliation":[{"name":"University of Oxford, UK. samuelbarrett1234@btinternet.com"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Adhiguna","family":"Kuncoro","sequence":"additional","affiliation":[{"name":"DeepMind, UK. akuncoro@deepmind.com"},{"name":"University of Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Milo\u0161","family":"Stanojevi\u0107","sequence":"additional","affiliation":[{"name":"DeepMind, UK. stanojevic@deepmind.com"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Phil","family":"Blunsom","sequence":"additional","affiliation":[{"name":"University of Oxford, UK. phil.blunsom@cs.ox.ac.uk"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chris","family":"Dyer","sequence":"additional","affiliation":[{"name":"DeepMind, UK. cdyer@deepmind.com"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"281","published-online":{"date-parts":[[2022,12,22]]},"reference":[{"key":"2022122317462808700_bib1","article-title":"Transition-based parsing with stack-transformers","volume-title":"Findings of EMNLP","author":"Astudillo","year":"2020"},{"key":"2022122317462808700_bib2","first-page":"3011","article-title":"Syntax-BERT: Improving pre-trained transformers with syntax trees","volume-title":"Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume","author":"Bai","year":"2021"},{"key":"2022122317462808700_bib3","doi-asserted-by":"publisher","first-page":"1466","DOI":"10.18653\/v1\/P16-1139","article-title":"A fast unified model for parsing and sentence understanding","volume-title":"Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Bowman","year":"2016"},{"key":"2022122317462808700_bib4","first-page":"1877","article-title":"Language models are few-shot learners","volume-title":"Advances in Neural Information Processing Systems","author":"Brown","year":"2020"},{"key":"2022122317462808700_bib5","article-title":"BLLIP 1987\u201389 WSJ Corpus Release 1, LDC2000T43","volume":"36","author":"Charniak","year":"2000","journal-title":"LDC2000T43. Linguistic Data Consortium"},{"issue":"4","key":"2022122317462808700_bib6","doi-asserted-by":"publisher","first-page":"283","DOI":"10.1006\/csla.2000.0147","article-title":"Structured language modeling","volume":"14","author":"Chelba","year":"2000","journal-title":"Computer Speech & Language"},{"key":"2022122317462808700_bib7","first-page":"2331","article-title":"Parsing as language modeling","volume-title":"Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing","author":"Do","year":"2016"},{"key":"2022122317462808700_bib8","doi-asserted-by":"publisher","DOI":"10.1515\/9783112316009","volume-title":"Syntactic Structures","author":"Chomsky","year":"1957"},{"key":"2022122317462808700_bib9","article-title":"Hierarchical multiscale recurrent neural networks","volume-title":"Proceedings of ICLR","author":"Chung","year":"2017"},{"key":"2022122317462808700_bib10","doi-asserted-by":"publisher","first-page":"2126","DOI":"10.18653\/v1\/P18-1198","article-title":"What you can cram into a single $&!#* vector: Probing sentence embeddings for linguistic properties","volume-title":"Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Conneau","year":"2018"},{"key":"2022122317462808700_bib11","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/P19-1285","article-title":"Transformer-XL: Attentive language models beyond a fixed-length context","volume-title":"Proceedings of ACL","author":"Dai","year":"2019"},{"key":"2022122317462808700_bib12","article-title":"BERT: Pre-training of deep bidirectional transformers for language understanding","volume-title":"Proceedings of NAACL","author":"Devlin","year":"2019"},{"key":"2022122317462808700_bib13","doi-asserted-by":"publisher","first-page":"199","DOI":"10.18653\/v1\/N16-1024","article-title":"Recurrent neural network grammars","volume-title":"Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","author":"Dyer","year":"2016"},{"key":"2022122317462808700_bib14","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00298","article-title":"What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models","author":"Ettinger","year":"2020","journal-title":"Transactions of the Association for Computational Linguistics"},{"issue":"12","key":"2022122317462808700_bib15","doi-asserted-by":"publisher","first-page":"729","DOI":"10.1016\/j.tics.2015.09.008","article-title":"Structures, not strings: Linguistics as part of the cognitive sciences","volume":"19","author":"Everaert","year":"2015","journal-title":"Trends in Cognitive Sciences"},{"key":"2022122317462808700_bib16","doi-asserted-by":"publisher","first-page":"32","DOI":"10.18653\/v1\/N19-1004","article-title":"Neural language models as psycholinguistic subjects: Representations of syntactic state","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Futrell","year":"2019"},{"key":"2022122317462808700_bib17","doi-asserted-by":"publisher","first-page":"156","DOI":"10.1162\/tacl_a_00306","article-title":"Theoretical limitations of self-attention in neural sequence models","volume":"8","author":"Hahn","year":"2020","journal-title":"Transactions of the Association for Computational Linguistics"},{"issue":"arXiv:2203.16634","key":"2022122317462808700_bib18","article-title":"Transformer language models without positional encodings still learn positional information","author":"Haviv","year":"2022"},{"key":"2022122317462808700_bib19","doi-asserted-by":"publisher","first-page":"95","DOI":"10.3115\/1218955.1218968","article-title":"Discriminative training of a neural network statistical parser","volume-title":"Proceedings of the 42nd Annual Meeting of the Association for Computational Linguistics (ACL-04)","author":"Henderson","year":"2004"},{"key":"2022122317462808700_bib20","article-title":"Training compute-optimal large language models","author":"Hoffmann","year":"2022","journal-title":"CoRR"},{"key":"2022122317462808700_bib21","first-page":"1725","article-title":"A systematic assessment of syntactic generalization in neural language models","volume-title":"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics","author":"Jennifer","year":"2020"},{"key":"2022122317462808700_bib22","doi-asserted-by":"crossref","DOI":"10.1109\/ICASSP.1995.479396","article-title":"Using a stochastic context-free grammar as a language model for speech recognition","volume-title":"Proceedings of ICASSP","author":"Jurafsky","year":"1995"},{"key":"2022122317462808700_bib23","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/N19-1114","article-title":"Unsupervised recurrent neural network grammars","volume-title":"Proceedings of NAACL","author":"Kim","year":"2019"},{"key":"2022122317462808700_bib24","doi-asserted-by":"publisher","first-page":"66","DOI":"10.18653\/v1\/P18-1007","article-title":"Subword regularization: Improving neural network translation models with multiple subword candidates","volume-title":"Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Kudo","year":"2018"},{"key":"2022122317462808700_bib25","doi-asserted-by":"publisher","first-page":"66","DOI":"10.18653\/v1\/D18-2012","article-title":"SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing","volume-title":"Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations","author":"Kudo","year":"2018"},{"key":"2022122317462808700_bib26","doi-asserted-by":"publisher","first-page":"1249","DOI":"10.18653\/v1\/E17-1117","article-title":"What do recurrent neural network grammars learn about syntax?","volume-title":"Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers","author":"Kuncoro","year":"2017"},{"key":"2022122317462808700_bib27","doi-asserted-by":"crossref","first-page":"3472","DOI":"10.18653\/v1\/P19-1337","article-title":"Scalable syntax-aware language models using knowledge distillation","volume-title":"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics","author":"Kuncoro","year":"2019"},{"key":"2022122317462808700_bib28","doi-asserted-by":"publisher","first-page":"776","DOI":"10.1162\/tacl_a_00345","article-title":"Syntactic structure distillation pretraining for bidirectional encoders","volume":"8","author":"Kuncoro","year":"2020","journal-title":"Transactions of the Association for Computational Linguistics"},{"key":"2022122317462808700_bib29","first-page":"1073","article-title":"Linguistic knowledge and transferability of contextual representations","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Liu","year":"2019"},{"issue":"48","key":"2022122317462808700_bib30","doi-asserted-by":"crossref","DOI":"10.1073\/pnas.1907367117","article-title":"Emergent linguistic structure in artificial neural networks trained by self-supervision","volume":"117","author":"Manning","year":"2020","journal-title":"Proceedings of the National Academy of Sciences"},{"issue":"2","key":"2022122317462808700_bib31","doi-asserted-by":"publisher","first-page":"313","DOI":"10.21236\/ADA273556","article-title":"Building a large annotated corpus of english: The penn treebank","volume":"19","author":"Marcus","year":"1993","journal-title":"Computational Linguistics"},{"key":"2022122317462808700_bib32","doi-asserted-by":"publisher","DOI":"10.3115\/v1\/P15-2084","article-title":"Dependency Recurrent Neural Language Models for Sentence Completion","volume-title":"Proceeding of ACL-IJCNLP","author":"Mirowski","year":"2015"},{"key":"2022122317462808700_bib33","article-title":"Tree- structured attention with hierarchical accumulation","volume-title":"8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26\u201330, 2020","author":"Nguyen","year":"2020"},{"key":"2022122317462808700_bib34","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2021.findings-acl.380","article-title":"Effective batching for recurrent neural network grammars","volume-title":"Findings of the ACL-IJCNLP","author":"Noji","year":"2021"},{"key":"2022122317462808700_bib35","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D19-1376","article-title":"PaLM: A hybrid parser and language model","volume-title":"Proceedings of EMNLP-IJCNLP","author":"Peng","year":"2019"},{"key":"2022122317462808700_bib36","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/N18-1202","article-title":"Deep contextualized word representations","volume-title":"Proceedings of NAACL","author":"Peters","year":"2018"},{"key":"2022122317462808700_bib37","first-page":"404","article-title":"Improved inference for unlexicalized parsing","volume-title":"Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference","author":"Petrov","year":"2007"},{"key":"2022122317462808700_bib38","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2020.acl-main.467","article-title":"Intermediate- task transfer learning with pretrained language models: When and why does it work?","volume-title":"Proceedings of ACL","author":"Pruksachatkun","year":"2020"},{"key":"2022122317462808700_bib39","doi-asserted-by":"publisher","first-page":"3735","DOI":"10.18653\/v1\/2021.acl-long.289","article-title":"Structural guidance for transformer language models","volume-title":"Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)","author":"Qian","year":"2021"},{"key":"2022122317462808700_bib40","article-title":"Language models are unsupervised multitask learners","author":"Radford","year":"2019"},{"key":"2022122317462808700_bib41","article-title":"Scaling language models: Methods, analysis & insights from training gopher","volume":"abs\/2112.11446v2","author":"Rae","year":"2021","journal-title":"CoRR"},{"issue":"2","key":"2022122317462808700_bib42","doi-asserted-by":"publisher","first-page":"249","DOI":"10.1162\/089120101750300526","article-title":"Probabilistic Top-Down Parsing and Language Modeling","volume":"27","author":"Roark","year":"2001","journal-title":"Computational Linguistics"},{"key":"2022122317462808700_bib43","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.eacl-main.228","article-title":"Do syntax trees help pre-trained transformers extract information?","volume-title":"Proceedings of EACL","author":"Sachan","year":"2021"},{"key":"2022122317462808700_bib44","article-title":"Evalb - bracket scoring program","author":"Sekine","year":"1997"},{"key":"2022122317462808700_bib45","article-title":"Ordered neurons: Integrating tree structures into recurrent neural networks","volume-title":"International Conference on Learning Representations","author":"Shen","year":"2019"},{"key":"2022122317462808700_bib46","doi-asserted-by":"crossref","first-page":"5027","DOI":"10.18653\/v1\/D18-1548","article-title":"Linguistically-informed self-attention for semantic role labeling","volume-title":"Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing","author":"Strubell","year":"2018"},{"key":"2022122317462808700_bib47","article-title":"Syntax-infused transformer and BERT models for machine translation and natural language understanding","author":"Sundararaman","year":"2019","journal-title":"arXiv preprint arXiv:1911 .06156v1"},{"key":"2022122317462808700_bib48","article-title":"Grammar as a foreign language","volume-title":"Advances in Neural Information Processing Systems","author":"Vinyals","year":"2015"},{"key":"2022122317462808700_bib49","doi-asserted-by":"crossref","first-page":"183","DOI":"10.18653\/v1\/2020.emnlp-main.14","article-title":"Information- theoretic probing with minimum description length","volume-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)","author":"Voita","year":"2020"},{"key":"2022122317462808700_bib50","article-title":"StructBERT: Incorporating language structures into pre-training for deep language understanding","volume-title":"Proceedings of ICLR","author":"Wang","year":"2020"},{"key":"2022122317462808700_bib51","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D19-1098","article-title":"Tree transformer: Integrating tree structures into self-attention","volume-title":"Proceedings of EMNLP-IJCNLP","author":"Wang","year":"2019"},{"key":"2022122317462808700_bib52","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_x_00375","article-title":"BLiMP: The Benchmark of Linguistic Minimal Pairs for English","author":"Warstadt","year":"2020","journal-title":"TACL"},{"key":"2022122317462808700_bib53","doi-asserted-by":"publisher","first-page":"3302","DOI":"10.18653\/v1\/N19-1334","article-title":"structural supervision improves learning of non-local grammatical dependencies","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Wilcox","year":"2019"},{"key":"2022122317462808700_bib54","article-title":"Memory architectures in recurrent neural network language models","volume-title":"Proceedings of ICLR","author":"Yogatama","year":"2018"},{"key":"2022122317462808700_bib55","doi-asserted-by":"publisher","first-page":"9636","DOI":"10.1609\/aaai.v34i05.6511","article-title":"SG-Net: Syntax-guided machine reading comprehension","volume-title":"The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7\u201312, 2020","author":"Zhang","year":"2020"}],"container-title":["Transactions of the Association for Computational Linguistics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00526\/2064617\/tacl_a_00526.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00526\/2064617\/tacl_a_00526.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,23]],"date-time":"2022-12-23T12:46:47Z","timestamp":1671799607000},"score":1,"resource":{"primary":{"URL":"https:\/\/direct.mit.edu\/tacl\/article\/doi\/10.1162\/tacl_a_00526\/114315\/Transformer-Grammars-Augmenting-Transformer"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022]]},"references-count":55,"URL":"https:\/\/doi.org\/10.1162\/tacl_a_00526","relation":{},"ISSN":["2307-387X"],"issn-type":[{"value":"2307-387X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2022]]},"published":{"date-parts":[[2022]]}}}