UniQL: Unified Quantization and Low-rank Compression for Adaptive Edge LLMs
Hung-Yueh Chiang, Chi-Chih Chang, Yu-Chen Lu, Chien-Yu Lin, Kai-Chiang Wu, Mohamed S. Abdelfattah, Diana Marculescu
TL;DR
UniQL tackles the challenge of deploying large language models on edge devices with dynamic resource constraints by unifying post-training quantization and structured pruning into a single cloud-assisted, one-shot workflow. It introduces structured weight sorting, quantization-aware decompositions, and fused RoPE kernels to support Transformers, SSMs, and hybrids, enabling on-device adaptive pruning up to 35% and substantial memory and latency gains with minimal accuracy loss. Across multiple models and tasks, UniQL demonstrates competitive or superior performance to PTQ and pruning baselines, while delivering flexible, architecture-agnostic deployment suitable for edge and mobile scenarios. The work also provides detailed ablations and extensive hardware profiling, highlighting practical benefits in energy efficiency and Pareto-optimal trade-offs for edge-LMM inference.
Abstract
Deploying large language models (LLMs) on mobile platforms faces significant challenges due to the limited memory and shared computational resources of the device. Resource availability may be an issue as it is directly impacted by the current device workload, adding to the uncertainty of model deployment. We introduce UniQL, a unified post-training quantization and low-rank compression framework with on-device configurable pruning rates for edge LLMs. UniQL is a general framework that integrates quantization and low-rank compression for Transformers, State Space Models (SSMs), and hybrid models to support diverse edge applications. In our proposed joint framework, we introduce an efficient structured weight-sorting method that speeds up computation by 20x, quantization-aware singular value decomposition (SVD) to minimize quantization errors, state-aware weight sorting for SSMs, and a fused rotary positional embedding (RoPE) kernel for pruned models. Our framework performs weight-sorting, fine-tuning, and quantization in the cloud in a single-pass workflow, while enabling on-device configurable pruning rates up to 35%. Our experiments show that quantized and pruned models achieve a memory reduction of 4x-5.7x and a token-throughput improvement of 2.7x-3.4x, maintaining accuracy within 5% of the original models at 15% pruning across Transformers (Llama3 and Qwen2.5), SSMs (Mamba2), and hybrid models (Nemotron-H and Bamba-v2). The code and quantized models are available at: https://github.com/enyac-group/UniQL.
