arrow
Return

Lightweight transformer image feature extraction network

delete2024-01-31
delete84
delete
OA
AI
W
Wenfeng Zheng
S
Siyu Lu
Y
Youshuai Yang
Z
Zhengtong Yin
L
Lirong Yin *
DOI:10.7717/peerj-cs.1755delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
In recent years, the image feature extraction method based on Transformer has become a research hotspot. However, when using Transformer for image feature extraction, the model's complexity increases quadratically with the number of tokens entered. The quadratic complexity prevents vision transformer-based backbone networks from modelling high-resolution images and is computationally expensive. To address this issue, this study proposes two approaches to speed up Transformer models. Firstly, the self-attention mechanism's quadratic complexity is reduced to linear, enhancing the model's internal processing speed. Next, a parameter-less lightweight pruning method is introduced, which adaptively samples input images to filter out unimportant tokens, effectively reducing irrelevant input. Finally, these two methods are combined to create an efficient attention mechanism. Experimental results demonstrate that the combined methods can reduce the computation of the original Transformer model by 30%-50%, while the efficient attention mechanism achieves an impressive 60%-70% reduction in computation.
Keywords:
Transformer
Quadratic complexity
Image feature extraction
Self-attention mechanism
Pruning
Efficient attention
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

PeerJ Computer Science cover
PeerJ Computer Science
IF:
2.5
Papers:
3.4K
Citations:
6.9K

Organization

L
louisiana state university system
Scholars:
2.3W
Papers: 2.0W
Citations: 15
G
guizhou university
Scholars:
2.4W
Papers: 1.3W
Citations: 15