← Latest papers
💬 NLP

Evaluating LLMs on Real-World Software Performance Optimization

This paper introduces SWE-Pro, a rigorous repository-level benchmark derived from 102 expert optimizations that reveals current Large Language Models significantly fail to match human-level performance in real-world software optimization, achieving negligible gains compared to the substantial speedups and memory reductions delivered by expert engineers.

Original authors: Ezgi Sarıkayak, Wenchao Gu, Hesham Ghonim, Chunyang Chen

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

Original authors: Ezgi Sarıkayak, Wenchao Gu, Hesham Ghonim, Chunyang Chen

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

The Big Picture: The "Speedy Chef" vs. The "Master Chef"

Imagine you have a massive, busy restaurant kitchen (a real-world software codebase). You hire a team of AI Chefs (Large Language Models or LLMs) to help the Master Chefs (human experts) cook faster and use less energy.

The Master Chefs know exactly how to chop vegetables efficiently, organize the pantry to save steps, and adjust the stove temperature to save fuel. They have years of experience.

The AI Chefs are incredibly smart. They can read the recipe, understand the ingredients, and even write new recipes that look perfect on paper. But the big question this paper asks is: Can these AI Chefs actually make the kitchen run faster and use less energy in the real world, or do they just make things look good without actually improving the speed?

The Problem: The Old Tests Were Too Simple

Previously, researchers tested AI Chefs by giving them a single, tiny task: "Chop this one carrot."

  • The Flaw: In the real kitchen, you don't just chop one carrot. You chop 10, 1,000, or 100,000. Sometimes the carrots are wet; sometimes they are frozen.
  • The Result: The old tests were like judging a chef on how well they chop a single carrot in a quiet room. They didn't test if the chef could handle a rush hour with 1,000 orders, or if the chef accidentally used too much water (memory) while trying to be fast.

The paper argues that these old tests were too easy and didn't catch the "noise" (random fluctuations) that happens in real computers.

The Solution: SWE-Pro (The "Real Kitchen" Simulator)

The authors built a new, much harder test called SWE-Pro. Think of it as a high-tech simulation of a chaotic, real-world kitchen.

  1. Real Recipes: They didn't make up fake tasks. They looked at 102 real examples where human experts had successfully optimized code in famous open-source projects (like pandas, scikit-learn, and xarray). These are the "Gold Standard" recipes.
  2. The Stress Test: Instead of testing the AI on one input, SWE-Pro tests them on many different scenarios.
    • Analogy: It's not just "chop 10 carrots." It's "chop 10 carrots," then "chop 100," then "chop 10,000," and do it with wet carrots, frozen carrots, and carrots of different sizes.
  3. The Noise Filter: Computers are messy. Sometimes a program runs slow just because the computer was thinking about something else (like a waiter dropping a tray). SWE-Pro runs the tests over and over again, using a special statistical "noise filter" to make sure that if the AI says "I'm faster," it's actually true and not just a lucky fluke.
  4. Two Metrics: They measure two things:
    • Speed: How fast the food is served (Runtime).
    • Memory: How much counter space and storage the chef uses (Peak Memory and Time-Weighted Memory Usage).

The Results: The AI Chefs Struggle

When they put the top AI models (like GPT-5.2, Claude Sonnet 4.6, etc.) through this rigorous "Real Kitchen" test, the results were surprising and disappointing.

  • The Human Experts (Gold Standard): When humans optimized the code, they achieved massive improvements.
    • Analogy: The Master Chef cut the cooking time by 15 times and reduced the counter space needed by 171 times. They found clever ways to rearrange the kitchen that saved huge amounts of resources.
  • The AI Chefs:
    • Speed: The AI models barely made any difference. In most cases, their "improvements" were so small they couldn't be distinguished from random noise.
    • Memory: The AI models almost never managed to save memory. They were nearly non-existent in this area.
    • The "No Signal" Problem: Even when the AI wrote code that passed the basic tests (the food tasted right), it rarely produced a measurable speedup. It was like a chef who chopped the carrots neatly but took the exact same amount of time as before.
    • The Regression: Sometimes, the AI actually made things slower. One model (GPT-5.2) actually made the code 30% slower on average!

The Key Takeaway

The paper concludes that while AI is great at writing code that looks correct and follows the rules, it is currently very bad at the deep, complex engineering required to make software run significantly faster or use less memory in real-world scenarios.

  • The Gap: There is a huge gap between what AI can do today and what expert human engineers can do.
  • The Bottleneck: The problem isn't that the AI can't make a big improvement if it gets lucky (it can, in rare cases). The problem is that the AI cannot reliably find the opportunities to make those improvements in the first place.

In short: If you ask an AI to "make this software faster," it might write a nice-looking patch, but don't expect it to actually speed up your computer or save your memory. For now, that job still belongs to the human experts.

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 →