CLLGJul 17, 2021

Dynamic Transformer for Efficient Machine Translation on Embedded Devices

arXiv:2107.08199v210 citations
AI Analysis

This work addresses the problem of efficient machine translation on embedded devices with varying hardware resources, representing an incremental improvement by adapting existing methods for dynamic resource allocation.

The paper tackles the challenge of implementing resource-intensive Transformer models on constrained embedded devices by proposing Dynamic-HAT, a dynamic machine translation model that scales the Transformer architecture based on available hardware resources at run-time, achieving BLEU score losses of <1.5% and performance scaling from 0.356s to 7.31s across GPU and CPU.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes