← Latest papers
💻 computer science

Execution Grounded Multiagent Systems for Reliable Backend Code Generation with Large Language Models'

This paper introduces ExecuGraph, a configurable framework demonstrating that execution feedback is the primary driver of improved code generation accuracy in large language models, while showing that adding multi-agent role decomposition provides no measurable benefit over single-agent retry loops despite significantly higher computational costs.

Original authors: Sai Deekshith Lekkala, Jothi Prabha Appadurai, Rohith Reddy Bellibatlu, Manpreet Singh, Rahul Joshi

Published 2026-08-14
📖 4 min read☕ Coffee break read

Original authors: Sai Deekshith Lekkala, Jothi Prabha Appadurai, Rohith Reddy Bellibatlu, Manpreet Singh, Rahul Joshi

Original paper licensed under CC BY 4.0 (https://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 are trying to teach a very talented, but slightly dreamy, robot to write computer code. This robot is a "Large Language Model" (LLM), which is like a super-smart student who has read almost every book and code snippet in the library. It can write code that looks perfect on paper, but sometimes it makes subtle mistakes that only show up when you actually try to run the program. In the world of software, this is a big deal because a tiny error can crash a whole website or lose data.

For a while, people thought the best way to fix this was to hire a whole team of robot specialists—a "Multi-Agent System." Imagine a project manager, a strict editor, a logic checker, and a code writer all working together. The idea was that if you break the work down and have different robots check each other's work, the final code would be flawless. But there was a nagging question: Was the improvement coming from having a team, or was it just because the robots were allowed to try again after seeing their mistakes? It's like asking if a student gets better grades because they have a study group, or simply because they were allowed to take a second test after seeing their first one. This paper sets out to solve that mystery by building a special testing machine that can isolate these two factors.

The researchers built a clever framework called ExecuGraph, which acts like a Swiss Army knife for testing code-writing robots. They designed it so they could instantly switch between three modes: a "lone wolf" robot that writes code once and stops; a "lone wolf" that gets to try again if it fails; and the full "dream team" of five different robot agents working together. By running the same 164 difficult coding puzzles through these different modes, they discovered something surprising.

The main finding is that letting the robot try again after seeing its errors is the real magic trick, not having a team of specialists. When they gave a single robot the chance to see its mistakes and retry (a process called "execution feedback"), its success rate jumped by a massive 25.6 percentage points. It went from getting about 56% of the problems right to getting over 81% right. That is a huge win!

However, when they added the full team of five extra agents (a planner, a reviewer, an optimizer, etc.) on top of that retry system, the results didn't get any better. In fact, the team version was statistically indistinguishable from the single robot that just got to retry. The "team" version cost about 3.6 times more in computer power and time but didn't produce a single extra correct answer. The researchers also ruled out the idea that the team was just winning because they got to "roll the dice" more times; they proved that simply generating five random guesses without any feedback didn't help much at all.

There was a twist in the story, though. The researchers found a bug in their own testing machine (a "sandbox" that runs the code) that was accidentally rejecting correct code. Once they fixed this bug, the numbers changed, but the main conclusion stayed the same: the retry loop is the hero, and the extra agents are mostly just expensive decoration.

The paper also looked at how this works with different types of robots. On one specific type of robot (a 16-billion-parameter model), the team approach did help with a specific kind of puzzle called "graph problems," boosting success from 70% to 90%. But on other types of puzzles, the team actually did worse, and the overall score stayed the same. This suggests that adding more agents doesn't automatically make a robot smarter; it just changes which problems it can solve.

In the end, the paper suggests that if you want a reliable code-writing robot, you don't need to build a complex organization of five different agents. You just need to give your robot a single, smart loop: write the code, run it, see what broke, and try to fix it. It's a lot cheaper, faster, and just as effective as hiring a whole committee. The "team" approach might still be useful for generating extra reports or explanations, but for the actual job of writing correct code, the simple "try, fail, retry" strategy is the clear winner.

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 →