SafeMCP:基于环境接地前瞻推理的LLM智能体防御主动功率调节
SafeMCP: Proactive Power Regulation for LLM Agent Defense via Environment-Grounded Look-Ahead Reasoning
AI总结:
针对LLM智能体因动作空间扩大而面临功率寻求风险,提出SafeMCP服务器端防御插件,通过内部世界模型进行前瞻推理,实现主动工具过滤和即时干预两级防御,在保持智能体效用的同时有效降低风险。
摘要:
随着大语言模型(LLM)智能体越来越多地利用模型上下文协议(MCP)在复杂环境中运行,其动作空间的扩展赋予了智能体不安全的能力,并凸显了功率寻求的风险。虽然广阔的动作空间和更大的环境影响对于任务完成至关重要,但它们也创造了一个脆弱的风险表面,其中微小的错误或幻觉会被放大为灾难性故障。为此,我们提出了SafeMCP,一种{服务器端}防御插件,通过关于未来安全风险的预测推理来约束工具获取。SafeMCP利用内部世界模型进行前瞻推理,实现两级防御:主动工具过滤以限制危险功率扩展,以及即时干预作为故障安全机制。为了训练SafeMCP,我们引入了一个三阶段流程,包括环境动态接地、安全策略初始化和具有双重可验证奖励的强化学习(RL)。在PowerSeeking Bench、ToolEmu和AgentHarm上的实验表明,SafeMCP实现了安全平衡,在有效缓解风险的同时保持了智能体的效用。
英文摘要:
As Large Language Model (LLM) agents increasingly leverage the Model Context Protocol (MCP) to operate in complex environments, the expansion of their action spaces offers agents unsafe capabilities and underscores the risk of power-seeking. While broad action space and greater environment influence are essential for task fulfillment, they create a fragile risk surface where minor errors or hallucinations are magnified into catastrophic failures. In response, we propose SafeMCP, a {server-side} defense plugin that constrains tool acquisition via predictive reasoning regarding future safety risks. SafeMCP utilizes an internal world model for look-ahead reasoning to implement a two-tier defense: proactive tool filtering to constrain hazardous power expansion and immediate intervention as a fail-safe. To train SafeMCP, we introduce a three-stage pipeline comprising environmental dynamic grounding, safe policy initialization, and reinforcement learning (RL) with dual verifiable rewards. Experiments on PowerSeeking Bench, ToolEmu, and AgentHarm show that SafeMCP achieves a safe equilibrium, effectively mitigating risks while preserving agent utility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。