NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

StarTrail: Concentric Ring Sequence Parallelism for Efficient Near-Infinite-Context Transformer Model Training

Ziming Liu, Shaoyu Wang, Shenggan Cheng, Zhongkai Zhao, Kai Wang, Xuanlei Zhao, James Demmel, Yang You

TL;DR

StarTrail is a novel distributed training system that enables Transformers to handle "near-infinite" context lengths by reimagining how GPUs communicate. By organizing GPUs into "teams" and using concentric sub-rings for communication, it reduces peer-to-peer data transfer volume by up to 75% and delivers throughput improvements of over 114% compared to standard Ring Attention.

What Problem Does This Paper Address?

As AI models move toward processing entire books or high-resolution videos, the "context window"—the amount of data a model can consider at once—has become a massive bottleneck. Standard Transformers struggle with long sequences because the memory and computation required grow quadratically with the sequence length.

To solve this, researchers use Sequence Parallelism, which splits a long sequence across multiple GPUs. However, existing methods have major flaws:

  1. DeepSpeed Ulysses is efficient but limited by the number of attention heads in a model (you cannot use more GPUs than you have heads).
  2. Ring Attention can scale to "infinite" lengths but requires every GPU to talk to every other GPU in a giant circle. This creates massive communication overhead and is easily slowed down by a single weak network link between server nodes.

StarTrail aims to break this deadlock by providing a system that is both highly scalable and communication-efficient.

Methods

The core innovation of StarTrail is Concentric Ring Sequence Parallelism. Instead of one giant ring of GPUs, StarTrail introduces a new parallel dimension by grouping GPUs into "teams."

Comparison of standard Ring Attention and StarTrail's concentric sub-rings

The process happens in three distinct phases:

  • Preprocessing: Queries are duplicated within a team using an "all-gather" operation. While this costs a bit of memory, it allows for much more efficient communication later.
  • Ring-Phase: Peer-to-peer (P2P) communication is divided into smaller sub-rings. Because queries are already shared within the team, each GPU only needs to receive a fraction of the total keys and values to complete its calculations.
  • Postprocessing: A "reduce-scatter" operation combines the partial results from the team members into the final output.

The authors also implement a ZigZag Dataloader to solve the "causal mask" problem. In standard language modeling, GPUs processing the start of a sentence have much less work than those at the end; ZigZag reorders the data so every GPU has an equal computational load.

Datasets and Setup

The paper focuses on system performance and throughput rather than training a specific model to completion. They evaluated StarTrail using:

  • GPT-style models (3B and 7B parameters) for Natural Language Processing tasks.
  • Diffusion Transformer (DiT) models (1B parameters) for Computer Vision tasks (similar to the architecture used in Stable Diffusion 3).
  • Benchmarks were conducted across various hardware topologies, including high-end Nvidia H100 clusters with InfiniBand and A100 clusters using Ethernet.

Key Insights and Ideas

  • The Power of Teams: By introducing the "team size" parameter ($C$), StarTrail allows engineers to tune the system to their specific hardware. If $C=1$, it acts like standard Ring Attention. If $C$ is large, it relies more on collective communication.
  • Localized Communication: One of the biggest breakthroughs is that StarTrail can confine its most intense P2P communication within a single server node (using ultra-fast NVLink) rather than forcing data across slower inter-node cables.
  • Communication Volume Reduction: Mathematically, StarTrail-2 (team size of 2) and StarTrail-4 (team size of 4) reduce the total P2P communication volume by roughly 50% and 75%, respectively.
  • Better Overlap: Because the communication volume is lower, it is much easier for the system to "hide" data transfers behind the actual math (computation), leading to near-perfect efficiency.

Key Results

StarTrail dramatically reduces communication overhead, leading to massive speedups across different model architectures and hardware setups.

Performance results showing reduced communication volume and increased throughput for DiT and GPT models
  • Massive Speedups: StarTrail outperformed Ring Attention by up to 77.12% on GPT models and 114.33% on DiT models.
  • Scalability: In "strong scaling" tests (keeping the sequence length the same but adding more GPUs), StarTrail maintained much higher throughput than the baseline as the GPU count increased.
  • Acceptable Memory Trade-off: While StarTrail uses more memory to store duplicated activations, the increase is less than 13.2% for large models—a small price to pay for doubling the training speed.

Limitations and Future Work

The authors acknowledge that while StarTrail is "orthogonal" to other types of parallelism (like Tensor or Pipeline parallelism), they have not yet fully explored the "co-design" of these methods. Future work involves integrating StarTrail with DeepSpeed Ulysses to create a hybrid system that can choose the best communication strategy for any given model architecture or hardware setup. Additionally, they aim to further optimize the system for even more complex "hybrid" parallel environments.

Summary updated

BibTeX
@inproceedings{liu2025startrail,
  author = {Ziming Liu and Shaoyu Wang and Shenggan Cheng and Zhongkai Zhao and Kai Wang and Xuanlei Zhao and James Demmel and Yang You},
  title = {{StarTrail: Concentric Ring Sequence Parallelism for Efficient Near-Infinite-Context Transformer Model Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=PxximqJil4},
}
Figure