ML-Driven Optimization: TVM Unity's Search Strategy

TVM Unity leverages a learning-based cost modeling method to automatically explore a vast, expanded joint search space across computational graphs, tensor programs, and hardware primitives, enabling optimizations that traditional, rule-based compilers often miss.

The top 3

  1. TVM's Top 2 Auto-Tuning Search Strategies Compared: TVM employs two primary auto-tuning methods for ML-driven optimization: AutoTVM, which uses template-based search for common operators, and AutoScheduler (Ansor), a template-free approach that automatically generates search spaces for novel or complex operators. AutoScheduler often delivers superior reliability and performance, though it may require more optimization time.
  2. Core of TVM Unity's ML-Driven Optimization: Learning-Based Cost Modeling: TVM Unity's search strategy is driven by a novel learning-based cost modeling method. This approach enables rapid exploration of code optimizations across the expanded, unified search space created by breaking down traditional compiler layer boundaries, ultimately minimizing computational cost.
  3. Record Speedups: ML-Driven Optimization Achieves 34x Performance Gain: TVM's ML-driven optimization has demonstrated significant performance improvements, including up to a 4x speedup on GPUs and a remarkable 34x speedup over a baseline for a YOLO V3 model running on a MIPS-based camera platform, showcasing its ability to generate highly optimized, specialized code.

Sources

Open the full topic