[Paper Review] Res-VMamba: Fine-Grained Food Category Visual Classification Using Selective State Space Models with Deep Residual Learning
This paper introduces Res-VMamba, a residual VMamba-based model integrating global residual learning with selective state space models for fine-grained food classification on CNFOOD-241, achieving state-of-the-art results without pretrained weights.
Food classification is the foundation for developing food vision tasks and plays a key role in the burgeoning field of computational nutrition. Due to the complexity of food requiring fine-grained classification, recent academic research mainly modifies Convolutional Neural Networks (CNNs) and/or Vision Transformers (ViTs) to perform food category classification. However, to learn fine-grained features, the CNN backbone needs additional structural design, whereas ViT, containing the self-attention module, has increased computational complexity. In recent months, a new Sequence State Space (S4) model, through a Selection mechanism and computation with a Scan (S6), colloquially termed Mamba, has demonstrated superior performance and computation efficiency compared to the Transformer architecture. The VMamba model, which incorporates the Mamba mechanism into image tasks (such as classification), currently establishes the state-of-the-art (SOTA) on the ImageNet dataset. In this research, we introduce an academically underestimated food dataset CNFOOD-241, and pioneer the integration of a residual learning framework within the VMamba model to concurrently harness both global and local state features inherent in the original VMamba architectural design. The research results show that VMamba surpasses current SOTA models in fine-grained and food classification. The proposed Res-VMamba further improves the classification accuracy to 79.54\% without pretrained weight. Our findings elucidate that our proposed methodology establishes a new benchmark for SOTA performance in food recognition on the CNFOOD-241 dataset. The code can be obtained on GitHub: https://github.com/ChiShengChen/ResVMamba.
Motivation & Objective
- Motivate fine-grained food classification as a challenging FGVC task with high intra-class variation and low inter-class variation.
- Propose Res-VMamba, a residual-augmented VMamba model that shares global and local state features for improved accuracy.
- Evaluate on CNFOOD-241 to establish new SOTA benchmarks for food recognition without pretrained weights.
Proposed method
- Introduce a residual learning mechanism into VMamba to form Res-VMamba with a global-residual pathway that blends raw input with VSS block features.
- Detail the State Space Model (SSM) framework and its discretization for deep learning, including A, B, C, D matrices and zeroth-order hold approximation.
- Describe the 2D Selective Scan Mechanism (S6) and Cross-Scan Module (CSM) that enable multi-directional patch sequencing and global-local feature integration.
- Explain the VMamba backbone architecture with hierarchical stages (4 stages) and down-sampling via patch merging to mimic multi-scale representations.
- Present the Res-VMamba architecture with global residual connections feeding into four-stage VSS blocks, enabling sharing of global image features with local processing.
- Provide training protocol settings including AdamW, cosine learning rate schedule, label smoothing, EMA, and data handling for CNFOOD-241.
Experimental results
Research questions
- RQ1Can VMamba-based architectures achieve state-of-the-art performance on fine-grained food datasets without pretrained weights?
- RQ2Does incorporating a global residual mechanism improve fine-grained food classification when used with VMamba?
- RQ3How does Res-VMamba compare to other SOTA models on CNFOOD-241 in terms of top-1 and top-5 accuracy?
- RQ4What is the impact of dataset characteristics (uniform image size, imbalance) on model performance in CNFOOD-241?
Key findings
- Res-VMamba achieves 78.26% top-1 test accuracy on CNFOOD-241 without pretrained weights.
- VMamba-S with pretrained weights achieves 80.58% top-1 test accuracy, while Res-VMamba without pretrained weights reaches 78.26% top-1 test accuracy, indicating strong performance without pretraining.
- Res-VMamba improves upon VMamba-S without pretrained weights by 0.53% in top-1 accuracy.
- On CNFOOD-241, VMamba-S with ImageNet-1K pretrained weights attains top-1 test accuracy of 80.58%, and VMamba-S with pretraining outperforms several baselines.
- Compared with multiple baselines, Res-VMamba (ours) ranks competitively among SOTA methods and demonstrates improvement over VMamba without pretraining.
- The CNFOOD-241 dataset’s high resolution and imbalance present a challenging benchmark, with Res-VMamba establishing a new performance benchmark for food recognition.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.