ROMA: Run-Time Object Detection To Maximize Real-Time Accuracy

JunKyu Lee, Blesson Varghese, Hans Vandierendonck

Abstract

Real-time object detection on edge devices faces significant challenges due to dynamic video content and fluctuating compute resources. Standard static model selection often fails to maintain accuracy when latency leads to frame drops and stale detections. We present ROMA (Runtime Object Detection Accuracy Variation Estimation), a novel system that dynamically switches between different object detectors in real-time to maximize accuracy. ROMA estimates accuracy on-the-fly by modeling object size distributions and degradation due to motion and latency without requiring ground truth labels. Evaluated on the NVIDIA Jetson Nano, ROMA achieves accuracy gains of up to 37% over single-detector baselines.

Introduction

In critical applications like autonomous driving and robotics, object detection must be both accurate and timely. However, two major variables frequently degrade performance in the wild: shifting video content (such as changes in object speed and size) and varying compute availability on shared edge hardware. A high-precision, heavy model may become ineffective if its high latency causes excessive frame drops. Conversely, a lightweight model might maintain a high frame rate but lack the resolution to detect small or distant objects. Existing runtime solutions often require periodic ground truth labels or assume static resource availability, making them difficult to deploy in truly dynamic environments.

The ROMA Framework

ROMA addresses these challenges by estimating the Relative Average Precision (RAP) of a pool of candidate detectors relative to the currently active one. The system decides every few frames whether to "upgrade" to a heavier model for better precision or "downgrade" to a lighter model to maintain real-time performance. This estimation is decomposed into two primary components:

Offline AP Estimation

ROMA analyzes the current detector's output to determine the distribution of object sizes within the frame. By referencing a pre-computed "Prior Histogram Matrix" derived from historical data (such as the MOT15 dataset), it predicts how other detectors in the pool would likely perform on the specific object sizes currently visible.

AP Degradation Modeling

When compute resources are constrained or background workloads increase, the system may be forced to drop frames. In these instances, ROMA uses "stale" bounding boxes copied from the last successful detection. However, as objects move, these boxes become increasingly inaccurate. ROMA models this loss by calculating an accuracy degradation ratio based on the Intersection over Union (IoU) of objects between consecutive frames. This allows the system to quantify the impact of both object speed and system latency on overall precision.

Figure 2: Impact of object speed and background workload on detection accuracy and frame dropping.

Key Insights

ROMA's effectiveness stems from several core observations regarding real-time systems:

  1. Real-Time Accuracy vs. Offline Metrics: Traditional Average Precision (AP) scores on static datasets do not account for the temporal costs of inference. ROMA treats latency as a fundamental component of accuracy, recognizing that a slow model is often an inaccurate one in a moving world.
  2. Label-Free Adaptation: By using the current detections as a proxy for ground truth, ROMA can estimate the performance of alternative models without requiring external supervision or manual labeling during runtime.
  3. Hardware-Awareness: The system monitors its own execution environment, allowing it to preemptively downscale model complexity if background tasks slow down the GPU, thereby maintaining a high effective frame rate.

Experimental Evaluation

The system was tested using benchmarks from the Multi-Object Tracking (MOT) Challenge, specifically MOT17Det and MOT20Det. The hardware platform was an NVIDIA Jetson Nano, utilizing a pool of four YOLOv4 variants (Tiny and Full versions at various resolutions).

Key Results

  • Significant Accuracy Gains: ROMA demonstrated a 4% to 37% improvement in real-time accuracy compared to using any single fixed YOLOv4 detector.
  • Outperforming State-of-the-Art: ROMA beat existing runtime techniques like Transprecise Object Detection (TOD) and Latency-Aware Detection (LAD) by accurately accounting for both object size and movement speed simultaneously.
  • Dynamic Adaptability: In scenarios where object characteristics changed rapidly—such as a bus moving toward a camera—ROMA successfully transitioned through its model pool to pick the optimal detector for each phase of the motion.

Conclusion and Future Work

ROMA provides a robust, label-free method for maximizing object detection accuracy in dynamic environments. While it requires a slightly larger memory footprint (approximately 11% more on the Jetson Nano) to keep multiple models loaded in DRAM, the accuracy gains are substantial. Future work may involve integrating lightweight object trackers to better predict object positions during dropped frames, potentially further mitigating the effects of system latency.

Summary updated

BibTeX
@inproceedings{lee2023roma,
  author = {JunKyu Lee and Blesson Varghese and Hans Vandierendonck},
  title = {{ROMA: Run-Time Object Detection To Maximize Real-Time Accuracy}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00634},
}
Figure