Trees in transformers: a theoretical analysis of the Transformer's ability to represent trees
Not on the map. Why?
Abstract (arXiv)
Transformer networks are the de facto standard architecture in natural language processing. To date, there are no theoretical analyses of the Transformer's ability to capture tree structures. We focus on the ability of Transformer networks to learn tree structures that are important for tree transduction problems. We first analyze the theoretical capability of the standard Transformer architecture to learn tree structures given enumeration of all possible tree backbones, which we define as trees without labels. We then prove that two linear layers with ReLU activation function can recover any tree backbone from any two nonzero, linearly independent starting backbones. This implies that a Transformer can learn tree structures well in theory. We conduct experiments with synthetic data and find that the standard Transformer achieves similar accuracy compared to a Transformer where tree position information is explicitly encoded, albeit with slower convergence. This confirms empirically that Transformers can learn tree structures.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 28 references that are in the map. First posted on arXiv 16 Dec 2021.
Builds on
13 of 28 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Layer Normalizationcited by 5,669
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
- 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 120
- 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
- 2021Provable Limitations of Acquiring Meaning from Ungrounded Form: What Will Future Language Models Understand?cited by 55
- 2019Self-Attention with Structural Position Representationscited by 21
- 2019Tree-Transformer: A Transformer-Based Method for Correction of Tree-Structured Datacited by 20
1 more
- 2015Top-down Tree Long Short-Term Memory Networkscited by 12
Built on by
Not cited yet.