Preemptive Detection and Correction of Misaligned Actions in LLM Agents

Haishuo Fang, Xiaodan Zhu, Iryna Gurevych


Abstract
Deploying LLM-based agents in real-life applications often faces a critical challenge: the misalignment between agents’ behavior and user intent. Such misalignment may lead agents to unintentionally execute some critical actions that carry negative outcomes (e.g., accidentally triggering a buy-now in web shopping), resulting in undesirable or even irreversible consequences. Although addressing these issues is crucial, the preemptive detection and correction of misaligned actions remains relatively underexplored. To fill this gap, we introduce InferAct, a novel approach that leverages the belief reasoning ability of LLMs, grounded in Theory-of-Mind, to detect misaligned actions. Once the misalignment is detected, InferAct alerts users for timely correction, preventing adverse outcomes and enhancing the reliability of LLM agents’ decision-making processes. Experiments on three widely used tasks demonstrate InferAct achieves up to 20% improvements on Marco-F1 against baselines in misaligned action detection. An in-depth evaluation of misalignment correction further highlights InferAct‘s effectiveness in improving agent alignment.
Anthology ID:
2025.emnlp-main.12
Volume:
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, Violet Peng
Venue:
EMNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
222–244
Language:
URL:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.12/
DOI:
Bibkey:
Cite (ACL):
Haishuo Fang, Xiaodan Zhu, and Iryna Gurevych. 2025. Preemptive Detection and Correction of Misaligned Actions in LLM Agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 222–244, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
Preemptive Detection and Correction of Misaligned Actions in LLM Agents (Fang et al., EMNLP 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.12.pdf
Checklist:
 2025.emnlp-main.12.checklist.pdf