Unifying ML's Stack for Joint Optimization

TVM Unity removes strict boundaries across the computation graph, tensor operators, and hardware mapping, enabling co-optimized decisions not possible in traditional layered systems.

The top 3

  1. Top Performance Gains from Joint ML Optimization: Joint optimization across the ML stack, as pursued by TVM Unity, can deliver significant speedups, with prior TVM work showing 1.2x to 3.8x performance improvements over frameworks using hand-optimized libraries by performing joint high- and low-level optimizations. Other 'Unity' frameworks have demonstrated up to 3.6x speedup for DNN training through joint optimization of algebraic transformations and parallelization.
  2. Core Pillars of Unified ML Stack Optimization: TVM Unity achieves joint optimization by unifying key abstractions across the ML system stack: computational graphs, tensor programs (TensorIR), and hardware primitives. This approach integrates components like FFI, TensorIR, Meta-Schedule, and Relax, breaking down traditional vertical and horizontal boundaries to expose cross-layer interactions for automated, learning-driven optimization.
  3. Top Metrics & Challenges Addressed by Joint Optimization: Unifying the ML stack for joint optimization targets several critical performance metrics and challenges, including improved overall performance, more robust models, and better balance between competing objectives like accuracy and efficiency. It specifically addresses high-level operator fusion, mapping to arbitrary hardware primitives, and memory latency hiding, while enabling greater flexibility and agility in adapting to rapidly evolving ML models and hardware accelerators.

Sources

Open the full topic