Saved in:
Bibliographic Details
Main Author: Sun, Bohang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.22709
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916475604828160
author Sun, Bohang
author_facet Sun, Bohang
contents In this study, we introduce an enhanced version of ViT that conducts attention-based QKV operations during the initial stages of downsampling. Performing attention directly on high-resolution feature maps is computationally demanding due to the large size and numerous tokens. To mitigate this, we propose a filter attention mechanism that uses a Filter Block to create a salient mask (Filter Mask) for selecting the most informative pixels for attention. The Filter Block scores the pixels of the feature map, and we sort these scores to retain only the top K pixels (with K varying across layers). This approach effectively decreases the number of tokens involved in the attention computation, reducing computational complexity and boosting processing speed. Furthermore, the salient mask provides interpretability, as the model focuses on regions of the image most critical to the outcome. Our experimental results show that this model improves parameter efficiency and computational speed while enhancing accuracy. Compared to existing models, our approach significantly reduces resource consumption while maintaining high performance.
format Preprint
id arxiv_https___arxiv_org_abs_2410_22709
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FilterViT and DropoutViT
Sun, Bohang
Computer Vision and Pattern Recognition
In this study, we introduce an enhanced version of ViT that conducts attention-based QKV operations during the initial stages of downsampling. Performing attention directly on high-resolution feature maps is computationally demanding due to the large size and numerous tokens. To mitigate this, we propose a filter attention mechanism that uses a Filter Block to create a salient mask (Filter Mask) for selecting the most informative pixels for attention. The Filter Block scores the pixels of the feature map, and we sort these scores to retain only the top K pixels (with K varying across layers). This approach effectively decreases the number of tokens involved in the attention computation, reducing computational complexity and boosting processing speed. Furthermore, the salient mask provides interpretability, as the model focuses on regions of the image most critical to the outcome. Our experimental results show that this model improves parameter efficiency and computational speed while enhancing accuracy. Compared to existing models, our approach significantly reduces resource consumption while maintaining high performance.
title FilterViT and DropoutViT
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.22709