FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Search
The paper proposes FALAT, a diagnostic framework that improves failure attribution in LLM agent trajectories by framing the problem as a dependency-guided search to distinguish error-introducing steps from those merely propagating prior mistakes, thereby outperforming existing baselines in identifying responsible agents and decisive failure steps.
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 have a team of highly intelligent robots working together to solve a complex puzzle, like writing a piece of software or planning a trip. They talk to each other, use tools, and make decisions in a long chain of events. We call this chain a "trajectory."
Sometimes, the team fails. The final result is wrong. But because the chain is so long and the robots are so chatty, it's incredibly hard to figure out who made the mistake and when it happened.
Here is the problem: If Robot A makes a tiny mistake early on, Robot B might do something that looks perfectly logical based on that mistake. Then Robot C does something else that also looks logical, but is actually wrong because it's built on Robot B's error. By the time you get to the end, the whole thing is broken, but every single step seemed reasonable at the time. It's like a game of "telephone" where the message gets garbled, but everyone is convinced they heard it correctly.
The Solution: FALAT (The Detective Framework)
The authors created a tool called FALAT to act as a detective for these robot teams. Instead of just looking at the final mess and guessing, FALAT uses a clever four-step process to find the root cause.
Here is how FALAT works, using simple analogies:
1. The "Ideal Script" (Constructing the Search Space)
Before looking at the messy reality, FALAT writes down an "Ideal Script" of how the task should have gone. It knows the goal, the rules, and what a good robot should do.
- Analogy: Imagine a film director who knows exactly how the movie scene should play out. When the actors mess up, the director doesn't just watch the chaos; they compare the actual filming to the script to spot where the actors went off-track.
- Why it matters: If you only look at the robots' own reasoning, you might get fooled because they are all rationalizing the same mistake. FALAT uses an outside perspective (the script) to stay objective.
2. The "Zoom Lens" (Hierarchical Representation)
The robot's history might be hundreds of steps long. Reading every single word is slow and confusing. FALAT zooms out first, then zooms in.
- Analogy: Think of looking at a forest. First, you look at the whole forest from a helicopter to see which area looks sick (High Level). Then you zoom in to see which group of trees is affected (Mid Level). Finally, you walk over to inspect the specific leaves on the ground (Low Level).
- Why it matters: This stops FALAT from getting lost in the details. It narrows down the search to the suspicious "neighborhoods" first.
3. The "Chain of Custody" (Typed Dependencies)
This is the most important part. FALAT doesn't just blame the last person who spoke. It traces the dependencies (who relied on whom).
- Analogy: Imagine a relay race where someone drops the baton.
- The Source: The runner who dropped it.
- The Propagator: The next runner who picked up the baton and kept running, even though it was broken.
- The Symptom: The runner at the finish line who crossed the line late.
- FALAT uses special labels (like "follow-up," "correction," or "dead-end") to distinguish between the person who dropped the baton and the people who just carried the broken baton. It ignores the people who were just repeating what was already said or who didn't actually affect the final result.
4. The "What-If" Test (Verification)
Once FALAT has a suspect, it doesn't just arrest them. It runs a simulation.
- Analogy: The detective asks, "If we went back in time and fixed only this one step, would the whole movie turn out right?"
- If fixing Step 3 makes the final result perfect, then Step 3 is the Decisive Step.
- If fixing Step 3 still leaves the movie broken, then Step 3 wasn't the real culprit; the error happened earlier.
Does it work?
The authors tested FALAT on a benchmark called "Who & When," which contains many examples of robot teams failing.
- The Result: FALAT was much better at finding the exact step where the error started compared to other methods.
- The Numbers: On tricky, hand-crafted failure stories, FALAT found the right step about 29% of the time, while the next best method only got about 17%. On simpler, computer-generated stories, it got 46% right.
- The Takeaway: Even though 29% sounds low, in this field of "finding a needle in a haystack," it's a huge improvement. It proves that you can't just ask a smart AI to "guess" who messed up; you need a structured way to trace the dependencies and test "what-if" scenarios.
Summary
FALAT is a diagnostic tool that stops blaming the last person in the chain. Instead, it:
- Knows how things should work.
- Zooms in on suspicious areas.
- Traces the flow of information to separate the original error from the consequences.
- Tests if fixing that one step would save the day.
It turns a messy, confusing failure into a logical investigation.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.