智能体AI的认证执行框架:推理与动作之间安全且侵入性最小的Petri网监督控制
Certified Execution Harness for Agentic AI: Safe and Least-Intrusive Petri-Net Supervisory Control Between Reasoning and Action
AI总结:
本文针对提示注入下LLM智能体的安全工具执行问题,提出基于Petri网的最大允许且侵入性最小的监督控制方法,实现安全且低侵入的工具执行。
摘要:
本文研究提示注入场景下大语言模型(LLM)智能体的安全工具执行问题。我们使用Petri网将LLM与其工具之间的执行框架形式化为监督控制问题,其中标记代表能力、批准和预算。由于变迁仅在所需标记存在时才会触发,因此无论注入请求的措辞如何,只要其前提条件未满足或已被消耗,就会被拒绝。将工具结果视为不可控的,我们通过传统的最大允许监督器来强制执行安全性,且该安全性在四个假设下可传递到运行系统。此外,为捕捉被拒绝后可能再次提出请求的智能体,我们引入了重规划闭环的概念,其中每次重试会产生一次推理调用。我们表明,在该闭环中,传统监督器的侵入性可能远大于更严格的安全监督器。此外,对于给定的提议者模型,最大允许且侵入性最小的监督器被表征为传统监督器的价值阈值细化。在精确条件下,该细化最多通过一个监控位置对两个并发动作进行排序。在自主发布智能体上,我们通过综合发现,安全部署需要一个步骤,即监督器可在推出开始后拒绝该步骤。
英文摘要:
This paper studies the problem of safe tool execution for large language model (LLM) agents under prompt injection. Using Petri nets, we formalize the execution harness between the LLM and its tools as a supervisory control problem, in which marks represent capabilities, approvals and budgets. Since a transition fires only if the marks it needs are present, an injected request whose preconditions are unmet or already spent is refused regardless of its wording. Treating tool outcomes as uncontrollable, we enforce safety by the conventional maximally permissive supervisor, and this safety transfers to the running system under four assumptions. Moreover, to capture an agent that may propose again after a refusal, we introduce the notion of a replanning closed loop, in which each retry costs an inference call. We show that, in this loop, the conventional supervisor can be arbitrarily more intrusive than a stricter safe one. Furthermore, for a given proposer model, the maximally permissive least-intrusive supervisor is characterized as a value-threshold refinement of the conventional one. Under precise conditions, this refinement orders two concurrent actions by at most one monitor place. On an autonomous release agent, we find by synthesis that safe deployment requires a step that the supervisor can refuse after a rollout starts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。