paper-with-me

Papers

DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Models

2023-09-25 · Sam Ade Jacobs, Masahiro Tanaka, Chengming Zhang, Minjia Zhang, Shuaiwen Leon Song, Samyam Rajbhandari, Yuxiong He

Computation in a typical Transformer-based large language model (LLM) can be characterized by batch size, hidden dimension, number of layers, and sequence length. Until now, system works for accelerating LLM training have focused on the first three dimensions: data parallelism for batch size, tensor parallelism for hidden size and pipeline parallelism for model depth or layers. These widely studied forms of parallelism are not targeted or optimized for long sequence Transformer models. Given practical application needs for long sequence LLM, renewed attentions are being drawn to sequence parallelism. However, existing works in sequence parallelism are constrained by memory-communication inefficiency, limiting their scalability to long sequence large models. In this work, we introduce DeepSpeed-Ulysses, a novel, portable and effective methodology for enabling highly efficient and scalable LLM training with extremely long sequence length. DeepSpeed-Ulysses at its core partitions input data along the sequence dimension and employs an efficient all-to-all collective communication for attention computation. Theoretical communication analysis shows that whereas other methods incur communication overhead as sequence length increases, DeepSpeed-Ulysses maintains constant communication volume when sequence length and compute devices are increased proportionally. Furthermore, experimental evaluations show that DeepSpeed-Ulysses trains 2.5x faster with 4x longer sequence length than the existing method SOTA baseline.

📄 PDF Abstract BibTeX arXiv:2309.14509

Code (6)

NUS-HPC-AI-Lab/VideoSys pytorch
chengzeyi/paraattention pytorch
jzhang38/EasyContext pytorch
nus-hpc-ai-lab/opendit pytorch
sandai-org/magiattention pytorch
wan-video/wan2.1 pytorch

Tasks

Language ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

Arctic Long Sequence Training: Scalable And Efficient Training For Multi-Million Token Sequences

2025-06-16 · Stas Bekman, Samyam Rajbhandari, Michael Wyatt, Jeff Rasley 외

Long sequences are critical for applications like RAG, long document summarization, multi-modality, etc., and modern LLMs, like Llama 4 Scout, support max sequence length of up to 10 million tokens. However, outside of e…

Document SummarizationGPURAG

DeepSpeed-Chat: Easy, Fast and Affordable RLHF Training of ChatGPT-like Models at All Scales

2023-08-02 · Zhewei Yao, Reza Yazdani Aminabadi, Olatunji Ruwase, Samyam Rajbhandari 외

ChatGPT-like models have revolutionized various applications in artificial intelligence, from summarization and coding to translation, matching or even surpassing human performance. However, the current landscape lacks a…

All

Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking

2026-02-24 · Ravi Ghadia, Maksim Abraham, Sergei Vorobyov, Max Ryabinin arxiv

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 Atten…

SuperOffload: Unleashing the Power of Large-Scale LLM Training on Superchips

2025-09-25 · Xinyu Lian, Masahiro Tanaka, Olatunji Ruwase, Minjia Zhang arxiv

The emergence of Superchips represents a significant advancement in next-generation AI hardware. These Superchips employ a tightly coupled heterogeneous architecture that integrates GPU and CPU on the same package, which…

A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Training

2023-03-11 · Siddharth Singh, Olatunji Ruwase, Ammar Ahmad Awan, Samyam Rajbhandari 외

Mixture-of-Experts (MoE) is a neural network architecture that adds sparsely activated expert blocks to a base model, increasing the number of parameters without impacting computational costs. However, current distribute…

Mixture-of-Experts