Temporal ROI Align for Video Object Recognition

Tao Gong, Kai Chen, Xinjiang Wang, Qi Chu, Feng Zhu, Dahua Lin, Nenghai Yu, Huamin Feng

Abstract

Temporal RoI Align (TROI) is a novel neural network operator designed to enhance video object detection and instance segmentation. Unlike standard RoI Align, which extracts features from a single frame, TROI aggregates features across multiple video frames by identifying similar spatial locations through cross-correlation and temporal attention. This approach effectively addresses challenges like motion blur and occlusion without requiring computationally expensive optical flow or explicit tracking.

The Problem: Appearance Deterioration

In still-image object detection, RoI (Region of Interest) Align is the standard for extracting features from a specific bounding box. However, video presents a unique challenge: appearance deterioration. An object that is clear in one frame might be blurry in the next due to motion or partially hidden due to occlusion.

Standard video detectors often struggle because RoI Align only extracts features from the current (target) frame. While previous research has attempted to fix this using optical flow to warp features or proposal-level aggregation, these methods are often computationally expensive or fail to capture the fine-grained spatial details needed for accurate localization. The authors identify this reliance on single-frame extraction as a fundamental "blind spot" in the core RoI extraction process.

Methodology: Temporal RoI Align (TROI)

The authors propose the Temporal RoI Align (TROI) operator, which replaces the standard single-frame extraction with a two-stage temporal aggregation process.

Conceptual comparison between (a) standard RoI Align and (b) the proposed Temporal RoI Align.

1. Most Similar RoI Align (MS ROI Align)

Instead of assuming the object's location is known in other "support" frames, this module treats the target frame's RoI features as a query. It computes a cosine similarity map between these features and the entire feature map of a support frame. By identifying the Top-K most similar spatial locations, the network "finds" the object in other frames even if it has moved significantly. This effectively performs a local search based on feature appearance rather than geometric tracking.

2. Temporal Attentional Feature Aggregation (TAFA)

Once similar features are extracted from multiple support frames, they are combined using a multi-head temporal attention mechanism. This module learns to assign higher weights to clear, high-quality features and suppress noisy or irrelevant ones, such as those from frames where the object is occluded.

Detailed architecture of the TROI operator, showing the flow from RoI Align to similarity mapping and final temporal aggregation.

Key Insights

  • Similarity as a Proxy for Motion: High-level convolutional features are distinctive enough that simple cross-correlation can locate the same object instance across time, removing the need for explicit motion vectors (optical flow).
  • Long-Range Context: Sampling support frames from the entire video (global sampling) is more effective than looking only at immediate neighbors. An object might be blurry for 20 frames but crystal clear 100 frames later.
  • Resilience to Noise: The inclusion of the TAFA module allows the model to mathematically "ignore" support frames where the object has disappeared or the search failed, making the system highly robust.

Experimental Results

The researchers evaluated TROI on three major benchmarks: ImageNet VID, EPIC KITCHENS, and YouTube-VIS.

  • Significant Accuracy Boost: On ImageNet VID, replacing standard RoI Align with TROI boosted a ResNet-101 baseline from 74.0 mAP to 80.5 mAP (+6.5 points). When added to powerful detectors like SELSA, it pushed performance to 84.3 mAP, outperforming complex models like MEGA.
  • Efficiency in Sampling: Peak performance was achieved using just 14 support frames sampled uniformly from the whole video, making it more efficient than methods requiring dense frame processing.
  • Generalization: In Video Instance Segmentation (VIS), adding TROI to the MaskTrack R-CNN framework improved mask AP by roughly 3 points across different backbones.

Limitations and Future Work

While TROI demonstrates impressive results, computing similarity maps for every proposal against multiple support frames adds overhead. The authors suggest using a "tiny embedding network" to mitigate this, though real-time performance on edge devices remains a challenge. Additionally, the similarity-based search in TROI could naturally be extended to multi-object tracking (MOT), as the MS ROI Align module essentially performs a form of re-identification in every frame.

Summary updated

BibTeX
@inproceedings{gong2021temporal,
  author = {Tao Gong and Kai Chen and Xinjiang Wang and Qi Chu and Feng Zhu and Dahua Lin and Nenghai Yu and Huamin Feng},
  title = {{Temporal ROI Align for Video Object Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16234},
}
Figure