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.

The top 3

  1. AutoTVM vs. Ansor: Template vs. Sketch Generation: AutoTVM relies on expert-defined templates with limited tunable parameters, whereas Ansor automatically constructs a hierarchical search space using 'sketches' derived from compute declarations, significantly reducing manual effort.
  2. Ansor's Performance Edge: Up to 8.95x Speedup: Ansor consistently outperforms AutoTVM, achieving significant speedups ranging from 1.02x to 8.95x on various deep learning models like ResNet and BERT, thanks to its expanded search space and more efficient cost model.
  3. Search Strategies: Evolutionary vs. Tuner Algorithms: Ansor employs an evolutionary search strategy guided by a learned cost model (often GBDT like XGBoost) to navigate its vast search space, while AutoTVM utilizes various tuners, including Grid Search, Random Search, GATuner, and XGBTuner, within its predefined templates.

Sources

Open the full topic