Edge devices running fine-grained image classification can now use AMS-Net to separate visually similar categories without exceeding strict computational limits, Nature reported.
Lightweight backbones typically capture image-wide context only indirectly through depth, trading recognition accuracy for deployment feasibility. To supply this context at negligible cost, Nature reported that AMS-Net inserts three reduced non-local modules called LSSAM into an ImageNet-pretrained MobileNetV3-Small.
Pooled keys and values alongside a reduced channel width make each module 29 to 38 times cheaper than standard spatial self-attention. ResearchSquare said that the module achieves a 1/4096 computational complexity reduction relative to standard self-attention through channel reduction at r=16, spatial downsampling at s=2, and grouped attention at G=8.
By assigning a single channel to each attention group, the unit executes an adaptable, image-wide combination driven by query-specific sharpness. On the eight-class Flowers-WTT dataset across three training runs, LSSAM raises test accuracy from 94.84 ± 0.28% to 97.63 ± 0.20% with a McNemar p-value under 0.001 in every run, requiring 0.39% more parameters and 0.67% more FLOPs, Nature reported.
| Model / Component | Accuracy | Parameters | FLOPs / Efficiency |
|---|---|---|---|
| AMS-Net (Flowers-WTT) | 97.58% | 1.53M | 0.124 GFLOPs |
| AMS-Net (Gradual Unfreezing) | 97.71 ± 0.20% | – | Best validation epoch 36% sooner |
| AMS-Net vs VGG-16 | Outperforms | 1/88 or 1/90 | – |
ResearchSquare reported that AMS-Net attains 97.58% classification accuracy with 1.53M parameters, 0.124 GFLOPs, and 0.0168s per-image inference latency, which equals approximately 60 frames per second. Nature said that the framework equals the performance of the full self-attention layer while using only 1/31 of its extra FLOPs, and consistently beats CBAM, ECA, a standard convolutional block, and a global-context block when placed in identical locations across every trial.
According to Nature, AMS-Net achieves the same level of accuracy as RepViT-M0.9 and EdgeNeXt-XXS while requiring 14.1x and 3.4x fewer FLOPs, and beats VGG-16 despite using only 1/88 of its parameter count. ResearchSquare added that cross-dataset validation on Oxford-17 achieves 94.0% accuracy, surpassing VGG-16 with 90 times fewer parameters.
Gradual unfreezing reaches the best validation epoch 36% sooner at an equal accuracy of 97.71 ± 0.20%, Nature reported, while ResearchSquare said that this dynamic transfer learning strategy reduces training time by 35.4%. On Oxford-17, AMS-Net improves on MobileNetV3-Small by 11 to 13 test images on each of the three official splits.
The network runs at 80.9 frames per second on a Jetson Nano with TensorRT and at 26.5 frames per second on a Raspberry Pi 4B after static INT8 quantisation. ResearchSquare said that these proposed techniques generalize to other fine-grained visual recognition tasks, enabling practical multimedia applications in smart agriculture, ecological monitoring, and botanical education.
Keep reading