arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00243cs.CV
收藏

用于超细粒度图像识别中令牌缩减的跨层缓存聚合

Cross-Layer Cache Aggregation for Token Reduction in Ultra-Fine-Grained Image Recognition

National Yang Ming Chiao Tung University(国立阳明交通大学);National Tsing Hua University(国立清华大学)

Edwin Arkel Rios, Jansen Christopher Yuanda, Vincent Leon Ghanz, Cheng-Wei Yu, Bo-Cheng Lai, Min-Chun Hu

AI总结:

本文针对超细粒度图像识别中令牌缩减导致的信息丢失问题,提出跨层聚合分类头与跨层缓存机制,在极低令牌保留率下保持高精度并降低计算成本。

摘要:

超细粒度图像识别(UFGIR)是一项具有挑战性的任务,涉及对宏观类别内的图像进行分类。传统的细粒度图像识别(FGIR)处理的是对不同物种进行分类,而UFGIR则更进一步,对某一物种内部的子类别进行分类,例如一种植物的不同栽培品种。近年来,基于Vision Transformer骨干网络的使用使得方法能够在该任务上取得出色的识别性能,但这也带来了显著的计算成本,尤其是因为该任务显著受益于引入更高分辨率的图像。因此,诸如令牌缩减(token reduction)之类的技术应运而生,以降低计算成本。然而,丢弃令牌会导致细粒度类别关键信息的丢失,尤其是在令牌保留率降低时更为明显。因此,为了抵消使用令牌缩减所带来的信息损失,我们提出了一种新颖的跨层聚合分类头(Cross-Layer Aggregation Classification Head)和一种跨层缓存机制(Cross-Layer Cache),用于在后续位置恢复和访问来自先前层的信息。涵盖2000多次运行的广泛实验,涉及多种设置,包括5个数据集、9个骨干网络、7种令牌缩减方法、5种保留率和2种图像尺寸,证明了所提出的即插即用模块的有效性,并使我们能够通过将保留令牌减少到低至10%的极低比例,同时保持与最先进模型相当的准确率,从而推动UFGIR在准确率与成本之间的边界。代码可在以下地址获取:\url{https://github.com/arkel23/CLCA}

英文摘要:

Ultra-fine-grained image recognition (UFGIR) is a challenging task that involves classifying images within a macro-category. While traditional FGIR deals with classifying different species, UFGIR goes beyond by classifying sub-categories within a species such as cultivars of a plant. In recent times the usage of Vision Transformer-based backbones has allowed methods to obtain outstanding recognition performances in this task but this comes at a significant cost in terms of computation specially since this task significantly benefits from incorporating higher resolution images. Therefore, techniques such as token reduction have emerged to reduce the computational cost. However, dropping tokens leads to loss of essential information for fine-grained categories, specially as the token keep rate is reduced. Therefore, to counteract the loss of information brought by the usage of token reduction we propose a novel Cross-Layer Aggregation Classification Head and a Cross-Layer Cache mechanism to recover and access information from previous layers in later locations. Extensive experiments covering more than 2000 runs across diverse settings including 5 datasets, 9 backbones, 7 token reduction methods, 5 keep rates, and 2 image sizes demonstrate the effectiveness of the proposed plug-and-play modules and allow us to push the boundaries of accuracy vs cost for UFGIR by reducing the kept tokens to extremely low ratios of up to 10\% while maintaining a competitive accuracy to state-of-the-art models. Code is available at: \url{https://github.com/arkel23/CLCA}

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

↑