基础设施 4.0 · 优秀 2026-10-19 · 论文

Tandem: Serving Hybrid Linear-Attention GUI Agents on Mobile NPUs

手机 GUI Agent 每步都重读屏幕并向模型要下一个动作,端侧 NPU 推理把屏幕内容留在设备内,代价是延迟逐步累积;混合线性注意力省显存,但循环状态只有在正确输入位置存了 checkpoint 才能复用,为聊天续写设计的策略会漏掉 Agent 请求里可复用的前缀Tandem 基于 llama.cpp 实现:在相邻请求的分歧点保存循环状态prefill 大头留在 NPU 矩阵单元逐 token 短尾计算生成回滚状态验证 kernel 对所有候选 token 只读一次权重块,请求间歇释放 NPU power vote 而不卸载模型Snapdragon 8 Elite 上文本屏描述每步延迟降 30%截图降 16%文本步能耗降 33%,模型驻留待机功耗从 0.76 W 降到 0.22 W

打开原文回到归档

Tandem: Serving Hybrid Linear-Attention GUI Agents on Mobile NPUs

URL: https://arxiv.org/abs/2610.26660
author: Zhuomin Chen, Jingchao Ni, Xu Zheng, Yong Chen, Mo Sha, Wei Cheng, Dongsheng Luo
date: 2026-10-19
source: arxiv / paper
collected: 2026-10-23 (daily-intake-evening)

Summary

手机 GUI Agent 每步都重读屏幕并向模型要下一个动作,端侧 NPU 推理把屏幕内容留在设备内,代价是延迟逐步累积;混合线性注意力省显存,但循环状态只有在正确输入位置存了 checkpoint 才能复用,为聊天续写设计的策略会漏掉 Agent 请求里可复用的前缀。Tandem 基于 llama.cpp 实现:在相邻请求的分歧点保存循环状态、prefill 大头留在 NPU 矩阵单元、逐 token 短尾计算生成回滚状态、验证 kernel 对所有候选 token 只读一次权重块,请求间歇释放 NPU power vote 而不卸载模型。Snapdragon 8 Elite 上文本屏描述每步延迟降 30%、截图降 16%、文本步能耗降 33%,模型驻留待机功耗从 0.76 W 降到 0.22 W。

Smartphone GUI agents keep screen contents local by running on mobile NPUs, but per-action latency accumulates, and checkpoint policies designed for chat continuation miss reusable prefixes in agent requests. Tandem, a llama.cpp runtime, saves recurrent state where consecutive prompts diverge, keeps most prefill on the NPU matrix unit, produces rollback states via a short per-token tail, reads each weight block once during verification, and releases NPU power votes between request bursts. On Snapdragon 8 Elite it cuts per-step latency by 30% for text screens and 16% for screenshots, energy per text step by 33%, and standby power with the model loaded from 0.76 to 0.22 W.

Source (fetched)

arXiv:2610.26660 | Tandem: Serving Hybrid Linear-Attention GUI Agents on Mobile NPUs authors: Zhuomin Chen, Jingchao Ni, Xu Zheng, Yong Chen, Mo Sha, Wei Cheng, Dongsheng Luo submitted: 2026-10-19 updated: 2026-10-19 categories: cs.AI link: https://arxiv.org/abs/2610.26660

Abstract Smartphone GUI agents complete tasks in mobile apps by repeatedly reading the screen and asking a model for the next action. Mobile neural processing units (NPUs) enable local execution, keeping screen contents on the phone, but model latency accumulates with every action. Hybrid linear attention models reduce memory requirements, yet reusing their recurrent state requires checkpoints at the appropriate input positions. Agent requests retain instructions but rewrite recent history, so checkpoint policies designed for chat continuation can miss reusable prefixes. Retaining rollback states for speculative decoding can also move prompt processing off the NPU's matrix unit, adding overhead that outweighs decoding savings on short action outputs. A loaded model can further hold the NPU awake between tasks. We present Tandem, a runtime for hybrid GUI agents on mobile NPUs. Tandem saves recurrent state where consecutive prompts diverge, allowing later requests to reuse previously processed context. It keeps most prefill on the matrix unit and produces rollback states through a short per-token tail. Its verification kernel reads each weight block once for all proposed tokens. Between request bursts, Tandem releases NPU power votes without unloading the model. We implement Tandem in llama.cpp and evaluate it on recorded agent interactions across two Snapdragon generations. On a Snapdragon 8 Elite, Tandem reduces per-step latency by 30% for text-based screen descriptions and 16% for screenshots relative to llama.cpp's fastest NPU configuration, reduces energy per text step by 33%, and lowers standby power with the model loaded from 0.76 to 0.22 W.

Obsidian evidence excerpt

from OpenClaw定时任务/论文流水线/2026-10-23-论文流水线.md:

1. Tandem:把混合线性注意力 GUI Agent 搬上手机 NPU 的推理运行时

Zhuomin Chen 等 7 人,2026 年 10 月 19 日提交 arXiv(cs.AI)。手机 GUI Agent 每执行一步都要重读屏幕、让模型给出下一个动作,本地 NPU 推理保住了屏幕内容不出设备,代价是每步延迟逐步累积;混合线性注意力模型省显存,但循环状态只有在正确输入位置存了 checkpoint 才能复用,为聊天续写设计的 checkpoint 策略会漏掉 Agent 请求里可复用的前缀。Tandem 基于 llama.cpp 实现:在相邻请求的分歧点保存循环状态、prefill 大头留在 NPU 矩阵单元、用逐 token 的短尾计算生成回滚状态、验证 kernel 对所有候选 token 只读一次权重块,请求间歇释放 NPU power vote 而不卸载模型。在两代 Snapdragon 上回放录制的 Agent 交互评测,Snapdragon 8 Elite 上文本屏描述每步延迟降 30%、截图输入降 16%、文本步能耗降 33%,模型驻留时的待机功耗从 0.76 W 降到 0.22 W。这篇把 checkpoint 策略、prefill 调度和功耗治理连成了一个完整系统,做端上推理的可以拿自己设备对照一遍。 https://arxiv.org/abs/2610.26660