paper-with-me

홈 › Papers

Quantized Transformer Language Model Implementations on Edge Devices

2023-10-06 · Mohammad Wali Ur Rahman, Murad Mehrab Abrar, Hunter Gibbons Copening, Salim Hariri, Sicong Shao, Pratik Satam, Soheil Salehi

Large-scale transformer-based models like the Bidirectional Encoder Representations from Transformers (BERT) are widely used for Natural Language Processing (NLP) applications, wherein these models are initially pre-trained with a large corpus with millions of parameters and then fine-tuned for a downstream NLP task. One of the major limitations of these large-scale models is that they cannot be deployed on resource-constrained devices due to their large model size and increased inference latency. In order to overcome these limitations, such large-scale models can be converted to an optimized FlatBuffer format, tailored for deployment on resource-constrained edge devices. Herein, we evaluate the performance of such FlatBuffer transformed MobileBERT models on three different edge devices, fine-tuned for Reputation analysis of English language tweets in the RepLab 2013 dataset. In addition, this study encompassed an evaluation of the deployed models, wherein their latency, performance, and resource efficiency were meticulously assessed. Our experiment results show that, compared to the original BERT large model, the converted and quantized MobileBERT models have 160$\times$ smaller footprints for a 4.1% drop in accuracy while analyzing at least one tweet per second on edge devices. Furthermore, our study highlights the privacy-preserving aspect of TinyML systems as all data is processed locally within a serverless environment.

📄 PDF Abstract BibTeX arXiv:2310.03971

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingmodelPrivacy Preserving

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
WordPiece 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Adam 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Transformer-Based Approaches for Sensor-Based Human Activity Recognition: Opportunities and Challenges

2024-10-17 · Clayton Souza Leite, Henry Mauranen, Aziza Zhanabatyrova, Yu Xiao

Transformers have excelled in natural language processing and computer vision, paving their way to sensor-based Human Activity Recognition (HAR). Previous studies show that transformers outperform their counterparts excl…

Activity RecognitionHuman Activity Recognition

VAQF: Fully Automatic Software-Hardware Co-Design Framework for Low-Bit Vision Transformer

2022-01-17 · Mengshu Sun, Haoyu Ma, Guoliang Kang, Yifan Jiang 외

The transformer architectures with attention mechanisms have obtained success in Nature Language Processing (NLP), and Vision Transformers (ViTs) have recently extended the application domains to various vision tasks. Wh…

High-Level SynthesisQuantization

On the Compressibility of Quantized Large Language Models

2024-03-03 · Yu Mao, Weilan Wang, Hongchao Du, Nan Guan 외

Deploying Large Language Models (LLMs) on edge or mobile devices offers significant benefits, such as enhanced data privacy and real-time processing capabilities. However, it also faces critical challenges due to the sub…

Data CompressionQuantization

PoTAcc: A Pipeline for End-to-End Acceleration of Power-of-Two Quantized DNNs

2026-05-07 · Rappy Saha, Jude Haris, Nicolas Bohm Agostini, David Kaeli 외 arxiv

Power-of-two (PoT) quantization significantly reduces the size of deep neural networks (DNNs) and replaces multiplications with bit-shift operations for inference. Prior work has shown that PoT-quantized DNNs can preserv…

Image Classification

SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers

2023-04-08 · Alberto Marchisio, Davide Dura, Maurizio Capra, Maurizio Martina 외

Transformers' compute-intensive operations pose enormous challenges for their deployment in resource-constrained EdgeAI / tinyML devices. As an established neural network compression technique, quantization reduces the h…

Neural Network CompressionQuantization