Janus:动态网络环境下的协同 Vision Transformer
Janus: Collaborative Vision Transformer Under Dynamic Network Environment
AI总结:
针对动态网络中 ViT 云边推理的高延迟与性能损失问题,Janus 结合 token 剪枝、模型划分和非静态混合剪枝,动态选择剪枝级别与划分点,实现高准确率、低开销协同推理。
摘要:
Vision Transformer(ViT)的表现已经优于传统卷积神经网络架构,并在多种计算机视觉任务中取得了最先进结果。由于 ViT 的计算开销很高,这些模型要么必须经过剪枝,才能仅在资源受限的边缘设备上运行;要么必须在接收到通过波动网络传输的原始数据后,在远程云服务器上执行。由此导致的性能下降或高延迟都阻碍了它们的广泛应用。本文提出 Janus,这是首个面向动态网络的低延迟云—设备协同 Vision Transformer 推理框架。Janus 克服了 ViT 固有的模型限制,实现了在云端和边缘设备上协同执行 ViT 模型,从而获得低延迟、高准确率和低通信开销。具体而言,Janus 明智地将 token 剪枝技术与精心设计的由细到粗模型划分策略以及非静态混合剪枝策略相结合。它通过动态选择最优剪枝级别和划分点,在准确率与延迟之间取得平衡。跨多种任务的实验结果表明,在不同网络环境下,与基线方法相比,Janus 将吞吐量最高提升至 5.15 倍,并将延迟违规比例最高降低 98.7%。
英文摘要:
Vision Transformers (ViTs) have outperformed traditional Convolutional Neural Network architectures and achieved state-of-the-art results in various computer vision tasks. Since ViTs are computationally expensive, the models either have to be pruned to run on resource-limited edge devices only or have to be executed on remote cloud servers after receiving the raw data transmitted over fluctuating networks. The resulting degraded performance or high latency all hinder their widespread applications. In this paper, we present Janus, the first framework for low-latency cloud-device collaborative Vision Transformer inference over dynamic networks. Janus overcomes the intrinsic model limitations of ViTs and realizes collaboratively executing ViT models on both cloud and edge devices, achieving low latency, high accuracy, and low communication overhead. Specifically, Janus judiciously combines token pruning techniques with a carefully designed fine-to-coarse model splitting policy and non-static mixed pruning policy. It attains a balance between accuracy and latency by dynamically selecting the optimal pruning level and split point. Experimental results across various tasks demonstrate that Janus enhances throughput by up to 5.15 times and reduces latency violation ratios by up to 98.7% when compared with baseline approaches under various network environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。