arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00042cs.LGcs.AI
收藏

资源高效型Transformer架构:面向实时应用优化内存与执行时间

Resource-Efficient Transformer Architecture: Optimizing Memory and Execution Time for Real-Time Applications

Vellore Institute of Technology(韦洛尔理工学院)

Krisvarish V, Priyadarshini T, K P Abhishek Sri Saai, Vaidehi Vijayakumar

AI总结:

本文提出一种资源高效型Transformer架构,通过嵌入减半、参数剪枝与量化,在保持精度的同时将内存占用降低52%、执行时间减少33%,优于MobileBERT和DistilBERT,适用于实时与资源受限场景。

摘要:

本文描述了一种内存高效的Transformer模型,旨在在不损害模型性能、使其接近原始模型的前提下,将内存占用和执行时间大幅降低若干个数量级。近年来,新的Transformer架构不断被提出,重点关注参数效率和计算优化;然而,此类模型在边缘设备的实际应用中部署时,通常需要可观的硬件资源。本方法通过将嵌入维度减半,并应用参数剪枝和量化等针对性技术来优化内存占用,同时以最小的精度损失为代价,以应对这一问题。实验结果表明,内存占用减少了52%,执行时间降低了33%,从而实现了优于当前最先进模型的效率。本研究将我们的模型与MobileBERT和DistilBERT等现有具有竞争力的架构进行了比较,证明了其在资源友好型深度学习架构领域的可行性,主要面向实时应用和资源受限的应用场景。

英文摘要:

This paper describes a memory-efficient transformer model designed to drive a reduction in memory usage and execution time by substantial orders of magnitude without impairing the model's performance near that of the original model. Recently, new architectures of transformers were presented, focused on parameter efficiency and computational optimization; however, such models usually require considerable resources in terms of hardware when deployed in real-world applications on edge devices. This approach addresses this concern by halving embedding size and applying targeted techniques such as parameter pruning and quantization to optimize the memory footprint with minimum sacrifices in terms of accuracy. Experimental results include a 52% reduction in memory usage and a 33% decrease in execution time, resulting in better efficiency than state-of-the-art models. This work compared our model with existing compelling architectures, such as MobileBERT and DistilBERT, and proved its feasibility in the domain of resource-friendly deep learning architectures, mainly for applications in real-time and in resource-constrained applications.

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

↑