为设计而可逆:流式LLM代理执行的理论
Revisable by Design: A Theory of Streaming LLM Agent Execution
AI总结:
本文提出流式LLM代理执行的可逆性理论,通过定义可逆性分类,证明冲突可逆动作导致不可满足性,提出修订吸收器算法提升执行灵活性。
摘要:
当前LLM代理隐含假设执行为事务,用户只能等待或中断。本文提出流式范式,使代理执行与用户干预并发。通过可逆性分类,得出代理灵活性由可逆性决定。证明冲突可逆动作导致适应成本,冲突不可逆动作导致不可满足性。基于此,提出修订吸收器算法,实验表明其在StreamBench上性能优于全重启基线,减少大量已完成工作步骤。
英文摘要:
Current LLM agents operate under an implicit but universal assumption: execution is a transaction -- the user submits a request, the agent works in isolation, and only upon completion does the dialogue resume. This forces users into a binary choice: wait for a potentially incorrect output, or interrupt and lose all progress. We reject this assumption and propose the stream paradigm, in which agent execution and user intervention are concurrent, interleaved processes sharing a bidirectional channel. We formalize this paradigm through a reversibility taxonomy that classifies every agent action as Idempotent, Reversible, Compensable, or Irreversible, and arrive at a core conclusion: an agent's flexibility is bounded by its reversibility. We prove that conflicting compensable actions impose unavoidable adaptation costs and that conflicting irreversible actions make full specification satisfaction impossible -- these costs are properties of the action space, not of the algorithm. Guided by this insight, we present the Revision Absorber, a reactive algorithm based on the Earliest-Conflict Rollback rule that is structurally optimal under mild assumptions. Experiments on StreamBench with real LLM agents validate all predictions: the Absorber matches the quality of a brute-force full-restart baseline while wasting an order of magnitude fewer steps of already-completed work, turning mid-execution revisions from a dead-end into a first-class interaction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。