Llm agent errors traced to root causes using static user feedback
SIRCA: Root Cause Attribution in LLM Agent Trajectories via Static Interventions
Artificial Intelligence
Summary
When large language model agents make mistakes, it can be hard to find out where the errors started because problems spread through many steps. The authors created a method called SIRCA that uses negative user feedback—like complaints about what went wrong—to pinpoint the original cause of errors without having to re-run the entire process. If there is no user feedback, the method uses information about task failure instead. Tests show SIRCA is better at identifying the root causes of mistakes than existing methods. They also shared a new dataset and the code to help others build on their work.
What this means in practice
- •For llm developers: Identify original errors in multi-step language model agent tasks to improve debugging and reliability without replaying executions.
- •For autonomous system engineers: Pinpoint causes of failures in complex task sequences using user feedback, enabling faster system corrections and refinements.
Authors
Kun Jiang, Han Lin, Xingyu Liao, Guang Yang, Mengjie Zhang, Sijie Wu, Kai Zhang, Xingyu Yan, Bowen Liu, Jiantao Ye, Qitao Song, Xubin Li, Xin Chen
Abstract
Identifying the root causes of failures in large language model (LLM) agents is difficult because errors may propagate across multiple trajectory steps, thereby obscuring their true origins. User feedback can often point to specific problems in agent behavior, providing direct evidence for tracing error origins. To this end, we propose Static Intervention for Root Cause Attribution (SIRCA), a method that leverages user feedback to localize root causes in agent trajectories without replaying agent execution. SIRCA uses negative user feedback as an attribution anchor, constructing an attribution graph to model error origins and their propagation processes. For trajectories without negative user feedback, it instead constructs alternative anchors from task failure information. SIRCA then determines the final root causes through LLM-based evaluation of static intervention repair proposals. On the Algorithm Generated (AG) and Hand Crafted (HC) datasets of Who&When, SIRCA achieves relative improvements of 36.59% and 13.51%, respectively, in root cause localization accuracy over the strongest baseline on each dataset. On the multi root cause wireless agent dataset with user feedback, SIRCA improves trajectory averaged F1 and recall by 9.58% and 32.52%, respectively, relative to the strongest baseline. In addition, we release the wireless agent dataset and the SIRCA source code to support future research.