Record Speedups: RL's Peak Compiler Performance Gains

RL-tuned compilers have achieved substantial performance improvements, with reported speedups ranging from 16% for High-Level Synthesis (HLS) circuits over -O3 to an impressive 1.47x (47%) average speedup over GCC -O3 for assembly code optimization using PPO-trained LLMs.

The top 3

  1. Record 100% Speedup in GPU Kernel Generation: The CUDA Agent, a large-scale agentic reinforcement learning system, achieved up to 100% speedup over `torch.compile` for GPU CUDA kernel generation on KernelBench, outperforming advanced proprietary models by approximately 40% on the hardest Level-3 setting.
  2. Top RL Algorithms Driving Compiler Gains: Proximal Policy Optimization (PPO) has demonstrated significant impact, achieving an average 1.47x speedup over the gcc -O3 baseline for assembly code optimization. Google's MLGO framework leverages policy gradient and evolution strategies for inlining and register allocation in LLVM, deployed in production.
  3. RL's Peak Gains in Loop Nests & HLS Compilers: The Pearl framework, utilizing deep reinforcement learning, achieved a geometric mean speedup of 3.36x compared to Pluto for optimizing general loop nests manipulating tensors. Additionally, RL strategies for High-Level Synthesis (HLS) compiler tuning have shown a 3x speedup over -O3 optimization levels for FPGA designs.

Sources

Open the full topic