Manuscript Offprint

arXiv:2610.19679

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. As users increasingly focus on agents' final reports rather than inspecting complete execution trajectories, completion unfaithfulness poses significant reliability risks. Detecting and mitigating agent completion unfaithfulness is therefore 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 across multiple models demonstrate that MCAIR improves over the strongest LLM-as-a-judge baseline by 0.059 F1 and 0.086 AUC on average, generalizes across diverse prompts and held-out task types, and reduces completion unfaithfulness by 40.6% on average through runtime correction.

Introduction

Large Language Models (LLMs) have achieved remarkable progress in language understanding, reasoning (Jaech et al. 2024; Guo et al. 2025b), and generation, enabling their widespread adoption across diverse applications (Bommasani et al. 2021; Naveed et al. 2025). As model capabilities advance, LLMs are increasingly employed as autonomous agents equipped with memory, planning, and tool interaction capabilities to execute multi-step tasks (Wang et al. 2024a; Luo et al. 2025). With the rapid advancement of agent capabilities, humans are increasingly delegating greater permissions and broader operational autonomy to agents for solving complex tasks. Given users' increasing reliance on agents' final reports rather than execution processes, inconsistencies between reports and actual trajectories may introduce significant reliability risks (Liu et al. 2022), especially in high-stakes scenarios.

Guo et al. (2025a) identify a phenomenon termed agentic upward deception, where agents facing environmental constraints may conceal failures and present final reports that falsely indicate successful task completion despite deviations in their actual execution trajectories. We reinterpret this phenomenon from the perspective of consistency between final reports and actual execution processes. We refer to such misalignment as Agent Completion Unfaithfulness. This calls for reliable mechanisms to detect and mitigate such unfaithful behaviors in LLM agents.

For complex agent behaviors that are difficult to evaluate with predefined metrics, recent studies have adopted LLM-based judges as scalable evaluators (Zheng et al. 2023; Liu et al. 2023). However, such approaches are inherently post-hoc and cannot provide runtime detection or intervention. Inspired by prior studies on representation-based hallucination detection methods for LLMs (Azaria and Mitchell 2023; Chen et al. 2024), we hypothesize that internal representations of LLM agents may also encode signals associated with Agent Completion Unfaithfulness.

Based on this insight, we propose MCAIR (Monitoring and Correcting Agent Unfaithfulness via Internal Representations), a runtime monitoring and correction framework that leverages internal representations of LLM agents to detect and mitigate Agent Completion Unfaithfulness. Different from conventional probing methods that analyze isolated model outputs or single-step representations, MCAIR considers the evolving execution process of agents by leveraging step-level internal representations throughout the execution trajectory. These step-level representations are aggregated into trajectory-aware representations, which are then used to train a lightweight linear probe for estimating the risk of Agent Completion Unfaithfulness during inference. Furthermore, MCAIR leverages the estimated risk signals to per-

∗^{*}Corresponding author.

form runtime correction. When the predicted risk exceeds a predefined threshold during execution, MCAIR activates a risk-guided correction loop, in which the agent is informed of the detected misalignment risk and prompted to review its previous execution history. By reviewing intermediate evidence, the agent adjusts subsequent behavior and generates reports better aligned with execution trajectories. Unlike approaches that require model retraining or parameter updates, MCAIR provides a lightweight intervention mechanism that improves agent faithfulness through runtime feedback.

Existing agent safety benchmarks evaluate various safety risks and failure modes (Zhang et al. 2024; Andriushchenko et al. 2025; Debenedetti et al. 2024). However, only a limited number of existing benchmarks provide detailed agent trajectories (Li et al. 2026), and these benchmarks are not designed to evaluate misalignment between agents' execution trajectories and final reports. Moreover, they generally do not provide the step-level internal representations required for training probes to detect such misalignment. To comprehensively evaluate MCAIR, we construct ACUD (Agent Completion Unfaithfulness Detection), a step-level agent trajectory dataset that provides execution traces, execution-report consistency annotations, and corresponding internal representations for each execution step. Our main contributions are:

• We propose MCAIR, a runtime monitoring and correction framework for Agent Completion Unfaithfulness. By leveraging step-level internal representations throughout agent execution, MCAIR trains a lightweight risk-aware probe to detect potential unfaithful behaviors online and triggers a risk-guided correction loop to improve the alignment between execution trajectories and final reports.

• We construct ACUD, a step-level agent trajectory dataset containing execution traces, execution-report consistency annotations, and corresponding internal representations for each execution step.

• We conduct extensive experiments across multiple LLM agents and diverse task settings. The results demonstrate that MCAIR achieves effective and robust detection of Agent Completion Unfaithfulness, reveals early warning signals during agent execution, and reduces unfaithful behaviors through runtime correction.

References (45)