Abstract
Standard Convolutional Neural Networks (CNNs) often struggle with objects characterized by strong spatial priors but weak local appearance, such as occluded lane markings or thin poles. We present Spatial CNN (SCNN), which redefines spatial information flow by treating rows and columns of feature maps as layers in a deep network. This "Spatial as Deep" approach enables sequential message passing across the image, allowing the model to effectively propagate structural knowledge and maintain continuity in challenging traffic scenes. SCNN achieves state-of-the-art performance on lane detection benchmarks and demonstrates significant improvements in urban semantic segmentation.
Introduction: The Challenge of Spatial Priors
In traffic scene understanding, many critical elements—lane lines, poles, and walls—possess strong structural properties. While humans can easily infer the continuation of a lane line behind an occluding vehicle, traditional CNNs primarily rely on local appearance. When local cues are weak (e.g., faded lines, shadows, or heavy occlusion), standard CNNs fail to maintain global consistency. Existing solutions like Recurrent Neural Networks (RNNs) or Dense Conditional Random Fields (CRFs) are often computationally prohibitive for real-time applications.
Methods: Spatial as Deep
The core innovation of SCNN is the "Spatial as Deep" concept. Instead of traditional layer-by-layer stacking, SCNN treats the rows or columns of a feature map as sequential layers.
- Slice-by-Slice Convolution: Information is propagated sequentially across slices (rows or columns). For example, in a downward pass, a convolution is applied to the top row, and the result is added to the subsequent row.
- Multi-directional Message Passing: To ensure global communication between all pixels, this process is executed in four directions: Downward, Upward, Rightward, and Leftward (DURL).
- Residual Learning: By passing information as a residual addition, SCNN avoids the vanishing gradient problems common in standard RNNs, making it easier to train.
This architecture allows a pixel to receive information from any other pixel in the image with $O(N)$ complexity, compared to the $O(N^2)$ complexity of dense CRFs.
Experimental Evaluation
The authors evaluated SCNN on several benchmarks, including a newly introduced large-scale lane detection dataset.
Datasets and Robustness
The SCNN Lane Detection Dataset consists of 133,235 frames from diverse urban environments in Beijing, categorized into challenging scenarios such as "dazzle light," "shadows," and "no line." SCNN also achieved 1st place in the TuSimple Lane Detection Challenge with 96.53% accuracy.
Key Results
- Lane Detection: SCNN significantly outperformed RNN-based (ReNet) and MRF-based (MRFNet) approaches by 8.7% and 4.6%, respectively.
- Semantic Segmentation: On the Cityscapes dataset, SCNN improved Intersection-over-Union (IoU) for structural categories like "pole" (+2.3%), "wall" (+3.5%), and "bus" (+6.8%).
- Efficiency: SCNN proved to be over four times faster than dense CRF implementations while delivering superior accuracy.
Conclusion
SCNN offers a powerful yet efficient framework for capturing global spatial relationships in images. By treating spatial dimensions as deep layers, it enables neural networks to leverage structural context, making it particularly robust for autonomous driving tasks where occlusion and poor visibility are common. Future work may address the sequential processing latency to further optimize for ultra-high-speed real-time systems.
Summary updated