mlsanityData to 13 Oct 2026

FlattenQuant: Breaking Through the Inference Compute-bound for Large Language Models with Per-tensor Quantization

arXiv 2402.17985 ↗First posted 28 Feb 2024cs.LG cs.AI cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated state-of-the-art performance across various tasks. However, the latency of inference and the large GPU memory consumption of LLMs restrict their deployment performance. Recently, there have been some efficient attempts to quantize LLMs, yet inference with large batch size or long sequence still has the issue of being compute-bound. Fine-grained quantization methods have showcased their proficiency in achieving low-bit quantization for LLMs, while requiring FP16 data type for linear layer computations, which is time-consuming when dealing with large batch size or long sequence. In this paper, we introduce a method called FlattenQuant, which significantly reduces the maximum value of the tensor by flattening the large channels in the tensor, to achieve low bit per-tensor quantization with minimal accuracy loss. Our experiments show that FlattenQuant can directly use 4 bits to achieve 48.29% of the linear layer calculation in LLMs, with the remaining layers using 8 bits. The 4-bit matrix multiplication introduced in the FlattenQuant method can effectively address the compute-bound caused by large matrix calculation. Our work achieves up to 2× speedup and 2.3× memory reduction for LLMs with negligible loss in accuracy.

Key facts. Cited by 4 papers in the map (data through 13 Oct 2026). Builds on 19 of its 30 references that are in the map. First posted on arXiv 28 Feb 2024.

Builds on

19 of 30 references.

References · 19

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,223
  3. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,053
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,500
  5. 2016Pointer Sentinel Mixture Modelscited by 3,047
  6. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,843
  7. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
  8. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,163
  9. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,133
  10. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,884
  11. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,585
  12. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 973
7 more
  1. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 896
  2. 2023OpenAGI: When LLM Meets Domain Expertscited by 197
  3. 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 139
  4. 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 115
  5. 2018NVIDIA Tensor Core Programmability, Performance & Precisioncited by 79
  6. 2021VS-Quant: Per-vector Scaled Quantization for Accurate Low-Precision Neural Network Inferencecited by 64
  7. 2020Once Quantization-Aware Training: High Performance Extremely Low-bit Architecture Searchcited by 26

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024FlatQuant: Flatness Matters for LLM Quantization
  2. 2023FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMs
  3. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  4. 2024Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization
  5. 2024LLMEasyQuant: Scalable Quantization for Parallel and Distributed LLM Inference
  6. 2023SmoothQuant+: Accurate and Efficient 4-bit Post-Training WeightQuantization for LLM
  7. 2024Towards Low-bit Communication for Tensor Parallel LLM Inference
  8. 2024LeanQuant: Accurate and Scalable Large Language Model Quantization with Loss-error-aware Grid