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

Edwin Arkel Rios, Jansen Christopher Yuanda, Vincent Leon Ghanz, Cheng-Wei Yu, Bo-Cheng Lai +1 more
12/31/2024
cs.CV

Official code: arkel23/CLCA (3 stars, MIT, last commit 2025-02-07).

Abstract

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}

View on arXivView PDF

Code Implementations(1)

arkel23/CLCAOfficial100%
MIT

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

31PythonDec 26, 20241 years agoMIT

Similar Papers

Cite this paper

@article{rios2024crosslayer,
  title  = {Cross-Layer Cache Aggregation for Token Reduction in Ultra-Fine-Grained Image Recognition},
  author = {Edwin Arkel Rios and Jansen Christopher Yuanda and Vincent Leon Ghanz and Cheng-Wei Yu and Bo-Cheng Lai and Min-Chun Hu},
  year   = {2024},
  eprint = {2501.00243},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.00243v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.00243.svg)](https://codeofpaper.com/paper/2501.00243)

Discussion