Binary and Ternary Quantization Can Enhance Feature Discrimination
School of Control Science and Engineering, Shandong University(控制科学与工程学院,山东大学);Key Laboratory of Machine Intelligence and System Control, Ministry of Education(机器智能与系统控制重点实验室,教育部);Zhongtai Securities Institute for Financial Studies, Shandong University(中泰证券金融研究学院,山东大学);National Center for Applied Mathematics in Shandong(山东省应用数学中心)
Quantization is widely applied in machine learning to reduce computational and storage costs for both data and models. Considering that classification tasks are fundamental to the field, it is crucial to investigate how quantization impacts classification performance. Traditional research has focused on quantization errors, assuming that larger errors generally lead to lower classification accuracy. However, this assumption lacks a solid theoretical foundation and often contradicts empirical observations. For example, despite introducing significant errors, $\{0,1\}$-binary and $\{0, \pm1\}$-ternary quantized data have sometimes achieved classification accuracy comparable or even superior to full-precision data. To reasonably explain this phenomenon, a more accurate evaluation of classification performance is required. To achieve this, we propose a direct analysis of the feature discrimination of quantized data, instead of focusing on quantization errors. Our analysis reveals that both binary and ternary quantization can potentially enhance, rather than degrade, the feature discrimination of the original data. This finding is supported by classification experiments conducted on both synthetic and real data.
LoTA-QAF: Lossless Ternary Adaptation for Quantization-Aware Fine-Tuning
Southwestern University of Finance and Economics(西南财经大学);Artificial Intelligence and Digital Finance Key Laboratory of Sichuan Province(四川省人工智能与数字金融重点实验室);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与艺术大学(广州));Sun Yat-sen University(中山大学);Nanjing University(南京大学)
Ternary Compression for Communication-Efficient Federated Learning
East China University of Science and Technology(华东理工大学);Tongji University(同济大学);University of Surrey(萨里大学);Southern University of Science and Technology(南方科技大学)
University of Electronic Science and Technology of China(电子科技大学);Harvard University(哈佛大学);The Chinese University of Hong Kong(香港中文大学);National University of Singapore(新加坡国立大学)
为了在资源有限的设备上部署深度神经网络,量化已经被广泛探索。在这项工作中,我们研究了极低比特网络,它具有巨大的加速,量化激活和权重的内存节省。我们首先提出了三个在极低比特网络中被忽略的问题:量化值的压缩范围;反向传播过程中的梯度消失和三进制网络未开发的硬件加速。通过对量化后的激活向量和权值向量重新进行参数化,对固定的三进制向量进行全精度的尺度和偏移,将幅度和幅度从方向上解耦,从而减轻了这三个问题。可学习的尺度和偏移量可以自动调整量化值的范围和稀疏度,而不会使梯度消失。设计了一种新的编码和计算模式,以支持我们重新参数化的三元网络(RTN)的高效计算。在ResNet-18 for ImageNet上的实验表明,所提出的RTN在位宽和精度之间找到了更好的效率,与现有方法相比,相对精度提高了26.76%。在现场可编程门阵列(FPGA)上验证了本文提出的计算模式,与全精度卷积相比,功耗和面积分别节省了46.46倍和89.17倍。
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纳入现有的量化训练方法,导致提高精度相比,以前报道的多个国家的最先进的量化训练方法。
Uncertainty Makes It Stable: Curiosity-Driven Quantized Mixture-of-Experts
MIT Critical Data(MIT关键数据);Université de Rennes(里昂大学);Technetium Engineering(Technetium工程);Institución Universitaria Colegio Mayor del Cauca(科瓦卡大学学院);CeADAR - Ireland’s Centre for AI(爱尔兰人工智能中心);University College Dublin(都柏林大学);Tsinghua University(清华大学);Beth Israel Deaconess Medical Center(贝瑟尔以色列德acons医院);Harvard T.H. Chan School of Public Health(哈佛T.H.陈公共卫生学院)