Skip to main content
QUICK REVIEW

[Paper Review] NoScope: Optimizing Neural Network Queries over Video at Scale

Daniel Kang, John Emmons|arXiv (Cornell University)|Mar 7, 2017
Advanced Neural Network ApplicationsComputer Science86 references47 citations
TL;DR

NoScope accelerates neural network inference on video by automatically searching for and training a cascade of specialized models and difference detectors tailored to a specific video and object class, achieving up to 15,500× speedup over real-time with only 1–5% accuracy loss compared to state-of-the-art networks.

ABSTRACT

Recent advances in computer vision-in the form of deep neural networks-have made it possible to query increasing volumes of video data with high accuracy. However, neural network inference is computationally expensive at scale: applying a state-of-the-art object detector in real time (i.e., 30+ frames per second) to a single video requires a $4000 GPU. In response, we present NoScope, a system for querying videos that can reduce the cost of neural network video analysis by up to three orders of magnitude via inference-optimized model search. Given a target video, object to detect, and reference neural network, NoScope automatically searches for and trains a sequence, or cascade, of models that preserves the accuracy of the reference network but is specialized to the target video and are therefore far less computationally expensive. NoScope cascades two types of models: specialized models that forego the full generality of the reference model but faithfully mimic its behavior for the target video and object; and difference detectors that highlight temporal differences across frames. We show that the optimal cascade architecture differs across videos and objects, so NoScope uses an efficient cost-based optimizer to search across models and cascades. With this approach, NoScope achieves two to three order of magnitude speed-ups (265-15,500x real-time) on binary classification tasks over fixed-angle webcam and surveillance video while maintaining accuracy within 1-5% of state-of-the-art neural networks.

Motivation & Objective

  • Address the high computational cost of running state-of-the-art deep neural networks (DNNs) for video object detection at scale.
  • Reduce the cost and latency of neural network inference on video by exploiting query-specific patterns in fixed-angle video streams.
  • Develop an automated system that searches for and trains optimized model cascades tailored to a specific video and object class.
  • Maintain high accuracy (within 1–5% of reference models) while drastically improving inference speed through model specialization and temporal difference detection.

Proposed method

  • Use a pre-trained reference DNN to generate labeled training data for model specialization on a target video and object class.
  • Train lightweight, specialized DNNs that mimic the reference model’s behavior for the target video but are optimized for speed and reduced complexity.
  • Deploy a difference detector to identify temporal changes between consecutive frames, allowing the system to skip expensive inference on nearly identical frames.
  • Construct a cascade of models where specialized networks are applied first, followed by difference detectors, and only the reference DNN is invoked when confidence is low.
  • Employ a cost-based optimizer to search across model architectures and confidence thresholds, maximizing throughput under a specified accuracy constraint.
  • Use knowledge distillation to transfer knowledge from the full reference model to smaller, faster specialized models.

Experimental results

Research questions

  • RQ1Can we reduce the inference cost of neural networks on video by orders of magnitude without significant accuracy loss?
  • RQ2How can we automatically identify and exploit video-specific patterns—such as limited object viewpoints and temporal redundancy—to accelerate inference?
  • RQ3What is the optimal cascade architecture of specialized models and difference detectors for a given video and object class?
  • RQ4To what extent can model specialization and temporal difference detection jointly improve inference efficiency in real-world video workloads?

Key findings

  • NoScope achieves 265× to 15,500× speedup over real-time inference on fixed-angle webcam and surveillance videos while maintaining accuracy within 1–5% of the reference model.
  • The system reduces computational cost by up to three orders of magnitude, making large-scale video analysis with deep learning feasible on commodity hardware.
  • Specialized models alone can be up to 340× faster than the full reference network, significantly reducing the need to invoke the original model.
  • Difference detectors effectively identify temporally redundant frames, reducing the number of frames requiring expensive inference by up to 80% in some cases.
  • The cost-based optimizer successfully identifies optimal model cascades across diverse video and object classes, adapting architecture and confidence thresholds to maximize efficiency.
  • Model specialization outperforms general model compression techniques (e.g., knowledge distillation or pruning) in inference speed when the target video and object class are known in advance.

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.