mlsanityData to 7 Oct 2026

Dual Grained Quantization: Efficient Fine-Grained Quantization for LLM

arXiv 2310.04836 ↗First posted 7 Oct 2023cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) pose significant hardware challenges related to memory requirements and computational ability. There are two mainstream quantization schemes for LLMs: coarse-grained (textite.g., channel-wise) quantization and fine-grained (textite.g., group-wise) quantization. Fine-grained quantization has smaller quantization loss, consequently achieving superior performance. However, when applied to weight-activation quantization, it disrupts continuous integer matrix multiplication, leading to inefficient inference. In this paper, we introduce Dual Grained Quantization (DGQ), a novel A8W4 quantization for LLM that maintains superior performance while ensuring fast inference speed. DSQ dequantizes the fine-grained INT4 weight into coarse-grained INT8 representation and preform matrix multiplication using INT8 kernels. Besides, we develop a two-phase grid search algorithm to simplify the determination of fine-grained and coarse-grained quantization scales. We also devise a percentile clipping schema for smoothing the activation outliers without the need for complex optimization techniques. Experimental results demonstrate that DGQ consistently outperforms prior methods across various LLM architectures and a wide range of tasks. Remarkably, by our implemented efficient CUTLASS kernel, we achieve 1.12 × memory reduction and 3.24 × speed gains comparing A16W4 implementation. These advancements enable efficient deployment of A8W4 LLMs for real-world applications.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 43 of its 49 references that are in the map. First posted on arXiv 7 Oct 2023.

Builds on

43 of 49 references.

References · 43

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  11. 2016Pointer Sentinel Mixture Modelscited by 2,992
  12. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
31 more
  1. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  4. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  5. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  6. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  7. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  8. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  9. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  10. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  11. 2016Language Modeling with Gated Convolutional Networkscited by 688
  12. 2019Learned Step Size Quantizationcited by 604
  13. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  14. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  15. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  16. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  17. 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 403
  18. 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 359
  19. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  20. 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
  21. 2022QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantizationcited by 175
  22. 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 139
  23. 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 112
  24. 2023LLM-Eval: Unified Multi-Dimensional Automatic Evaluation for Open-Domain Conversations with Large Language Modelscited by 100
  25. 2020Improving Post Training Neural Quantization: Layer-wise Calibration and Integer Programmingcited by 89
  26. 2022BiBERT: Accurate Fully Binarized BERTcited by 70
  27. 2023ZeroQuant-FP: A Leap Forward in LLMs Post-Training W4A8 Quantization Using Floating-Point Formatscited by 44
  28. 2023FP8 versus INT8 for efficient deep learning inferencecited by 31
  29. 2022BiViT: Extremely Compressed Binary Vision Transformercited by 28
  30. 2023FPTQ: Fine-grained Post-Training Quantization for Large Language Modelscited by 16
  31. 2022Quadapter: Adapter for GPT-2 Quantizationcited by 10

Built on by

Cited by year

Citing papers per year: 2024: 2.

2 papers.