Top 3 ML Algorithms Powering TVM Unity's Search

TVM Unity leverages advanced machine learning techniques like evolutionary search, reinforcement learning, and Bayesian optimization to efficiently navigate the immense LLM configuration space, identifying optimal performance settings.

The top 3

  1. Evolutionary Search: The Core Optimization Driver: TVM Unity's MetaSchedule leverages evolutionary algorithms as its primary search strategy, intelligently exploring a vast space of code schedules, including loop tiling and vectorization, to discover optimal hardware implementations for LLMs.
  2. XGBoost: Predicting Performance to Accelerate Search: XGBoost serves as the default cost model within TVM Unity's optimization framework, accurately predicting the performance of various candidate schedules. This machine learning-driven prediction dramatically reduces the need for time-consuming actual hardware measurements.
  3. Epsilon-Greedy: Balancing Search for Peak Performance: To efficiently navigate the immense optimization search space for LLMs, TVM Unity's evolutionary algorithm employs the Epsilon-Greedy strategy. This technique intelligently balances exploring new, potentially better code configurations with exploiting known high-performing ones.

Sources

Open the full topic