Context-Aware Streaming Perception in Dynamic Environments

Gur-Eyal Sela, Ionel Gog, Justin Wong, Kumar Krishna Agrawal, Xiangxi Mo, Sukrit Kalra, Peter Schafhalter, Eric Leong, Xin Wang, Bharathan Balaji, Joseph Gonzalez, Ion Stoica

The Latency Gap in Real-World Perception

Traditional computer vision models are typically evaluated in an "offline" manner, where each frame is processed in isolation without regard for the time elapsed during computation. However, in real-world applications like autonomous driving, the environment is dynamic. By the time a high-accuracy, high-latency model finishes processing a frame, the objects within that frame have already moved. This "displacement error" leads to a significant drop in effective accuracy, a phenomenon captured by the Streaming Accuracy metric.

In streaming perception, objects move during the computation time (Δt_latency), leading to misalignment between detections and the current state of the world.

While previous research identified this trade-off and sought a single "global best" model, this paper argues that a static approach is fundamentally limited. A model optimized for average performance will inevitably be suboptimal in specific edge cases, such as high-speed highway merges or complex, slow-moving urban intersections.

Octopus: A Dynamic, Context-Aware Framework

To address this, the authors introduce Octopus, a framework that treats model selection as a real-time, context-dependent ranking problem. Octopus does not rely on a single architecture; instead, it dynamically swaps "metaparameters" for every one-second video segment. These metaparameters include:

  • Model Scale: Choosing between different EfficientDet variants (e.g., D3 vs. D7x) to balance detection strength against inference speed.
  • Tracker Persistence: Adjusting the maximum age for tracking objects to handle temporary occlusions or disappearances.

The core of Octopus is a lightweight Random Forest regressor that predicts the performance of various configurations based on hand-engineered contextual features. These features include object dynamics (speed, overlap), scene complexity (object count), vehicle ego-motion, and environmental factors like time of day. To ensure zero added latency, Octopus employs a Markovian assumption: it uses data from the previous segment to decide the configuration for the next segment, completing the meta-decision before the next batch of sensor data arrives.

Why Context Matters: The Moving Target of Optimality

The primary insight behind Octopus is that the "best" model depends entirely on the current scenario. The system identifies distinct modes of optimality based on the trade-off between raw detection power and processing lag.

Performance varies by scenario: "Simple, fast" scenes favor low-latency models, while "Difficult, still" scenes benefit from higher-capacity, slower models.

As illustrated above:

  • Simple, fast scenarios: In a sharp turn or high-speed drive, minimizing displacement error is critical. Here, lightweight models (like EfficientDet-D3) outperform heavier ones because their results are more "fresh."
  • Difficult, still scenarios: In cases with poor visibility or complex backgrounds where objects move slowly, the system benefits from the higher detection strength of a heavy model (like EfficientDet-D7x), as the latency penalty is less severe.

Key Results and Performance

Evaluated on the Waymo Open Dataset and Argoverse, Octopus demonstrated significant improvements over static baselines:

  • Accuracy Gains: Octopus improved S-MOTA (Streaming Multiple Object Tracking Accuracy) by 7.4% on Waymo and 3.4% on Argoverse compared to the best single global model.
  • Computational Efficiency: The Random Forest policy is highly efficient, requiring only ~6ms on a single CPU core. This allows the system to provide context-aware adaptation with virtually no overhead.
  • Robustness: The dynamic approach effectively reduced streaming false positives, false negatives, and identity switches by matching the model's "thinking speed" to the scene's "action speed."

Limitations and Future Outlook

While Octopus represents a major step toward real-time adaptive perception, several challenges remain. The current reliance on hand-engineered features might overlook subtle environmental cues that deep learned representations could capture. Additionally, the system currently switches between a discrete set of 18 configurations; future iterations could explore more continuous adaptation, such as dynamic resolution scaling or pruning. Finally, the Markovian assumption may struggle with instantaneous environmental shifts, suggesting a need for even faster predictive models in the future.

Summary updated

BibTeX
@inproceedings{sela2022context,
  author = {Gur-Eyal Sela and Ionel Gog and Justin Wong and Kumar Krishna Agrawal and Xiangxi Mo and Sukrit Kalra and Peter Schafhalter and Eric Leong and Xin Wang and Bharathan Balaji and Joseph Gonzalez and Ion Stoica},
  title = {{Context-Aware Streaming Perception in Dynamic Environments}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19839-7\_36},
}
Figure