TraceView: Interactive Visualization of Agentic Program Repair Trajectories
This paper introduces TraceView, an interactive visualization tool designed to help developers diagnose and understand the reasoning, actions, and feedback loops within LLM-based automated program repair trajectories by organizing them into labeled graph views with filtering and evidence capabilities.
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 very smart, but sometimes confused, robot assistant. You ask it to fix a broken piece of software (a "bug"). The robot tries to fix it, but sometimes it succeeds, and sometimes it fails.
In the past, if the robot failed, you only saw the final result: "Fix Failed." You had no idea why it failed. Did it get confused? Did it repeat the same mistake over and over? Did it ignore the clues it found? It was like watching a movie where the screen suddenly cuts to black at the end, and you have no idea what happened in the middle.
TraceView is a new tool created by researchers to solve this problem. Here is how it works, explained simply:
1. The "Black Box" Problem
Usually, when these AI agents try to fix code, they go through a long process of thinking, acting, and checking results. This is called a "trajectory."
- The Old Way: You only see the final patch (the fix). If it works, great. If it doesn't, you're left guessing what went wrong.
- The Problem: The robot might have spent 20 steps going in circles, or it might have ignored a warning sign. Without seeing the steps, you can't teach the robot to do better next time.
2. What TraceView Does: The "Flight Recorder"
Think of TraceView as a flight recorder (black box) for the robot's brain. Instead of just showing you the crash, it shows you the entire flight path.
It breaks the robot's work down into three simple parts for every step it takes:
- Thought: What the robot was thinking or planning.
- Action: What the robot actually did (like searching a file or running a test).
- Result: What happened after the action (like a test passing or failing).
3. The Interactive Map
TraceView turns this long list of steps into a visual map (a graph).
- The Overview: Imagine looking at a subway map. You see the main stops (steps) and the lines connecting them. This helps you see the big picture: "Oh, the robot kept going in a loop here!" or "It got distracted and went off track there."
- The Details: If you click on a specific stop, the map zooms in. You can read the exact thoughts and actions the robot had at that moment.
4. Labeling the Journey
The researchers use TraceView to "tag" the robot's journey, kind of like a teacher grading a student's homework. They can label connections between steps with words like:
- "Good Follow-up": The robot used a clue correctly.
- "Repetition": The robot did the same thing twice for no reason.
- "Divergence": The robot got confused and started talking about something unrelated.
- "Misinterpretation": The robot saw a clue but understood it wrong.
By coloring these connections differently, the tool highlights where the robot was productive and where it got stuck.
5. What the Researchers Found
The team tested this tool with five researchers. They found that:
- It's easier to scan: Looking at the map was much faster than reading long text logs.
- It helps understanding: The "zoom out, then zoom in" approach helped them understand why the robot made certain mistakes.
- Room for improvement: Some users said the map could be even clearer if the nodes (the dots on the map) had short summaries instead of just codes like "T1" or "A2."
In a Nutshell
TraceView is a tool that turns a confusing, long list of AI robot actions into a clear, interactive map. It helps humans see exactly where the robot got lost, repeated itself, or ignored clues, making it much easier to fix the robot's behavior so it can do a better job next time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.