paper-with-me

홈 › Papers

XFP: Quality-Targeted Adaptive Codebook Quantization with Sparse Outlier Separation for LLM Inference

2026-05-14 · Thomas Witt arxiv

We introduce XFP, a dynamic weight quantizer for LLM inference that inverts the conventional workflow: the operator specifies reconstruction quality floors on per-channel cosine similarity (one strict floor for attention and shared experts, one lazy floor for routed-expert MoE); XFP determines codebook size, outlier budget, and packing per layer automatically -- no Hessian, no calibration data, no manual bit-width selection. Each weight matrix is decomposed into a sparse fp16 outlier residual and a dense sub-byte index tensor into a per-group learned codebook. Two storage modes share one auto-select frontend and one fused decode kernel: V2 (per-channel Lloyd) and V2a (shared library of L=32 codebooks per layer). On Qwen3.5-122B-A10B under V2, XFP reaches 138 tok/s single-stream decode on workstation hardware (RTX PRO 6000 Blackwell, TP=2) at 94.49% GSM8K strict-match (3 seeds, n=3957), and is 49% faster than Marlin INT4 at TP=1. For models that do not fit in the target memory envelope, we present the H-Process: a quality-driven iteration over the two cosine thresholds that finds the operating point at which the model just fits while still producing sensible output. Three constraints define its search space: the operator-set thresholds, an OOM boundary at quantize-on-load, and a garbage boundary in generation (cosine similarity steers; benches verify). On Qwen3.5-397B-A17B (512 routed experts/layer), the H-Process fits the full expert population into 2x96 GB at ~3.4 effective bits and delivers 100.9 tok/s long-output decode at 66.72% GSM8K strict-match on the full 1319-problem set (single seed at submission; multi-seed evaluation in progress), exceeding INT4 with routed-expert pruning on memory, throughput, and accuracy simultaneously.

📄 PDF Abstract BibTeX arXiv:2605.14844

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

NSVQ: Mitigating Codebook Collapse by Stabilizing Encoder Drift in Vector Quantization

2026-06-09 · Hao Lu, Yongxin Guo, Onur Koyun, Zhengjie Zhu 외 arxiv

Vector quantization is central to modern generative modeling pipelines, but large-codebook VQ models often suffer from codebook collapse. We identify encoder drift as a key driver of this failure: as the encoder moves th…

Style Quantization for Data-Efficient GAN Training

2025-03-31 · CVPR 2025 1 · Jian Wang, Xin Lan, Jizhe Zhou, Yuxin Tian 외

Under limited data setting, GANs often struggle to navigate and effectively exploit the input latent space. Consequently, images generated from adjacent variables in a sparse input latent space may exhibit significant di…

NavigateQuantization

AAAC: Activation-Aware Adaptive Codebooks for 4-bit LLM Weight Quantization

2026-05-09 · Beshr IslamBouli, David Jin arxiv

Post-training weight-only quantization to 4 bits is widely used to reduce the memory and compute costs of large language model inference. Existing PTQ methods, such as AWQ and GPTQ, improve how weights are mapped onto a …

Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization

2026-02-21 · Hao Lu, Onur C. Koyun, Yongxin Guo, Zhengjie Zhu 외 arxiv

Vector Quantization (VQ) underpins many modern generative frameworks such as VQ-VAE, VQ-GAN, and latent diffusion models. Yet, it suffers from the persistent problem of codebook collapse, where a large fraction of code v…

Switchcodec: Adaptive residual-expert sparse quantization for high-fidelity neural audio coding

2026-01-28 · Xiangbo Wang, Wenbin Jiang, Jin Wang, Yubo You 외 arxiv

Recent neural audio compression models often rely on residual vector quantization for high-fidelity coding, but using a fixed number of per-frame codebooks is suboptimal for the wide variability of audio content-especial…