LL-ViT:具有查找表神经元的边缘部署视觉变换器
LL-ViT: Edge Deployable Vision Transformers with Look Up Table Neurons
AI总结:
LL-ViT通过集成LUT神经元设计,优化视觉变换器在边缘设备上的部署,实现模型压缩和高效推理。
摘要:
视觉变换器在计算机视觉任务中取得了巨大成功。然而,其较大的计算、内存和能源需求对在FPGA上的边缘推理构成挑战——这一领域最近需求激增。我们认识到最近在逻辑和基于查找表(LUT)的网络中的工作,如LogicNets、NeuraLUT、DWN等,在提供同时减少内存和计算足迹的模型方面具有优势。然而,这些模型原生上在常见的视觉任务上表现不佳,如CIFAR-10/100。在本工作中,我们提出了LL-ViT,一种新型的边缘优化视觉变换器设计,其在变换器架构中集成了LUT神经元层。基于我们的分析发现,大多数模型权重和计算来自通道混合器(MLP层),我们设计了一个替代的基于LUT的通道混合器,并同时开发了针对LL-ViT的FPGA加速器。与一些尝试用查找表替代每个乘法的尝试不同,我们的架构采用了一种神经学习方法,原生学习LUT函数。这种方法允许减少模型大小,并为视觉变换器模型提供计算和能源高效的推理解决方案。在适合边缘的负载上评估,我们实现了在CIFAR-10上95.5%的准确率,在CIFAR-100上78.8%的准确率,在Tiny-ImageNet数据集上60.9%的准确率,与基线变换器相当。LL-ViT消除了超过60%的模型权重和50%的乘法运算,并在整数量化ViT加速器上实现了1.9倍的能源效率和1.3倍更低的延迟,同时在10.9W的功率预算下提供了优于先前工作的吞吐量。
英文摘要:
Vision Transformers have been tremendously successful in computer vision tasks. However, their large computational, memory, and energy demands are a challenge for edge inference on FPGAs -- a field that has seen a recent surge in demand. We recognize the benefits of recent works on logic and Look Up Table (LUT) based networks, such as LogicNets, NeuraLUT, DWN, among others, in offering models that simultaneously reduce both the memory and compute footprints. However, these models natively do not perform well on common vision tasks, such as CIFAR-10/100. In this work, we propose LL-ViT, a novel edge optimized vision transformer design that integrates layers of LUT neurons within the transformer architecture. Based on our characterization that reveals that a majority of model weights and computations are from the channel mixer (MLP layer), we design an alternate LUT-based channel mixer, and simultaneously develop an FPGA-based accelerator for LL-ViT. Contrary to some attempts to replace each multiplication with a table lookup, our architecture utilizes a neural learning approach which natively learns the LUT functions. This approach allows for reduced model sizes, and a computational and energy-efficient inference solution for vision transformer models. Evaluating on edge-suitable workloads, we achieve accuracies of 95.5% on CIFAR-10, 78.8% on CIFAR-100, and 60.9% on Tiny-ImageNet datasets, comparable to the baseline transformer. LL-ViT eliminates over 60% of the model weights and 50% of the multiplications in the model, and achieves 1.9x energy efficiency and 1.3x lower latency over an integer quantized ViT accelerator, while also offering superior throughput against prior works at a 10.9W power budget.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。