paper-with-me

홈 › Papers

Lightweight Vision Transformer with Window and Spatial Attention for Food Image Classification

2025-09-23 · Xinle Gao, Linghui Ye, Zhiyong Xiao arxiv

With the rapid development of society and continuous advances in science and technology, the food industry increasingly demands higher production quality and efficiency. Food image classification plays a vital role in enabling automated quality control on production lines, supporting food safety supervision, and promoting intelligent agricultural production. However, this task faces challenges due to the large number of parameters and high computational complexity of Vision Transformer models. To address these issues, we propose a lightweight food image classification algorithm that integrates a Window Multi-Head Attention Mechanism (WMHAM) and a Spatial Attention Mechanism (SAM). The WMHAM reduces computational cost by capturing local and global contextual features through efficient window partitioning, while the SAM adaptively emphasizes key spatial regions to improve discriminative feature representation. Experiments conducted on the Food-101 and Vireo Food-172 datasets demonstrate that our model achieves accuracies of 95.24% and 94.33%, respectively, while significantly reducing parameters and FLOPs compared with baseline methods. These results confirm that the proposed approach achieves an effective balance between computational efficiency and classification performance, making it well-suited for deployment in resource-constrained environments.

📄 PDF Abstract BibTeX arXiv:2509.18692

Code (0)

등록된 구현이 없습니다.

Tasks

Computational EfficiencyImage Classification

Similar Papers 제목 키워드 기반

SimViT: Exploring a Simple Vision Transformer with sliding windows

2021-12-24 · Gang Li, Di Xu, Xing Cheng, Lingyu Si 외

Although vision Transformers have achieved excellent performance as backbone models in many vision tasks, most of them intend to capture global relations of all tokens in an image or a window, which disrupts the inherent…

Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer

2021-06-07 · Zilong Huang, Youcheng Ben, Guozhong Luo, Pei Cheng 외

Very recently, Window-based Transformers, which computed self-attention within non-overlapping local windows, demonstrated promising results on image classification, semantic segmentation, and object detection. However, …

image-classificationImage Classificationobject-detectionObject Detection+2

Lawin Transformer: Improving Semantic Segmentation Transformer with Multi-Scale Representations via Large Window Attention

2022-01-05 · Haotian Yan, Chuang Zhang, Ming Wu

Multi-scale representations are crucial for semantic segmentation. The community has witnessed the flourish of semantic segmentation convolutional neural networks (CNN) exploiting multi-scale contextual information. Moti…

Decoderimage-classificationImage ClassificationSegmentation+1

Lightweight Image Inpainting by Stripe Window Transformer with Joint Attention to CNN

2023-01-02 · Tsung-Jung Liu, Bo-Wei Chen, Kuan-Hsien Liu

Image inpainting is an important task in computer vision. As admirable methods are presented, the inpainted image is getting closer to reality. However, the result is still not good enough in the reconstructed texture an…

Image Inpainting

S2WAT: Image Style Transfer via Hierarchical Vision Transformer using Strips Window Attention

2022-10-22 · Chiyu Zhang, Xiaogang Xu, Lei Wang, Zaiyan Dai 외

Transformer's recent integration into style transfer leverages its proficiency in establishing long-range dependencies, albeit at the expense of attenuated local modeling. This paper introduces Strips Window Attention Tr…

Style Transfer