RL-Tuned LLMs Outperform Traditional Assembly Compilers

Researchers have trained Large Language Models using Reinforcement Learning (PPO) to directly optimize C-compiled assembly code, achieving an average 1.47x speedup over the industry-standard `gcc -O3` by discovering novel low-level transformations.

The top 3

  1. Record Speedups: RL-Tuned LLMs Outperform Baselines by 1.47x: Reinforcement Learning (RL) trained Large Language Models (LLMs) have demonstrated significant performance gains, with one model, Qwen2.5-Coder-7B-PPO, achieving an average 1.47x speedup in optimizing compiled C programs to assembly, surpassing 20 other models, including Claude-3.7-sonnet.
  2. RL's Novel Discoveries: Uncovering Hidden Assembly Optimizations: RL-tuned LLMs transcend conventional compiler heuristics by discovering novel, low-level assembly code optimizations, such as optimal compiler pass sequences or instruction reordering, that traditional compilers often miss, leading to functionally equivalent yet faster programs.
  3. Beyond Speed: RL-Tuned LLMs Achieve 50% Energy Reduction: In addition to speed, RL-tuned LLMs also deliver substantial energy efficiency improvements; the GREEN-CODE framework, for instance, reduced energy consumption by 23-50% on average for LLM-based code generation tasks, with some prototypes showing up to a 2x energy efficiency improvement over traditional compiler optimizations.

Sources

Open the full topic