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.

The top 3

  1. Record Performance Boosts from Cross-Layer Co-Design: Joint hardware-software co-design and cross-layer optimization have demonstrated significant performance gains, with improvements such as an 18% (ResNet) to 40% (DQN) better energy-delay product over hand-tuned systems, and up to 40% increased data throughput in sensor networks.
  2. Unified IRs and Hardware-Awareness: Top Optimization Drivers: Key strategies for joint ML optimization include utilizing multi-level intermediate representations (IRs), like TVM Unity's approach, which bridge high-level ML constructs and low-level hardware. This enables targeted optimizations such as operator fusion and hardware-aware scheduling, integrating metrics like latency and energy for tailored performance.
  3. LLMs Achieve Peak Efficiency with Unified Optimization: Large Language Models (LLMs) significantly benefit from unified ML optimization, with MLC LLM, backed by TVM Unity, achieving state-of-the-art inference performance. For instance, a 4-bit quantized Llama2-70B can run at 34.5 tokens/second on two NVIDIA RTX 4090 GPUs.

Sources

Open the full topic