arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.11995cs.CVcs.AI
收藏

Fraesormer:学习用于高效食物识别的自适应稀疏 Transformer

Fraesormer: Learning Adaptive Sparse Transformer for Efficient Food Recognition

Nanjing Agricultural University(南京农业大学);Xiangtan University(湘潭大学);Nanjing University(南京大学);Northeast Forestry University(东北林业大学);Beijing Information Science and Technology University(北京信息科技大学);Nanjing University of Posts and Telecommunications(南京邮电大学)

Shun Zou, Yi Zou, Mingya Zhang, Shipeng Luo, Zhihao Chen, Guangwei Gao

AI总结:

针对食物识别中 Transformer 计算冗余、静态单尺度建模的问题,提出 Fraesormer,通过自适应稀疏注意力与层级门控多尺度网络提升效率和识别性能。

摘要:

近年来,Transformer 在食物识别领域取得了显著进展。然而,在轻量化食物识别中,大多数现有方法仍面临两个关键挑战:(1)由与不相关 token 的交互所导致的二次复杂度和冗余特征表示;(2)静态特征识别和单尺度表示忽视了食物图像非结构化、非固定的特性以及对多尺度特征的需求。为解决这些问题,我们提出一种自适应且高效的稀疏 Transformer 架构(Fraesormer),其包含两个核心设计:自适应 Top-k 稀疏部分注意力(ATK-SPA)和层级尺度敏感特征门控网络(HSSFGN)。ATK-SPA 使用可学习的门控动态 Top-K 算子(GDTKO)保留关键注意力分数,过滤阻碍特征聚合的低查询-键匹配;它还引入部分通道机制以减少冗余并促进专家信息流,从而实现局部-全局协同建模。HSSFGN 采用门控机制实现多尺度特征表示,增强上下文语义信息。大量实验表明,Fraesormer 的表现优于最先进方法。代码可在 https://zs1314.github.io/Fraesormer 获取。

英文摘要:

In recent years, Transformer has witnessed significant progress in food recognition. However, most existing approaches still face two critical challenges in lightweight food recognition: (1) the quadratic complexity and redundant feature representation from interactions with irrelevant tokens; (2) static feature recognition and single-scale representation, which overlook the unstructured, non-fixed nature of food images and the need for multi-scale features. To address these, we propose an adaptive and efficient sparse Transformer architecture (Fraesormer) with two core designs: Adaptive Top-k Sparse Partial Attention (ATK-SPA) and Hierarchical Scale-Sensitive Feature Gating Network (HSSFGN). ATK-SPA uses a learnable Gated Dynamic Top-K Operator (GDTKO) to retain critical attention scores, filtering low query-key matches that hinder feature aggregation. It also introduces a partial channel mechanism to reduce redundancy and promote expert information flow, enabling local-global collaborative modeling. HSSFGN employs gating mechanism to achieve multi-scale feature representation, enhancing contextual semantic information. Extensive experiments show that Fraesormer outperforms state-of-the-art methods. code is available at https://zs1314.github.io/Fraesormer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑