Quant.npu: Enabling Efficient Mobile NPU Inference for on-device LLMs via Fully Static Quantization

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Internet of Things (IoT) & Connected Devices · Depth: Expert, extended

Summary

Quant.npu is an integer-only fully static quantization framework designed for efficient on-device Large Language Model (LLM) inference on mobile Neural Processing Units (NPUs). It addresses the incompatibility of existing post-training quantization methods, which rely on dynamic activation quantization, with NPU hardware constraints. Quant.npu integrates learnable quantization parameters and rotation matrices, employing a rotation-and-bit-width-aware initialization, a two-stage distribution-aware selective optimization pipeline, and a sensitivity-guided adaptive mixed-precision scheme. Evaluated on Qualcomm SM8650 and SM8750 NPUs, Quant.npu achieves comparable accuracy to leading methods while reducing inference latency by up to 15.1% for models such as Llama-3.2-3B-Instruct and Qwen2.5-3B-Instruct, demonstrating broad applicability and strong generalization.

Key takeaway

For Machine Learning Engineers deploying LLMs on mobile NPUs, Quant.npu provides a critical framework to achieve efficient, low-latency inference without significant accuracy loss. You should consider its rotation-and-bit-width-aware initialization and two-stage selective optimization to overcome the challenges of fully static quantization. This approach enables substantial speedups, up to 15.1%, making it highly suitable for power-constrained edge deployments.

Key insights

Quant.npu bridges high-fidelity PTQ and NPU-constrained inference via integer-only fully static quantization with learnable parameters and rotations, achieving leading accuracy.

Principles

Method

Quant.npu employs a two-stage pipeline: gradient-based optimization for rotated distributions and static calibration for unrotated tensors, complemented by adaptive mixed-precision for sensitive layers.

In practice

Topics

Best for: AI Engineer, NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Hardware Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.