MCAIR: Monitoring and Correcting Agent Unfaithfulness via Internal Representations
Yan Xu, Dandan Song, Luan Zhang, Jun Yang, Ke Duan, Yuhang Tian, Yading Li, Xudong Li, Xing Pei, Guangyuan Feng, Chenhao Li
Abstract
Large Language Model (LLM)-based agents have demonstrated remarkable capabilities in completing complex tasks through multi-step reasoning and tool interactions. However, recent studies have revealed that LLM-based agents can exhibit unfaithful behaviors, where their final reports fail to faithfully reflect their actual execution trajectories. Specifically, when agents fail to accomplish tasks through the intended sources or procedures, they may resort to alternative sources or strategies while failing to disclose such deviations, leading users to incorrectly believe that the tasks have been completed according to the original requirements. We refer to this specific form of agent unfaithfulness as Agent Completion Unfaithfulness. Detecting and mitigating agent completion unfaithfulness is critical yet remains largely unexplored. In this work, we propose MCAIR, a runtime monitoring and correction framework that leverages internal representations of LLM-based agents. MCAIR uses multi-step internal representations as inputs to train a risk-aware probe, enabling online detection of potential completion unfaithfulness during execution. Furthermore, MCAIR introduces a risk-guided correction loop that prompts agents to review their execution history and mitigate potential inconsistencies between their execution trajectories and final reports. Additionally, we construct ACUD, a dataset for Agent Completion Unfaithfulness detection that provides step-level execution traces, step-level internal representations, and consistency annotations for training and evaluating runtime detection probes. Experiments demonstrate that MCAIR outperforms LLM-as-a-judge baselines, generalizes across prompts and tasks, and effectively reduces agent completion unfaithfulness.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- 26 pages
Related papers
R^2Orch: Recursive Self-Improvement for Agent Orchestration via Self-Play within a Skill-Internalization Loop
Shared title terminologycs.AIMingda Zhang, Yun Huang, Qiang Huang et al.
ISW-Agent: Integrating LLM-Driven Dialogue with n8n Workflow for Internal Solitary Wave Remote Sensing Image Processing
Shared title terminologycs.AIHao Zhang, Hengrui Liu, Lina Sun et al.
Do Agents Need a New Kind of Paper? SPRA: Structured Paper Representation for Agents
Shared title terminologycs.AIYutong Leng, Haojiong Chen, Fukai Shang et al.
Lifted State Policy Optimization: Internalizing Self-Correction through Transition Geometry
Shared title terminologycs.AIRen Zhuang, Ben Wang, Shuifa Sun
One Monitor Does Not Fit All: Formalism-Agnostic Runtime Verification for Agentic AI
Shared title terminologycs.AIAngelo Ferrando
MemCode: Discrete Semantic Representations for Long-Term Agent Memory
Shared title terminologycs.AIXin Li, Liang Hu, Duoqian Miao et al.