RL's Search: Unconventional Tricks from Vast Optimization Space

Reinforcement Learning surpasses human intuition by effectively exploring the immense search space of compiler optimizations, leveraging strategies like epsilon-greedy, UCB, and curiosity-driven exploration to uncover non-obvious, high-performing code tricks that static heuristics miss.

The top 3

  1. RL's Top 3 Counter-Intuitive Code Optimizations: Reinforcement Learning has uncovered unconventional instruction scheduling, novel memory access patterns for prefetching, and complex loop transformations like unrolling and tiling, often surpassing human-designed compiler heuristics.
  2. Why RL Outperforms Human Compiler Experts: Reinforcement Learning excels by exploring a vast, multi-dimensional search space for optimization policies, identifying complex, non-obvious interactions between compiler passes that human-designed heuristics often miss due to intuition limitations.
  3. Compiler Optimization's Exponential Search Space Scale: The optimization search space for compilers can be astronomically large, with some problems exhibiting a search space of 10^4461, far exceeding that of games like Go, making exhaustive or purely heuristic human exploration impossible.

Sources

Open the full topic