LF-ViT: Reducing Spatial Redundancy in Vision Transformer for Efficient Image Recognition

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hu, Youbing, Cheng, Yun, Lu, Anqi, Cao, Zhiqiang, Wei, Dawei, Liu, Jie, Li, Zhijun
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911768741150720
author Hu, Youbing
Cheng, Yun
Lu, Anqi
Cao, Zhiqiang
Wei, Dawei
Liu, Jie
Li, Zhijun
author_facet Hu, Youbing
Cheng, Yun
Lu, Anqi
Cao, Zhiqiang
Wei, Dawei
Liu, Jie
Li, Zhijun
contents The Vision Transformer (ViT) excels in accuracy when handling high-resolution images, yet it confronts the challenge of significant spatial redundancy, leading to increased computational and memory requirements. To address this, we present the Localization and Focus Vision Transformer (LF-ViT). This model operates by strategically curtailing computational demands without impinging on performance. In the Localization phase, a reduced-resolution image is processed; if a definitive prediction remains elusive, our pioneering Neighborhood Global Class Attention (NGCA) mechanism is triggered, effectively identifying and spotlighting class-discriminative regions based on initial findings. Subsequently, in the Focus phase, this designated region is used from the original image to enhance recognition. Uniquely, LF-ViT employs consistent parameters across both phases, ensuring seamless end-to-end optimization. Our empirical tests affirm LF-ViT's prowess: it remarkably decreases Deit-S's FLOPs by 63\% and concurrently amplifies throughput twofold. Code of this project is at https://github.com/edgeai1/LF-ViT.git.
format Preprint
id arxiv_https___arxiv_org_abs_2402_00033
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LF-ViT: Reducing Spatial Redundancy in Vision Transformer for Efficient Image Recognition
Hu, Youbing
Cheng, Yun
Lu, Anqi
Cao, Zhiqiang
Wei, Dawei
Liu, Jie
Li, Zhijun
Computer Vision and Pattern Recognition
Artificial Intelligence
The Vision Transformer (ViT) excels in accuracy when handling high-resolution images, yet it confronts the challenge of significant spatial redundancy, leading to increased computational and memory requirements. To address this, we present the Localization and Focus Vision Transformer (LF-ViT). This model operates by strategically curtailing computational demands without impinging on performance. In the Localization phase, a reduced-resolution image is processed; if a definitive prediction remains elusive, our pioneering Neighborhood Global Class Attention (NGCA) mechanism is triggered, effectively identifying and spotlighting class-discriminative regions based on initial findings. Subsequently, in the Focus phase, this designated region is used from the original image to enhance recognition. Uniquely, LF-ViT employs consistent parameters across both phases, ensuring seamless end-to-end optimization. Our empirical tests affirm LF-ViT's prowess: it remarkably decreases Deit-S's FLOPs by 63\% and concurrently amplifies throughput twofold. Code of this project is at https://github.com/edgeai1/LF-ViT.git.
title LF-ViT: Reducing Spatial Redundancy in Vision Transformer for Efficient Image Recognition
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2402.00033