Large generative models such as large language models (LLMs) and diffusion models have revolutionized the fields of NLP and computer vision respectively. However, their slow inference, high computation and memory requirement makes it challenging to deploy them on edge devices. In this study, we propose a light-weight quantization aware fine tuning technique using knowledge distillation (KD-QAT) to improve the performance of 4-bit weight quantized LLMs using commonly available datasets to realize a popular language use case, on device chat applications. To improve this paradigm of finetuning, as main contributions, we provide insights into stability of KD-QAT by empirically studying the gradient propagation during training to better understand the vulnerabilities of KD-QAT based approaches to low-bit quantization errors. Based on our insights, we propose ov-freeze, a simple technique to stabilize the KD-QAT process. Finally, we experiment with the popular 7B LLaMAv2-Chat model at 4-bit quantization level and demonstrate that ov-freeze results in near floating point precision performance, i.e., less than 0.7% loss of accuracy on Commonsense Reasoning benchmarks.
Train Where the Quantized Model Goes: On-Policy Distillation for Low-Bit Reasoning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Zhongguancun Academy(中关村学院);City University of Hong Kong(香港城市大学);NJUST(南京理工大学)
OnlineQAT: On-Policy Distillation for Ultra-Low-Bit Large Language Models
The Hong Kong Polytechnic University(香港理工大学);Sun Yat-sen University(中山大学);PolyU-Daya Bay Technology and Innovation Research Institute(香港理工大学大亚湾技术创新研究院)
Divide and Conquer: Leveraging Intermediate Feature Representations for Quantized Training of Neural Networks
University of California San Diego(加利福尼亚大学圣地亚哥分校)
现代神经网络的深层在输入通过网络传播时提取相当丰富的特征集。本文旨在以最小的精度损失收获这些丰富的中间表示进行量化,同时显着降低DNN的内存占用和计算强度。本文通过师生范式利用知识蒸馏(Hinton等人,2015)在一种新颖的设置中,该设置利用DNN的特征提取能力进行更高精度的量化。因此,我们的算法在逻辑上将预训练的全精度DNN划分为多个部分,每个部分都暴露了中间特征,以便在量化域中独立地训练一组学生。事实上,这种分而治之的策略使得每个学生部分的训练可以孤立进行,而所有这些独立训练的部分随后被缝合在一起以形成等效的完全量化的网络。我们的算法是一种面向知识蒸馏的分段方法,并且在整个网络上进行一次知识蒸馏之前,不将中间表示视为预训练的提示(Romero等人,2015年)。在各种DNN(AlexNet、LeNet、MobileNet、ResNet-18、ResNet-20、SVHN和VGG-11)上的实验表明,这种称为DCQ(Divide and Conquer Quantization)的方法平均而言提高了最先进的量化训练技术DoReFa-Net(Zhou et al.,2016年),分别为21.6%和9.3%的二进制和三进制量化。此外,我们表明,将DCQ纳入现有的量化训练方法,导致提高精度相比,以前报道的多个国家的最先进的量化训练方法。
Recover-LoRA for Aggressive Quantization: Reclaiming Accuracy in 2-Bit Language Models via Low-Rank Adaptation with Knowledge Distillation on Synthetic Data
BrainDistill: Implantable Motor Decoding with Task-Specific Knowledge Distillation
Neuro-X Institute, EPFL, Geneva, Switzerland(Neuro-X研究所,EPFL,瑞士日内瓦);NeuroRestore, Defitech Center for Interventional Neurotherapies, EPFL/CHUV/UNIL, Lausanne, Switzerland(NeuroRestore,介入神经治疗中心,EPFL/CHUV/UNIL,瑞士洛桑);Department of Medicine, University of Fribourg, Fribourg, Switzerland(医学系,弗里堡大学,瑞士弗里堡);Department of Clinical Neuroscience, Lausanne University Hospital (CHUV)(临床神经科学系,洛桑大学医院(CHUV));University of Lausanne (UNIL), Lausanne, Switzerland(洛桑大学(UNIL),瑞士洛桑);Department of Neurosurgery, CHUV, Lausanne, Switzerland(神经外科系,CHUV,瑞士洛桑)
LBLLM: Lightweight Binarization of Large Language Models via Three-Stage Distillation
MAIS, Institute of Automation, Chinese Academy of Sciences(自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Central Media Technology Institute, Huawei(华为中央媒体技术研究所)
Contrastive Knowledge Transfer and Robust Optimization for Secure Alignment of Large Language Models
Northwestern University(西北大学);Syracuse University(雪城大学);Trine University(特里恩大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Carnegie Mellon University(卡内基梅隆大学)
EdgeRazor: A Lightweight Framework for Large Language Models via Mixed-Precision Quantization-Aware Distillation
National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);School of Intelligent Science and Technology, Nanjing University(南京大学智能科学与技术学院);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Microsoft AI(微软AI)
Optimising TinyML with Quantization and Distillation of Transformer and Mamba Models for Indoor Localisation on Edge Devices
School of Engineering Mathematics and Technology, University of Bristol(布里斯托大学工程数学与技术学院);School of Natural and Computing Sciences, University of Aberdeen(阿伯丁大学自然与计算科学学院)
End-to-End On-Device Quantization-Aware Training for LLMs at Inference Cost
University of Georgia(佐治亚大学);University of North Texas(北卡罗来纳州立大学);Northeastern University(东北大学);University of Minnesota(明尼苏达大学);University of Virginia(弗吉尼亚大学);Stevens Institute of Technology(史蒂文斯理工学院)
Boost Vision Transformer with GPU-Friendly Sparsity and Quantization
Academy for Engineering and Technology, Fudan University(复旦大学工程与应用技术研究院);NVIDIA Corporation(英伟达公司);School for Information Science and Technology, Fudan University(复旦大学信息科学与工程学院)