arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.02437cs.CVcs.AIcs.LG

TAP-ViTs: 任务自适应剪枝用于设备端视觉变换器部署

TAP-ViTs: Task-Adaptive Pruning for On-Device Deployment of Vision Transformers

State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);College of Computer Science and Technology(计算机科学与技术学院);College of Computer Science and Electronic Engineering(计算机科学与电子工程学院)

Zhibo Wang, Zuoyuan Zhang, Xiaoyi Pang, Qile Zhang, Xuanyi Hao, Shuguo Zhuo, Peng Sun

AI总结:

TAP-ViTs提出一种任务自适应剪枝框架,在不访问本地数据的情况下,通过高斯混合模型构建度量数据集,实现设备特定的ViT模型剪枝,提升隐私保护移动计算中的部署效率。

摘要:

视觉变换器(ViTs)在广泛视觉任务中展现了强大的性能,但其显著的计算和内存需求阻碍了在资源受限的移动和边缘设备上的高效部署。剪枝已成为减少ViT复杂度的有希望方向。然而,现有方法要么(i)产生一个在所有设备上共享的剪枝模型,忽视设备异质性,要么(ii)依赖于使用本地数据进行微调,这通常由于设备上的资源限制和严格的隐私约束而不可行。因此,当前方法在隐私保护的移动计算环境中无法实现任务定制化的ViT剪枝。本文介绍了TAP-ViTs,一种新的任务自适应剪枝框架,能够在不访问任何原始本地数据的情况下生成设备特定的剪枝ViT模型。具体来说,为了在隐私约束下推断设备层面的任务特征,我们提出了一种基于高斯混合模型(GMM)的度量数据集构建机制。每个设备拟合一个轻量级的GMM来近似其私有数据分布,并上传仅GMM参数。使用这些参数,云平台从公共数据中选择分布一致的样本,为每个设备构建任务代表性的度量数据集。基于此代理数据集,我们进一步开发了一种双粒度重要性评估基于的剪枝策略,该策略联合测量复合神经元重要性和自适应层重要性,使能够实现细粒度、任务感知的剪枝,以适应每个设备的计算预算。在多个ViT骨干网络和数据集上的广泛实验表明,TAP-ViTs在可比的压缩比下始终优于最先进的剪枝方法。

英文摘要:

Vision Transformers (ViTs) have demonstrated strong performance across a wide range of vision tasks, yet their substantial computational and memory demands hinder efficient deployment on resource-constrained mobile and edge devices. Pruning has emerged as a promising direction for reducing ViT complexity. However, existing approaches either (i) produce a single pruned model shared across all devices, ignoring device heterogeneity, or (ii) rely on fine-tuning with device-local data, which is often infeasible due to limited on-device resources and strict privacy constraints. As a result, current methods fall short of enabling task-customized ViT pruning in privacy-preserving mobile computing settings. This paper introduces TAP-ViTs, a novel task-adaptive pruning framework that generates device-specific pruned ViT models without requiring access to any raw local data. Specifically, to infer device-level task characteristics under privacy constraints, we propose a Gaussian Mixture Model (GMM)-based metric dataset construction mechanism. Each device fits a lightweight GMM to approximate its private data distribution and uploads only the GMM parameters. Using these parameters, the cloud selects distribution-consistent samples from public data to construct a task-representative metric dataset for each device. Based on this proxy dataset, we further develop a dual-granularity importance evaluation-based pruning strategy that jointly measures composite neuron importance and adaptive layer importance, enabling fine-grained, task-aware pruning tailored to each device's computational budget. Extensive experiments across multiple ViT backbones and datasets demonstrate that TAP-ViTs consistently outperforms state-of-the-art pruning methods under comparable compression ratios.

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

↑