NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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 JermainearXiv 2026

TL;DR

Einsummable is a prototype system that fully automates multi-GPU parallelization for AI workloads by treating neural network operations as relational joins and aggregations. By ditching rigid device meshes and standard collective communication libraries (like NCCL) in favor of custom-synthesized, topology-aware data movement, it matches or outperforms expertly hand-tuned frameworks like PyTorch and vLLM.

What Problem Does This Paper Address?

Scaling large AI models requires distributing computations across multiple GPUs. Currently, developers rely on "intra-operator parallelism"—breaking up individual operations like matrix multiplications or attention layers across chips using strategies like data, tensor, or sequence parallelism.

However, finding the optimal way to shard these operations is incredibly difficult. Doing it manually requires deep hardware expertise and is highly error-prone. Existing automated systems (like Alpa or GSPMD) simplify this by mapping computations onto a rigid, uniform "device mesh" using a fixed menu of pre-defined strategies. Unfortunately, this rigid approach misses non-uniform, data-dependent parallelization plans that could significantly cut down on communication overhead—the primary bottleneck that can cause adding more GPUs to actually slow down a program.

Methods

The authors bridge the gap between AI systems and database theory with a system called Einsummable. It operates via three core components:

  1. Tensor-Relational Modeling & Join-Agg Specs: Einsummable views tensors as relational tables containing pairs of keys and sub-tensors. Every AI operation (e.g., matrix multiplication, softmax, FlashAttention) is modeled as a relational join followed by an aggregation. Each abstract operator exports a "join-agg spec" defining all the valid ways its inputs and outputs can be partitioned.
  2. Dynamic Programming Optimizer: Instead of picking from a menu of named strategies, a global logical optimizer uses dynamic programming to search the space of possible decompositions across the entire computation graph. It selects a plan that minimizes a proxy for communication cost (the total number of bytes transferred).
  3. Exchange Programs (ExProg): Once a logical plan is chosen, Einsummable physically realizes it by synthesizing a custom "exchange program" (a topology-aware generalization of database Volcano exchange operators). Guided by a hardware simulator, it generates a custom directed acyclic graph (DAG) of GPU kernels and precise data movements tailored to the specific machine architecture (e.g., NVIDIA DGX A100 vs. V100). Crucially, it completely bypasses standard collective communication libraries like NCCL.

Datasets

Because this paper focuses on systems performance and compilation, evaluation is performed on structural workloads rather than static training datasets:

  • LLaMA-Scale Transformer Blocks: Evaluated across five token workloads, including single sequences of 1K, 8K, and 128K tokens, as well as batches of 8 and 128 sequences of 1K tokens.
  • Synthetic Matrix Chains: Five distinct matrix chain multiplication workloads (labeled A through E) specifically engineered to stress different optimization challenges, such as complex parenthesizations or massive terminal aggregations.

Key Insights and Ideas

  • AI Optimization is a Database Problem: By framing tensor operations as joins and aggregations, the authors show that advanced parallelization strategies (like sequence or tensor parallelism) are just special cases of classical database partitioned parallelism.
  • Bypassing Canned Collectives Pays Off: Traditional systems rely on standard communication patterns like all-reduce or all-to-all. Einsummable proves that synthesizing point-to-point, special-purpose communication patterns tailored to the exact data layout and hardware topology yields superior performance.
  • Automated Discovery of Expert Strategies: For ultra-long sequences (128K tokens), Einsummable automatically discovered the complex, hand-crafted DeepSpeed-Ulysses parallelization scheme (sharding by heads inside attention, and by tokens outside it) entirely from scratch.

Key Results

Einsummable was evaluated against expertly hand-tuned baselines on an 8-GPU NVIDIA DGX A100 server:

  • Transformer Performance: On the LLaMA transformer block, Einsummable achieved a geometric-mean runtime of 8.97 ms, outperforming hand-tuned PyTorch (13.65 ms) and vLLM (14.87 ms).
  • Long-Sequence Dominance: On the challenging 128K single-sequence workload, Einsummable took just 143 ms, compared to 506 ms for PyTorch and 498 ms for vLLM—a ~3.5× speedup.
  • Matrix Chains: Einsummable performed on par with highly mature, JIT-compiled JAX and PyTorch implementations (staying within 6%), proving it handles classical workloads excellently without any manual intervention.
  • Physical Optimization Impact: On older, more restrictive network topologies like the DGX V100 (hybrid cube-mesh), Einsummable's topology-aware physical optimization provided up to a 41% speedup over a naive communication schedule.

Limitations and Future Work

  • Computation Cost Ignored: The current logical optimizer assumes all split intervals are load-balanced and only optimizes for communication. Incorporating computational cost and device-specific efficiency metrics is an open area of work.
  • Single-Server Constraint: Einsummable is currently limited to intra-server multi-GPU setups. Extending it to multi-machine clusters will require incorporating inter-server pipeline parallelism.
  • Simulation vs. Reality: The physical optimizer relies heavily on a hardware simulator. The authors suggest integrating machine learning to help the system adapt to real-world hardware variances.

Summary updated

BibTeX
@misc{ding2026every,
  author = {Zhimin Ding and Chen-Kuan Liao and Chima Adiole and Brianna Barrow and Fangzhou Du and Yu Hsiao and Ge Huang and Yicheng Jin and Ismail Syed and Chris Jermaine},
  title = {{Every Kernel Is a Join: Automatic Multi-GPU Parallelism for AI Computations in Einsummable}},
  year = {2026},
  eprint = {2609.03905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.03905},
}
Figure