Skip to content

Seeing Sooner: Speculative Action Execution in Edge-Cloud Collaboration for AI Glasses

Zhengru Fang, Xuanrui Zhu, Yanan Ma, Enqi Zhao, Chenghong Bian, Yuanliang Sun, Yuguang Fang, Jun Zhang

cs.NI

Abstract

AI glasses are emerging as always-available personal assistants that answer questions about what the wearer sees, which typically requires low response latency. However, each query takes several turns between a cloud vision-language model (VLM) and edge perception tools, and waiting for cloud replies takes 73% to 99% of the latency. While existing speculative schemes run predicted tools early, they often neglect the delay that wrong predictions impose on other wearers sharing the edge and cloud. To address these challenges, we propose QueueSpec, a queue-aware speculative execution framework that runs likely tools on the edge while the cloud responds and pre-issues the next request when a tool finishes early. We price the waiting imposed on other wearers to derive a confidence threshold for each decision. We also establish conditions under which verification preserves the cloud-only answer distribution. Trace-driven experiments with eight wearers sharing a Jetson Orin NX show that QueueSpec reduces the mean latency by 43.5% to 58.2% relative to execution without speculation. With 28 wearers and a 20% error injection probability, QueueSpec reduces mean latency by 6.9% to 8.9% relative to the fastest baseline on the two models tested. On a RayNeo X3 Pro testbed, the mean edge-to-answer latency falls from 13.23 s to 7.38 s. The system code will be made publicly available at https://github.com/fangzr/QueueSpec.

Create a lesson

Metadata

Comments
Code repository: https://github.com/fangzr/QueueSpec