Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Oct-16-2024
- Country:
- North America
- United States > Minnesota
- Hennepin County > Minneapolis (0.14)
- Mexico > Mexico City
- Mexico City (0.04)
- Canada > Ontario
- Toronto (0.04)
- United States > Minnesota
- Europe
- Italy > Tuscany
- Florence (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Italy > Tuscany
- Asia
- North America
- Genre:
- Research Report > New Finding (0.34)
- Industry:
- Government (0.46)
- Technology: