HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Nguyen Huu Bao Long Chenyu Zhang Yuzhi Shi Tsubasa Hirakawa Takayoshi Yamashita Tohgoroh Matsui Hironobu Fujiyoshi

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

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}

Code Repositories

maclong01/DeBiFormer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-imagenetDeBiFormer-S
Top 1 Accuracy: 83.9%
image-classification-on-imagenetDeBiFormer-B
Top 1 Accuracy: 84.4%
image-classification-on-imagenetDeBiFormer-T
Top 1 Accuracy: 81.9%
object-detection-on-coco-2017DeBiFormer-B (IN1k pretrain, MaskRCNN 12ep)
mAP: 48.5
object-detection-on-coco-2017DeBiFormer-S (IN1k pretrain, MaskRCNN 12ep)
mAP: 47.5
object-detection-on-coco-2017DeBiFormer-B (IN1k pretrain, Retina)
mAP: 47.1
object-detection-on-coco-2017DeBiFormer-S (IN1k pretrain, Retina)
mAP: 45.6
semantic-segmentation-on-ade20kDeBiFormer-B (IN1k pretrain, Upernet 160k)
Validation mIoU: 52.0

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp