Real-Time Video Inference on Edge Devices via Adaptive Model Streaming

Mehrdad Khani, Pouya Hamadanian, Arash Nasr-Esfahany, Mohammad Alizadeh
6/11/2020
cs.LGcs.CVcs.NI

Official code: modelstreaming/ams (42 stars, Python, TensorFlow, last commit 2021-10-18).

Abstract

Real-time video inference on edge devices like mobile phones and drones is challenging due to the high computation cost of Deep Neural Networks. We present Adaptive Model Streaming (AMS), a new approach to improving performance of efficient lightweight models for video inference on edge devices.

Show full abstract

AMS uses a remote server to continually train and adapt a small model running on the edge device, boosting its performance on the live video using online knowledge distillation from a large, state-of-the-art model. We discuss the challenges of over-the-network model adaptation for video inference, and present several techniques to reduce communication cost of this approach: avoiding excessive overfitting, updating a small fraction of important model parameters, and adaptive sampling of training frames at edge devices. On the task of video semantic segmentation, our experimental results show 0.4--17.8 percent mean Intersection-over-Union improvement compared to a pre-trained model across several video datasets. Our prototype can perform video segmentation at 30 frames-per-second with 40 milliseconds camera-to-label latency on a Samsung Galaxy S10+ mobile phone, using less than 300 Kbps uplink and downlink bandwidth on the device.

View on arXivView PDF

Code Implementations(1)

modelstreaming/amsOfficial100%
TensorFlow

Adaptive Model Streaming for real-time video inference on edge devices

425PythonJun 4, 20205 years ago
edge-inferenceknowledge-distillationreal-timesemantic-segmentationtensorflow+1 more

Similar Papers

Cite this paper

@article{khani2020realtime,
  title  = {Real-Time Video Inference on Edge Devices via Adaptive Model Streaming},
  author = {Mehrdad Khani and Pouya Hamadanian and Arash Nasr-Esfahany and Mohammad Alizadeh},
  year   = {2020},
  eprint = {2006.06628},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.06628}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.06628.svg)](https://codeofpaper.com/paper/2006.06628)

Discussion