Abstract
Traditional semantic segmentation models are typically constrained by fixed computational costs, requiring architectural redesigns to accommodate different hardware limitations. This paper introduces a recurrent neural network (RNN) architecture that iteratively refines predictions on a persistent "canvas." This design enables "anytime" prediction, where computation can be halted early for efficiency or extended for higher fidelity. Furthermore, the model naturally exploits temporal redundancy in video by using previous frame segmentations as a starting point, reducing computational costs by 25% while maintaining state-of-the-art quality.
Introduction
Semantic segmentation—the task of labeling every pixel in an image—is a computationally intensive cornerstone of computer vision. Current state-of-the-art models utilize feed-forward pipelines with static computational requirements. Deploying these models across diverse platforms, from high-end servers to low-power mobile devices, usually necessitates designing and training multiple distinct architectures.
Moreover, standard models often fail to leverage temporal redundancy in video sequences. If consecutive frames are nearly identical, recomputing the segmentation from scratch is inefficient. The authors propose a flexible, recurrent model capable of adapting to variable computational budgets and exploiting the continuity of video data.
Methods
Departing from standard feed-forward approaches, the proposed system draws inspiration from image compression and recurrent architectures. The framework consists of three primary components:
- Feature Extractor: A ResNet-101 backbone extracts high-level features from the input image.
- The Canvas: An intermediate, human-interpretable buffer that stores raw prediction scores (logits). For a new image, this buffer is initialized to zero.
- Recurrent Loop: A stack of three Convolutional LSTMs (ConvLSTMs) processes the ResNet features and the current state of the canvas. In each iteration, the RNN generates an update that is additively combined with the canvas.
This iterative refinement allows the network to improve the segmentation mask at every step. Because the canvas is interpretable, a valid segmentation can be extracted at any iteration by taking the argmax of the logits. In video applications, the canvas from the preceding frame serves as a "warm start" for the current frame, significantly accelerating convergence.
Experimental Setup
The model was evaluated on two benchmark datasets for semantic segmentation:
- PASCAL VOC 2012: Featuring 20 object classes in natural scenes.
- Cityscapes: A high-resolution dataset of urban street scenes requiring significant spatial detail.
Models were pre-trained on the COCO dataset to ensure robust feature extraction.
Key Results and Insights
Anytime Prediction and Granular Control
Unlike traditional models, this RNN provides a valid segmentation at every iteration, enabling a dynamic speed-accuracy trade-off. While feed-forward models offer only a few discrete operating points (e.g., by adjusting stride), the RNN allows for fine-grained control over the computational budget by simply varying the number of iterations.
Efficiency and Robustness
On PASCAL VOC, the RNN achieved a Mean Intersection-over-Union (mIOU) of 80.3, comparable to leading models like DeepLabV3. In video tasks, leveraging temporal seeding allowed the model to outperform DeepLabV3 while utilizing 25% less computation. Additionally, the model demonstrated remarkable robustness; even when initialized with incorrect labels (e.g., seeding a horse as a cow), the recurrent dynamics successfully corrected the error within a few iterations.
Spatial Frequency Bias
Analysis revealed that the RNN is highly effective at segmenting object interiors (low spatial frequency) but can struggle with fine, intricate details (high spatial frequency). The model tends to produce a "convex hull" of objects rather than capturing every thin structure, likely due to the coarse spatial resolution of the recurrent passes necessitated by current memory constraints.
Limitations and Future Work
The primary limitation is the difficulty in capturing high-frequency details. Future advancements in GPU memory may allow for higher-resolution recurrent passes to mitigate this. Another promising direction is adaptive computation, where the model could dynamically determine the required number of iterations per pixel—for instance, spending less time on simple regions like the sky and more on complex objects like distant pedestrians.
Summary updated