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 module operates through a multi-step process for non-keyframes:
- Feature Extraction: A lightweight encoder extracts low-level features from the current frame.
- Cosine Similarity Computation: The module calculates the cosine similarity between the current low-level features and those from the preceding keyframe.
- 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.
- 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.
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