Tandem: Serving Hybrid Linear-Attention GUI Agents on Mobile NPUs· Tandem: 优化手机GUI代理的本地执行
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 be
优化手机上GUI代理的本地执行,减少内存与延迟
- 核心方法
- 提出了一种混合线性注意力模型的策略,通过在适当位置设置检查点来复用状态,优化模型本地执行
- 适合谁读
- 适合手机应用开发者、AI研究者和关注模型优化的工程师阅读
- 要解决的问题
- 传统的GUI代理在手机上执行时,存在高内存需求和累积模型延迟的问题
- 关键实验
- 未提供
- 主要贡献
- 设计了适用于GUI代理的检查点策略,有效减少了模型执行的内存需求和延迟
- 意义与局限
- 该研究提高了手机GUI代理的执行效率,有利于提升用户体验,但主要适用于长输出的情况