paper-with-me

홈 › Papers

Dynamic Transformer for Efficient Machine Translation on Embedded Devices

2021-07-17 · Hishan Parry, Lei Xun, Amin Sabet, Jia Bi, Jonathon Hare, Geoff V. Merrett

The Transformer architecture is widely used for machine translation tasks. However, its resource-intensive nature makes it challenging to implement on constrained embedded devices, particularly where available hardware resources can vary at run-time. We propose a dynamic machine translation model that scales the Transformer architecture based on the available resources at any particular time. The proposed approach, 'Dynamic-HAT', uses a HAT SuperTransformer as the backbone to search for SubTransformers with different accuracy-latency trade-offs at design time. The optimal SubTransformers are sampled from the SuperTransformer at run-time, depending on latency constraints. The Dynamic-HAT is tested on the Jetson Nano and the approach uses inherited SubTransformers sampled directly from the SuperTransformer with a switching time of <1s. Using inherited SubTransformers results in a BLEU score loss of <1.5% because the SubTransformer configuration is not retrained from scratch after sampling. However, to recover this loss in performance, the dimensions of the design space can be reduced to tailor it to a family of target hardware. The new reduced design space results in a BLEU score increase of approximately 1% for sub-optimal models from the original design space, with a wide range for performance scaling between 0.356s - 1.526s for the GPU and 2.9s - 7.31s for the CPU.

📄 PDF Abstract BibTeX arXiv:2107.08199

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPUMachine TranslationTranslation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
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…

Similar Papers 제목 키워드 기반

Optimizing Deep Learning Inference on Embedded Systems Through Adaptive Model Selection

2019-11-09 · Vicent Sanz Marco, Ben Taylor, Zheng Wang, Yehia Elkhatib

Deep neural networks ( DNNs ) are becoming a key enabling technology for many application domains. However, on-device inference on battery-powered, resource-constrained embedding systems is often infeasible due to prohib…

Deep Learningimage-classificationImage ClassificationMachine Translation+2

Dynamic Multi-Branch Layers for On-Device Neural Machine Translation

2021-05-14 · Zhixing Tan, Zeyuan Yang, Meng Zhang, Qun Liu 외

With the rapid development of artificial intelligence (AI), there is a trend in moving AI applications, such as neural machine translation (NMT), from cloud to mobile devices. Constrained by limited hardware resources an…

Machine TranslationNMTTranslation

TensorFlow Lite Micro: Embedded Machine Learning on TinyML Systems

2020-10-17 · Robert David, Jared Duke, Advait Jain, Vijay Janapa Reddi 외

Deep learning inference on embedded devices is a burgeoning field with myriad applications because tiny embedded devices are omnipresent. But we must overcome major challenges before we can benefit from this opportunity.…

BIG-bench Machine Learning

Opportunities for Human-centered Evaluation of Machine Translation Systems

2022-07-01 · Findings (NAACL) 2022 7 · Daniel Liebling, Katherine Heller, Samantha Robertson, Wesley Deng

Machine translation models are embedded in larger user-facing systems. Although model evaluation has matured, evaluation at the systems level is still lacking. We review literature from both the translation studies and H…

Machine TranslationTranslation

A lightweight Transformer-based model for fish landmark detection

2022-09-13 · Alzayat Saleh, David Jones, Dean Jerry, Mostafa Rahimi Azghadi

Transformer-based models, such as the Vision Transformer (ViT), can outperform onvolutional Neural Networks (CNNs) in some vision tasks when there is sufficient training data. However, (CNNs) have a strong and useful ind…

Inductive Bias