Transformer has been adopted to image recognition tasks and shown to outperform CNNs and RNNs while it suffers from high training cost and computational complexity. To address these issues, a hybrid approach has become a recent research trend, which replaces a part of ResNet with an MHSA (Multi-Head Self-Attention). In this paper, we propose a lightweight hybrid model which uses Neural ODE (Ordinary Differential Equation) as a backbone instead of ResNet so that we can increase the number of iterations of building blocks while reusing the same parameters, mitigating the increase in parameter size per iteration. The proposed model is deployed on a modest-sized FPGA device for edge computing. The model is further quantized by QAT (Quantization Aware Training) scheme to reduce FPGA resource utilization while suppressing the accuracy loss. The quantized model achieves 79.68% top-1 accuracy for STL10 dataset that contains 96$\times$96 pixel images. The weights of the feature extraction network are stored on-chip to minimize the memory transfer overhead, allowing faster inference. By eliminating the overhead of memory transfers, inference can be executed seamlessly, leading to accelerated inference. The proposed FPGA implementation accelerates the backbone and MHSA parts by 34.01$\times$, and achieves an overall 9.85$\times$ speedup when taking into account the software pre- and post-processing. The FPGA acceleration leads to 7.10$\times$ better energy efficiency compared to the ARM Cortex-A53 CPU. The proposed lightweight Transformer model is demonstrated on Xilinx ZCU104 board for the image recognition of 96$\times$96 pixel images in this paper and can be applied to different image sizes by modifying the pre-processing layer.
Open-source FPGA-ML codesign for the MLPerf Tiny Benchmark
Heidelberg University(海德堡大学);Columbia University(哥伦比亚大学);University of California San Diego(加州大学圣地亚哥分校);European Organization for Nuclear Research (CERN)(欧洲核子研究组织(CERN));Fermi National Accelerator Laboratory(费米国家加速器实验室);University of Washington(华盛顿大学);Harvard University(哈佛大学);AMD Adaptive and Embedded Computing Group (AECG) Labs(AMD自适应与嵌入式计算集团(AECG)实验室)
Virtualization of Tiny Embedded Systems with a robust real-time capable and extensible Stack Virtual Machine REXAVM supporting Material-integrated Intelligent Systems and Tiny Machine Learning
University of Bremen(不来梅大学);University of Siegen(锡根大学);Institute for Microsensors, -actuators and -systems(微传感器、微执行器与微系统研究所)
Proximal Implicit ODE Solvers for Accelerating Learning Neural ODEs
University of Utah(犹他大学);University of California, Los Angeles(加州大学洛杉矶分校);Illinois Institute of Technology(伊利诺伊理工学院);University of California, Irvine(加州大学欧文分校);Scientific Computing and Imaging (SCI) Institute(科学计算与成像研究所)
通过模仿类脑认知和利用并行性,超维计算(HDC)分类器已经成为一个轻量级的框架,以实现有效的设备上的推理。尽管如此,它们有两个基本的缺点,启发式训练过程和超高的维度,这导致次优的推理精度和大的模型尺寸超出了具有严格资源约束的微小设备的能力。在本文中,我们解决这些根本的缺点,并提出了一个低维计算(LDC)的替代方案。具体来说,通过将我们的LDC分类器映射到等效的神经网络中,我们使用原则性训练方法优化了我们的模型。最重要的是,我们可以提高推理精度,同时成功地将现有HDC模型的超高维度降低了几个数量级(例如,8000 vs. 4/64)。我们运行实验来评估我们的LDC分类器,通过考虑不同的数据集在微小设备上进行推理,并在FPGA平台上实现不同的模型以进行加速。结果突出表明,我们的LDC分类器比现有的大脑启发的HDC模型具有压倒性的优势,特别适合在微型设备上进行推理。
Enabling Physical AI at the Edge: Hardware-Accelerated Recovery of System Dynamics
School of Electrical Engineering Arizona State University Tempe, USA(电气工程学院亚利桑那州立大学Tempe分校);School of Computing Science Arizona State University Tempe, USA(计算科学学院亚利桑那州立大学Tempe分校)
National Research University Higher School of Economics(俄罗斯国家研究型高等经济大学);Moscow Institute of Physics and Technology(莫斯科物理技术学院);Samsung AI Center Moscow(三星莫斯科人工智能中心)
AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantization
Department of Electronics and Electrical Engineering, Keio University(庆应义塾大学电子与电气工程系);School of Computer Science and Technology, Hainan University(海南大学计算机科学与技术学院);Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(厦门大学多媒体可信感知与高效计算教育部重点实验室)
School of Informatics, Xiamen University(厦门大学信息学院);School of Artificial Intelligence, Shenzhen Polytechnic University(深圳职业技术学院人工智能学院);Algorithm Research Department, Truesight(Truesight算法研究部)
DietCNN: Multiplication-free Inference for Quantized CNNs
TCS, Research(塔塔咨询服务公司研究部);IIT Kharagpur(印度理工学院克勒格布尔分校);Tata Consultancy Services Ltd.(塔塔咨询服务有限公司);Indian Institute of Technology Kharagpur(印度理工学院克勒格布尔分校)