Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2026, Vol. 52 ›› Issue (9): 365-375. doi: 10.19678/j.issn.1000-3428.0260413

• High-Performance Computing and Big Data • Previous Articles     Next Articles

Operator-level Reconstruction Method of YOLOv11 for Ascend NPU

XIE Jingyuan1, ZHA Kaiwen2, LIU Pengju3, TIAN Chunwei4,*()   

  1. 1. School of Software, Northwestern Polytechnical University, Xi'an 710072, Shaanxi, China
    2. Shenzhen University WeBank Institute of FinTech, Shenzhen 518060, Guangdong, China
    3. Young Scientists Innovation Center, Zhengzhou Advanced Research Institute, Harbin Institute of Technology, Zhengzhou 450000, Henan, China
    4. School of Computer Science and Technology, Harbin Institute of Technology, Harbin 150001, Heilongjiang, China
  • Received:2026-03-31 Revised:2026-05-27 Online:2026-09-15 Published:2026-07-22
  • Contact: TIAN Chunwei

面向昇腾NPU的YOLOv11算子级重构方法

谢静远1, 查凯文2, 刘鹏举3, 田春伟4,*()   

  1. 1. 西北工业大学软件学院, 陕西 西安 710072
    2. 深圳大学微众金融科技学院, 广东 深圳 518060
    3. 哈尔滨工业大学郑州高等研究院青年科学家创新中心, 河南 郑州 450000
    4. 哈尔滨工业大学计算机科学与技术学院, 黑龙江 哈尔滨 150001
  • 通讯作者: 田春伟
  • 作者简介:

    谢静远, 男, 硕士研究生, 主研方向为图像识别、算子优化

    查凯文, 本科生

    刘鹏举, 助理研究员

    田春伟(通信作者), 教授

  • 基金资助:
    中国人工智能学会-昇腾CANN学术基金; 国家自然科学基金面上项目(62576123); 黑龙江省自然科学基金青年项目(B类)(YQ2025F003); 河南省科技攻关计划(262102211043)

Abstract:

This paper studies operator-level reconstruction for the structural mismatch between YOLOv11 and Ascend Neural Processing Unit (NPU). The Spatial Pyramid Pooling-Fast (SPPF), C3K2, and C2PSA modules are optimized without changing network semantics or model scale. Three Ascend C operators are designed: the SPPF operator uses on-chip data loop and halo cache to reduce redundant global-memory traffic in multi-stage pooling; the C3K2 operator integrates multi-core task assignment and multi-queue asynchronous pipelining to reduce fine-grained kernel launch overhead; and the C2PSA operator reconstructs attention communication through a parallel reduction-broadcast primitive. On an Ascend 910B NPU, the complete reconstruction reduces the training time per epoch by 23.2% and improves the training throughput by 27.6% on the COCO dataset. The results show that matching Ascend on-chip memory, asynchronous queues, and multi-core synchronization mechanisms improves the training execution efficiency of key YOLOv11 modules and keeps inference performance stable. It can provide verifiable operator mapping schemes for the deployment of complex object detection networks on the Ascend platform.

Key words: YOLO optimization, Ascend Neural Processing Unit (NPU), operator-level reconstruction, Ascend C, framework adaptation

摘要:

针对YOLOv11的快速空间金字塔池化(SPPF)、C3K2与C2PSA模块在昇腾神经网络处理器(NPU)上存在的冗余访存、细粒度核函数启动和多分支同步通信瓶颈, 本文研究一种不改变网络语义和参数规模的算子级重构方法。基于Ascend C设计3类硬件友好融合算子: SPPF采用片上数据闭环与边界缓存减少多级池化的全局内存往返; C3K2采用多核任务分配和多队列异步流水线降低细粒度算子串行开销; C2PSA采用并行归约-广播机制重构注意力分支间通信。在Ascend 910B NPU上, 完整重构后COCO数据集上单轮训练时间缩短23.2%, 训练吞吐量提升27.6%。实验结果表明, 所提方法通过适配昇腾片上存储、异步队列和多核同步机制, 提高了YOLOv11关键模块的训练执行效率, 并保持推理性能稳定, 可为复杂目标检测网络在昇腾平台上的部署提供可复核的算子映射方案。

关键词: YOLO优化, 昇腾神经网络处理器, 算子级重构, Ascend C, 框架适配