atlas

Research map / Architectures and efficiency / Attention and transformers

DSP: Dynamic Sequence Parallelism for Multi-Dimensional Transformers

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Dynamic Sequence Parallelism (DSP), which switches the sharded sequence dimension between computation stages of multi-dimensional transformers via all-to-all resharding, reducing communication versus embedded sequence parallel methods.

Problem

Long multi-dimensional sequences (e.g., video generation transformers with spatial-temporal attention) need sequence parallelism, but existing embedded methods shard along a single sequence dimension and incur large communication overhead.

Approach

Instead of sharding within a single sequence dimension and communicating inside modules, DSP dynamically switches the parallel dimension between computation stages using all-to-all resharding (Split/Switch/Gather primitives), decoupled from module logic.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DSP instead of DeepSpeed-Ulysses2D-Transformer · End-to-end performance, 0.5M to 4M tokensthroughput: 32% to 75%Helped
Use DSP instead of other sequence parallel methods2D-Transformer · End-to-end performance, 0.5M to 4M tokensthroughput: up to 10xHelped
Use DSP instead of DeepSpeed-Ulysses2D-Transformer · Per-layer communication volume per devicecommunication volume: $4M/N$ -> $2M/N$Helped
Use DSP instead of Ring Attention2D-Transformer · Per-layer communication volume per devicecommunication volume: $2M$ -> $2M/N$Helped
Use DSP instead of Megatron-LM or Megatron-SP2D-Transformer · Per-layer communication volume per devicecommunication volume: $8M$ -> $2M/N$Helped
Use DSP instead of other methods2D-Transformer · Weak scalingthroughput: more than 80.7%Helped
Use DSP instead of other methods2D-Transformer · Scaling from 0.5M to 4M tokensFLOPS drop: at most 23% vs at least a 40%Helped
Use DSP instead of DS-Ulysses2D-Transformer · 8M sequence lengthcommunication time (ms): 5828 -> 914Helped

Surprising findings

Limitations

Experimental setup

Metrics: throughput FLOPS communication volume inference latency memory consumption

Baselines: DeepSpeed-Ulysses Megatron-SP Megatron-LM Ring Attention

Builds on: DeepSpeed-Ulysses Megatron-SP Ring Attention ZeRO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy