Hierarchical RL Decomposes Complex Compiler Tuning

Hierarchical Reinforcement Learning (HRL) excels by breaking down the intricate multi-objective compiler tuning problem into manageable subtasks. This allows higher-level policies to select overall optimization strategies, while lower-level policies fine-tune specific compiler passes or parameters, leading to improved sample efficiency, scalability, and better handling of long-horizon optimization goals.

The top 3

  1. Top Performance Gains: HRL Compiler Tuning Speedups: Hierarchical Reinforcement Learning (HRL) for compiler optimization has demonstrated significant performance improvements, achieving up to a 23x increase in learning speed and 4x in performance potential, alongside a 3x speedup over the standard -O3 compiler flag in specific High-Level Synthesis (HLS) scenarios.
  2. HRL's Edge: Solving NP-Hard Compiler Phase Ordering: Hierarchical RL excels at decomposing complex compiler tuning problems, notably the NP-hard phase-ordering problem, by learning high-level policies for pass sequences and lower-level policies for individual actions. This structured approach efficiently navigates the vast optimization space, which can contain 1.6 × 10^94 possible pass sequences for a 45-step compilation.
  3. Hierarchical vs. Simple: Efficiency in Compiler Action Spaces: Compared to simple, flat action spaces, hierarchical RL offers superior efficiency in compiler optimization by reducing the curse of dimensionality and improving sample efficiency. This is achieved through temporal abstraction, allowing the agent to learn and plan at multiple levels, from high-level goals to low-level actions, leading to faster learning and better generalization.

Sources

Open the full topic