arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09324cs.CVcs.AI
收藏

使用轻量级背景感知Vision Transformer的Token剪枝

Token Pruning using a Lightweight Background Aware Vision Transformer

Deeplite(迪利普特公司)

Sudhakar Sah, Ravish Kumar, Honnesh Rohmetra, Ehsan Saboori

AI总结:

提出BAViT模型,通过轻量级ViT预处理模块识别并剪枝背景token,在保持精度的同时显著提升边缘设备上目标检测的吞吐量并降低内存占用。

摘要:

高运行时内存和高延迟对Vision Transformer的训练和推理造成了显著限制,尤其是在边缘设备上。Token剪枝根据每个token的重要性标准来减少输入到ViT的token数量。我们提出了一种Background Aware Vision Transformer (BAViT)模型,作为DETR/YOLOS等目标检测模型的预处理模块,旨在通过一种识别图像中背景token的新方法来减少运行时内存并提高吞吐量。背景token可以在输入到基于ViT的目标检测器之前被完全或部分剪枝。我们使用由分割图和/或边界框标注提供的语义信息来训练几层ViT,以将token分类为前景或背景。使用2层和10层BAViT,在VOC数据集上可以分别以75%和88%的准确率分离背景和前景token,在COCO数据集上分别为71%和80%。我们展示了作为YOLOS预处理器的2层BAViT-small模型可以将吞吐量提高30% - 40%,且mAP下降3%(无稀疏微调)或2%(有稀疏微调)。我们的方法专门针对Edge AI用例。

英文摘要:

High runtime memory and high latency puts significant constraint on Vision Transformer training and inference, especially on edge devices. Token pruning reduces the number of input tokens to the ViT based on importance criteria of each token. We present a Background Aware Vision Transformer (BAViT) model, a pre-processing block to object detection models like DETR/YOLOS aimed to reduce runtime memory and increase throughput by using a novel approach to identify background tokens in the image. The background tokens can be pruned completely or partially before feeding to a ViT based object detector. We use the semantic information provided by segmentation map and/or bounding box annotation to train a few layers of ViT to classify tokens to either foreground or background. Using 2 layers and 10 layers of BAViT, background and foreground tokens can be separated with 75% and 88% accuracy on VOC dataset and 71% and 80% accuracy on COCO dataset respectively. We show a 2 layer BAViT-small model as pre-processor to YOLOS can increase the throughput by 30% - 40% with a mAP drop of 3% without any sparse fine-tuning and 2% with sparse fine-tuning. Our approach is specifically targeted for Edge AI use cases.

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

↑