阶段至关重要:移动SoC上异构视觉-语言推理的特征分析
Phase Matters: Characterizing Heterogeneous Vision-Language Inference on a Mobile SoC
AI总结:
本文通过硬件在环实验,系统表征了移动SoC上VLM推理的阶段性特征,发现NPU执行高度依赖阶段,在预填充阶段加速1.64倍,解码阶段仅1.18倍,视觉编码器加速20-45倍,并展示了四步图重写方法使Phi-3.5-V等编码器获得22倍加速。
摘要:
最近的手机级移动SoC为设备上视觉-语言模型(VLM)推理提供了实用的NPU执行路径,但开发者仍然缺乏将VLM流水线映射到异构后端的阶段级指导。我们针对高通SM8750(Snapdragon 8 Elite)上的VLM推理进行了硬件在环特征分析,涵盖阶段吞吐量、缓存状态效应、100次运行的热稳定性、能耗、异构CPU/NPU流水线配置以及视觉令牌预算敏感性。以FastVLM-0.5B作为端到端案例研究,结合四个架构系列的编码器专用测量,我们表明阶段至关重要:NPU执行高度依赖于阶段,预填充阶段加速1.64倍,但解码阶段仅1.18倍,而视觉编码器相比CPU实现20-45倍加速。这些增益转化为稳态温度降低10.47摄氏度,能耗降低2.52倍,从而在始终开启的设置中避免热节流。最后,我们展示了一个四步图重写方法,使得之前不支持的编码器(如Phi-3.5-V)能够接入QNN路径,实现高达22倍的加速,为移动VLM部署提供了实用的移植方案。
英文摘要:
Recent phone-class mobile SoCs expose practical NPU execution paths for on-device vision-language model (VLM) inference, but developers still lack phase-level guidance for mapping VLM pipelines across heterogeneous backends. We present a hardware-in-the-loop characterization of VLM inference on the Qualcomm SM8750 (Snapdragon 8 Elite), covering phase throughput, cache-state effects, 100-run thermal stability, energy, heterogeneous CPU/NPU pipeline configurations, and visual-token-budget sensitivity. Using FastVLM-0.5B as an end-to-end case study, together with encoder-only measurements across four architecture families, we show that phase matters: NPU execution is highly phase-dependent, delivering 1.64x speedup for prefill but only 1.18x for decode, while vision encoders achieve 20-45x speedups over CPU. These gains translate into 10.47 degrees C lower steady-state temperature and 2.52x lower energy, avoiding thermal throttling in always-on settings. Finally, we show that a four-step graph rewrite enables previously unsupported encoders, such as Phi-3.5-V, to reach the QNN path with up to 22x speedup, providing a practical porting recipe for mobile VLM deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。