AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration

AI-generated keywords: AWQ Activation-aware Weight Quantization LLM Compression Acceleration Language Models

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Authors address challenges of large model size in language models (LLMs) for memory requirements and token generation speed
  • Introduce Activation-aware Weight Quantization (AWQ) for low-bit weight-only quantization to make LLMs more hardware-friendly
  • AWQ focuses on protecting only 1% of salient weights through optimal per-channel scaling based on activation observations
  • Method reduces quantization error without relying on backpropagation or reconstruction processes, preserving generalization ability across domains and modalities
  • AWQ outperforms existing techniques in various language modeling tasks, question answering scenarios, and domain-specific benchmarks
  • Efficient tensor core kernels with reorder-free online dequantization implemented to accelerate AWQ, resulting in notable speedup compared to other implementations
  • AWQ compresses LLMs to 3/4 bits while maintaining high performance levels suitable for efficient deployment scenarios
  • Code availability provided at https://github.com/mit-han-lab/llm-awq for further research and application
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Xingyu Dang, Song Han

Code available at: https://github.com/mit-han-lab/llm-awq

Abstract: Large language models (LLMs) have shown excellent performance on various tasks, but the astronomical model size raises the hardware barrier for serving (memory size) and slows down token generation (memory bandwidth). In this paper, we propose Activation-aware Weight Quantization (AWQ), a hardware-friendly approach for LLM low-bit weight-only quantization. Our method is based on the observation that weights are not equally important: protecting only 1% of salient weights can greatly reduce quantization error. We then propose to search for the optimal per-channel scaling that protects the salient weights by observing the activation, not weights. AWQ does not rely on any backpropagation or reconstruction, so it can well preserve LLMs' generalization ability on different domains and modalities, without overfitting to the calibration set; it also does not rely on any data layout reordering, maintaining the hardware efficiency. AWQ outperforms existing work on various language modeling, common sense QA, and domain-specific benchmarks. Thanks to better generalization, it achieves excellent quantization performance for instruction-tuned LMs and, for the first time, multi-modal LMs. We also implement efficient tensor core kernels with reorder-free online dequantization to accelerate AWQ, achieving a 1.45x speedup over GPTQ and is 1.85x faster than the cuBLAS FP16 implementation. Our method provides a turn-key solution to compress LLMs to 3/4 bits for efficient deployment.

Submitted to arXiv on 01 Jun. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2306.00978v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In their paper titled "AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration," authors Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Xingyu Dang, and Song Han address the challenges posed by the large model size of language models (LLMs) in terms of memory requirements for serving and token generation speed. They introduce a novel approach called Activation-aware Weight Quantization (AWQ) that focuses on low-bit weight-only quantization to make LLMs more hardware-friendly. The key insight behind AWQ is the recognition that not all weights in LLMs are equally important. By identifying and protecting only 1% of salient weights through optimal per-channel scaling based on activation observations rather than weights themselves, AWQ significantly reduces quantization error. This method does not rely on backpropagation or reconstruction processes, ensuring that the generalization ability of LLMs across different domains and modalities is preserved without overfitting to calibration sets. Additionally, AWQ maintains hardware efficiency by avoiding data layout reordering. Through extensive experimentation, the authors demonstrate that AWQ outperforms existing techniques across various language modeling tasks, common sense question answering scenarios, and domain-specific benchmarks. The method's superior generalization capabilities enable exceptional quantization performance for instruction-tuned LMs and even multi-modal LMs for the first time. To further enhance efficiency, efficient tensor core kernels with reorder-free online dequantization are implemented to accelerate AWQ. This optimization results in a notable 1.45x speedup compared to GPTQ and a remarkable 1.85x improvement over cuBLAS FP16 implementation. Overall, AWQ offers a comprehensive solution for compressing LLMs to 3/4 bits while maintaining high performance levels suitable for efficient deployment scenarios. The authors provide code availability for their work at https://github.com/mit-han-lab/llm-awq, facilitating further research and application of their proposed method in real-world settings.
Created on 17 Apr. 2025

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.