IDEAS home Printed from https://ideas.repec.org/a/dba/jsppaa/v2y2026i3p80-91.html

A Comparative Analysis of Attention Mechanisms in Vision Transformers for Fine-Grained Image Recognition

Author

Listed:
  • Liu, Muyu
  • Yu, Mingzhuo

Abstract

Fine-grained image recognition demands the ability to distinguish visually similar subcategories by capturing subtle, localized discriminative features. Vision Transformers (ViTs) have emerged as strong contenders in this domain, yet their diverse attention mechanisms yield different inductive biases that remain insufficiently compared under unified conditions. This study presents a controlled empirical evaluation of seven representative attention mechanisms on three fine-grained benchmarks: CUB-200-2011, Stanford Cars, and FGVC Aircraft. All methods are trained with identical preprocessing, augmentation, optimization, and ImageNet-21K pretrained weights at 448×448 resolution. The evaluation spans classification accuracy, computational cost measured through FLOPs, parameter counts, and throughput, as well as attention interpretability quantified through part-localization precision. Results indicate that deformable attention achieves the highest accuracy across all three benchmarks, with a moderate advantage of 1.0--1.5 percentage points over the global self-attention baseline. Window-based and cross-shaped mechanisms offer favorable accuracy-efficiency tradeoffs, while class-attention decoupling improves parameter efficiency without sacrificing competitive accuracy. A strong rank correlation (Spearman ρ = 0.93) between localization precision and classification accuracy supports the interpretation that spatial selectivity is a key driver of fine-grained recognition quality. These findings provide actionable guidance for selecting attention strategies under varying computational budgets.

Suggested Citation

  • Liu, Muyu & Yu, Mingzhuo, 2026. "A Comparative Analysis of Attention Mechanisms in Vision Transformers for Fine-Grained Image Recognition," Journal of Sustainability, Policy, and Practice, Pinnacle Academic Press, vol. 2(3), pages 80-91.
  • Handle: RePEc:dba:jsppaa:v:2:y:2026:i:3:p:80-91
    as

    Download full text from publisher

    File URL: https://pinnaclepubs.com/index.php/JSPP/article/view/728/699
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:dba:jsppaa:v:2:y:2026:i:3:p:80-91. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Joseph Clark (email available below). General contact details of provider: https://pinnaclepubs.com/index.php/JSPP .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.