arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16244cs.DC
收藏

HeteroVDiff:在移动NPU与GPU间通过共享权重实现视频扩散的流水线化

HeteroVDiff: Pipelining Video Diffusion across Mobile NPU and GPU with Shared Weights

University of Maryland, College Park(马里兰大学帕克分校)

Zheyu Shen, Ziyao Wang, Yexiao He, Guoheng Sun, Yuning Zhang, Yiting Wang, Wanghao Ye, Ang Li

AI总结:

HeteroVDiff通过在移动NPU与GPU间共享权重实现视频扩散流水线,减少48%权重内存,在Galaxy S25上吞吐量达仅NPU方案的1.35倍,VBench-2.0得分与FP32相当。

摘要:

视频生成正从云端向手机迁移,以满足隐私保护和离线使用需求,且应用常要求同时生成多个片段,因此设备端视频生成首先是吞吐量问题,其次才是延迟问题。当代移动片上系统(SoC)在共享动态随机存取存储器(DRAM)上同时集成了GPU和神经处理单元(NPU),但现有设备端视频扩散系统仅在其中一个引擎上运行去噪器,另一个引擎则处于空闲状态,或仅在之后对完成的潜变量进行解码。为移动大语言模型(LLM)构建的异构设计无法直接迁移:它们会在每个算子处同步两个引擎,并在它们之间划分权重张量,而非共享一份存储副本。我们首先测量决定此类SoC可运行内容的平台限制:单个缓冲区的最大容量、两个运行时能否映射同一缓冲区,以及NPU工具链允许单个计算图占用的激活内存量。在这些测量的指导下,我们将基础权重以INT8格式存储为NPU原生读取的布局;GPU可直接将相同字节作为整数点积操作数使用,因此两个运行时在加载时均无需重新排列权重。随后,我们将去噪轨迹展平为其完整的块执行序列,并在一个块边界处进行一次切割,使GPU运行前缀部分,NPU运行后缀部分。该切割位置基于测量速率而非建模速率确定,包括仅NPU可运行的解码器,且切割操作在两个引擎同时运行时执行,因为每个引擎的速度会因另一个引擎的活动而变化。我们提出了HeteroVDiff,它在NPU和GPU上运行多专家视频扩散模型,所需权重内存比为每个引擎单独提供副本减少48%。在Galaxy S25上进行背靠背视频生成且在流水线内解码时,HeteroVDiff的流吞吐量是仅使用NPU执行的1.35倍,且在VBench-2.0上,其在全部18个维度的总得分与FP32相当。

英文摘要:

Video generation is moving from the cloud to phones for privacy and offline use, and applications often ask for several clips at a time, so on-device video generation is a throughput problem before it is a latency problem. Contemporary mobile SoCs carry both a GPU and a neural processing unit (NPU) on shared DRAM, yet existing on-device video diffusion systems run the denoiser on one engine while the other sits idle or only decodes the finished latent afterwards. Heterogeneous designs built for mobile LLMs do not carry over: they synchronise the two engines at every operator and partition weight tensors between them instead of sharing one stored copy. We first measure the platform limits that decide what can run on this class of SoC: how large one buffer may be, whether both runtimes can map the same buffer, and how much activation memory the NPU toolchain lets one graph hold. Guided by these measurements, we store the base weights once in INT8 in the layout the NPU reads natively; the GPU consumes the same bytes directly as integer dot-product operands, so neither runtime rearranges weights on load. We then flatten the denoising trajectory into its full sequence of block executions and cut it once at a block boundary, so the GPU runs the prefix and the NPU the suffix. The cut is placed from measured rather than modelled rates, including the decoder that only the NPU can run, and taken while both engines run together because each engine's speed changes when the other is active. We present HeteroVDiff, which serves a multi-expert video diffusion model across the NPU and GPU with 48% less weight memory than giving each engine its own copy. Generating videos back to back on a Galaxy S25 with decoding inside the pipeline, HeteroVDiff sustains 1.35x the stream throughput of NPU-only execution, and on VBench-2.0 it matches FP32 in the total score over all 18 dimensions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑