paper-with-me

Papers

ResQ: Mixed-Precision Quantization of Large Language Models with Low-Rank Residuals

2024-12-18 · Utkarsh Saxena, Sayeh Sharify, Kaushik Roy, Xin Wang

Post-training quantization (PTQ) of large language models (LLMs) holds the promise in reducing the prohibitive computational cost at inference time. Quantization of all weight, activation and key-value (KV) cache tensors to 4-bit without significantly degrading generalizability is challenging, due to the high quantization error caused by extreme outliers in activations. To tackle this problem, we propose ResQ, a PTQ method that pushes further the state-of-the-art. By means of principal component analysis (PCA), it identifies a low-rank subspace (in practice 1/8 of the hidden dimension) in which activation variances are highest, and keep the coefficients within this subspace in high precision, e.g. 8-bit, while quantizing the rest to 4-bit. Within each subspace, invariant random rotation is applied to further suppress outliers. We show that this is a provably optimal mixed precision quantization scheme that minimizes error. With the Llama families of models, we demonstrate that ResQ outperforms recent uniform and mixed precision PTQ methods on a variety of benchmarks, achieving up to 33% lower perplexity on Wikitext than the next best method SpinQuant, and a 2.4x speedup over 16-bit baseline. Code is available at https://github.com/utkarsh-dmx/project-resq.

📄 PDF Abstract BibTeX arXiv:2412.14363

Code (1)

utkarsh-dmx/project-resq 공식 구현 pytorch

Tasks

Quantization

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

HiFloat4 Format for End-To-End Reinforcement Learning Post-Training of Large Language Models

2026-07-29 · Hei Yi Mak, Shadan Golestan, Hoang Le, Mehran Taghian Jazi 외 arxiv

We present, to our knowledge, the first end-to-end FP4 RL post-training, in which both the rollout and training policies, including their forward and backward passes, operate at 4-bit precision. A systematic study reveal…

Reinforcement Learning

SFMP: Fine-Grained, Hardware-Friendly and Search-Free Mixed-Precision Quantization for Large Language Models

2026-02-01 · Xin Nie, Haicheng Zhang, Liang Dong, Beining Feng 외 arxiv

Mixed-precision quantization is a promising approach for compressing large language models under tight memory budgets. However, existing mixed-precision methods typically suffer from one of two limitations: they either r…

Mixed Precision of Quantization of Transformer Language Models for Speech Recognition

2021-11-29 · Junhao Xu, Shoukang Hu, Jianwei Yu, Xunying Liu 외

State-of-the-art neural language models represented by Transformers are becoming increasingly complex and expensive for practical applications. Low-bit deep neural network quantization techniques provides a powerful solu…

QuantizationSensitivityspeech-recognitionSpeech Recognition

Channel-Wise Mixed-Precision Quantization for Large Language Models

2024-10-16 · Zihan Chen, Bike Xie, Jundong Li, Cong Shen

Large Language Models (LLMs) have demonstrated remarkable success across a wide range of language tasks, but their deployment on edge devices remains challenging due to the substantial memory requirements imposed by thei…

Quantization

Mixed-Precision Quantization for Language Models: Techniques and Prospects

2025-10-19 · Mariam Rakka, Marios Fournarakis, Olga Krestinskaya, Jinane Bazzi 외 arxiv

The rapid scaling of language models (LMs) has resulted in unprecedented computational, memory, and energy requirements, making their training and deployment increasingly unsustainable. Quantization has emerged as an ess…