[Paper Review] Learning on the Edge: Explicit Boundary Handling in CNNs
This paper proposes learning explicit boundary filters in CNNs to improve feature quality at image edges, replacing heuristic padding methods like zero or reflect. By training task-specific boundary filters that extrapolate features naturally, the method achieves 5–20% performance gains across colorization, de-Bayering, optical flow, and disparity estimation with no runtime overhead.
Convolutional neural networks (CNNs) handle the case where filters extend beyond the image boundary using several heuristics, such as zero, repeat or mean padding. These schemes are applied in an ad-hoc fashion and, being weakly related to the image content and oblivious of the target task, result in low output quality at the boundary. In this paper, we propose a simple and effective improvement that learns the boundary handling itself. At training-time, the network is provided with a separate set of explicit boundary filters. At testing-time, we use these filters which have learned to extrapolate features at the boundary in an optimal way for the specific task. Our extensive evaluation, over a wide range of architectural changes (variations of layers, feature channels, or both), shows how the explicit filters result in improved boundary handling. Consequently, we demonstrate an improvement of 5% to 20% across the board of typical CNN applications (colorization, de-Bayering, optical flow, and disparity estimation).
Motivation & Objective
- To address the poor feature quality at image boundaries caused by heuristic padding in CNNs, such as zero, reflect, or mean padding.
- To reduce boundary artifacts that degrade feature quality not only at edges but also in the image interior due to inconsistent extrapolation.
- To enable CNNs to learn optimal boundary extrapolation that respects image content and task-specific context, rather than relying on fixed rules.
- To integrate boundary handling seamlessly into existing CNN architectures with no additional inference cost.
- To demonstrate consistent performance gains across diverse CNN applications and architectures, including encoder-decoder networks.
Proposed method
- Introduce a set of learned boundary filters that replace standard convolutional filters when applied at image boundaries.
- Train these boundary filters jointly with standard filters during backpropagation, using the same loss function as the main network.
- Define distinct boundary filters for each boundary configuration (e.g., top edge, bottom-left corner), enabling context-aware extrapolation.
- Use domain decomposition in training to handle all boundary cases efficiently, without runtime performance penalty.
- Maintain standard convolutional operations in the interior, while switching to learned boundary filters only at edges.
- Ensure that boundary filters produce feature maps consistent with the non-boundary filters, preserving feature continuity.
Experimental results
Research questions
- RQ1Can CNNs learn to extrapolate image features at boundaries in a way that is optimal for the specific task, rather than relying on fixed heuristics?
- RQ2Does learning boundary filters improve feature quality not only at the boundary but also in the interior of the image?
- RQ3What is the training and inference overhead of introducing learned boundary filters compared to standard padding methods?
- RQ4How does the proposed method compare to cropping or sliding window inference in terms of performance and efficiency?
- RQ5Can the method generalize across different architectures and tasks, including those with multi-scale or encoder-decoder structures?
Key findings
- The proposed method achieves a 5–20% improvement in performance across multiple CNN tasks, including colorization, de-Bayering, optical flow, and disparity estimation.
- Boundary handling with learned filters reduces error at both edges and interior regions, indicating that boundary artifacts propagate inward and are mitigated by better extrapolation.
- The method incurs no runtime overhead, as boundary filters are applied only at inference time and are pre-trained, with no additional computation per forward pass.
- Convergence speed is comparable to standard zero-padding, with no significant increase in training time or optimization difficulty.
- The method outperforms traditional boundary rules like zero, reflect, and clamp, especially in preserving edge continuity and reducing false positives.
- The approach is scalable and effective even for deep or multi-resolution networks, where boundary effects are most pronounced due to exponential growth in affected pixels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.