← Latest papers
🤖 machine learning

Insights Generator: Systematic Corpus-Level Trace Diagnostics for LLM Agents

This paper introduces the Insights Generator (IG), a multi-agent system that automates the diagnosis of LLM agent failures by systematically analyzing large-scale execution trace corpora to produce evidence-backed natural language insights, which have been shown to significantly improve agent performance and outperform manual diagnostic methods in depth and coverage.

Original authors: Akshay Manglik (Emily), Apaar Shanker (Emily), Kaustubh Deshpande (Emily), Jason Qin (Emily), Yash Maurya (Emily), Veronica Chatrath (Emily), Vijay S. Kalmath (Emily), Levi Lentz (Emily), Yuan (Emily
Published 2026-05-21
📖 4 min read☕ Coffee break read

Original authors: Akshay Manglik (Emily), Apaar Shanker (Emily), Kaustubh Deshpande (Emily), Jason Qin (Emily), Yash Maurya (Emily), Veronica Chatrath (Emily), Vijay S. Kalmath (Emily), Levi Lentz (Emily), Yuan (Emily), Xue

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 the manager of a team of very smart, but sometimes confused, robot assistants. These robots are trying to solve complex puzzles, like organizing spreadsheets or answering difficult science questions. Sometimes, they get the answer right; other times, they fail.

The Problem: The "Needle in a Haystack" Debugging
Right now, when a robot fails, human managers try to figure out why by looking at a few specific examples of the robot's work. It's like trying to understand why a car engine is making a weird noise by listening to just one car drive by. You might hear a sputter, but you miss the pattern that all the cars sputter when they turn left on a rainy day.

Because the robots produce massive amounts of data (thousands of pages of "thoughts" and actions for every single task), humans can't read it all. They end up guessing based on a tiny sample. This means they miss the "silent failures"—mistakes where the robot finishes the task without crashing, but does it the wrong way.

The Solution: The "Insights Generator" (IG)
The authors built a new system called the Insights Generator (IG). Think of IG not as a single detective, but as a specialized detective agency with a specific workflow to solve the "needle in a haystack" problem.

Here is how the agency works, using a simple analogy:

  1. The Orchestrator (The Agency Manager): This is the boss. It doesn't do the digging itself. Instead, it looks at the big picture and decides what kind of investigation is needed.
  2. The Scouts (The Explorers): These agents are sent out to look at a small, random sample of the robot's work. Their job is to be broad and curious. They look for weird patterns and come up with theories.
    • Example Theory: "Hey, I noticed that 80% of the time the robot fails at math, it writes the formula wrong but doesn't crash. It's a 'silent failure'."
  3. The Investigators (The Forensic Auditors): Once a Scout has a theory, the Investigators take over. They don't just look at a few examples; they go through the entire massive database of robot work (the "corpus"). They use powerful tools to count, compare, and prove whether the theory is true for the whole group, not just the few they saw.
    • The Result: Instead of a guess, they produce a report saying: "We checked 1,000 failed attempts. 84% of them had this specific silent math error. Here are the exact pages where it happened."

Why is this different?
Most other systems try to fix one robot at a time or categorize errors into a pre-made list (like "Tool Error" or "Logic Error"). IG is different because it discovers new patterns that no one knew existed. It separates the "guessing" (Scouts) from the "proving" (Investigators) so it doesn't get overwhelmed by the sheer size of the data.

What Happened When They Tested It?
The researchers tested this system in two ways:

  1. The "Judge" Test: They had a super-smart AI judge compare reports made by IG against reports made by other systems. IG's reports were rated higher because they had better evidence and deeper explanations. It was like comparing a report that says "The car is broken" (other systems) vs. a report that says "The car breaks specifically when turning left in rain because of a loose wire, and here is the video proof" (IG).
  2. The "Human Fixer" Test: This was the most important part. They gave real human engineers (experts who build these robots) the reports from IG and from other systems. The engineers then tried to fix the robots.
    • The Result: Engineers who used the IG reports fixed the robots 30% better than engineers who used the next-best system. The IG reports gave them the exact "where" and "why" they needed to make the right changes, rather than just a vague hint.

The Bottom Line
The paper claims that by using this "Scout and Investigator" team approach, we can finally see the hidden patterns in how AI agents fail. This allows human experts to fix the underlying issues much more effectively, turning a chaotic pile of error logs into a clear, evidence-backed roadmap for improvement.

What the paper does not claim:

  • It does not say this system fixes the robots automatically without human help (though they tested an automated "patcher" loop, the main success was with human experts).
  • It does not claim this works for every type of AI problem in the world, only for analyzing the "traces" (logs) of AI agents.
  • It does not promise to eliminate all errors, but rather to make the process of finding and fixing them much more efficient and accurate.

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 →