Explaining AI Agents Through Execution Traces
Vittoria Vineis, Fabiano Veglianti, Lorenzo Antonelli, Claudia Di Carlo, Matteo Silvestri, Gabriele Tolomei
Abstract
AI Agents are increasingly deployed in real-world settings, where they interact with external tools and make sequential decisions with limited human oversight. This creates a pressing need for reliable and auditable explanations of what an agent did and why. However, traditional Explainable AI (XAI) methods fall short of providing the process-level transparency required for such interactive, multi-step systems, motivating a paradigm shift toward approaches specifically designed for AI Agents. To address this gap, we present a post-hoc XAI framework that transforms a lengthy agent's execution trace into a structured report and a faithful natural-language explanation explicitly grounded in its observable behavior. Because it relies solely on execution traces, the framework applies across different agent architectures, environments, and tasks. Human and automated evaluations across multiple benchmarks and architectures show that our framework produces high-quality, trace-faithful explanations while reliably identifying unsupported claims, unjustified actions, and evidence gaps, outperforming naive LLM-generated explanations.
Create a lesson
Related papers
Same Executions, Different Gaps: Judgment Rules in Web-Agent Evaluation
Shared title terminologycs.AIZelong Wang, Weiyue Li, Fei Xue et al.
Subagents vs Agent Skills: Executing Reusable Knowledge for Long-Horizon Agentic Tasks
Shared title terminologycs.AIWasu Top Piriyakulkij, Rachel Lawrence, Alicia Curth et al.
EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent
Shared title terminologycs.AIYirong Zeng, Shen You, Jinhang Feng et al.
Substrate-Aware AI Agents: Execution Context as a First-Class Input
Shared title terminologycs.AIManu Agrawal
CABAL: Multi-Agent Simulacra for Tracing the Effects of Collusive Bidding in Peer Review
Shared title terminologycs.AIJicheng Zhou, Kemou Li, Kahim Wong et al.
TROVE: Adaptive Agent Skill Orchestration via Trace-Grounded Route Validation and Editing
Shared title terminologycs.AITianxing Wang, Mingming Zhao, Shuai Huang et al.