Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation
The paper introduces Agent-Diff, a novel benchmarking framework that evaluates agentic LLMs on real-world enterprise API tasks by combining containerized API sandboxes with a state-diff-based evaluation metric to assess task success through environmental state changes rather than trace matching.
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 are hiring a team of super-smart digital assistants (AI agents) to do your paperwork. You want to know: Can they actually get the job done without messing things up?
This paper, titled "Agent-Diff," introduces a new, super-strict testing ground to answer that question. Instead of just asking the AI "What would you do?", they make the AI actually do the work in a safe, simulated office.
Here is the breakdown of how they built this test and what they found, using simple analogies.
1. The Problem: The "Fake Office" vs. The "Real Mess"
Previously, testing AI agents was like a game of "Simon Says" in a fake room.
- The "Fake Room" (Sandbox): Researchers built a fake version of software (like Slack or Google Calendar). It was clean and predictable, but it didn't feel like the real world.
- The "Real Mess" (Live Services): Other tests let AI talk to real software. This was realistic, but if the AI made a mistake, it might accidentally delete a real file or send a real email to the wrong person. Plus, the real world changes too fast to test fairly.
The Agent-Diff Solution: They built a "Ghost Office."
Imagine a perfect, digital twin of a real office (Slack, Box, Google Calendar, etc.). It looks and acts exactly like the real thing, but it's isolated. If the AI deletes a file in this Ghost Office, no real person loses data. It's a safe playground that feels exactly like the real world.
2. The New Rulebook: "Did the Room Change?"
How do you grade an AI?
- Old Way (The Trace): You watch the AI's steps. "Did it click the right button? Did it say the right words?" This is like grading a student just on how they wrote an essay, not whether the essay actually answered the prompt.
- The Agent-Diff Way (State-Diff): They don't care how the AI did it. They only care about the result.
- The Analogy: Imagine you ask a robot to "Move the red chair to the kitchen."
- Old Way: You check if the robot picked up the chair correctly.
- Agent-Diff Way: You take a photo of the room before and after. You look at the difference (the "Diff"). Is the red chair in the kitchen? Yes? Pass. Did the robot accidentally knock over a vase while moving it? Fail.
This "State-Diff" method is like a security camera that only cares if the final state of the room matches your instructions, catching any accidental messes the AI made along the way.
3. The Test: 224 Real-World Missions
They gave 9 different AI models 224 different tasks, like:
- "Find all files about Argentina's economy, delete the wrong one, and tag the right one."
- "Create a new calendar event for a meteor shower, but make sure it doesn't clash with your friend's schedule."
- "Move a project issue to a new team and update the status."
Some tasks were easy (1 step), and some were hard (up to 24 steps). Some tasks gave the AI the exact ID numbers it needed; others forced the AI to go hunting for them.
4. The Results: Who Won?
They tested models like DeepSeek, Claude, Gemini, and others.
- The Winners: DeepSeek-v3.2 and Devstral-2512 were the top performers. They got about 88% of the tasks right. They were like the most reliable interns who actually read the manual.
- The Losers: Llama-4-Scout and Claude-Haiku struggled, scoring below 50%. They were like interns who kept forgetting what they were supposed to do.
- The Cost: The best model wasn't necessarily the most expensive. One model, Grok-4.1-Fast, was incredibly cheap and efficient, getting great results for pennies.
5. The "Cheat Sheet" Experiment (Documentation)
The researchers wanted to know: Does giving the AI the manual (API documentation) help?
- The Surprise: It helped a lot for simple tasks. If the AI didn't know how to use a specific button, the manual fixed it.
- The Catch: For complex tasks, the manual sometimes made things worse. It was like giving a chef a 50-page recipe book while they are trying to cook a 10-course meal; they got overwhelmed and forgot the main dish.
- The "New Feature" Test: They included a brand-new feature in Box (called "Hubs") that the AI models had never seen before because it was released after they were trained.
- Result: Without the manual, the AI failed completely. With the manual, they solved it perfectly. This proves that AI can learn new tools on the fly if you give them the instructions.
6. How the Winners Succeeded
The paper analyzed why the top models won. It wasn't just about knowing facts; it was about strategy.
- The Losers' Strategy: "I tried this, it failed. I'll try the exact same thing again." (Like banging your head against a wall).
- The Winners' Strategy: "I tried this, it failed. Let me break this big problem into smaller steps," or "Let me look up the correct ID number first."
- The Lesson: The best agents are the ones that adapt when they hit a wall, rather than just repeating their mistakes.
Summary
Agent-Diff is a new, fair, and safe way to test if AI agents can actually do real work. It proved that:
- Results matter more than process: Did the job get done without breaking anything?
- Some AIs are much better than others: There is a huge gap between the top and bottom performers.
- Instructions help, but too much info confuses: Giving AI a manual helps with new tools, but too much text can distract them.
- Adaptability is key: The best agents know how to fix their own mistakes.
This framework is now open for everyone to use, so developers can build better, more reliable AI assistants for the real world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.