arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.16006cs.LGcs.CV
收藏

提高资源受限设备的Transformers效率

Improving the Efficiency of Transformers for Resource-Constrained Devices

NavInfo Europe(欧洲四维图新)

Hamid Tabani, Ajay Balasubramaniam, Shabbir Marzban, Elahe Arani, Bahram Zonooz

摘要:

Transformers提供了有希望的准确性,并且已经变得流行并用于诸如自然语言处理和计算机视觉的各种领域。然而,由于其大量的模型参数,内存和计算要求,它们不适合资源受限的低功耗设备。即使使用高性能的专用设备,内存带宽也可能成为性能限制瓶颈。在本文中,我们提出了一个国家的最先进的视觉Transformer在几个设备上的性能分析。我们建议通过聚类模型参数来减少整体内存占用和内存传输。我们表明,通过仅使用64个集群来表示模型参数,可以将从主存储器的数据传输减少4倍以上,在移动设备上实现高达22%的加速比和39%的节能,并且精度损失小于0.1%。

英文摘要:

Transformers provide promising accuracy and have become popular and used in various domains such as natural language processing and computer vision. However, due to their massive number of model parameters, memory and computation requirements, they are not suitable for resource-constrained low-power devices. Even with high-performance and specialized devices, the memory bandwidth can become a performance-limiting bottleneck. In this paper, we present a performance analysis of state-of-the-art vision transformers on several devices. We propose to reduce the overall memory footprint and memory transfers by clustering the model parameters. We show that by using only 64 clusters to represent model parameters, it is possible to reduce the data transfer from the main memory by more than 4x, achieve up to 22% speedup and 39% energy savings on mobile devices with less than 0.1% accuracy loss.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑