AdaScale: Towards Real-time Video Object Detection using Adaptive Scaling

Ting-Wu Chin, Ruizhou Ding, Diana Marculescu

Abstract

Real-time video object detection is a cornerstone of autonomous systems, yet it has traditionally been constrained by a rigid trade-off between processing speed and detection accuracy. Conventional methods assume that higher resolutions always yield better results at the cost of latency. AdaScale challenges this assumption by introducing an adaptive scaling framework that selects the optimal resolution for each video frame. By dynamically re-scaling images, AdaScale achieves a 'win-win' scenario: increasing processing speeds by up to 1.8x while simultaneously improving detection accuracy by up to 2.7 points mAP on standard benchmarks.

Introduction

In applications like self-driving cars and robotics, object detection must be both instantaneous and highly reliable. The standard approach to balancing these needs is to fix the input image resolution. High-resolution inputs preserve fine details but are computationally taxing, whereas low-resolution inputs offer speed at the expense of clarity.

However, the authors of AdaScale identify a critical oversight in this trade-off: most object detectors are not perfectly scale-invariant. Processing a frame at a resolution that is 'too high' can actually degrade performance by introducing background noise or presenting objects at scales the detector's filters were not optimized to handle. AdaScale seeks to find the 'Goldilocks' scale for every frame—maximizing both efficiency and precision.

The Problem: Sub-optimal Scaling

Detectors trained on fixed scales often struggle when the input resolution deviates from the 'sweet spot' of their learned features. For instance, excessive background detail in a high-resolution image can trigger false positives, while very large objects might exceed the receptive field of the detection network.

Detection challenges at a fixed scale (600px) showing false positives.

Methodology

AdaScale introduces a two-stage approach to adaptive scaling that leverages the temporal continuity of video.

1. Optimal Scale Labeling

To train the adaptive system, the authors first define the 'optimal' scale for each training image. This is achieved through a novel metric based on the detector's loss function. By evaluating the model's loss across a range of scales (e.g., 600, 480, 360, 240 pixels), the framework identifies the resolution that minimizes loss and maximizes detection confidence.

Flowchart component for optimal scale label generation.

2. The Scale Regressor

The core of the runtime system is a lightweight Scale Regressor module. Integrated into the backbone of a standard detector (such as R-FCN), this module analyzes the deep features of the current frame to predict the optimal scale for the subsequent frame. This 'look-ahead' strategy relies on the fact that object sizes do not change drastically between consecutive frames. The regressor is highly efficient, adding only approximately 2ms of overhead per frame.

Key Insights

  • Down-sampling as an Optimization: Contrary to intuition, down-sampling can improve accuracy by filtering out high-frequency distractions and resizing large objects into the detector's optimal size range.
  • Temporal Consistency: By using current frame features to predict future scales, AdaScale avoids the 'brute force' cost of multi-scale testing while maintaining high precision.
  • Pushing the Pareto Frontier: AdaScale does not just move along the speed-accuracy curve; it shifts the entire curve outward, providing a superior version of both metrics simultaneously.

Results and Evaluation

The framework was rigorously tested on the ImageNet VID and mini YouTube-BoundingBoxes (YouTube-BB) datasets.

  • ImageNet VID: AdaScale achieved a 1.3 point mAP improvement while operating 1.6x faster than the baseline.
  • mini YouTube-BB: The system showed even greater gains, with a 2.7 point mAP improvement and a 1.8x speedup.
  • Efficiency: The scale regressor accounts for only 3% of total runtime, making it a highly cost-effective addition to any detection pipeline.

Conclusion and Future Work

AdaScale demonstrates that 'smarter' processing is often more effective than 'heavier' processing. By adaptively choosing the right scale, the system overcomes the limitations of fixed-resolution detectors. While the current implementation faces challenges with 'scale jitter' in complex scenes containing objects of vastly different sizes, future iterations could apply adaptive scaling to specific regions of interest, further refining the balance between speed and accuracy in real-time video analysis.

Summary updated

BibTeX
@inproceedings{chin2019adascale,
  author = {Ting-Wu Chin and Ruizhou Ding and Diana Marculescu},
  title = {{AdaScale: Towards Real-time Video Object Detection using Adaptive Scaling}},
  booktitle = {SysML},
  year = {2019},
  url = {https://openreview.net/forum?id=Jsoze3zEjp},
}
Figure