Manuscript Offprint

arXiv:2609.03905

Every Kernel Is a Join: Automatic Multi-GPU Parallelism for AI Computations in Einsummable

Zhimin Ding, Chen-Kuan Liao, Chima Adiole, Brianna Barrow, Fangzhou Du, Yu Hsiao, Ge Huang, Yicheng Jin, Ismail Syed, Chris Jermaine

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We present Einsummable, a prototype system that accepts a PyTorch-like description of an AI computation and automatically distributes it across a multi-GPU server. Einsummable models every operation as a relational join followed by an aggregation over tensor relations, in which the tuples contain sub-tensors. Each operation exposes its possible decompositions through join-agg specs. An optimizer selects decompositions across the whole computation to minimize a communication-cost proxy. Because it searches decompositions rather than a menu of strategies, Einsummable discovers plans that mesh-based auto-parallelizers cannot. Each decomposed operation is implemented by synthesizing an exchange program, which is a topology-aware generalization of Volcano's exchange operator. Despite being fully automatic, Einsummable can outperform custom-designed implementations. For example, on LLaMA transformer blocks on an eight-GPU A100 server, Einsummable achieves a geometric-mean runtime of 8.97 ms, versus 13.65 ms for hand-tuned PyTorch and 14.87 ms for vLLM.

PVLDB Reference Format:

Zhimin Ding, Chen-Kuan Liao, Chima Adiole, Brianna Barrow, Fangzhou Du, Yu Hsiao, Ge Huang, Yicheng Jin, Ismail Syed, Chris Jermaine. Every Kernel Is a Join: Automatic Multi-GPU Parallelism for AI Computations in Einsummable. PVLDB, 20(1): XXX-XXX, 2027.

doi:XX.XX/XXX.XX

References (9)