Introduction
Semantic video segmentation is the task of assigning dense, pixel-level labels to every frame in a video sequence. While static image segmentation has seen significant progress, applying these models independently to each frame often results in temporal inconsistency (flickering) and high computational costs. To address these issues, temporal modules are typically integrated to propagate information across frames. A common choice is optical flow, which warps features from previous frames. However, optical flow is computationally expensive and often manually integrated into architectures in a sub-optimal manner. This research explores the use of Neural Architecture Search (NAS) to automatically discover "Dynamic Cells"—specialized modules designed to efficiently bridge information between frames without the heavy overhead of traditional optical flow.
Methodology: Searching for Dynamic Cells
The authors propose a framework that utilizes NAS to find an optimal "Dynamic Cell." This cell serves as a temporal bridge, processing features from both the current and previous frames to predict the current frame's segmentation mask.
Framework Components
- Base Network: The system uses a pre-trained, efficient static network (based on MobileNet-v2) as its foundation.
- Search Space: Beyond standard convolutional operations, the search space includes specialized Aggregation Operations such as 3D convolutions, bilinear sampling (warping), and dense attention mechanisms.
- Controller: An RNN-based controller, trained via Proximal Policy Optimization (PPO), proposes cell designs to maximize a reward based on mean Intersection-over-Union (mIoU).
- Computational Efficiency: To optimize inference, the full decoder is only executed on the first frame. For subsequent frames, the discovered Dynamic Cell replaces the heavy decoder, significantly reducing latency.
Experimental Setup
The models were evaluated on two prominent urban scene benchmarks:
- CamVid: Consists of 701 high-resolution images with 11 semantic categories.
- CityScapes: A large-scale dataset featuring 5,000 high-resolution (2048x1024) frames across 19 semantic classes.
Analysis of Searched Architectures
The NAS process revealed several key insights into optimal temporal modeling:
- Dataset-Specific Strategies: The controller adapted its strategy based on the dataset. For CityScapes, it favored bilinear sampling (akin to warping), while for CamVid, it prioritized dense attention. This highlights the limitations of "one-size-fits-all" manual designs.
- Importance of Deformable Convolutions: High-performing cells consistently utilized deformable convolutions, allowing the network to adapt its receptive field to moving objects.
- Decoder Replacement: A well-searched dynamic cell can effectively replace the standard decoder for non-key frames, maintaining accuracy while improving speed.
Performance Evaluation
The proposed method achieved significant improvements in both accuracy and efficiency:
- Accuracy: The discovered cells improved mIoU by over 1% compared to a strong per-frame baseline on both datasets.
- Inference Speed: On CityScapes (2048x1024), the model achieved a runtime of approximately 50ms per frame on a single 1080Ti GPU, nearly twice as fast as the 92ms baseline.
- Search Efficiency: The optimal architectures were found in just 2 GPU-days, a fraction of the time required by many other NAS methods.
- Qualitative Stability: The dynamic cells improved the tracking of thin structures and handled occlusions more robustly than static per-frame models.
Conclusion and Future Work
This work demonstrates that automatically searched dynamic cells can outperform manually designed temporal modules in both speed and accuracy. While the current approach relies on a pre-trained static baseline, future research could explore end-to-end search for the entire video segmentation pipeline. Additionally, investigating the generalization of these cells across varying resolutions and frame rates remains an open area for exploration.
Summary updated