Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

A Compression-Compilation Framework for On-mobile Real-time BERT Applications (2106.00526v2)

Published 30 May 2021 in cs.LG and cs.AI

Abstract: Transformer-based deep learning models have increasingly demonstrated high accuracy on many NLP tasks. In this paper, we propose a compression-compilation co-design framework that can guarantee the identified model to meet both resource and real-time specifications of mobile devices. Our framework applies a compiler-aware neural architecture optimization method (CANAO), which can generate the optimal compressed model that balances both accuracy and latency. We are able to achieve up to 7.8x speedup compared with TensorFlow-Lite with only minor accuracy loss. We present two types of BERT applications on mobile devices: Question Answering (QA) and Text Generation. Both can be executed in real-time with latency as low as 45ms. Videos for demonstrating the framework can be found on https://www.youtube.com/watch?v=_WIRvK_2PZI

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (10)
  1. Wei Niu (68 papers)
  2. Zhenglun Kong (33 papers)
  3. Geng Yuan (58 papers)
  4. Weiwen Jiang (62 papers)
  5. Jiexiong Guan (8 papers)
  6. Caiwen Ding (98 papers)
  7. Pu Zhao (82 papers)
  8. Sijia Liu (204 papers)
  9. Bin Ren (136 papers)
  10. Yanzhi Wang (197 papers)
Citations (4)