Large Language Models (LLMs) face significant deployment challenges due to their substantial memory requirements and the computational demands of auto-regressive text generation process. This paper addresses these challenges by focusing on the quantization of LLMs, a technique that reduces memory consumption by converting model parameters and activations into low-bit integers. We critically analyze the existing quantization approaches, identifying their limitations in balancing the accuracy and efficiency of the quantized LLMs. To advance beyond these limitations, we propose WKVQuant, a PTQ framework especially designed for quantizing weights and the key/value (KV) cache of LLMs. Specifically, we incorporates past-only quantization to improve the computation of attention. Additionally, we introduce two-dimensional quantization strategy to handle the distribution of KV cache, along with a cross-block reconstruction regularization for parameter optimization. Experiments show that WKVQuant achieves almost comparable memory savings to weight-activation quantization, while also approaching the performance of weight-only quantization.
TailorKV: A Hybrid Framework for Long-Context Inference via Tailored KV Cache Optimization
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);MiLM Plus, Xiaomi Inc(小米公司MiLM Plus)
Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantization
Department of Mathematics University of California, San Diego(数学系加州大学圣地亚哥分校);Software Architecture Advanced Micro Devices, Inc.(软件架构先进微器件公司);Department of Mathematics & HDSI University of California, San Diego(数学系及HDSI加州大学圣地亚哥分校)
Quantizing With Randomized Hadamard Transforms: Efficient Heuristic Now Proven
UCL and Broadcom(UCL和Broadcom);Carnegie Mellon University(卡内基梅隆大学);Harvard University(哈佛大学);Microsoft(微软);VMware Research by Broadcom(Broadcom的VMware研究)
STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization
City University of Hong Kong(香港城市大学);Harvard University(哈佛大学);Zhejiang University(浙江大学);NLPR & MAIS, Institute of Automation, CAS(中国科学院自动化研究所模式识别国家重点实验室与多模态人工智能系统全国重点实验室);The Chinese University of Hong Kong(香港中文大学);Tsinghua University(清华大学)