We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Shortformer: Better Language Modeling using Shorter Inputs

Abstract: Increasing the input length has been a driver of progress in language modeling with transformers. We identify conditions where shorter inputs are not harmful, and achieve perplexity and efficiency improvements through two new methods that decrease input length. First, we show that initially training a model on short subsequences before moving on to longer ones both reduces overall training time and, surprisingly, substantially improves perplexity. Second, we show how to improve the efficiency of recurrence methods in transformers, which let models condition on previously processed tokens when generating sequences that exceed the maximal length the transformer can handle at once. Existing methods require computationally expensive relative position embeddings; we introduce a simple alternative of adding absolute position embeddings to queries and keys instead of to word embeddings, which efficiently produces superior results. We show that these recurrent models also benefit from short input lengths. Combining these techniques speeds up training by a factor of 1.65, reduces memory usage, and substantially improves perplexity on WikiText-103, without adding any parameters.
Comments: To appear at ACL 2021
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2012.15832 [cs.CL]
  (or arXiv:2012.15832v2 [cs.CL] for this version)

Submission history

From: Ofir Press [view email]
[v1] Thu, 31 Dec 2020 18:52:59 GMT (162kb,D)
[v2] Thu, 3 Jun 2021 02:14:46 GMT (123kb,D)

Link back to: arXiv, form interface, contact.