Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding

Daichi Hayakawa, Issei Sato
10/16/2024
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hayakawa2024theoretical,
  title  = {Theoretical Analysis of Hierarchical Language Recognition and Generation by Transformers without Positional Encoding},
  author = {Daichi Hayakawa and Issei Sato},
  year   = {2024},
  eprint = {2410.12413},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12413v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.12413.svg)](https://codeofpaper.com/paper/2410.12413)

Discussion