Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ghadia, Ravi, Abraham, Maksim, Vorobyov, Sergei, Ryabinin, Max
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914348329336832
author Ghadia, Ravi
Abraham, Maksim
Vorobyov, Sergei
Ryabinin, Max
author_facet Ghadia, Ravi
Abraham, Maksim
Vorobyov, Sergei
Ryabinin, Max
contents Efficiently processing long sequences with Transformer models usually requires splitting the computations across accelerators via context parallelism. The dominant approaches in this family of methods, such as Ring Attention or DeepSpeed Ulysses, enable scaling over the context dimension but do not focus on memory efficiency, which limits the sequence lengths they can support. More advanced techniques, such as Fully Pipelined Distributed Transformer or activation offloading, can further extend the possible context length at the cost of training throughput. In this paper, we present UPipe, a simple yet effective context parallelism technique that performs fine-grained chunking at the attention head level. This technique significantly reduces the activation memory usage of self-attention, breaking the activation memory barrier and unlocking much longer context lengths. Our approach reduces intermediate tensor memory usage in the attention layer by as much as 87.5$\%$ for 32B Transformers, while matching previous context parallelism techniques in terms of training speed. UPipe can support the context length of 5M tokens when training Llama3-8B on a single 8$\times$H100 node, improving upon prior methods by over 25$\%$.
format Preprint
id arxiv_https___arxiv_org_abs_2602_21196
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking
Ghadia, Ravi
Abraham, Maksim
Vorobyov, Sergei
Ryabinin, Max
Machine Learning
Distributed, Parallel, and Cluster Computing
Efficiently processing long sequences with Transformer models usually requires splitting the computations across accelerators via context parallelism. The dominant approaches in this family of methods, such as Ring Attention or DeepSpeed Ulysses, enable scaling over the context dimension but do not focus on memory efficiency, which limits the sequence lengths they can support. More advanced techniques, such as Fully Pipelined Distributed Transformer or activation offloading, can further extend the possible context length at the cost of training throughput. In this paper, we present UPipe, a simple yet effective context parallelism technique that performs fine-grained chunking at the attention head level. This technique significantly reduces the activation memory usage of self-attention, breaking the activation memory barrier and unlocking much longer context lengths. Our approach reduces intermediate tensor memory usage in the attention layer by as much as 87.5$\%$ for 32B Transformers, while matching previous context parallelism techniques in terms of training speed. UPipe can support the context length of 5M tokens when training Llama3-8B on a single 8$\times$H100 node, improving upon prior methods by over 25$\%$.
title Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2602.21196