缩小巨人:用于低能耗推理的准无权重Transformer
Shrinking the Giant : Quasi-Weightless Transformers for Low Energy Inference
AI总结:
提出准无权重Transformer(QuWeiT),用查找表网络替代MLP层,减少约55%乘法运算,在CIFAR-10上保持95.64%精度并实现2.2倍能效提升。
摘要:
Transformer正变得无处不在,其应用范围从聊天机器人和教育助手扩展到视觉识别和遥感。然而,它们日益增长的计算和内存需求正导致能耗不断增加。构建具有快速且节能推理的模型对于实现各种基于Transformer的应用至关重要。基于查找表(LUT)的无权重神经网络比传统神经网络更快,因为其推理仅涉及少量查找操作。最近,有人提出了一种通过扩展有限差分法直接学习LUT网络的方法。我们在此想法基础上进行扩展,将其用于执行Transformer模型中多层感知器(MLP)层的功能,并将其与Transformer集成,提出了准无权重Transformer(QuWeiT)。这为基于Transformer的模型提供了一种计算和能源高效的推理解决方案。在I-ViT-T上,我们在CIFAR-10数据集上实现了95.64%的可比精度,同时替换了整个模型中约55%的乘法运算,并实现了2.2倍的能效提升。我们还在nanoGPT框架的实验中观察到了类似的节省。
英文摘要:
Transformers are set to become ubiquitous with applications ranging from chatbots and educational assistants to visual recognition and remote sensing. However, their increasing computational and memory demands is resulting in growing energy consumption. Building models with fast and energy-efficient inference is imperative to enable a variety of transformer-based applications. Look Up Table (LUT) based Weightless Neural Networks are faster than the conventional neural networks as their inference only involves a few lookup operations. Recently, an approach for learning LUT networks directly via an Extended Finite Difference method was proposed. We build on this idea, extending it for performing the functions of the Multi Layer Perceptron (MLP) layers in transformer models and integrating them with transformers to propose Quasi Weightless Transformers (QuWeiT). This allows for a computational and energy-efficient inference solution for transformer-based models. On I-ViT-T, we achieve a comparable accuracy of 95.64% on CIFAR-10 dataset while replacing approximately 55% of all the multiplications in the entire model and achieving a 2.2x energy efficiency. We also observe similar savings on experiments with the nanoGPT framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。