TL;DR
Instead of trying to build a single "perfect" AI software engineer, the DEI (Diversity Empowered Intelligence) framework uses a committee of diverse LLM agents to solve complex GitHub issues. By using a meta-model to review and rank candidate patches from different agents, DEI achieved a record-breaking 55% resolve rate on SWE-Bench Lite, proving that an ensemble of specialized experts far outperforms any individual model.
What Problem Does This Paper Address?
Large Language Model (LLM) agents like Aider, OpenDevin, and Agentless have become surprisingly good at fixing real-world software bugs. However, they’ve hit a bit of a plateau. Even the best open-source agents typically resolve only about 27% of issues on the SWE-Bench Lite benchmark.
The authors observed a fascinating phenomenon: different agents have different "personalities" and strengths. One might be great at navigating a massive codebase, while another excels at writing the actual fix. Crucially, they often succeed and fail on entirely different sets of problems.
The challenge is that we don't know in advance which agent is best for a specific bug. The authors set out to harness this diversity—both between different agent frameworks (inter-agent) and between different runs of the same agent (intra-agent).
Methods
The researchers propose DEI, a meta-policy framework that acts as a "manager" for a collective of SWE agents. To make this practical, they implemented DEIBASE, a specific pipeline that uses an LLM (like GPT-4o) as a code review committee.
The process works in three main steps:
- Input Construction: For every candidate patch generated by the sub-agents, DEIBASE gathers the issue description, the relevant code context, and the "before" and "after" versions of the code.
- Explanation Generation: Before scoring, the model is forced to "think" by generating five specific explanations:
- What is the issue?
- Why is this code context relevant?
- Is the patch modifying the right location?
- How exactly does the patch fix the bug?
- Does this patch conflict with other parts of the code?
- Patch Scoring: Based on its own explanations, the model assigns a score from 1 to 10. The highest-scoring patch is selected as the final solution.
Datasets
The primary benchmark used is SWE-Bench Lite, a subset of 300 real-world GitHub issues from popular Python repositories (like django, scikit-learn, and matplotlib). This benchmark is widely considered the gold standard for evaluating how well AI can handle "software engineering in the wild."
Key Insights and Ideas
- The "Oracle" Gap: The authors found that while a group of agents might have an average resolve rate of 26.6%, they collectively solved 54.3% of the issues. This means the solutions were often "in the room," but we just didn't have a way to pick the right one.
- Reviewing is Easier than Generating: DEIBASE relies on the principle that LLMs are often better at evaluating a solution than creating one from scratch. By acting as a "judge," the model can spot subtle logic errors that the "author" model missed.
- Diversity is the Secret Sauce: The performance boost is much higher when you combine different agent frameworks (e.g., combining Agentless with Moatless) than when you just run the same agent multiple times. Different architectures provide more diverse "perspectives" on a bug.
- Explanations Matter: The "Chain-of-Thought" style explanations (Step 2 of the method) are critical. Ablation studies showed that the resolve rate drops significantly if the model is asked to score patches without explaining its reasoning first.
Key Results
- Beating the Best: A group of open-source agents that individually maxed out at 27.3% resolve rate jumped to 34.3% when managed by DEI—a 25% relative improvement.
- State-of-the-Art: Their best-performing group (DEIBASE-1) achieved a 55% resolve rate, securing the top spot on the SWE-Bench Lite leaderboard at the time of submission and outperforming high-profile closed-source solutions.
- Consistency: DEI consistently outperformed "Average@k" (picking a random agent's solution) across all test scenarios, proving the re-ranking mechanism is effective.
Limitations and Future Work
- Computational Cost: Running a committee of agents is significantly more expensive and time-consuming than running a single agent. Future work is needed to optimize which agents are called for which tasks to save on "inference budget."
- The Plateau Effect: As the number of agents in the committee increases, the performance gains eventually start to diminish. The current DEIBASE implementation might struggle to manage very large groups (e.g., 20+ agents) effectively.
- Advance Selection: The authors tried to train a classifier to predict which agent would be best for a bug before running them, but it failed to outperform the random baseline. Determining the "best tool for the job" in advance remains an open research problem.
Summary updated