跳到正文
arXiv (AI + Vision + Imaging)· Guijia Zhang, Huihao Jing, Bing Li, Shing-Chi Cheung, Harry Yang, Ziqi Zhang·· 1 天前AI 评分17

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

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

AI 导读

有状态LLM服务引擎与agent运行时跨组件和会话复用执行状态与延迟权限,记录取消、回滚或审批并不保证后续使用有效。在vLLM配合LMCache时,中断的KV加载会留下未写入块仍被索引,仅主机端计数器回退使GPU位置失同步,导致第二租户在10/10次原生故障运行中生成指向错误租户的schema合法工具调用。

正文 · 原文

arXiv:2611.29004v1 Announce Type: cross Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org