TL;DR
Researchers from KAIST have proposed a simple yet powerful upgrade to standard encoder-decoder networks used for optical flow and disparity estimation. By replacing traditional deconvolution layers with sub-pixel convolution modules, they achieved significantly higher accuracy and reduced parameter counts, effectively eliminating the "checkerboard artifacts" common in upscaling tasks.
What Problem Does This Paper Address?
In computer vision, tasks like optical flow (tracking pixel movement between frames) and disparity estimation (calculating depth from stereo images) often rely on encoder-decoder architectures. The encoder compresses the image into high-level features, and the decoder upscales these features back to the original resolution to produce a dense map.
The standard tool for this upscaling is deconvolution (or transposed convolution). However, deconvolution has a notorious flaw: it often creates "checkerboard artifacts." These occur when the kernel size isn't perfectly divisible by the stride, leading to uneven overlap during the reconstruction process. Furthermore, these models are often computationally heavy, making them difficult to deploy in real-time scenarios.
Methods
The authors introduce two new network variants: Flospnet (for optical flow) and Despnet (for disparity), based on the well-known FlowNet and DispNet architectures.
The core innovation is the integration of the Efficient Sub-Pixel Convolution Network (ESPCN) module into the decoder. Instead of using a single deconvolution layer to upscale, the sub-pixel module:
- Performs convolutions in the Low Resolution (LR) domain, which is computationally cheaper.
- Produces a specific number of feature maps ($r^2$ channels, where $r$ is the upscaling factor).
- Uses a "pixel shuffle" operation to rearrange these channels into a single High Resolution (HR) output.
By comparing Figure 1 (the baseline DispNet) with Figure 2 (the proposed Despnet), you can see how the yellow sub-pixel modules replace the green deconvolution layers, resulting in a narrower, more efficient pipeline.
Datasets
The networks were evaluated using a mix of synthetic and real-world data:
- Monkaa and Driving: Large-scale synthetic datasets providing dense ground truth for optical flow and disparity.
- KITTI: A standard real-world benchmark for autonomous driving tasks, used here for unsupervised monocular depth and pose estimation.
- Cityscapes: Used for pre-training in some experimental setups to improve generalization.
Key Insights and Ideas
- Efficiency in Low Res: By performing convolutions in the LR domain before shuffling pixels, the network maintains high representation power while being computationally leaner.
- Deeper is Better (Sometimes): Each sub-pixel module actually adds three layers of convolution. Across the whole decoder, this adds thirty layers to the network, effectively enlarging the receptive field without exploding the parameter count.
- Rectangular Kernels for Disparity: The authors introduced Despnet2, which uses rectangular kernels (e.g., $3 \times 7$). This makes intuitive sense for stereo vision: since disparity is primarily a horizontal displacement, a wider horizontal kernel helps the network find correspondences more accurately along that axis.
- Artifact Suppression: The sub-pixel approach provides a smoother mapping from LR to HR, naturally avoiding the "uneven overlap" that plagues deconvolution.
Key Results
The proposed modifications yielded impressive gains across the board:
- Accuracy: Flospnet achieved a 31% improvement in End Point Error (EPE) over the baseline FlowNet on the Monkaa dataset.
- Efficiency: Despnet saw a 26% reduction in the number of parameters compared to DispNet, while also reducing EPE by 26%.
- Visual Quality: Qualitative results (see Figure 4) show that Despnet produces much crisper disparity maps, especially for background objects and fine structural details, compared to the original DispNet.
Limitations and Future Work
While the networks are more parameter-efficient, the authors note that inference time can be slightly higher in some configurations (e.g., DespnetC at 0.009s vs DispNetC at 0.008s), likely due to the increased depth of the decoder.
For future work, the authors suggest that this sub-pixel convolution strategy is a "general guideline" that could be applied to any encoder-decoder task involving upscaling, such as semantic segmentation, style transfer, and object detection.
Summary updated