English

CoLT5: Faster Long-Range Transformers with Conditional Computation

Computation and Language 2023-10-25 v3 Machine Learning

Abstract

Many natural language processing tasks benefit from long inputs, but processing long documents with Transformers is expensive -- not only due to quadratic attention complexity but also from applying feedforward and projection layers to every token. However, not all tokens are equally important, especially for longer documents. We propose CoLT5, a long-input Transformer model that builds on this intuition by employing conditional computation, devoting more resources to important tokens in both feedforward and attention layers. We show that CoLT5 achieves stronger performance than LongT5 with much faster training and inference, achieving SOTA on the long-input SCROLLS benchmark. Moreover, CoLT5 can effectively and tractably make use of extremely long inputs, showing strong gains up to 64k input length.

Keywords

Cite

@article{arxiv.2303.09752,
  title  = {CoLT5: Faster Long-Range Transformers with Conditional Computation},
  author = {Joshua Ainslie and Tao Lei and Michiel de Jong and Santiago Ontañón and Siddhartha Brahma and Yury Zemlyanskiy and David Uthus and Mandy Guo and James Lee-Thorp and Yi Tay and Yun-Hsuan Sung and Sumit Sanghai},
  journal= {arXiv preprint arXiv:2303.09752},
  year   = {2023}
}

Comments

Accepted at EMNLP 2023

R2 v1 2026-06-28T09:20:58.171Z