作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (10): 252-262. doi: 10.19678/j.issn.1000-3428.0252234

• 计算机视觉与图形图像处理 • 上一篇    

轴向注意力与尺度感知的小样本细粒度图像分类

高雄, 苟光磊, 周琳杰, 贾朋昊   

  1. 重庆理工大学计算机科学与工程学院, 重庆 400054
  • 收稿日期:2025-03-14 修回日期:2025-04-29 发布日期:2025-06-20
  • 作者简介:高雄(CCF学生会员),男,硕士研究生,主研方向为度量学习、小样本细粒度分类;苟光磊(通信作者),讲师、博士,E-mail:ggl@cqut.edu.cn;周琳杰、贾朋昊,硕士研究生。
  • 基金资助:
    国家自然科学基金(62141201);重庆市教委科学技术研究项目(KJZD-M202201102)。

Axial Attention and Scale-Awareness for Few-Shot Fine-Grained Image Classification

GAO Xiong, GOU Guanglei, ZHOU Linjie, JIA Penghao   

  1. College of Computer Science and Engineering, Chongqing University of Technology, Chongqing 400054, China
  • Received:2025-03-14 Revised:2025-04-29 Published:2025-06-20

摘要: 在细粒度图像分类(FGIC)任务中,充足的样本能够提供丰富的局部特征信息。然而,在小样本场景下,数据稀疏性导致模型难以充分捕捉具有判别性的局部信息。为解决该问题,提出一种融合轴向注意力与尺度感知机制的小样本学习(FSL)方法。首先,设计频率自适应特征选择(FAFS)模块,旨在减少背景噪声和非目标区域的干扰,突出判别性局部特征,从而扩大不同类别间的特征区分度;其次,构建轴向尺度联合增强模块,融合全局上下文信息,关注关键区域,并行处理不同感受野的特征,增强模型对不同尺度细节的表征能力;最后,采用双相似度度量模块,通过2种相似度度量方式指导学习,提升特征的泛化性,减少特定特征的偏向性。在公开数据集CUB和Stanford Dog上,相较基准方法,该方法在1-shot和5-shot场景下的分类准确率分别提升1.4、1.45百分点和1.86、3.49百分点。在Stanford Car数据集上,在1-shot场景下该方法达到最优性能,在5-shot场景下也取得了具有竞争力的结果。实验结果表明,所提方法有效提升了小样本细粒度图像分类(FSFGIC)的性能,能够更好地捕捉判别性特征信息。

关键词: 小样本学习, 细粒度图像分类, 轴向注意力, 尺度感知机制, 度量学习

Abstract: In Fine-Grained Image Classification (FGIC) tasks, a sufficient number of samples can provide rich local feature information. However, in few-shot scenarios, data sparsity makes it difficult for models to fully capture discriminative local information. To address this problem, a Few-Shot Learning (FSL) method integrating axial attention and scale-aware mechanisms is proposed. First, a Frequency-Adaptive Feature Selection (FAFS) module is designed to reduce background noise and interference from nontarget regions, highlight discriminative local features, and thereby increase feature separability among different categories. Second, an axial-scale joint enhancement module is constructed to fuse global contextual information, focus on key regions, process features with different receptive fields in parallel, and enhance the representation capability of the model for details at various scales. Finally, a dual-similarity metric module is adopted, which guides learning through two similarity metric methods to improve feature generalization and reduce bias toward specific features. On public datasets CUB and Stanford Dog, compared with the baseline method, the proposed method improves the classification accuracy by 1.4 and 1.45 percentage points under 1-shot and 5-shot settings, respectively, and by 1.86 and 3.49 percentage points on the other dataset. On the Stanford Car dataset, the proposed method achieves the best performance under the 1-shot setting and obtains competitive results under the 5-shot setting. Experimental results demonstrate that the proposed method effectively improves the performance of Few-Shot Fine-Grained Image Classification (FSFGIC) and is capable of better capturing discriminative feature information.

Key words: Few-Shot Learning(FSL), Fine-Grained Image Classification (FGIC), axial attention, scale-aware mechanism, measurement learning

中图分类号: