NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FlexQuant: Elastic Quantization Framework for Locally Hosted LLM on Edge Devices

Yuji Chai, Mujin Kwen, David Brooks, Gu-Yeon WeiarXiv 2025 · DOI

TL;DR

FlexQuant is a new framework designed to make Large Language Models (LLMs) "elastic" so they can run efficiently on edge devices like phones and laptops. It allows a model to dynamically shrink or grow its memory footprint in tiny ~100MB increments to adapt to fluctuating system RAM, providing 15x better granularity and 10x less storage overhead than current state-of-the-art methods.

Introduction: The Unified Memory Challenge

Deploying LLMs on edge devices (smartphones, "AI PCs") faces a major hurdle: Unified Memory. Unlike servers with dedicated VRAM, edge devices share RAM between the CPU, GPU, and all running apps. If a user opens a web browser while an LLM is running, the available memory for the model can suddenly drop, leading to system instability.

Current solutions are often brittle. Developers must either store a single fixed-size model (which may crash if RAM runs low) or an "ensemble" of multiple models at different compression levels. However, storing a full suite of models can consume over 100GB of storage—unacceptable for consumer hardware. Existing "elastic" methods like AnyPrecision reduce storage by sharing parameters but suffer from "chunky" transitions and significant accuracy loss.

Methods: Elastic Quantization Models (EQM)

The authors introduce Elastic Quantization Models (EQM) and a framework to manage them through three core innovations:

  1. Hybrid Bit-Widths: FlexQuant creates models where different layers have different bit-widths (e.g., some layers are 3-bit, others are 8-bit). Because these layers all approximate the same original FP16 weights, they are interchangeable at runtime. Swapping a single layer typically shifts perplexity by less than 0.02, enabling smooth scaling.
  2. MCTS-Inspired Tree Search: Finding the optimal combination of layer bit-widths is a massive search problem (the design space for Llama-2 7B is $7.38 \times 10^{19}$). FlexQuant uses a search algorithm inspired by Monte Carlo Tree Search to navigate this space, using sensitivity analysis to identify which layers can be "downgraded" to lower precision with the least impact on accuracy.
MCTS-inspired search process for finding optimal EQM configurations.
  1. Pruning Strategy: To save even more storage, the authors developed a ranking system based on parameter usage across the ensemble. This allows them to prune the least important weights, reducing total storage by an additional 40%.

Experimental Setup

The researchers evaluated FlexQuant using the Llama 1 (7B), Llama 2 (7B), and Llama 3 (8B) model families. Evaluation focused on Perplexity (measured on C4, WikiText2, and PTB) and Downstream Accuracy across standard benchmarks including ARC, Hellaswag, PIQA, and WinoGrande.

Key Results and Insights

FlexQuant achieves a transition granularity of ~100MB, a 15x improvement over AnyPrecision. This "100MB target" was chosen because most mobile apps use less than 100MB of RAM; this granularity allows the LLM to yield just enough space for a new app to open without a massive performance hit.

Perplexity vs. Memory Footprint comparison showing FlexQuant's superior granularity and storage efficiency.
  • Storage Efficiency: To achieve the same level of elasticity, a baseline approach would require 177GB of storage. FlexQuant provides the same flexibility using only 17GB (and as low as 11GB with pruning).
  • Pareto Frontier: In perplexity-vs-memory tests, FlexQuant consistently stayed on the Pareto frontier, meaning it offered the best possible accuracy for any given memory limit compared to all other tested methods.
  • Refinement through Search: In some cases, the FlexQuant hybrid models actually outperformed baseline quantized models at the same memory footprint because the search found a more optimal distribution of precision across layers.

Limitations and Future Work

While FlexQuant successfully addresses memory footprint, the authors acknowledge that other hardware constraints—like energy consumption and raw compute throughput—also fluctuate on edge devices and require their own elastic solutions. Future work may also explore how this framework interacts with Quantization-Aware Training (QAT) and specific kernel-level optimizations to minimize latency during model transitions.

Summary updated

BibTeX
@misc{chai2025flexquant,
  author = {Yuji Chai and Mujin Kwen and David Brooks and Gu-Yeon Wei},
  title = {{FlexQuant: Elastic Quantization Framework for Locally Hosted LLM on Edge Devices}},
  year = {2025},
  eprint = {2501.07139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.07139},
}
Figure