LLM 智能体中错位动作的预防性检测与纠正
Preemptive Detection and Correction of Misaligned Actions in LLM Agents
AI总结:
针对 LLM 智能体可能误执行违背用户意图的关键动作,本文提出 InferAct,利用基于心理理论的信念推理在执行前检测并提醒纠正,实验显示其 Marco-F1 最高提升 20%。
摘要:
在现实应用中部署基于 LLM 的智能体,往往面临一个关键挑战:智能体行为与用户意图之间的错位。这种错位可能导致智能体无意中执行带有负面后果的关键动作(例如在网页购物中意外触发“立即购买”),从而造成不良甚至不可逆的后果。尽管解决这些问题至关重要,但对错位动作的预防性检测与纠正仍相对缺乏研究。为填补这一空白,我们提出了 InferAct,这是一种新颖方法,利用 LLM 基于心理理论的信念推理能力,在动作执行前检测错位动作。一旦检测到错位,InferAct 会提醒用户及时纠正,从而防止不利后果,并提升 LLM 智能体决策过程的可靠性。在三个广泛使用的任务上进行的实验表明,在错位动作检测方面,InferAct 相比基线方法在 Marco-F1 上实现了最高 20% 的提升。对错位纠正的深入评估进一步凸显了 InferAct 在改善智能体对齐方面的有效性。
英文摘要:
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 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 before execution. 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 that 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。