English

ENEC: A Lossless AI Model Compression Method Enabling Fast Inference on Ascend NPUs

Hardware Architecture 2026-04-08 v2 Distributed, Parallel, and Cluster Computing Machine Learning

Abstract

The rapid scaling of Large Language Models presents significant challenges for their deployment and inference, particularly on resource-constrained specialized AI hardware accelerators such as Huawei's Ascend NPUs, where weight data transfer has become a critical performance bottleneck. While lossless compression can preserve model accuracy and reduce data volume, existing lossless compression algorithms exhibit extremely low throughput when ported to the Ascend NPU architecture. In this paper, we propose ENEC, a novel lossless compression method specifically customized for AI model weights and optimized for Ascend Neural Processing Units. ENEC adopts a block-based fixed-length encoding scheme and incorporates a series of NPU-specific optimizations: bit-width quantization with hierarchical halving bit-packing, vectorized branch-free integer transformation, and dependency-decoupled intra-segment scan for efficient prefix-sum computation. Experimental results demonstrate that ENEC outperforms existing state-of-the-art NPU compressors in both compression ratio and throughput. Compared to leading GPU solutions, ENEC achieves a 3.43X higher throughput than DietGPU and a 1.12X better compression ratio than nvCOMP. By reducing weight transmission overhead, ENEC significantly improves end-to-end inference performance, achieving up to a 6.3X speedup. On Ascend NPUs, ENEC is the first open-source lossless compression algorithm for model weights that achieves performance comparable to state-of-the-art GPU compressors, offering an effective solution for deploying large-scale AI models.

Keywords

Cite

@article{arxiv.2604.03298,
  title  = {ENEC: A Lossless AI Model Compression Method Enabling Fast Inference on Ascend NPUs},
  author = {Jinwu Yang and Jiaan Wu and Zedong Liu and Xinyang Ma and Hairui Zhao and Yida Gu and Yuanhong Huang and Xingchen Liu and Wenjing Huang and Zheng Wei and Jing Xing and Yili Ma and Qingyi Zhang and Baoyi An and Zhongzhe Hu and Shaoteng Liu and Xia Zhu and Jiaxun Lu and Guangming Tan and Dingwen Tao},
  journal= {arXiv preprint arXiv:2604.03298},
  year   = {2026}
}

Comments

Accepted by ISCA 2026, 17 pages, 13 figures, 7 tables

R2 v1 2026-07-01T11:53:15.727Z