Ring Attention with Blockwise Transformers for Near-Infinite Context

By Hao Liu, Matei A. Zaharia, Pieter Abbeel. International Conference on Learning Representations, 2023

539 citations recorded by the source corpus.

Transformers have emerged as the architecture of choice for many state-of-the-art AI models, showcasing exceptional performance across a wide range of AI applications. However, the memory demands imposed by Transformers limit their ability to handle long sequences, thereby posing challenges in utilizing videos, actions, and other long-form sequences and modalities in complex environments. We present a novel approach, Ring Attention with Blockwise Transformers (Ring Attention), which leverages blockwise computation of self-attention and feedforward to distribute long sequences across multiple devices while fully overlapping the communication of key-value blocks with the computation of blockwise attention. Our approach enables training and inference of sequences that are up to device count times longer than those achievable by prior memory-efficient Transformers, without resorting to approximations or incurring additional communication and computation overheads. Extensive experiments on language modeling and reinforcement learning tasks demonstrate the effectiveness of our approach in allowing millions of tokens context size and improving performance.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/02ad9f3fefe33cb9ca546591bec65dbdf7766c80

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Hongxu Yin
  2. Zhijian Liu
  3. Boris Ginsburg
  4. Yukang Chen
  5. Pavlo Molchanov
  6. Jan Kautz
  7. Haotian Tang
  8. Bo Li

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Xiaogang Wang
  4. Dacheng Tao
  5. Chen Change Loy
  6. Trevor Darrell
  7. Yi Yang
  8. Jan Kautz

Citations in the corpus