NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploring Temporal Feature Correlation for Efficient and Stable Video Semantic Segmentation

Matthieu Lin, Jenny Sheng, Yubin Hu, Yangguang Li, Lu Qi, Andrew Zhao, Gao Huang, Yong-Jin Liu

Introduction

Video Semantic Segmentation (VSS) is a critical task in computer vision, requiring the assignment of semantic labels to every pixel across a video sequence. While image-based segmentation models have reached high levels of accuracy, their frame-by-frame application is computationally prohibitive for real-time applications and often suffers from temporal instability, manifesting as "flickering" predictions. To mitigate these issues, researchers often employ a keyframe-based paradigm, where full feature extraction is performed only on select frames, and features are reused for intermediate non-keyframes. However, this approach introduces a trade-off between computational efficiency and accuracy, particularly in dynamic scenes where object motion leads to feature misalignment.

Methodology

The proposed framework introduces a Temporal Feature Correlation (TFC) module designed to balance efficiency and stability. The core idea is that low-level features, such as edges and textures, serve as reliable proxies for semantic changes. By monitoring these features, the model can intelligently decide when to reuse information and when to perform updates.

The TFC-based VSS framework architecture. At non-keyframes, the model utilizes cosine similarity to determine whether to reuse features via linear interpolation or update them using Sparse MSDA.

The TFC module operates through a multi-step process for non-keyframes:

  1. Feature Extraction: A lightweight encoder extracts low-level features from the current frame.
  2. Cosine Similarity Computation: The module calculates the cosine similarity between the current low-level features and those from the preceding keyframe.
  3. Linear Interpolation for Stability: In regions with high similarity—indicating minimal scene change—the model reuses keyframe features through weighted linear interpolation. This mechanism anchors predictions to the stable keyframe, significantly reducing temporal flickering.
  4. Sparse Multi-Scale Deformable Attention (MSDA): For the minority of pixels (typically around 10%) where similarity is low, a "sparse update" is triggered. Sparse MSDA aggregates features across multiple scales and spatial locations to correct misalignments caused by motion.
Diagram of Sparse MSDA. The model only computes updates for the "brown patches" where cosine similarity is low, significantly reducing the computational load.

To ensure that the cosine similarity metric effectively captures semantic shifts, it is supervised during training with a binary cross-entropy loss based on ground-truth label transitions.

Experimental Results

The framework was evaluated on the Video Scene Parsing in the Wild (VSPW) dataset, which provides dense annotations at 15 FPS, making it ideal for temporal consistency studies. Using the SegFormer backbone, the TFC method demonstrated significant improvements:

  • Temporal Stability: On the MiT-B0 backbone, Video Consistency (mVC) increased by approximately 2.6 to 2.7 points over image-based baselines.
  • Efficiency Boost: For the larger MiT-B5 backbone, the method achieved 37.8 FPS, an 11.6 FPS improvement over standard frame-by-frame processing, without sacrificing mean Intersection over Union (mIoU).
  • Superiority over Optical Flow: The TFC approach proved superior to traditional flow-based warping, which is computationally expensive and often fails during occlusions.

Conclusion

The Temporal Feature Correlation module offers a robust solution for efficient and stable video semantic segmentation. By leveraging low-level feature similarity to drive sparse updates and linear interpolation, the model achieves high-speed performance and temporal consistency. While the current implementation uses fixed keyframe intervals, future work may explore dynamic keyframe scheduling, where the TFC metric itself triggers new keyframes based on scene complexity, further optimizing the balance between accuracy and speed.

Summary updated

BibTeX
@inproceedings{lin2024exploring,
  author = {Matthieu Lin and Jenny Sheng and Yubin Hu and Yangguang Li and Lu Qi and Andrew Zhao and Gao Huang and Yong-Jin Liu},
  title = {{Exploring Temporal Feature Correlation for Efficient and Stable Video Semantic Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28132},
}
Figure