English

Adaptive Attention Span in Transformers

Machine Learning 2019-08-09 v2 Machine Learning

Abstract

We propose a novel self-attention mechanism that can learn its optimal attention span. This allows us to extend significantly the maximum context size used in Transformer, while maintaining control over their memory footprint and computational time. We show the effectiveness of our approach on the task of character level language modeling, where we achieve state-of-the-art performances on text8 and enwiki8 by using a maximum context of 8k characters.

Keywords

Cite

@article{arxiv.1905.07799,
  title  = {Adaptive Attention Span in Transformers},
  author = {Sainbayar Sukhbaatar and Edouard Grave and Piotr Bojanowski and Armand Joulin},
  journal= {arXiv preprint arXiv:1905.07799},
  year   = {2019}
}

Comments

Accepted to ACL 2019

R2 v1 2026-06-23T09:12:14.723Z