Inter-BMV: Interpolation with Block Motion Vectors for Fast Semantic Segmentation on Video

Samvit Jain, Joseph E. GonzalezarXiv 2018

Introduction

Semantic segmentation—the task of assigning a categorical label to every pixel in an image—is a cornerstone of computer vision for autonomous driving and surveillance. However, state-of-the-art deep networks are computationally intensive, often requiring several seconds to process a single high-resolution frame. This latency makes real-time video processing at standard frame rates (e.g., 30 fps) nearly impossible with traditional frame-by-frame inference.

Previous research attempted to mitigate this by using optical flow to "warp" features from a previous keyframe to subsequent frames. While this avoids redundant full-network passes, it introduces two significant issues: the high computational cost of calculating optical flow itself and the accumulation of errors (drift) as the distance from the keyframe increases. This paper introduces Inter-BMV, a method that leverages "free" motion metadata from video codecs and bi-directional interpolation to achieve high-speed, accurate video segmentation.

Proposed Method: Inter-BMV

The authors propose a two-pronged approach to accelerate inference without sacrificing significant accuracy: leveraging Block Motion Vectors (BMVs) and employing bi-directional interpolation.

Leveraging "Free" Motion Vectors

Instead of calculating expensive optical flow, Inter-BMV extracts motion information directly from compressed video formats like H.264. These codecs already compute motion vectors for 16x16 blocks to compress video efficiently. By reusing these BMVs, the system eliminates the 62ms bottleneck typically associated with dedicated optical flow estimation.

Bi-directional Interpolation

Unlike traditional forward-warping (extrapolation), which only looks at the past, Inter-BMV utilizes both the previous and the upcoming keyframes. For any intermediate frame, features are warped forward from the past keyframe and backward from the future keyframe. These features are then fused using a lightweight fusion module ($F$) to create a contextually rich representation.

Figure 1: The Inter-BMV architecture showing the heavy feature network ($N_{feat}$) run on keyframes and the lightweight task network ($N_{task}$) run on interpolated features for intermediate frames.

The architecture splits the model into a heavy feature network ($N_{feat}$), which runs only on keyframes, and a lightweight task network ($N_{task}$), which produces the final segmentation masks for every frame using the interpolated features.

Experimental Results

The method was evaluated on the CamVid and Cityscapes datasets, which consist of high-resolution urban driving sequences.

Performance and Efficiency

Inter-BMV demonstrated a significant leap in throughput. On CamVid, it achieved 20.1 fps, representing a 6× speedup over single-frame baselines and a 2.5× improvement over prior state-of-the-art methods using optical flow.

Accuracy vs. Throughput

A critical finding is that bi-directional interpolation significantly outperforms forward-only propagation (extrapolation). By incorporating information from future keyframes, the model effectively handles objects entering the scene and reduces boundary errors.

Figure 4: Accuracy (mIoU) vs. Throughput (fps) on (a) CamVid and (b) Cityscapes. Inter-BMV consistently maintains higher accuracy at higher speeds compared to propagation-based methods.

As shown in the performance plots, Inter-BMV (blue triangles) maintains a much flatter accuracy curve as throughput increases compared to BMV-based propagation (red squares) or flow-based propagation (yellow circles). Even at high speeds, the model stays within 3% mIoU of the heavy baseline accuracy.

Conclusion

Inter-BMV provides a highly efficient framework for video semantic segmentation by repurposing existing video codec metadata and adopting a bi-directional interpolation strategy. While the method introduces a small amount of latency due to the requirement of a "future" keyframe, its massive gains in throughput and superior temporal consistency make it an ideal candidate for high-speed video analysis and automated labeling tasks. Future work may explore adaptive keyframe selection to further optimize the balance between computational cost and segmentation precision.

Summary updated

BibTeX
@misc{jain2018inter,
  author = {Samvit Jain and Joseph E. Gonzalez},
  title = {{Inter-BMV: Interpolation with Block Motion Vectors for Fast Semantic Segmentation on Video}},
  year = {2018},
  eprint = {1810.04047},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.04047},
}
Figure