STI: Turbocharge NLP Inference at the Edge via Elastic Pipelining
Not on the map. Why?
Abstract (arXiv)
Natural Language Processing (NLP) inference is seeing increasing adoption by mobile applications, where on-device inference is desirable for crucially preserving user data privacy and avoiding network roundtrips. Yet, the unprecedented size of an NLP model stresses both latency and memory, creating a tension between the two key resources of a mobile device. To meet a target latency, holding the whole model in memory launches execution as soon as possible but increases one app's memory footprints by several times, limiting its benefits to only a few inferences before being recycled by mobile memory management. On the other hand, loading the model from storage on demand incurs IO as long as a few seconds, far exceeding the delay range satisfying to a user; pipelining layerwise model loading and execution does not hide IO either, due to the high skewness between IO and computation delays. To this end, we propose Speedy Transformer Inference (STI). Built on the key idea of maximizing IO/compute resource utilization on the most important parts of a model, STI reconciles the latency v.s. memory tension via two novel techniques. First, model sharding. STI manages model parameters as independently tunable shards, and profiles their importance to accuracy. Second, elastic pipeline planning with a preload buffer. STI instantiates an IO/compute pipeline and uses a small buffer for preload shards to bootstrap execution without stalling at early stages; it judiciously selects, tunes, and assembles shards per their importance for resource-elastic execution, maximizing inference accuracy. Atop two commodity SoCs, we build STI and evaluate it against a wide range of NLP tasks, under a practical range of target latencies, and on both CPU and GPU. We demonstrate that STI delivers high accuracies with 1-2 orders of magnitude lower memory, outperforming competitive baselines.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 35 of its 71 references that are in the map. First posted on arXiv 11 Jul 2022.
Builds on
35 of 71 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Are Sixteen Heads Really Better than One?cited by 803
23 more
- 2020Efficient Transformers: A Surveycited by 784
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 426
- 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2020Emformer: Efficient Memory Transformer Based Acoustic Model For Low Latency Streaming Speech Recognitioncited by 111
- 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 103
- 2019Playing the lottery with rewards and multiple languages: lottery tickets in RL and NLPcited by 73
- 2022BiBERT: Accurate Fully Binarized BERTcited by 70
- 2020EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inferencecited by 69
- 2018NestDNN: Resource-Aware Multi-Tenant On-Device Deep Learning for Continuous Mobile Visioncited by 68
- 2021RecSSD: Near Data Processing for Solid State Drive Based Recommendation Inferencecited by 35
- 2018Bandana: Using Non-volatile Memory for Storing Deep Learning Modelscited by 14
- 2021Pipeline Parallelism for Inference on Heterogeneous Edge Computingcited by 13
- 2020To BERT or Not to BERT: Comparing Task-specific and Task-agnostic Semi-Supervised Approaches for Sequence Taggingcited by 10
- 2022Boosting DNN Cold Inference on Edge Devicescited by 6
- 2020A Note on Latency Variability of Deep Neural Networks for Mobile Inferencecited by 3
- 2021Demystifying BERT: Implications for Accelerator Designcited by 3
- 2021Minimum Viable Device Drivers for ARM TrustZonecited by 2
Built on by
Citing papers per year: 2023: 3; 2024: 5; 2025: 2; 2026: 4.
14 papers.
Sort:
By area:
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphonecited by 101
- 2023EdgeMoE: Empowering Sparse Large Language Models on Mobile Devicescited by 65
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2025Klotski: Efficient Mixture-of-Expert Inference via Expert-Aware Multi-Batch Pipelinecited by 20
- 2024Training and Serving System of Foundation Models: A Comprehensive Surveycited by 11
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2024Hermes: Memory-Efficient Pipeline Inference for Large Models on Edge Devicescited by 2
- 2024Resource-Efficient Personal Large Language Models Fine-Tuning with Collaborative Edge Computingcited by 1
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizationscited by 1
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Servingcited by 1
- 2025VLM in a flash: I/O-Efficient Sparsification of Vision-Language Model via Neuron Chunkingcited by 0
- 2026LeanStream: A Speculate-and-Refine Streaming Framework for Efficient on-Device LLM Inference2 Sep 2026
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Serving3 May 2026
- 2026Efficient, VRAM-Constrained xLM Inference on Clients29 Apr 2026
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizations17 Feb 2026
- 2025VLM in a flash: I/O-Efficient Sparsification of Vision-Language Model via Neuron Chunking24 Nov 2025
- 2025Klotski: Efficient Mixture-of-Expert Inference via Expert-Aware Multi-Batch Pipeline9 Feb 2025
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024Hermes: Memory-Efficient Pipeline Inference for Large Models on Edge Devices6 Sep 2024
- 2024Resource-Efficient Personal Large Language Models Fine-Tuning with Collaborative Edge Computing20 Aug 2024
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphone10 Jun 2024
- 2024Training and Serving System of Foundation Models: A Comprehensive Survey5 Jan 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
2 more
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphonecited by 101
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2024Training and Serving System of Foundation Models: A Comprehensive Surveycited by 11
- 2024Hermes: Memory-Efficient Pipeline Inference for Large Models on Edge Devicescited by 2
- 2024Resource-Efficient Personal Large Language Models Fine-Tuning with Collaborative Edge Computingcited by 1
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizationscited by 1
- 2026LeanStream: A Speculate-and-Refine Streaming Framework for Efficient on-Device LLM Inferencecited by 0
- 2026LeanStream: A Speculate-and-Refine Streaming Framework for Efficient on-Device LLM Inference2 Sep 2026
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizations17 Feb 2026
- 2024Hermes: Memory-Efficient Pipeline Inference for Large Models on Edge Devices6 Sep 2024
- 2024Resource-Efficient Personal Large Language Models Fine-Tuning with Collaborative Edge Computing20 Aug 2024
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphone10 Jun 2024
- 2024Training and Serving System of Foundation Models: A Comprehensive Survey5 Jan 2024
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inference8 Sep 2023