# MatMoE: Matryoshka Mixture-of-Experts with Dynamic Mixed-Precision Quantization for Efficient Inference

DevFeed: [MatMoE: Matryoshka Mixture-of-Experts with Dynamic Mixed-Precision Quantization for Efficient Inference](<https://devfeed.tech/articles/matmoe-matryoshka-mixture-of-experts-with-dynamic-mixed-precision-quantization-for-efficient-inference-114593.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01704>)

Author: Renjie Wei, Haochen Huang, Chuyu Qiu, Jinqi Wen, Dehao Xu, Meng Li

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [llama.cpp](<https://devfeed.tech/topics/llama-cpp.md>), [Jetson Orin](<https://devfeed.tech/topics/jetson-orin.md>)

Tags: [cpu](<https://devfeed.tech/tags/cpu.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [edge](<https://devfeed.tech/tags/edge.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [inference](<https://devfeed.tech/tags/inference.md>), [jetson](<https://devfeed.tech/tags/jetson.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [latency](<https://devfeed.tech/tags/latency.md>), [llama-cpp](<https://devfeed.tech/tags/llama-cpp.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [nvidia-rtx](<https://devfeed.tech/tags/nvidia-rtx.md>), [precision](<https://devfeed.tech/tags/precision.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [raspberry-pi-5](<https://devfeed.tech/tags/raspberry-pi-5.md>), [routing](<https://devfeed.tech/tags/routing.md>)

## AI overview

MatMoE targets MoE inference on resource-constrained devices by varying expert precision during decoding. Its Matryoshka post-training quantization supports multiple precisions within a memory budget; floor-and-compensation quantization avoids redundant memory accesses; and routing-score-based bit-width allocation adapts precision to changing latency requirements. Implemented atop llama.cpp for CPU and GPU, it was evaluated on three MoE models. The abstract reports 4.0%-18.3% higher accuracy than a state-of-the-art static mixed-precision method, and speedups over llama.cpp of 1.3x-3.7x on Raspberry Pi 5 and 1.2x-1.3x on NVIDIA RTX 4090 and Jetson AGX Orin. The supplied material is an abstract, so it does not provide details about the evaluation setup or limitations.

## Source excerpt

arXiv:2611.01704v1 Announce Type: new Abstract: Mixture-of-Experts (MoE) architecture has been widely adopted in large language models (LLMs) since it reduces the computational cost through sparse expert activation. However, the massive parameter scale of MoE models hinders their deployment on resource-constrained edge devices. Although existing mixed-precision quantization reduces the model size, they are inherently static, fixing the bit-width of each expert across decoding steps. Such static schemes yield suboptimal performance as they overlook the dynamic variation in expert importance during decoding. Furthermore, they fail to adapt to the dynamic latency constraint driven by the fluctuating system utilization. To address these challenges, we propose MatMoE, a dynamic mixed-precision quantization framework for efficient MoE inference. MatMoE features: (1) a Matryoshka MoE PTQ algorithm that enables experts to operate flexibly at multiple precisions within a stringent memory budget; (2) a floor-and-compensation quantization method that eliminates redundant memory accesses in the Matryoshka representation; and (3) a dynamic bit-width allocation strategy that determines the precision for each expert based on their routing scores to satisfy the dynamic latency requirement. We implement our MatMoE system atop llama.cpp for both CPU and GPU platforms. Extensive evaluations across three modern MoE models and challenging benchmarks demonstrate that MatMoE achieves $4.0\% \sim 18.3\%$ higher accuracy than state-of-the-art static mixed-precision method. Compared to llama.cpp, MatMoE delivers $1.3\times \sim 3.7\times$ speedup on Raspberry Pi 5, and $1.2\times \sim 1.3\times$ speedup on NVIDIA RTX 4090 and Jetson AGX Orin.