Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding
Not on the map. Why?
Abstract (arXiv)
In this study, we provide constructive proof that Transformers can recognize and generate hierarchical language efficiently with respect to model size, even without the need for a specific positional encoding. Specifically, we show that causal masking and a starting token enable Transformers to compute positional information and depth within hierarchical structures. We demonstrate that Transformers without positional encoding can generate hierarchical languages. Furthermore, we suggest that explicit positional encoding might have a detrimental effect on generalization with respect to sequence length.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 9 of its 46 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
9 of 46 references.
References · 9
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2016Layer Normalizationcited by 5,579
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
- 2023Average-Hard Attention Transformers are Constant-Depth Uniform Threshold Circuitscited by 26
- 2021Transformers Generalize Linearlycited by 19
Built on by
Citing papers per year: 2026: 1.
1 paper.