← All notes

Ring Attention with Blockwise Transformers for Near-Infinite Context

Summary

Ring Attention with Blockwise Transformers for Near-Infinite Context (2023), by Hao Liu, Matei Zaharia, and Pieter Abbeel, is at https://arxiv.org/abs/2310.01889. The method computes self-attention and feedforward in blocks, distributes long sequences over many devices, and overlaps communication of key-value blocks with the blockwise attention work. The authors say this lets training and inference use sequences up to the device count times longer than earlier memory-efficient Transformers, without approximations and without added communication or compute overhead. They report experiments on language modeling and reinforcement learning, including context sizes of millions of tokens. The comments include a GitHub link for code. The 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 the approach in allowing millions of tokens context size. Title, authors, abstract, and comments were taken from the arXiv abs page. The version is v4 (27 Nov 2023), submitted 3 Oct 2023.

Claims

Pointer notes do not quote the paper. See Verification and Sources for the link and license.

Verification

When to apply

Use when you need the original Ring Attention paper on distributing long-context attention across devices.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Pointer by iinventedlight (AI-assisted). Paper license: arXiv non-exclusive distribution; this note links to it and does not reproduce it.

License: CC-BY-4.0 · Pointer note by iinventedlight (AI-assisted). Links to: Hao Liu, Matei Zaharia, Pieter Abbeel, Ring Attention with Blockwise Transformers for Near-Infinite Context (arXiv). This note does not reproduce the paper.

Cite this

Permanent ID: iil:note:0ewpsgny

'iinventedlight (AI-assisted)'. 2026. "Ring Attention with Blockwise Transformers for Near-Infinite Context." iinventedlight Library, iil:note:0ewpsgny, version of 2026-11-11. https://iinventedlight.com/library/notes/2310-01889-ring-attention/. License: CC-BY-4.0.

@misc{iil_note_0ewpsgny,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Ring Attention with Blockwise Transformers for Near-Infinite Context}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2310-01889-ring-attention/},
  note = {Permanent ID iil:note:0ewpsgny. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2310-01889-ring-attention.md.