Introduction
In modern object detection, the "head" is the critical component responsible for two primary tasks: classification (identifying the object) and localization (bounding box regression). Most contemporary detectors rely on a "parallel head" design, which utilizes two isolated stacks of convolutions. However, research suggests this standard approach suffers from three primary perceptual limitations: a lack of deformation modeling, restricted global context, and misalignment between the classification and localization tasks.
The UniHead Architecture
UniHead is a "plug-and-play" detection head designed to bridge these gaps by unifying three distinct perceptual abilities: deformation, global context, and cross-task interaction.
1. Deformation Perception (DP)
Standard convolutions operate on fixed grids, which are ill-suited for objects with irregular shapes or geometric variations. UniHead replaces these with Deformable Convolutions (DConv), allowing the network to adaptively sample pixels from the input feature map based on the object's actual geometry rather than a rigid 3x3 grid.
2. Global Perception (GP)
To capture long-range dependencies without the quadratic computational cost of standard Transformers, UniHead introduces the Dual-axial Aggregation Transformer (DAT). DAT performs attention along horizontal and vertical axes independently in a channel-compressed space. This is supplemented by a Cross-axis Aggregation Block (CAB) to ensure that local spatial details are not lost during the global aggregation process.
3. Cross-Task Perception (CTP)
To resolve task misalignment—where a model might assign high confidence to a poorly localized box—the Cross-task Interaction Transformer (CIT) facilitates communication between the branches. By using channel-wise cross-attention, the classification and localization branches "check each other's work," ensuring consistent predictions across both tasks.
Experimental Results
The researchers evaluated UniHead on the MS-COCO 2017 and PASCAL VOC datasets across various backbones, including ResNet and Swin Transformer.
UniHead consistently outperformed baseline parallel heads across multiple frameworks, as shown in the performance comparison above:
- RetinaNet: Improved by +2.7 AP (from 36.5 to 39.2).
- FreeAnchor: Improved by +2.9 AP (from 38.7 to 41.6).
- GFL: Improved by +2.1 AP (from 40.2 to 42.3).
When integrated with a Swin-B backbone, UniHead achieved a state-of-the-art 54.3 AP on COCO test-dev. Notably, these performance boosts were often achieved while actually reducing the total number of parameters and FLOPs compared to the baseline parallel heads.
Conclusion
UniHead demonstrates that unifying different types of perception—deformation, global context, and cross-task interaction—is more effective than simply stacking more layers of a single type. While the model shows significant promise as a universal replacement for detection heads, it still faces challenges in scenarios involving heavy occlusion. Future research will likely focus on enhancing interaction mechanisms to better handle concealed objects and further refine task alignment.
Summary updated