When training deep neural networks, keeping all tensors in high precision (e.g., 32-bit or even 16-bit floats) is often wasteful. However, keeping all tensors in low precision (e.g., 8-bit floats) can lead to unacceptable accuracy loss. Hence, it is important to use a precision assignment -- a mapping from all tensors (arising in training) to precision levels (high or low) -- that keeps most of the tensors in low precision and leads to sufficiently accurate models. We provide a technique that explores this memory-accuracy tradeoff by generating precision assignments for convolutional neural networks that (i) use less memory and (ii) lead to more accurate convolutional networks at the same time, compared to the precision assignments considered by prior work in low-precision floating-point training. We evaluate our technique on image classification tasks by training convolutional networks on CIFAR-10, CIFAR-100, and ImageNet. Our method typically provides > 2x memory reduction over a baseline precision assignment while preserving training accuracy, and gives further reductions by trading off accuracy. Compared to other baselines which sometimes cause training to diverge, our method provides similar or better memory reduction while avoiding divergence.
Which Geometry on Which Layer? Measured Sign-Spectral Assignment in Mixed-Optimizer Training
Stanford University(斯坦福大学);Mila(米拉研究所);Université de Montréal(蒙特利尔大学);Arizona State University(亚利桑那州立大学);Nanyang Technological University(南洋理工大学);SB Intuitions Corp.(SB直觉公司)
FRAM: Frobenius-Regularized Assignment Matching with Mixed-Precision Computing
School of Mathematical Sciences, Laboratory of Mathematics and Complex Systems, MOE, Beijing Normal University(数学科学学院、数学与复杂系统实验室、教育部、北京师范大学);Faculty of Arts and Sciences, Beijing Normal University(文理学院、北京师范大学);Research Centers for Mathematics, Advanced Institute of Natural Science, Beijing Normal University(数学研究中心、自然科学高级研究院、北京师范大学);Guangdong Provincial Key Laboratory of Interdisciplinary Research and Application for Data Science, BNU-HKBU United International College(广东省级交叉研究与数据科学应用重点实验室、北京师范大学-香港大学联合国际学院)
FAST: DNN Training Under Variable Precision Block Floating Point with Stochastic Rounding
Harvard University(哈佛大学);Franklin and Marshall College(富兰克林与马歇尔学院)
块浮点(BFP)可以通过经由跨一组值的共享指数提供宽动态范围来有效地支持深度神经网络(DNN)训练的量化。在本文中,我们提出了一种用于DNN的快速第一,准确第二训练(FAST)系统,其中权重,激活和梯度以BFP表示。FAST支持使用可变精度BFP输入操作数的矩阵乘法,从而在整个训练过程中实现DNN精度的增量增加。通过提高训练迭代和DNN层的BFP精度,FAST可以大大缩短训练时间,同时减少整体硬件资源使用。我们的FAST乘法器-累加器(fMAC)支持多个BFP精度下的点积计算。我们在具有不同数据集的多个DNN上验证了我们的FAST系统,在基于\textbf{mixed-precision or block}浮点数系统的先前工作中,在单芯片平台上的训练中展示了2-6个$\times$加速,同时在验证准确性方面实现了类似的性能。
Collage: Light-Weight Low-Precision Strategy for LLM Training
Cornell University(康奈尔大学);AWS AI Labs(亚马逊云科技AI实验室);AWS Annapurna Labs(亚马逊云科技Annapurna实验室);AWS Sagemaker(亚马逊云科技Sagemaker);AWS AI Research and Education(亚马逊云科技AI研究与教育部门)
Auto-ViT-Acc: An FPGA-Aware Automatic Acceleration Framework for Vision Transformer with Mixed-Scheme Quantization
Northeastern University(东北大学);Simon Fraser University(西蒙弗雷泽大学);University of California, Irvine(加州大学欧文分校);ETH Zurich(苏黎世联邦理工学院);The University of Texas at Austin(德克萨斯大学奥斯汀分校)
视觉Transformer(ViT)正在出现,在计算机视觉任务中具有显著提高的准确性。然而,其复杂的体系结构和巨大的计算/存储需求迫切需要新的硬件加速器的设计方法。这项工作提出了一个FPGA感知的自动ViT加速框架的基础上提出的混合方案量化。据我们所知,这是第一个基于FPGA的ViT加速框架,探索模型量化。与最先进的ViT量化工作(算法方法,只有没有硬件加速)相比,我们的量化实现了0.47%至1.36%的高的Top-1精度在相同的位宽。与32位浮点基线FPGA加速器相比,我们的加速器的帧速率提高了约5.6倍(即,56.8 FPS vs. 10.0 FPS),DeiT-base在ImageNet数据集上的准确率下降了0.71%。
SAMP: A Model Inference Toolkit of Post-Training Quantization for Text Processing via Self-Adaptive Mixed-Precision
Kuaishou Technology(快手科技);Peking University(北京大学);Tencent AI Lab(腾讯人工智能实验室);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院)
Center for Computational Quantum Physics, Flatiron Institute(计算量子物理中心,Flatiron研究所);Department of Mathematical Sciences, Rutgers University(数学科学系,罗格斯大学);Center for Computational Mathematics, Flatiron Institute(计算数学中心,Flatiron研究所)