Does Traversal Order Matter? A Systematic Study of Tree Traversal Methods in Transformer Grammars
Not on the map. Why?
Abstract (arXiv)
Transformer Grammars (TGs) enhance language modeling by incorporating syntactic tree structures. Despite the potentially significant impact on model performance of how syntactic trees are linearized in TGs, existing studies rely solely on Depth-First Traversal (DFT) for linearization. In this paper, we expand the traversal design space by exploring Breadth-First Traversal (BFT) and a novel hybrid traversal strategy, Production-Rule Traversal (PRT), which combines the structural lookahead of BFT with the early lexical generation of DFT. We integrate these traversal methods with varying tree configurations and masking strategies, and empirically evaluate their performance on language modeling, syntactic generalization and summarization. We reveal the inherent trade-offs between nested composition and global lookahead, providing actionable recommendations for designing task-aware Transformer Grammars.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 19 references that are in the map. First posted on arXiv 15 Jun 2026.
Builds on
15 of 19 references.
References · 15
- 2017Attention Is All You Needcited by 60,361
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020GLU Variants Improve Transformercited by 1,804
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2020A Systematic Assessment of Syntactic Generalization in Neural Language Modelscited by 165
- 2016Recurrent Neural Network Grammarscited by 109
- 2020Fast and Accurate Neural CRF Constituency Parsingcited by 50
- 2022Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scalecited by 41
- 2017Effective Inference for Generative Neural Parsingcited by 25
- 2021Structural Guidance for Transformer Language Modelscited by 25
Built on by
Not cited yet.