KAIJU:一种意图门控的LLM代理执行内核
KAIJU: An Executive Kernel for Intent-Gated Execution of LLM Agents
AI总结:
KAIJU通过解耦LLM推理层与代理执行流程,引入意图门控执行和执行内核,提升LLM代理在复杂任务中的执行效率与安全性。
摘要:
基于大语言模型的工具调用自主代理存在三个局限:串行延迟、二次上下文增长以及对提示注入和幻觉的脆弱性。近期研究试图将规划与执行分离,但模型仍与执行机制耦合。本文引入系统级抽象,将代理工作流的执行与LLM推理层解耦。定义了两种第一类抽象:(1)意图门控执行(IGX),一种通过执行时强制意图的安全范式;(2)执行内核,负责调度、工具分发、依赖解析、故障处理和安全。在KAIJU中,LLM提前规划,乐观地并行调度工具,结合依赖感知的参数注入。工具通过IGX基于四个独立变量(范围、意图、影响和批准)授权。KAIJU支持三种自适应执行模式(Reflect、nReflect和Orchestrator),为复杂调查和深入分析提供更精细的执行控制。与ReAct基线的实证评估显示,KAIJU在简单查询中因规划开销存在延迟惩罚,中等复杂度时收敛,且在需要并行数据收集的计算查询中具有结构优势。除了延迟外,分离还强制了ReAct无法通过提示单独匹配的行为保证。代码可在https://github.com/compdeep/kaiju获取。
英文摘要:
Tool-calling autonomous agents based on large language models using ReAct exhibit three limitations: serial latency, quadratic context growth, and vulnerability to prompt injection and hallucination. Recent work moves towards separating planning from execution but in each case the model remains coupled to the execution mechanics. We introduce a system-level abstraction for LLM agents which decouples the execution of agent workflows from the LLM reasoning layer. We define two first-class abstractions: (1) Intent-Gated Execution (IGX), a security paradigm that enforces intent at execution, and (2) an Executive Kernel that manages scheduling, tool dispatch, dependency resolution, failures and security. In KAIJU, the LLM plans upfront, optimistically scheduling tools in parallel with dependency-aware parameter injection. Tools are authorised via IGX based on four independent variables: scope, intent, impact, and clearance (external approval). KAIJU supports three adaptive execution modes (Reflect, nReflect, and Orchestrator), providing progressively finer-grained execution control apt for complex investigation and deep analysis or research. Empirical evaluation against a ReAct baseline shows that KAIJU has a latency penalty on simple queries due to planning overhead, convergence at moderate complexity, and a structural advantage on computational queries requiring parallel data gathering. Beyond latency, the separation enforces behavioural guarantees that ReAct cannot match through prompting alone. Code available at https://github.com/compdeep/kaiju
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。