A Soft-Hard Collaborative CNN Inference Acceleration System Based on NP Cores of DPU
With the continuous expansion of network scale, data centers are increasingly adopting Dedicated Processing Units (DPU) to offload network tasks. However, AI deep learning tasks heavily burden the host, and such computation-intensive tasks struggle on the DPU due to limited storage and constrained computing capabilities. To address this issue, Our research focuses on the NP multi-cores architecture of DPU and innovatively leverages these micro-cores, originally intended for network packet forwarding, to deploy AI neural network inference on the DPU, achieving the first full offloading of convolutional neural network inference tasks to the NP cores of the DPU. We propose an AI inference acceleration system based on soft-hard collaboration, which innovatively proposes model format self-adjustment, block sliding memory access algorithm, and multi-core parallel pipeline scheduling strategy by combining hardware characteristics. Based on these methods, we have successfully implemented a complete CNN inference process for network anomaly traffic detection and ransomware detection scenarios on Huawei DPU chips. The system can perform CNN inference on NP cores with only 2kB of running memory, effectively reducing the peak runtime memory by up to 70%, and flexibly scheduling through the deployment of integer computation paths and soft floating-point computation paths. Compared to the direct offloading method, this system achieves 17–22x acceleration on the NP cores of the DPU, even if the performance of the NP cores is only one tenth of that of the CPU in the host, it can still achieve inference latency comparable to that of the host.
Authors
- Wenjie Feng (ORCID: https://orcid.org/0000-0003-0360-9412)
- Renhai Chen (ORCID: https://orcid.org/0000-0002-0233-5838)
- Xin Yao (ORCID: https://orcid.org/0000-0002-5780-7900)
- Gong Zhang (ORCID: https://orcid.org/0000-0003-0283-7050)
- Shicheng Li (ORCID: https://orcid.org/0000-0002-5239-6559)
Institutions
- Huawei Technologies (China) (CN)
- South China University of Technology (CN)
Publication Details
- Published
- 2024-12-13
- DOI
- https://doi.org/10.1109/icess64277.2024.00012
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00