arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09357cs.LGcs.AIcs.DCcs.DM
收藏

面向分布式深度学习的算子级自动并行规划——一种混合整数规划方法

Automatic Operator-level Parallelism Planning for Distributed Deep Learning -- A Mixed-Integer Programming Approach

Ruifeng She, Bowen Pang, Kai Li, Zehua Liu, Tao Zhong

AI总结:

本文提出一种基于混合整数规划的算子级自动并行规划方法,通过双层求解框架兼顾最优性与计算效率,在相同内存约束下将计算气泡减少一半,性能达到或超越 DeepSeek DualPipe 等专家策略。

摘要:

随着人工智能社区迈入拥有数十亿参数的大模型时代,分布式训练与推理已成为不可或缺的能力。尽管数据并行、模型并行、序列并行和流水线并行等多种并行策略已在主流硬件上成功应用于流行神经网络,但优化分布式部署方案仍需要大量专业知识和人工投入。此外,现有框架大多只适用于简单的链式结构,难以应对复杂的非线性架构。Mixture-of-experts 和多模态模型具有复杂的多输入多输出(MIMO)及分支丰富的拓扑结构,需要超越现有框架能力的细粒度算子级并行化。我们提出将并行规划形式化为一个使用混合整数规划的调度优化问题。我们提出一种双层求解框架,在最优性与计算效率之间取得平衡,自动生成有效的分布式方案,同时捕捉现代神经网络的异构结构和底层硬件约束。在与 DeepSeek 的 DualPipe 等专家设计策略进行对比的实验中,我们的框架取得了相当或更优的性能,在相同内存约束下将计算气泡减少了一半。该框架的多功能性不仅限于吞吐量优化,还可纳入硬件利用率最大化、内存容量约束以及其他考量或潜在策略。这些能力使我们的解决方案既可作为探索最优并行化策略的有价值研究工具,也可作为面向大规模 AI 部署的实用工业解决方案。

英文摘要:

As the artificial intelligence community advances into the era of large models with billions of parameters, distributed training and inference have become essential. While various parallelism strategies-data, model, sequence, and pipeline-have been successfully implemented for popular neural networks on main-stream hardware, optimizing the distributed deployment schedule requires extensive expertise and manual effort. Further more, while existing frameworks with most simple chain-like structures, they struggle with complex non-linear architectures. Mixture-of-experts and multi-modal models feature intricate MIMO and branch-rich topologies that require fine-grained operator-level parallelization beyond the capabilities of existing frameworks. We propose formulating parallelism planning as a scheduling optimization problem using mixed-integer programming. We propose a bi-level solution framework balancing optimality with computational efficiency, automatically generating effective distributed plans that capture both the heterogeneous structure of modern neural networks and the underlying hardware constraints. In experiments comparing against expert-designed strategies like DeepSeek's DualPipe, our framework achieves comparable or superior performance, reducing computational bubbles by half under the same memory constraints. The framework's versatility extends beyond throughput optimization to incorporate hardware utilization maximization, memory capacity constraints, and other considerations or potential strategies. Such capabilities position our solution as both a valuable research tool for exploring optimal parallelization strategies and a practical industrial solution for large-scale AI deployment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑