跳到主要导航 跳到搜索 跳到主要内容

Dancing along Battery: Enabling Transformer with Run-time Reconfigurability on Mobile Devices

  • East China Normal University
  • University of Notre Dame
  • University of Connecticu
  • Edgecortix Inc

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

A pruning-based AutoML framework for run-time reconfigurability, namely RT3, is proposed in this work. This enables Transformer-based large Natural Language Processing (NLP) models to be efficiently executed on resource-constrained mobile devices and reconfigured (i.e., switching models for dynamic hardware conditions) at run-time. Such reconfigurability is the key to save energy for battery-powered mobile devices, which widely use dynamic voltage and frequency scaling (DVFS) technique for hardware reconfiguration to prolong battery life. In this work, we creatively explore a hybrid block-structured pruning (BP) and pattern pruning (PP) for Transformer-based models and first attempt to combine hardware and software reconfiguration to maximally save energy for battery-powered mobile devices. Specifically, RT3 integrates two-level optimizations: First, it utilizes an efficient BP as the first-step compression for resource-constrained mobile devices; then, RT3 heuristically generates a shrunken search space based on the first level optimization and searches multiple pattern sets with diverse sparsity for PP via reinforcement learning to support lightweight software reconfiguration, which corresponds to available frequency levels of DVFS (i.e., hardware reconfiguration). At run-time, RT3 can switch the lightweight pattern sets within 45ms to guarantee the required real-time constraint at different frequency levels. Results further show that RT3 can prolong battery life over 4× improvement with less than 1% accuracy loss for Transformer and 1.5% score decrease for DistilBERT.

源语言英语
主期刊名2021 58th ACM/IEEE Design Automation Conference, DAC 2021
出版商Institute of Electrical and Electronics Engineers Inc.
1003-1008
页数6
ISBN(电子版)9781665432740
DOI
出版状态已出版 - 5 12月 2021
活动58th ACM/IEEE Design Automation Conference, DAC 2021 - San Francisco, 美国
期限: 5 12月 20219 12月 2021

出版系列

姓名Proceedings - Design Automation Conference
2021-December
ISSN(印刷版)0738-100X

会议

会议58th ACM/IEEE Design Automation Conference, DAC 2021
国家/地区美国
San Francisco
时期5/12/219/12/21

学术指纹

探究 'Dancing along Battery: Enabling Transformer with Run-time Reconfigurability on Mobile Devices' 的科研主题。它们共同构成独一无二的学术指纹。

引用此