← Latest papers
🤖 AI

AI-PROPELLER: Warehouse-Scale Interprocedural Code Layout Optimization with AlphaEvolve

AI-PROPELLER introduces an agentic workflow called Magellan that evolves the Propeller post-link optimizer to achieve the first successful fine-grained interprocedural code layout optimization for large warehouse-scale applications, yielding performance improvements of 0.23% to 1.6% by leveraging real hardware execution for precise reward signals.

Original authors: Chaitanya Mamatha Ananda, Rajiv Gupta, Mircea Trofin, Aiden Grossman, Sriraman Tallam, Xinliang David Li, Amir Yazdanbakhsh

Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Chaitanya Mamatha Ananda, Rajiv Gupta, Mircea Trofin, Aiden Grossman, Sriraman Tallam, Xinliang David Li, Amir Yazdanbakhsh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive, incredibly complex library (a computer program) with millions of books (functions) and billions of pages (code instructions). For years, librarians (optimizers) have been trying to arrange these books on the shelves to make them easier to find.

The old way of doing this was like organizing a single bookshelf at a time. If you had a book with 100 chapters, the librarian would rearrange those chapters so the most popular ones were right next to each other. This is called intraprocedural optimization. It helped, but it missed a huge opportunity: the most popular chapter of Book A might be followed immediately by the most popular chapter of Book B. If those two books were on opposite sides of the library, the reader (the computer processor) had to run all the way across the room to turn the page, wasting time and energy.

AI-PROPELLER is a new, super-smart librarian system that solves this by rearranging the entire library at once, not just one bookshelf at a time.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Combinatorial" Nightmare

Rearranging one book is hard. Rearranging millions of books so that every single popular page is next to the page that comes after it (even if that page is in a different book) is a math problem so huge that human brains and traditional computers can't solve it. It's like trying to find the perfect seating arrangement for a stadium of 100,000 people where everyone wants to sit next to their best friend, but the friends are scattered across different sections.

Furthermore, the old librarians used "guesswork" (static models) to decide where to put things. They didn't actually test the arrangement; they just calculated what should work.

2. The Solution: The "AI Agent" (Magellan)

The researchers used a system called Magellan, which acts like a tireless, experimental robot team. This team has two main workers:

  • The Architect (AlphaEvolve): An AI that writes and rewrites the rules for how to arrange the books. It tries new ideas, like "What if we split Book A into three parts and put the middle part next to Book B?"
  • The Tuner (Vizier): A tool that fine-tunes the specific numbers in those rules (like "how far apart can books be?").

3. The Secret Sauce: Real-World Testing (No Guessing)

This is the most important part. Instead of the AI guessing if a new arrangement is good, the system actually builds the library and tests it.

  • The AI creates a new arrangement of the code.
  • It compiles the program into a real, working binary (like building a new version of the software).
  • It runs this new version on real computer hardware.
  • It measures exactly how fast it runs using real performance counters (like a stopwatch and a fuel gauge).

This gives the AI a "reward signal." If the new arrangement is faster, the AI gets a gold star and learns to do more of that. If it's slower, it learns to avoid that mistake. Because they tested this on real hardware in a controlled environment, the results are incredibly precise, not just theoretical.

4. The Results: Tiny Gains, Huge Impact

The paper tested this on massive, real-world software, including the LLVM Clang compiler (a tool used to build other software) and a giant Google Search service.

  • The Clang Compiler: The new system made it 1.6% faster.
  • The Google Search Service: It made the search service 0.23% faster.

You might think, "0.23% is nothing!" But in the world of massive data centers, this is like finding a hidden gold mine. If you save 0.23% of time on billions of searches every day, you save millions of dollars in electricity and server costs. It's the difference between a runner finishing a race in 9.58 seconds vs. 9.56 seconds—a tiny fraction that separates a world record from second place.

5. How It Actually Works (The "Splitting" Trick)

The paper highlights a specific trick the AI discovered.

  • Old Way: If a function (a piece of code) has a "hot" (frequently used) part and a "cold" (rarely used) part, the old system would split the function in two: Hot on one shelf, Cold on another.
  • AI-PROPELLER Way: The AI realized that sometimes, a function needs to be split into three or more pieces. It found that a specific "hot" chunk of Function A should be placed right next to a "hot" chunk of Function B, even though they are in different files. It essentially cuts the code into tiny, precise puzzle pieces and reassembles them so the most-used pieces are always touching, regardless of which "book" they originally came from.

Summary

AI-PROPELLER is the first system to successfully use AI to rearrange the internal code of massive, industrial-scale software across function boundaries. It doesn't just guess; it builds, tests, and learns from real hardware. By doing this, it squeezes out extra performance (0.23% to 1.6%) from software that was already considered "perfectly optimized," proving that even in mature systems, there is still hidden speed waiting to be found if you look at the whole picture rather than just one piece at a time.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →