Hyneter: Hybrid Network Transformer for Object Detection

Dong Chen, Duoqian Miao, Xue Rong Zhao · DOI

Abstract

Hyneter (Hybrid Network Transformer) is a novel architecture designed to bridge the performance gap between Convolutional Neural Networks (CNNs) and Transformers in object detection. By integrating convolution layers directly into Transformer blocks and introducing a "Dual Switching" module, Hyneter achieves state-of-the-art results on benchmarks like COCO and Visdrone. It specifically excels at detecting small objects while maintaining high computational efficiency compared to large-scale Transformer models.

Introduction

In computer vision, CNNs and Transformers offer complementary strengths. CNNs excel at capturing local information, such as fine-grained textures and edges, making them highly effective for small object detection. However, they often lack a comprehensive understanding of global context. Conversely, Transformers utilize self-attention to model global dependencies but frequently overlook local details, leading to degraded performance on smaller objects.

Existing hybrid models typically employ a sequential strategy—using CNNs for early feature extraction followed by Transformers. The authors of Hyneter argue that this creates a "gap" in feature propagation. They observed that Transformers often rely excessively on global context, leading to "pseudo-labels" where objects are misclassified based on their surroundings rather than their intrinsic features.

Methodology

Hyneter introduces two primary architectural innovations to fuse local and global processing:

  1. Hybrid Network Backbone (HNB): Unlike traditional hybrid models, HNB embeds convolution layers directly within Transformer blocks. This allows the simultaneous extraction and transfer of local and global information throughout all network stages.
  2. Dual Switching (DS) Module: Applied in the later stages, the DS module maintains local patch information while preventing over-reliance on irrelevant global dependencies. It utilizes a "solo-switching" technique that interlaces adjacent rows and columns in the feature map to establish efficient cross-window connections.

The architecture is available in three scales: Hyneter 1.0 (base), Hyneter Plus, and Hyneter Max.

Key Insights: The Restructured Object Experiment

A pivotal insight of this research stems from a "Restructured Object" experiment. The authors scrambled images of humans to resemble the global structure of other animals, such as horses or cows.

Figure 1: Restructured objects used to test model sensitivity to global vs. local features.

The results demonstrated that pure Transformers were easily fooled by the global shape, misidentifying the subjects. In contrast, CNNs remained focused on local features. This experiment quantified a "Pseudo Rate"—the frequency of context-based misidentification—and proved that Hyneter successfully lowers this rate by boosting local information processing.

Experimental Results

Hyneter was evaluated on MS COCO 2017, Visdrone-DET2021, and ADE20K.

  • Object Detection (COCO): Hyneter Max achieved 60.1 AP, outperforming established models like ATSS and EfficientDet.
  • Small Object Detection (Visdrone): On the drone-captured Visdrone dataset, Hyneter Max reached 46.1 AP, a significant improvement over previous methods in high-density, small-object scenarios.
  • Efficiency: Hyneter 1.0 (90M parameters) achieved accuracy comparable to the much larger Swin-L (284M parameters) on COCO, using nearly one-third of the parameters.
  • Semantic Segmentation: The model set a new benchmark on ADE20K with a 54.3 mIoU.

Conclusion

Hyneter demonstrates that local and global information propagation should be handled simultaneously rather than sequentially. By retaining spatial awareness through its hybrid backbone and switching modules, it provides a robust solution for challenging detection tasks. Future work may focus on optimizing these modules for real-time edge devices and extending the architecture to video tracking and 3D detection.

Summary updated

BibTeX
@inproceedings{chen2023hyneter,
  author = {Dong Chen and Duoqian Miao and Xue Rong Zhao},
  title = {{Hyneter: Hybrid Network Transformer for Object Detection}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096922},
}
Figure