Saved in:
Bibliographic Details
Main Authors: Zhuang, Yonghao, Chen, Junda, Pang, Bo, Gu, Yi, Zhu, Yibo, Jiang, Yimin, Stoica, Ion, Xing, Eric, Zhang, Hao
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.18121
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914105052364800
author Zhuang, Yonghao
Chen, Junda
Pang, Bo
Gu, Yi
Zhu, Yibo
Jiang, Yimin
Stoica, Ion
Xing, Eric
Zhang, Hao
author_facet Zhuang, Yonghao
Chen, Junda
Pang, Bo
Gu, Yi
Zhu, Yibo
Jiang, Yimin
Stoica, Ion
Xing, Eric
Zhang, Hao
contents We present core attention disaggregation (CAD), a technique that improves long-context large language model training by decoupling the core attention computation, softmax(QK^T)V, from the rest of the model and executing it on a separate pool of devices. In existing systems, core attention is colocated with other layers; at long context lengths, its quadratic compute growth compared to the near-linear growth of other components causes load imbalance and stragglers across data and pipeline parallel groups. CAD is enabled by two observations. First, core attention is stateless: it has no trainable parameters and only minimal transient data, so balancing reduces to scheduling compute-bound tasks. Second, it is composable: modern attention kernels retain high efficiency when processing fused batches of token-level shards with arbitrary lengths. CAD partitions core attention into token-level tasks and dispatches them to dedicated attention servers, which dynamically rebatch tasks to equalize compute without sacrificing kernel efficiency. We implement CAD in a system called DistCA, which uses a ping-pong execution scheme to fully overlap communication with computation and in-place execution on attention servers to reduce memory use. On 512 H200 GPUs and context lengths up to 512k tokens, DistCA improves end-to-end training throughput by up to 1.35x, eliminates data and pipeline parallel stragglers, and achieves near-perfect compute and memory balance.
format Preprint
id arxiv_https___arxiv_org_abs_2510_18121
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Long-context Language Model Training by Core Attention Disaggregation
Zhuang, Yonghao
Chen, Junda
Pang, Bo
Gu, Yi
Zhu, Yibo
Jiang, Yimin
Stoica, Ion
Xing, Eric
Zhang, Hao
Machine Learning
Distributed, Parallel, and Cluster Computing
We present core attention disaggregation (CAD), a technique that improves long-context large language model training by decoupling the core attention computation, softmax(QK^T)V, from the rest of the model and executing it on a separate pool of devices. In existing systems, core attention is colocated with other layers; at long context lengths, its quadratic compute growth compared to the near-linear growth of other components causes load imbalance and stragglers across data and pipeline parallel groups. CAD is enabled by two observations. First, core attention is stateless: it has no trainable parameters and only minimal transient data, so balancing reduces to scheduling compute-bound tasks. Second, it is composable: modern attention kernels retain high efficiency when processing fused batches of token-level shards with arbitrary lengths. CAD partitions core attention into token-level tasks and dispatches them to dedicated attention servers, which dynamically rebatch tasks to equalize compute without sacrificing kernel efficiency. We implement CAD in a system called DistCA, which uses a ping-pong execution scheme to fully overlap communication with computation and in-place execution on attention servers to reduce memory use. On 512 H200 GPUs and context lengths up to 512k tokens, DistCA improves end-to-end training throughput by up to 1.35x, eliminates data and pipeline parallel stragglers, and achieves near-perfect compute and memory balance.
title Efficient Long-context Language Model Training by Core Attention Disaggregation
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2510.18121