paperbot · PL 论文追踪

全部论文 待读 收藏

P2 FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelism

FlexSP:通过灵活的序列并行加速大语言模型训练
ASPLOS Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22025匹配度 2/10 · 该论文聚焦长上下文 LLM 训练的序列并行与通信优化,属于机器学习系统/并行计算方向;它与用户关注的静态分析、Agentic 程序分析、浮点程序分析、贝叶斯程序分析以及 LLM 辅助形式化验证均无直接关系。仅因涉及 LLM 训练系统与 PL/ML 交叉标签而有非常弱的关联。引用 37 inbox
Yujie Wang, Shiju Wang, Shenhan Zhu, Fangcheng Fu, Xinyi Liu, Xuefeng Xiao, Huixia Li, Jiashi Li, Faming Wu, Bin Cui
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出异构自适应序列并行 FlexSP,按序列长度动态选择散射策略,加速长上下文 LLM 训练。

现有序列并行方法假设输入序列等长,对所有序列采用单一静态散射策略;但 LLM 训练语料序列长度呈长尾分布,导致负载异构与资源利用不足。FlexSP 提出异构自适应序列并行:每个训练步根据序列长度变化,为不同序列选择最优散射策略组合,将策略分配建模为线性规划并设计高效求解器,并实现支持自适应并行的分布式 LLM 训练系统。实验表明,相比最先进训练框架最高获得 1.98 倍加速。源码已开源。

问题
现有序列并行方法假设序列等长并使用单一静态散射策略,无法适应 LLM 训练语料中长尾分布导致的负载异构,造成效率低和资源利用率不足。
方法
将自适应散射策略组合建模为线性规划问题,设计高效求解器,并实现支持分布式 LLM 训练的自适应并行系统 FlexSP。
评估
在长上下文 LLM 训练场景下与最先进训练框架对比,最高取得 1.98 倍加速,并开源代码。
原文摘要(Abstract)

Extending the context length (i.e., the maximum supported sequence length) of LLMs is of paramount significance. To facilitate long context training of LLMs, sequence parallelism has emerged as an essential technique, which scatters each input sequence across multiple devices and necessitates communication to process the sequence. In essence, existing sequence parallelism methods assume homogeneous sequence lengths (i.e., all input sequences are equal in length) and therefore leverages a single, static scattering strategy for all input sequences. However, in reality, the sequence lengths in LLM training corpora exhibit substantial variability, often following a long-tail distribution, which leads to workload heterogeneity. In this paper, we show that employing a single, static strategy results in inefficiency and resource under-utilization, highlighting the need for adaptive approaches to handle the heterogeneous workloads across sequences. To address this, we propose a heterogeneity-adaptive sequence parallelism method. For each training step, our approach captures the variability in sequence lengths and assigns the optimal combination of scattering strategies based on workload characteristics. We model this problem as a linear programming optimization and design an efficient and effective solver to find the optimal solution. Furthermore, we implement our method in a high-performance system that supports adaptive parallelization in distributed LLM training. Experimental results demonstrate that our system outperforms state-of-the-art training frameworks by up to 1.98x. Source code is available at https://github.com/PKU-DAIR/Hetu-Galvatron.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{WangWZFLXLLW025,
  title = {FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelism},
  author = {Yujie Wang and Shiju Wang and Shenhan Zhu and Fangcheng Fu and Xinyi Liu and Xuefeng Xiao and Huixia Li and Jiashi Li and Faming Wu and Bin Cui},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3676641.3715998}
}