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

通过无数据知识迁移优化视觉Transformer

Optimizing Vision Transformers with Data-Free Knowledge Transfer

IIT Delhi(德里印度理工学院);Shoolini University(舒利尼大学)

Gousia Habib, Damandeep Singh, Ishfaq Ahmad Malik, Brejesh Lall

AI总结:

针对视觉Transformer部署时的高计算需求与训练数据依赖问题,提出无数据知识蒸馏的压缩方法,经分类与目标检测实验验证可有效支持其在资源受限设备上部署。

摘要:

Transformer在自然语言处理(NLP)任务中取得的突破性性能,使其凭借自注意力机制实现的效率与准确率优势,取代了传统卷积神经网络(CNNs)。这一成功启发研究人员探索将Transformer应用于计算机视觉任务,以获得更强的长时语义感知能力。视觉Transformer(ViTs)凭借自注意力机制捕捉长距离依赖的卓越能力,在各类计算机视觉任务中表现出色。当前主流的ViT如Data Efficient Transformers(DeiT,数据高效Transformer)能够有效从图像中学习全局语义信息和局部纹理信息,达到与传统CNN相当的性能。然而,其优异性能的背后是参数量极大带来的高昂计算成本,阻碍了其在智能手机、相机、无人机等资源受限设备上的部署。此外,ViT需要大量训练数据才能达到与基准CNN模型相当的性能。因此,我们明确了在小型设备上部署ViT的两大关键挑战:大模型的高计算需求,以及对大量训练数据的依赖。针对这些挑战,我们提出使用Knowledge Distillation(KD,知识蒸馏)对大型ViT模型进行压缩,且该蒸馏过程以无数据方式实现,以规避数据可用性相关的限制。除分类任务外,我们还在相同环境下开展了目标检测实验。分析结果表明,无数据知识蒸馏是同时解决上述两个问题的有效方法,能够支持ViT在资源受限程度更低的设备上部署。

英文摘要:

The groundbreaking performance of transformers in Natural Language Processing (NLP) tasks has led to their replacement of traditional Convolutional Neural Networks (CNNs), owing to the efficiency and accuracy achieved through the self-attention mechanism. This success has inspired researchers to explore the use of transformers in computer vision tasks to attain enhanced long-term semantic awareness. Vision transformers (ViTs) have excelled in various computer vision tasks due to their superior ability to capture long-distance dependencies using the self-attention mechanism. Contemporary ViTs like Data Efficient Transformers (DeiT) can effectively learn both global semantic information and local texture information from images, achieving performance comparable to traditional CNNs. However, their impressive performance comes with a high computational cost due to very large number of parameters, hindering their deployment on devices with limited resources like smartphones, cameras, drones etc. Additionally, ViTs require a large amount of data for training to achieve performance comparable to benchmark CNN models. Therefore, we identified two key challenges in deploying ViTs on smaller form factor devices: the high computational requirements of large models and the need for extensive training data. As a solution to these challenges, we propose compressing large ViT models using Knowledge Distillation (KD), which is implemented data-free to circumvent limitations related to data availability. Additionally, we conducted experiments on object detection within the same environment in addition to classification tasks. Based on our analysis, we found that datafree knowledge distillation is an effective method to overcome both issues, enabling the deployment of ViTs on less resourceconstrained devices.

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

↑