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

利用异构内存架构实现 NLP 边缘推理的节能任务适配

Energy-efficient Task Adaptation for NLP Edge Inference Leveraging Heterogeneous Memory Architectures

Tufts University(塔夫茨大学)

Zirui Fu, Aleksandre Avaliani, Marco Donato

AI总结:

本文提出 adapter-ALBERT 模型优化方法,通过最大化跨任务数据复用并结合异构片上内存架构映射,在边缘设备上实现高效节能的多任务 NLP 推理。

摘要:

在资源受限的边缘设备上执行机器学习推理任务需要精心的软硬件协同设计优化。近期已有研究表明,基于 Transformer 的深度神经网络模型(如 ALBERT)可用于在搭载定制硬件加速器的移动系统级芯片上执行自然语言处理(NLP)推理。然而,尽管这些现有方案能有效缓解运行单个 NLP 任务时的延迟、能耗和面积成本,但实现多任务推理需要对模型参数的多个变体进行计算,而这些变体分别针对每个目标任务进行了定制。这种方法要么导致片上内存需求过高而难以承受,要么需要付出片外内存访问的代价。本文提出了 adapter-ALBERT,这是一种高效的模型优化方法,旨在实现不同任务之间最大程度的数据复用。我们在 GLUE 基准中的多个语言任务上评估了所提模型的性能及其对数据压缩方法的鲁棒性。此外,我们通过在经过验证的 NLP 边缘加速器上执行仿真,将模型映射到异构片上内存架构,外推了在同一硬件平台上相对于传统 ALBERT 模型执行时的性能、功耗和面积改进,从而展示了该映射方案的优势。

英文摘要:

Executing machine learning inference tasks on resource-constrained edge devices requires careful hardware-software co-design optimizations. Recent examples have shown how transformer-based deep neural network models such as ALBERT can be used to enable the execution of natural language processing (NLP) inference on mobile systems-on-chip housing custom hardware accelerators. However, while these existing solutions are effective in alleviating the latency, energy, and area costs of running single NLP tasks, achieving multi-task inference requires running computations over multiple variants of the model parameters, which are tailored to each of the targeted tasks. This approach leads to either prohibitive on-chip memory requirements or paying the cost of off-chip memory access. This paper proposes adapter-ALBERT, an efficient model optimization for maximal data reuse across different tasks. The proposed model's performance and robustness to data compression methods are evaluated across several language tasks from the GLUE benchmark. Additionally, we demonstrate the advantage of mapping the model to a heterogeneous on-chip memory architecture by performing simulations on a validated NLP edge accelerator to extrapolate performance, power, and area improvements over the execution of a traditional ALBERT model on the same hardware platform.

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

↑