Skip to main content
QUICK REVIEW

[Paper Review] EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platforms

Shikhar Tuli, Niraj K. Jha|arXiv (Cornell University)|Mar 24, 2023
Green IT and SustainabilityEngineering3 citations
TL;DR

EdgeTran co-designs efficient transformer models for mobile edge platforms by combining hardware-aware profiling (ProTran) with Bayesian optimization (BOSHCODE) to jointly optimize model architecture and edge device selection. It achieves a 2.8× smaller model with 0.8% higher GLUE score and 15.0% lower latency, 10.0× lower energy, and 10.8× lower peak power than BERT-Base on a GPU, enabling real-time, energy-efficient edge inference.

ABSTRACT

Automated design of efficient transformer models has recently attracted significant attention from industry and academia. However, most works only focus on certain metrics while searching for the best-performing transformer architecture. Furthermore, running traditional, complex, and large transformer models on low-compute edge platforms is a challenging problem. In this work, we propose a framework, called ProTran, to profile the hardware performance measures for a design space of transformer architectures and a diverse set of edge devices. We use this profiler in conjunction with the proposed co-design technique to obtain the best-performing models that have high accuracy on the given task and minimize latency, energy consumption, and peak power draw to enable edge deployment. We refer to our framework for co-optimizing accuracy and hardware performance measures as EdgeTran. It searches for the best transformer model and edge device pair. Finally, we propose GPTran, a multi-stage block-level grow-and-prune post-processing step that further improves accuracy in a hardware-aware manner. The obtained transformer model is 2.8$ imes$ smaller and has a 0.8% higher GLUE score than the baseline (BERT-Base). Inference with it on the selected edge device enables 15.0% lower latency, 10.0$ imes$ lower energy, and 10.8$ imes$ lower peak power draw compared to an off-the-shelf GPU.

Motivation & Objective

  • To address the challenge of deploying large, high-accuracy transformers on low-compute mobile edge platforms with strict latency, energy, and peak power constraints.
  • To enable efficient co-design of transformer architectures and edge devices by profiling key hardware performance metrics across diverse model and platform combinations.
  • To develop a scalable, automated framework that jointly optimizes model accuracy and hardware efficiency for real-world edge deployment.
  • To improve model efficiency post-optimization through a hardware-aware, block-level grow-and-prune method (GPTran).
  • To reduce the time and computational cost of profiling new edge platforms by enabling fast surrogate model generation via active learning.

Proposed method

  • ProTran is a hardware performance profiler that measures latency, energy consumption, and peak power draw for a diverse design space of transformer architectures on target edge platforms.
  • It uses active learning with surrogate models—employing Gaussian process regression, decision trees, and BOSHNAS—to minimize the number of expensive evaluations needed for accurate performance prediction.
  • The framework integrates with FlexiBERT 2.0, an expanded, heterogeneous design space supporting fine-grained weight transfer and 10^79× larger search space than prior work.
  • EdgeTran applies Bayesian optimization with second-order gradients and heteroscedastic modeling (BOSHCODE) to co-optimize model architecture and edge device selection under user-defined constraints.
  • GPTran performs a multi-stage, block-level grow-and-prune post-processing step to further enhance accuracy while maintaining hardware efficiency.
  • The entire pipeline leverages pre-profiled surrogate models, enabling co-design for new platforms in minutes after an initial few-hour profiling phase.
Figure 1 : Overview of the EdgeTran framework: (a) ProTran used in conjunction with FlexiBERT 2.0 for modeling accuracy along with latency, energy consumption, and peak power draw (hardware measures) for different embedded platforms, using BOSHCODE [ 19 ] for co-design. (b) EdgeTran employs surrogat
Figure 1 : Overview of the EdgeTran framework: (a) ProTran used in conjunction with FlexiBERT 2.0 for modeling accuracy along with latency, energy consumption, and peak power draw (hardware measures) for different embedded platforms, using BOSHCODE [ 19 ] for co-design. (b) EdgeTran employs surrogat

Experimental results

Research questions

  • RQ1How can we efficiently profile the latency, energy, and peak power consumption of diverse transformer architectures across heterogeneous mobile edge platforms?
  • RQ2What is the optimal trade-off between model accuracy and hardware efficiency (latency, energy, peak power) when co-designing transformer models and edge devices?
  • RQ3Can active learning and surrogate modeling significantly reduce the sample complexity of hardware performance evaluation in transformer NAS?
  • RQ4How effective is a hardware-aware, block-level grow-and-prune strategy in improving accuracy without compromising efficiency?
  • RQ5To what extent can pre-profiled surrogate models accelerate co-design for new edge platforms?

Key findings

  • The final EdgeTran-optimized model is 2.8× smaller than BERT-Base and achieves a 0.8% higher GLUE score, demonstrating improved accuracy and efficiency.
  • Inference on the selected edge device reduces latency by 15.0% compared to BERT-Base on an A100 GPU.
  • Energy consumption is reduced by 10.0× and peak power draw by 10.8× compared to the same baseline on the A100 GPU.
  • ProTran can profile a new edge platform in under 7 hours (e.g., Raspberry Pi), enabling rapid co-design with minimal overhead.
  • The co-design pipeline, once surrogate models are pre-trained, completes in minutes, making it practical for iterative deployment.
  • The framework achieves up to 22.0% lower latency, 3.7× lower energy, and 48.8× lower peak power than a server-side GPU baseline under comparable accuracy.
Figure 2 : BERT-Tiny in the FlexiBERT 2.0 representation.
Figure 2 : BERT-Tiny in the FlexiBERT 2.0 representation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.