Character-Level Language Modeling with Deeper Self-Attention

Abstract

LSTMs and other RNN variants have shown strong performance on character-level language modeling. These models are typically trained using truncated backpropagation through time, and it is common to assume that their success stems from their ability to remember long-term contexts. In this paper, we show that a deep (64-layer) transformer model (Vaswani et al. 2017) with fixed context outperforms RNN variants by a large margin, achieving state of the art on two popular benchmarks: 1.13 bits per character on text8 and 1.06 on enwik8. To get good results at this depth, we show that it is important to add auxiliary losses, both at intermediate network layers and intermediate sequence positions.

Cite

Text

Al-Rfou et al. "Character-Level Language Modeling with Deeper Self-Attention." AAAI Conference on Artificial Intelligence, 2019. doi:10.1609/AAAI.V33I01.33013159

Markdown

[Al-Rfou et al. "Character-Level Language Modeling with Deeper Self-Attention." AAAI Conference on Artificial Intelligence, 2019.](https://mlanthology.org/aaai/2019/alrfou2019aaai-character/) doi:10.1609/AAAI.V33I01.33013159

BibTeX

@inproceedings{alrfou2019aaai-character,
  title     = {{Character-Level Language Modeling with Deeper Self-Attention}},
  author    = {Al-Rfou, Rami and Choe, Dokook and Constant, Noah and Guo, Mandy and Jones, Llion},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2019},
  pages     = {3159-3166},
  doi       = {10.1609/AAAI.V33I01.33013159},
  url       = {https://mlanthology.org/aaai/2019/alrfou2019aaai-character/}
}