MHAF-YOLO: Multi-Branch Heterogeneous Auxiliary Fusion YOLO for accurate object detection

Zhiqiang Yang, Qiu Guan, Zhongwen Yu, Xinli Xu, Haixia Long +3 more
2/7/2025
cs.CV

Official code: yang-0201/MHAF-YOLO (102 stars, AGPL-3.0, last commit 2025-11-05). 1 more implementation below.

Abstract

Due to the effective multi-scale feature fusion capabilities of the Path Aggregation FPN (PAFPN), it has become a widely adopted component in YOLO-based detectors. However, PAFPN struggles to integrate high-level semantic cues with low-level spatial details, limiting its performance in real-world applications, especially with significant scale variations. In this paper, we propose MHAF-YOLO, a novel detection framework featuring a versatile neck design called the Multi-Branch Auxiliary FPN (MAFPN), which consists of two key modules: the Superficial Assisted Fusion (SAF) and Advanced Assisted Fusion (AAF). The SAF bridges the backbone and the neck by fusing shallow features, effectively transferring crucial low-level spatial information with high fidelity. Meanwhile, the AAF integrates multi-scale feature information at deeper neck layers, delivering richer gradient information to the output layer and further enhancing the model learning capacity. To complement MAFPN, we introduce the Global Heterogeneous Flexible Kernel Selection (GHFKS) mechanism and the Reparameterized Heterogeneous Multi-Scale (RepHMS) module to enhance feature fusion. RepHMS is globally integrated into the network, utilizing GHFKS to select larger convolutional kernels for various feature layers, expanding the vertical receptive field and capturing contextual information across spatial hierarchies. Locally, it optimizes convolution by processing both large and small kernels within the same layer, broadening the lateral receptive field and preserving crucial details for detecting smaller targets. The source code of this work is available at: https://github.com/yang-0201/MHAF-YOLO.

View on arXivView PDF

Code Implementations(2)

AGPL-3.0

MHAF-YOLO: Multi-Branch Heterogeneous Auxiliary Fusion YOLO for accurate object detection

10217Shell, PythonNov 11, 202411 months agoAGPL-3.0
Aco-Hub/MHAF-YOLOCommunity62%
AGPL-3.0

MHAF-YOLO: Multi-Branch Heterogeneous Auxiliary Fusion YOLO for accurate object detection

00Shell, PythonMay 31, 20251 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{yang2025mhafyolo,
  title  = {MHAF-YOLO: Multi-Branch Heterogeneous Auxiliary Fusion YOLO for accurate object detection},
  author = {Zhiqiang Yang and Qiu Guan and Zhongwen Yu and Xinli Xu and Haixia Long and Sheng Lian and Haigen Hu and Ying Tang},
  year   = {2025},
  eprint = {2502.04656},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04656v2}
}

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

Discussion