GEMQ: Global Expert-Level Mixed-Precision Quantization for MoE LLMs

TL;DR

GEMQ uses global linear programming and efficient router fine-tuning for mixed-precision quantization of MoE LLMs, reducing memory usage.

cs.LG 🔴 Advanced 2026-05-22 14 views
Jianing Deng Song Wang Dongwei Wang Zijie Liu Tianlong Chen Huanrui Yang Jingtong Hu
quantization MoE large language models memory optimization linear programming

Key Findings

Methodology

GEMQ employs a global linear programming model to allocate expert bit-widths and adapts routers to quantized experts through fine-tuning. This is integrated into a progressive quantization framework to iteratively refine importance estimation and allocation.

Key Results

  • GEMQ reduces the Mixtral-8×7B model size from 87 GB to 16 GB when quantized to 2.5 bits, with only a 7% accuracy drop.
  • Compared to PMQ, GEMQ improves accuracy by about 3% on 5-shot MMLU.
  • The 2.5-bit quantized Mixtral-8×7B model achieves a decoding speed of 82.5 tokens/s on a single NVIDIA H100 GPU.

Significance

GEMQ significantly reduces memory requirements and inference time for MoE LLMs, enhancing their feasibility for practical applications. By addressing the limitations of existing methods in handling router dynamics, GEMQ achieves extreme low-bit quantization while maintaining accuracy.

Technical Contribution

GEMQ introduces a global linear programming model for expert bit-width allocation and addresses router dynamics changes due to quantization. This approach maintains high performance even under extreme low-bit settings.

Novelty

GEMQ is the first to apply global linear programming to mixed-precision quantization of MoE LLMs, improving the accuracy of expert importance estimation through a progressive quantization framework.

Limitations

  • GEMQ's performance may still be limited under extreme low-bit settings, especially with significant router dynamics changes.
  • Additional calibration datasets are required for router fine-tuning.

Future Work

Future research could explore GEMQ's application across different tasks and model architectures, further optimize router fine-tuning strategies, and integrate GEMQ into hardware design.

AI Executive Summary

GEMQ introduces a global expert-level mixed-precision quantization method specifically designed for Mixture-of-Experts Large Language Models (MoE LLMs). Existing methods fail to account for router dynamics during quantization, leading to performance degradation. GEMQ uses a global linear programming model to allocate expert bit-widths and adapts routers to quantized experts through fine-tuning, significantly reducing memory requirements and inference time.

In experiments, GEMQ quantizes the Mixtral-8×7B model to 2.5 bits, reducing model size from 87 GB to 16 GB with only a 7% accuracy drop. Compared to existing mixed-precision quantization methods, GEMQ excels in multiple benchmarks, notably improving accuracy by about 3% on 5-shot MMLU.

GEMQ's innovation lies in its global perspective and progressive quantization framework, allowing it to maintain high performance even under extreme low-bit settings. This method not only enhances the feasibility of MoE LLMs for practical applications but also provides new directions for future research and applications.

Deep Analysis

Background

Mixture-of-Experts Large Language Models (MoE LLMs) improve computational efficiency by selectively activating a subset of expert networks. However, this architecture requires all experts to be loaded simultaneously during inference, leading to significant memory overhead. Existing quantization methods fail to fully consider the unique properties of MoE architectures, resulting in performance degradation.

Core Problem

The core problem with MoE LLMs is their substantial memory demand, especially during inference. Existing quantization methods fail to effectively address the issue of router dynamics changes, leading to performance degradation.

Innovation

GEMQ's core innovations include its global linear programming model and progressive quantization framework. The global linear programming model is used for expert bit-width allocation, while the progressive quantization framework iteratively refines expert importance estimation, enhancing quantization performance.

Methodology

  • �� Global Linear Programming: Allocates expert bit-widths based on quantization error analysis.
  • �� Router Fine-Tuning: Adapts router weights to quantized experts.
  • �� Progressive Quantization Framework: Iteratively refines expert importance estimation.

Experiments

Experiments were conducted using multiple MoE LLMs, including Mixtral-8×7B, to evaluate GEMQ's performance under different quantization bit-widths. Evaluation was performed using WikiText2 and C4 datasets, and model accuracy was tested across multiple inference tasks.

Results

GEMQ reduces the Mixtral-8×7B model size by 82% under 2.5-bit quantization, with only a 7% accuracy drop. Compared to PMQ, GEMQ performs better across multiple benchmarks, notably improving accuracy by about 3% on 5-shot MMLU.

Applications

GEMQ is applicable for large-scale language models requiring efficient memory management, especially in resource-constrained environments. Its low-bit quantization capability allows large models to run on a single GPU.

Limitations & Outlook

GEMQ's performance may still be limited under extreme low-bit settings, especially with significant router dynamics changes. Additional calibration datasets are required for router fine-tuning.

Plain Language Accessible to non-experts

Imagine you're in a large factory with many machines (experts), but you only need to use some of them at a time. To save power and space, you decide to run these machines at different voltages (bit-widths). GEMQ acts like a smart factory manager, analyzing the importance of each machine and deciding how much voltage to use for each. This way, the factory's total energy consumption is greatly reduced while maintaining production efficiency.

ELI14 Explained like you're 14

Imagine you have a huge LEGO set, but your room is limited in space. You can't display all the LEGOs at once, so you decide to show only the coolest parts. GEMQ is like a smart friend who helps you decide which LEGO pieces are most important and then uses different box sizes to store them, allowing you to display the most LEGOs in limited space without losing fun!

Glossary

Mixed-Precision Quantization

A technique that reduces model memory requirements by assigning different bit-widths.

Used in GEMQ to optimize memory usage of MoE LLMs.

Global Linear Programming

A mathematical optimization method for resource allocation on a global scale.

Used in GEMQ for expert bit-width allocation.

Router Fine-Tuning

Adjusting router weights to adapt to quantized models.

Used in GEMQ to optimize expert selection.

Progressive Quantization Framework

A method that iteratively optimizes the quantization process to improve model performance.

Used in GEMQ to enhance the accuracy of expert importance estimation.

Expert Network

Sub-networks in MoE models responsible for processing specific inputs.

Used in MoE LLMs for selective activation.

Open Questions Unanswered questions from this research

  • 1 How to optimize GEMQ's router fine-tuning strategy across different tasks?
  • 2 What are the possibilities and challenges of integrating GEMQ into hardware design?

Applications

Immediate Applications

Memory Optimization

GEMQ can optimize memory usage for large-scale language models, suitable for resource-constrained environments.

Long-term Vision

Hardware Integration

Integrating GEMQ into hardware design to achieve more efficient model inference.

Abstract

Mixture-of-Experts Large Language Models (MoE-LLMs) achieve strong performance but incur substantial memory overhead due to massive expert parameters. Mixed-precision quantization mitigates this cost by allocating expert-wise bit-widths based on their importance, approaching the accuracy-memory Pareto frontier and enabling extreme low-bit quantization. However, existing methods rely on layer-wise importance estimation and overlook router shifts induced by quantization, resulting in suboptimal allocation and routing. In this work, we propose Global Expert-level Mixed-precision Quantization (GEMQ) to overcome these limitations via (1) a global linear-programming formulation that captures model-wide expert importance based on quantization error analysis, and (2) efficient router fine-tuning to adapt routing to quantized experts. These components are integrated into a progressive quantization framework that iteratively refines importance estimation and allocation. Experiments demonstrate that GEMQ significantly reduces memory and accelerates inference with minimal accuracy degradation. Source code is available at https://github.com/jndeng/GEMQ .

cs.LG cs.CL