atlas

Research map / Architectures and efficiency / RNNs and normalization

UniAP: Unifying Inter- and Intra-Layer Automatic Parallelism by Mixed Integer Quadratic Programming

CVPR 2025 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 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 UniAP, an automatic parallelism method that jointly optimizes inter-layer (pipeline) and intra-layer (DP, TP, FSDP) strategies by formulating the problem as a mixed integer quadratic program solved with Gurobi.

Problem

Existing automatic parallelism methods optimize inter-layer and intra-layer parallel strategies separately or hierarchically, yielding sub-optimal distributed training strategies, and manual parallelism demands heavy human effort.

Approach

Encode pipeline partitioning, per-layer intra-layer strategy selection, resharding and memory constraints, and order-preserving contiguity jointly as one MIQP over a time cost model, and iterate over pipeline degree and micro-batch count to find the minimal time per iteration.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Jointly optimize inter- and intra-layer parallelismUniAP · ENVC, Llama-7Btraining throughput: 1.22 ± 0.01 -> 4.63 ± 0.007Helped
Jointly optimize inter- and intra-layer parallelismUniAP · ENVB-8, BERT-Hugetraining throughput: 8.95 ± 0.06 -> 10.77 ± 0.13Helped
Jointly optimize inter- and intra-layer parallelismUniAP · ENVB-8, ViT-Hugetraining throughput: 38.74 ± 0.20 -> 45.58 ± 0.54Helped
Jointly optimize inter- and intra-layer parallelismUniAP · ENVB-8, Swin-Hugetraining throughput: 13.90 ± 0.17 -> 19.08 ± 0.10Helped
Jointly optimize inter- and intra-layer parallelismUniAP · ENVB-8, T5-Largetraining throughput: 8.06 ± 0.06 -> 7.98 ± 0.05Hurt
Jointly optimize inter- and intra-layer parallelismUniAP · ENVA, BERT-Hugetraining throughput: 33.46 ± 0.28 -> 33.46 ± 0.28No clear effect
Jointly optimize inter- and intra-layer parallelismUniAP · ENVA, T5-Largetraining throughput: 23.29 ± 0.04 -> 23.29 ± 0.04No clear effect
Jointly optimize inter- and intra-layer parallelismUniAP · ENVA, ViT-Hugetraining throughput: 109.51 ± 0.07 -> 109.51 ± 0.07No clear effect
Constrain the strategy space to inter-layer-only strategies (ablation)UniAP · ENVB, BERT-Huge-32; T5-Large-32; ViT-Huge-32; Swin-Huge-48training throughputMixed
Constrain the strategy space to intra-layer-only strategies (ablation)UniAP · ENVB, BERT-Huge-32; T5-Large-32; ViT-Huge-32; Swin-Huge-48training throughputMixed

Surprising findings

Limitations

Experimental setup

Metrics: training throughput (samples/s) strategy optimization time (min.)

Baselines: Galvatron Alpa Megatron-LM DeepSpeed (ZeRO-3)

Builds on: GPipe Galvatron Alpa Megatron-LM Gurobi

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