DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attention

Nguyen Huu Bao Long, Chenyu Zhang, Yuzhi Shi, Tsubasa Hirakawa, Takayoshi Yamashita +2 more
10/11/2024
cs.CV

Official code: maclong01/DeBiFormer (33 stars, Apache-2.0, last commit 2025-01-08).

Abstract

Vision Transformers with various attention modules have demonstrated superior performance on vision tasks. While using sparsity-adaptive attention, such as in DAT, has yielded strong results in image classification, the key-value pairs selected by deformable points lack semantic relevance when fine-tuning for semantic segmentation tasks. The query-aware sparsity attention in BiFormer seeks to focus each query on top-k routed regions. However, during attention calculation, the selected key-value pairs are influenced by too many irrelevant queries, reducing attention on the more important ones. To address these issues, we propose the Deformable Bi-level Routing Attention (DBRA) module, which optimizes the selection of key-value pairs using agent queries and enhances the interpretability of queries in attention maps. Based on this, we introduce the Deformable Bi-level Routing Attention Transformer (DeBiFormer), a novel general-purpose vision transformer built with the DBRA module. DeBiFormer has been validated on various computer vision tasks, including image classification, object detection, and semantic segmentation, providing strong evidence of its effectiveness.Code is available at {https://github.com/maclong01/DeBiFormer}

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACCV 2024 ] Official code for "DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attention"

332Shell, PythonMar 6, 20241 years agoApache-2.0
attention-mechanismdeep-learningdetectionimageimage-classification+1 more

Similar Papers

Cite this paper

@article{long2024debiformer,
  title  = {DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attention},
  author = {Nguyen Huu Bao Long and Chenyu Zhang and Yuzhi Shi and Tsubasa Hirakawa and Takayoshi Yamashita and Tohgoroh Matsui and Hironobu Fujiyoshi},
  year   = {2024},
  eprint = {2410.08582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.08582v1}
}

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/2410.08582.svg)](https://codeofpaper.com/paper/2410.08582)

Discussion