arXiv · 2609.16009
Vectorization Of Narrow Matrix Multiplication for Ascend AI Inference Acceleration
Abstract
This research proposes and evaluates a novel approach to optimizing matrix multiplication (MatMul) on Huawei Ascend NPUs, motivated by a key insight: during matrix-vector multiplication (narrow MatMul), the Cube Unit (AIC) is often underutilized, while the Vector Unit (AIV) remains idle for most of the operator runtime. In this paper, we introduce the MatMul algorithm, which uses vector instructions of AscendC to effectively offload computations from the Cube Unit to the Vector Unit. The algorithm was tested and applied to accelerating the inference of MLA DeepSeek-V3 operator. By successfully overlapping AIV and AIC computations, our optimization showed a mean performance gain of 20% for a single token processing scenario. Our work addresses a significant gap in the literature on practical optimization techniques for AscendC, despite the availability of documentation and the active CANN community.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Anton Shurygin, Aleksandr Frolov. 2026-08-03. Vectorization Of Narrow Matrix Multiplication for Ascend AI Inference Acceleration. https://doi.org/10.1109/cloudcom67567.2025.11331396
Cite the original work for its findings. Save a collection to share your selection of sources.