Abstract
MobileQuant is a novel post-training quantization (PTQ) technique specifically engineered for the efficient deployment of Large Language Models (LLMs) on mobile hardware. By jointly optimizing weight transformations and activation ranges in an end-to-end pipeline, MobileQuant achieves near-lossless 8-bit quantization. This approach significantly reduces the "mobile tax," slashing latency and energy consumption by 20–50% on mobile Neural Processing Units (NPUs) while maintaining model accuracy.
Introduction
Deploying LLMs on edge devices like smartphones presents significant challenges due to high memory, compute, and energy requirements. Quantization—representing weights and activations with lower precision (e.g., 8-bit integers)—is the standard mitigation strategy. However, existing methods often fail to fully utilize mobile hardware. Weight-only quantization saves storage but still relies on energy-intensive floating-point calculations. Conversely, dynamic activation quantization, while effective at handling outliers, requires per-token scaling that is often unsupported by mobile-friendly NPUs or Digital Signal Processors (DSPs). MobileQuant addresses this by focusing on integer-only, static per-tensor quantization to unlock true on-device performance.
Methods
MobileQuant introduces a post-training quantization pipeline designed to be "NPU-ready." The core innovations include:
Weight Equivalent Transformation
Building on techniques like SmoothQuant, MobileQuant applies scaling factors to weights and activations to mitigate the impact of outliers. Unlike previous methods, this transformation is extended across all possible layers, including those separated by non-linearities such as LayerNorm.
Learning Activation Ranges (ARL)
Instead of relying on static min/max measurements of activations, which can shift during optimization, MobileQuant treats the quantization range as a learnable parameter. It optimizes scale ($\alpha$) and offset ($\beta$) parameters to identify the most quantization-friendly ranges.
End-to-End Optimization
MobileQuant moves beyond traditional layer-by-layer (block-wise) optimization. By jointly optimizing weight transformations, clipping parameters, and activation ranges across the entire model, the method scales effectively with increased calibration data and training steps, bridging the gap between PTQ and more expensive Quantization-Aware Training (QAT).
Experimental Setup
The researchers evaluated MobileQuant using a subset of The Pile for calibration. Performance was measured across standard benchmarks, including WikiText (perplexity), ARC-Challenge, HellaSwag, MMLU, and LAMBADA. The study targeted lightweight architectures: TinyLLaMA-1.1B, StableLM-2-1.6B, and Gemma-2B.
Key Results and Insights
Experiments conducted on a Samsung Galaxy S24 (Snapdragon 8 Gen 3) revealed several key findings:
- Near-Lossless Accuracy: In the W8A8 configuration, MobileQuant achieved performance nearly identical to original 16-bit floating-point models.
- Efficiency Gains: Compared to standard W8A16 on-device strategies, MobileQuant reduced latency and energy consumption by 20% to 50%.
- Prompt Encoding Speedup: The 8-bit activation support was particularly effective during the prompt encoding phase, reducing latency for a 256-token sequence on TinyLLaMA from 510ms to 276ms.
Performance in Extreme Quantization
While 8-bit quantization is near-lossless, the researchers also explored 4-bit weights (W4A8). As shown in the results, the mobile-optimized approach significantly outperforms static baselines, though a gap remains compared to full precision.
Limitations and Future Work
Despite its success, MobileQuant has areas for further development. The current study focused on 1B–2B parameter models; future work will explore scaling to 7B+ models. Additionally, some non-linear operations (Softmax, LayerNorm) currently remain in 16-bit to preserve accuracy. Finally, closing the accuracy gap for extreme quantization levels like W4A8 remains a priority for future iterations.
Summary updated