arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.29004cs.CRcs.AIcs.SE
收藏

有状态AI运行时中的消费者时间有效性:验证恢复的状态与延迟权限

Consumer-Time Validity in Stateful AI Runtimes: Verifying Recovered State and Deferred Authority

The Hong Kong University of Science and Technology(香港科技大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Guijia Zhang, Huihao Jing, Bing Li, Shing-Chi Cheung, Harry Yang, Ziqi Zhang

AI总结:

该研究针对有状态AI运行时中存在的消费者时间有效性缺失问题,提出了状态有效性与权限时效性两种形式,设计了基于调度器元数据的离线跟踪验证器,通过实验验证了其在vLLM等场景下的有效性。

摘要:

有状态大语言模型(LLM)服务引擎和智能体运行时会在组件与会话间复用执行状态与延迟权限。取消、回滚或批准操作由一个组件记录,另一个组件依赖该记录,但记录操作并不使后续使用有效:下游消费者可能读取状态或发起操作,而该操作的身份、生产状态、分配情况或目标修订版已发生变化。我们将这种缺失的检查称为消费者时间有效性,并区分两种形式:状态有效性管控消费者读取的内容,权限时效性管控消费者执行的内容。在搭载LMCache的vLLM上,中断的KV加载会留下已索引但未写入的块,仅主机端计数器回退会导致GPU位置不同步,因此第二个租户在10次原生故障运行中生成了10次符合模式的工具调用,命名了错误的租户,该调用被记录但未执行。输出相等性无法测试状态有效性:无故障运行仅因BF16批处理在第30个token处出现分歧,而注意力KV摘要匹配。因此,我们指定了消费者绑定的恢复契约,对于状态恢复,共同要求排除、保留和任务完成,以及可接受的见证标准,该标准通过无GPU的离线跟踪验证器实现,该验证器基于调度器元数据和持久化工具构件。在记录的跟踪中,该验证器在42/42个冻结GPU矩阵场景中与参考裁决一致。分配感知修复在固定调度器案例矩阵上满足7/7个触发的vLLM故障谓词,而上游PR 61769满足2/7个,修订绑定调度在单独的调度队列中阻止了全部160个确定性冲突覆盖。恢复必须在状态和权限被消费的位置进行检查,证据需绑定到消费请求。

英文摘要:

Stateful LLM serving engines and agent runtimes reuse execution state and deferred permissions across components and sessions. A cancellation, rollback, or approval is recorded by one component and relied on by another, and recording it does not make the later use valid: a downstream consumer may read state or dispatch an action whose identity, production status, allocation, or target revision has since changed. We call the missing check consumer-time validity and separate two forms. State validity governs what a consumer reads. On vLLM with LMCache, an interrupted KV load leaves unwritten blocks indexed, and a host-only counter rewind desynchronizes the GPU position, so a second tenant generates a schema-valid tool call naming the wrong tenant in 10/10 native-fault runs; the call is recorded and not executed. Authority freshness governs what a consumer executes: on a multi-session approval runtime, an unrevoked deferred grant overwrote a newer revision in one admitted live execution. Output equality cannot test state validity: a fault-free run diverges at token 30 through BF16 batching alone while attended-KV digests match. We therefore specify consumer-bound recovery contracts that, for state recovery, jointly require exclusion, retention, and task completion, and an admissible-witness standard realized as a GPU-free offline trace verifier over scheduler metadata and persisted tool artifacts. On recorded traces the verifier agrees with the reference verdicts in 42/42 frozen GPU-matrix scenarios. An allocation-aware repair satisfies 7/7 triggered vLLM fault predicates on a pinned scheduler-case matrix, where upstream PR 61769 satisfies 2/7, and revision-bound dispatch blocks all 160 deterministic conflicting overwrites in a separate dispatcher cohort. Recovery must be checked where state and authority are consumed, with evidence bound to the consuming request.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑