Skip to main content
QUICK REVIEW

[Paper Review] Axe: A Simple Unified Layout Abstraction for Machine Learning Compilers

Bohan Hou, Hongyi Jin|arXiv (Cornell University)|Jan 27, 2026
Parallel Computing and Optimization TechniquesComputer Science0 citations
TL;DR

Axe introduces a hardware-aware layout abstraction with named axes to unify data and compute mappings across device meshes, memory hierarchies, and accelerators, enabling a multi-granularity DSL and compiler that approaches hand-tuned kernel performance.

ABSTRACT

Scaling modern deep learning workloads demands coordinated placement of data and compute across device meshes, memory hierarchies, and heterogeneous accelerators. We present Axe Layout, a hardware-aware abstraction that maps logical tensor coordinates to a multi-axis physical space via named axes. Axe unifies tiling, sharding, replication, and offsets across inter-device distribution and on-device layouts, enabling collective primitives to be expressed consistently from device meshes to threads. Building on Axe, we design a multi-granularity, distribution-aware DSL and compiler that composes thread-local control with collective operators in a single kernel. Experiments show that our unified approach can bring performance close to hand-tuned kernels on across latest GPU devices and multi-device environments and accelerator backends.

Motivation & Objective

  • Motivate runtime optimization challenges for large-scale DL workloads across distributed devices and memory hierarchies.
  • Propose Axe layout to unify inter- and intra-device data and compute mappings with named hardware axes.
  • Develop a distribution-aware DSL and compiler that combines thread-local control with collective operators in a single kernel.
  • Provide layout operations and code-generation techniques to enable efficient, hardware-native schedules.
  • Demonstrate performance gains that approach hand-tuned kernels on modern GPUs and multi-device setups.

Proposed method

  • Define Axe as a set-valued map from logical indices to coordinates on named axes including D (Shard), R (Replica), and O (Offset).
  • Introduce layout operators (canonicalize, group, tile, slice) to analyze and transform layouts for code generation.
  • Build a multi-granularity, distribution-aware Axe DSL and compiler that composes thread-local control with collective operators inside one kernel.
  • Represent distributed tensors and heterogeneous hardware layouts with Axe to enable runtime checks and schedule selection.
  • Provide a library of high-level operators (copy, reductions, GEMM, etc.) and schedules that map to hardware-native implementations (e.g., TMA, NVSHMEM).
  • Demonstrate code generation across targets ( GPU warps, multi-GPU meshes, and AI accelerators like Trainium) using a three-stage pipeline and layout-driven lowering.

Experimental results

Research questions

  • RQ1How can a unified, hardware-aware layout abstraction map logical tensor coordinates to multi-axis physical spaces across devices and memory hierarchies?
  • RQ2Can Axe unify inter-device sharding, on-device tiling, and replication in a single formal model?
  • RQ3Does a distribution-aware DSL and compiler built on Axe achieve near hand-tuned kernel performance across GPUs and accelerators?
  • RQ4How effective are Axe layout operations for analysis and code-generation in heterogeneous environments?

Key findings

  • Axe matches or exceeds strong baselines, delivering up to 1.32x and 1.23x on B200 MoE layers versus FlashInfer and SGLang.
  • Axe achieves up to 1.40x speedup for multi-GPU GEMM+Reduce-Scatter versus cuBLAS+NCCL and Triton-Distributed.
  • Axe reaches up to 1.44x improvements in AI accelerator (Trainium-1) MHA versus vendor libraries.
  • On FP16 GEMM, Axe attains 97% to 100% of cuBLAS throughput across shapes, outperforming Triton which hovers around 90%.
  • For FP8 GEMM, Axe delivers 92% to 96% of DeepGEMM throughput.
  • In distributed kernel scenarios, Axe provides lower latency than baselines by enabling fine-grained overlap of communication and computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.