Lightweight transformer image feature extraction network

View article
PeerJ Computer Science

Main article text

 

Introduction

Method

Lightweight based on linear attention

Linear attention basics

Alternative function design

Lightweight based on token pruning

Score

Sampling

Fusion of linear attention and token pruning

Dataset

Experiment

Environment and hyperparameter settings

Evaluation indicators

Benchmark model

Experimental exploration of linear attention

Token pruning internal experiment research

Results

Experimental results of image classification

Experimental results of target detection

Discussion and Conclusion

Additional Information and Declarations

Competing Interests

The authors declare there are no competing interests.

Author Contributions

Wenfeng Zheng conceived and designed the experiments, performed the experiments, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Siyu Lu performed the experiments, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Youshuai Yang analyzed the data, performed the computation work, authored or reviewed drafts of the article, and approved the final draft.

Zhengtong Yin analyzed the data, authored or reviewed drafts of the article, and approved the final draft.

Lirong Yin analyzed the data, authored or reviewed drafts of the article, and approved the final draft.

Data Availability

The following information was supplied regarding data availability:

The code is available at Zenodo: Zheng, W., Lu, S., Yang, Y., Yin, Z., & Yin, L. (2023). Lightweight Transformer Image Feature Extraction Network. Zenodo. https://doi.org/10.5281/zenodo.10039236.

The raw data, ImageNet (ILSVRC2012), is available at https://www.image-net.org/challenges/LSVRC/2012/index.php#

The Common Objects in Context (COCO) dataset is available at https://cocodataset.org/#download.

Funding

This work was supported by the Sichuan Science and Technology Program (2021YFQ0003, 2023YFSY0026, 2023YFH0004). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

84 Citations 2,578 Views 447 Downloads

Your institution may have Open Access funds available for qualifying authors. See if you qualify

Publish for free

Comment on Articles or Preprints and we'll waive your author fee
Learn more

Five new journals in Chemistry

Free to publish • Peer-reviewed • From PeerJ
Find out more