A lightweight mechanism for vision-transformer-based object detection

Abstract DETR (DEtection TRansformer) is a CV model for object detection that replaces traditional complex methods with a Transformer architecture, and has achieved significant improvement over previous methods, particularly in handling small and medium-sized objects. However, the attention mechanism-based detection framework of DETR exhibits limitations in small and medium-sized object detection. It struggles to extract fine-grained details of small and medium-sized objects from low-resolution features, and its computational complexity increases significantly with the input scale, thereby constraining real-time detection efficiency. To address these limitations, we introduce the Cross Feature Attention (XFA) mechanism and propose XFCOS (XFA-based with FCOS), a novel object detection model built upon it. XFA simplifies the attention mechanism’s computational process and reduces complexity through L2 normalization and two one-dimensional convolutions applied in different directions. This design reduces the computational complexity from quadratic to linear while preserving spatial context awareness. XFCOS enhances the original TSP-FCOS (Transformer-based Set Prediction with FCOS) model by integrating XFA into the transformer encoder, creating a CNN-ViT hybrid architecture, significantly reducing computational costs without sacrificing accuracy. Extensive experiments demonstrate that XFCOS achieves state-of-the-art performance while addressing DETR’s convergence and efficiency limitations. On Pascal VOC 2007, XFCOS attains 54.7 AP and 60.7 AP $$_\textrm{75}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>75</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> - surpassing DETR by 4.5 AP and 7.9 AP $$_\textrm{75}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>75</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> respectively, establishing new benchmarks among ResNet-50-based detectors. The model shows particular strength in small object detection, achieving 24.0 AP $$_\textrm{S}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>S</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> and 43.9 AP $$_\textrm{M}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>M</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> on COCO 2017, representing 3.3 AP $$_\textrm{S}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>S</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> and 3.8 AP $$_{\textrm{M}}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>M</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> improvements over DETR. Through computational optimization, XFCOS reduces encoder FLOPs to 13.5G, representing a 17.2% decrease compared to TSP-FCOS’s 16.3G, while cutting activation memory from 285.78 to 264.64M, a reduction of 7.4%. This significantly enhances computational efficiency.

Authors

Institutions

Publication Details

Journal
Complex & Intelligent Systems
Published
2025-05-22
DOI
https://doi.org/10.1007/s40747-025-01904-x
Citations
4
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
5.10

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A lightweight mechanism for vision-transformer-based object detection

Dongjing Wang, Yanming Ye, Kwang‐Ting Cheng, Xingfa Shen et al.
4 citations
Complex & Intelligent Systems
Advanced Neural Network Applications
5.10
article

A lightweight mechanism for vision-transformer-based object detection

Dongjing Wang, Yanming Ye, Kwang‐Ting Cheng, Xingfa Shen, Qiang Sun
article en
4 citations

Abstract

Abstract DETR (DEtection TRansformer) is a CV model for object detection that replaces traditional complex methods with a Transformer architecture, and has achieved significant improvement over previous methods, particularly in handling small and medium-sized objects. However, the attention mechanism-based detection framework of DETR exhibits limitations in small and medium-sized object detection. It struggles to extract fine-grained details of small and medium-sized objects from low-resolution features, and its computational complexity increases significantly with the input scale, thereby constraining real-time detection efficiency. To address these limitations, we introduce the Cross Feature Attention (XFA) mechanism and propose XFCOS (XFA-based with FCOS), a novel object detection model built upon it. XFA simplifies the attention mechanism’s computational process and reduces complexity through L2 normalization and two one-dimensional convolutions applied in different directions. This design reduces the computational complexity from quadratic to linear while preserving spatial context awareness. XFCOS enhances the original TSP-FCOS (Transformer-based Set Prediction with FCOS) model by integrating XFA into the transformer encoder, creating a CNN-ViT hybrid architecture, significantly reducing computational costs without sacrificing accuracy. Extensive experiments demonstrate that XFCOS achieves state-of-the-art performance while addressing DETR’s convergence and efficiency limitations. On Pascal VOC 2007, XFCOS attains 54.7 AP and 60.7 AP $$_\textrm{75}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>75</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> - surpassing DETR by 4.5 AP and 7.9 AP $$_\textrm{75}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>75</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> respectively, establishing new benchmarks among ResNet-50-based detectors. The model shows particular strength in small object detection, achieving 24.0 AP $$_\textrm{S}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>S</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> and 43.9 AP $$_\textrm{M}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>M</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> on COCO 2017, representing 3.3 AP $$_\textrm{S}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>S</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> and 3.8 AP $$_{\textrm{M}}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mmultiscripts> <mml:mrow/> <mml:mtext>M</mml:mtext> <mml:mrow/> </mml:mmultiscripts> </mml:math> improvements over DETR. Through computational optimization, XFCOS reduces encoder FLOPs to 13.5G, representing a 17.2% decrease compared to TSP-FCOS’s 16.3G, while cutting activation memory from 285.78 to 264.64M, a reduction of 7.4%. This significantly enhances computational efficiency.

Complex & Intelligent SystemsVol. 11(7)
Hangzhou Dianzi University (CN)
Innovative Research Group Project of the National Natural Science Foundation of China, National Natural Science Foundation of China
Openalex Percentile: Top 5%
Advanced Neural Network Applications
5.10
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.