Towards Streaming Image Understanding

Mengtian Li, Yu-Xiong Wang, Deva RamananarXiv 2020

TL;DR

This paper introduces streaming accuracy, a novel metric that finally accounts for the real-world latency of perception algorithms. By evaluating the state of the world at every time instant rather than just per-frame, the authors reveal that standard offline benchmarks drastically overestimate real-time performance and that the most effective perception systems must paradoxically "do nothing" at times to wait for fresher data.

What Problem Does This Paper Address?

In the cozy world of computer vision benchmarks, time stands still. We give an algorithm a frame, wait as long as it needs to process it, and then check the result. But in the real world—say, for a self-driving car or an AR headset—the world keeps moving while the computer is thinking.

Latency causes a mismatch between the prediction (A) and the actual state of the world (B) by the time computation finishes.

As shown in Figure 1, if an object detector takes 200ms to process a frame, the car it’s tracking has already moved by the time the result is ready. This "temporal aliasing" means that even a perfectly accurate offline detector can be dangerously wrong in a streaming context. The authors argue that we lack a clear metric to compare methods along the latency-accuracy trade-off in a way that reflects this reality.

Methods

The authors propose a meta-benchmark that converts any single-frame task (like detection or segmentation) into a streaming task.

  1. Streaming Accuracy: Instead of evaluating a function, they evaluate an output buffer. The benchmark queries this buffer at every time instant. If the algorithm hasn't finished a new frame, the buffer holds the "stale" result from the previous one.
  2. The "Streamer" Meta-Detector: They propose a modular stack that combines a standard detector with:
  3. Asynchronous Kalman Filtering: To forecast where objects will be by the time the computation finishes.
  4. Dynamic Scheduling (Shrinking-tail policy): A decision-theoretic approach to decide which frames to process.
  5. Evaluation Framework: They consider both a "Single GPU" model (sequential processing) and an "Infinite GPU" model (simulated parallel processing) to understand how hardware limits affect perception.
Fig. 3. Our proposed streaming perception evaluation. A streaming algorithm f is provided with (timestamped) observations up until the current time t and refreshes an output buffer with its latest prediction of the current state of the world. At the same time, the benchmark constantly queries the output buffer for estimates of world states. Crucially, f must consider the amount of streaming observations that should be ignored while computation is occurring.

Datasets

The authors introduce Argoverse-HD (High-frame-rate Detection).

  • Source: Built upon the Argoverse 1.1 dataset.
  • Details: It features 30 FPS video from urban driving scenes with high-quality, temporally dense 2D annotations (250k bounding boxes across 8 classes).
  • Difference: Unlike many video datasets that are annotated sparsely (e.g., every 5th or 10th frame), Argoverse-HD provides annotations for every single frame, which is essential for measuring the fine-grained effects of latency.

Key Insights and Ideas

  • The "Sweet Spot": Faster isn't always better, and neither is more accurate. There is a unique point on the Pareto curve that maximizes streaming accuracy. A very fast but weak detector fails on accuracy, while a slow, powerful one fails because its results are always "stale."
  • Forecasting is Mandatory: In a streaming setting, perception must be predictive. Tracking and forecasting naturally emerge as necessary internal representations to bridge the latency gap.
  • The Paradox of Idleness: Paradoxically, latency is sometimes minimized by sitting idle. If a frame is about to become "stale" before you can finish processing it, it is better to wait a few milliseconds for the next fresh frame to arrive before starting computation. This is their "Shrinking-tail" policy.

Key Results

  • The Reality Check: When moving from offline to streaming evaluation, the Average Precision (AP) of a state-of-the-art detector (HTC) plummeted from 38.0 to 6.2.
  • Recovery: By applying their "Streamer" stack (scheduling + forecasting), they boosted streaming performance from 6.2 to 17.8 AP.
  • Hardware Scaling: Using simulation, they found that while infinite compute helps, the gains are modest (up to 20.3 AP), suggesting that the challenges of streaming perception are fundamental to the temporal nature of the data, not just a lack of raw power.
Fig. 2. Prior art routinely explores the trade-offbetween detection accuracy versus runtime. We generate the above plot by varying the input resolution of each detection network. We argue that such plots are exclusive to offline processing and fail to capture latency- accuracy trade-offs in streaming per- ception. AP stands for average preci- sion, and is a standard metric for ob- ject detection [26].

Limitations and Future Work

  • Task-Specific Forecasting: The current forecasting module (Kalman filters) is designed for bounding boxes. Generalizing this to more complex tasks like instance segmentation or panoptic segmentation requires more sophisticated "warping" of masks.
  • End-to-End Integration: The authors used a modular approach (Detector + Tracker + Forecaster). They suggest that future work should explore end-to-end models that learn these temporal compensations directly from data.
  • Hardware Dependence: While simulation helps, streaming performance is inherently tied to the specific hardware "body" of the agent, necessitating more hardware-in-the-loop testing.

Summary updated

BibTeX
@misc{li2020towards,
  author = {Mengtian Li and Yu-Xiong Wang and Deva Ramanan},
  title = {{Towards Streaming Image Understanding}},
  year = {2020},
  eprint = {2005.10420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.10420},
}
Figure