Abstract
Standard pooling and unpooling operations in Convolutional Neural Networks (CNNs) are often treated as architectural heuristics rather than formal mathematical operations. This paper introduces MorphPool, a framework that generalizes these operations through the lens of Mathematical Morphology. By treating max pooling as a specific case of morphological dilation, MorphPool provides a parameter-efficient alternative to standard methods. When applied to geometric data such as depth maps, MorphPool significantly outperforms standard linear methods—achieving higher mean Intersection over Union (mIoU) and sharper boundary preservation—while eliminating the need for millions of parameters typically required by deconvolutional layers.
Introduction
In modern CNN architectures, particularly those designed for dense prediction tasks like semantic segmentation, pooling (down-sampling) and unpooling (up-sampling) are critical for managing spatial resolution and receptive fields. While max pooling is the industry standard for down-sampling, it is rarely integrated into a broader mathematical framework.
The challenge is even more pronounced in unpooling. To restore spatial resolution, architectures often rely on heavily parameterized layers like deconvolution (transposed convolution) to learn how to fill the "holes" created during up-sampling. These layers not only increase memory overhead but are also prone to "checkerboard artifacts." Furthermore, for geometric data—such as depth maps from LiDAR or RGB-D sensors—standard linear operations are often suboptimal because geometric edges are inherently non-linear. MorphPool addresses these issues by formalizing sampling as a purely morphological process.
Methods: The Morphological Framework
MorphPool redefines pooling and unpooling as non-linear operations based on the "mathematics of contact."
1. Morphological Pooling
The authors demonstrate that standard max pooling is mathematically equivalent to a morphological dilation operation using a "flat" structuring element (a simple window). MorphPool generalizes this by allowing for varied structuring element shapes. For instance, parabolic structuring elements can be employed to act as a non-linear counterpart to Gaussian weighting, providing a more nuanced approach to feature down-sampling.
2. Morphological Unpooling
Instead of relying on learned weights to interpolate missing data, MorphPool utilizes a two-step morphological process:
- Provenance Mapping: The network stores the indices of maximum values during the pooling stage. During unpooling, features are placed back into these precise high-resolution locations.
- Morphological Dilation: A dilation operation is then applied to "fill" the remaining empty pixels. This acts as a non-linear interpolation scheme that preserves the geometric integrity of the signal without adding parameters.
3. Implementation and Architecture
To evaluate this framework, the authors developed DownUpNet, a controlled encoder-decoder architecture. This design allows for the direct comparison of different sampling blocks—Linear, Standard Pool, or MorphPool—while keeping the rest of the network constant. Because standard deep learning frameworks are optimized for linear algebra (multiply-accumulate), the authors implemented custom C++/CUDA kernels to handle the non-linear "addition-maximum" operations of morphology efficiently.
Experimental Evaluation
The researchers evaluated MorphPool across three major indoor scene datasets focusing on semantic segmentation and depth auto-encoding:
- NYUv2: A standard RGB-D dataset for indoor scene understanding.
- SUN-RGBD: A large-scale dataset containing over 10,000 RGB-D images.
- Stanford 2D-3D-Semantics (2D-3D-S): A massive dataset providing registered 2D, 2.5D, and 3D data.
Key Results and Insights
Parameter Efficiency and Performance
The most striking result occurred on the 2D-3D-S dataset. MorphPool achieved a mean Intersection over Union (mIoU) of 0.425 using zero additional parameters for the sampling layers. In comparison, a standard linear baseline required 12.6 million additional parameters yet only achieved an mIoU of 0.403. This suggests that in many current architectures, millions of parameters are essentially "wasted" learning basic interpolation schemes that morphological operations provide natively.
Boundary Preservation
MorphPool consistently achieved higher Boundary F1-scores. This confirms that morphological operations are superior at preserving sharp geometric edges compared to linear interpolation, which tends to blur boundaries. This is particularly evident in depth auto-encoding tasks, where MorphPool reduced the Absolute Relative Distance (ARD) error significantly (e.g., 0.161 vs 0.190 for linear methods on NYUv2).
The Geometry of Data
The success of MorphPool highlights that morphology is naturally suited for depth data (LiDAR, radar). While RGB signals encode complex textures and illumination that may still benefit from linear diffusion, depth signals represent physical surfaces where the "mathematics of contact" is more applicable.
Conclusion and Future Work
MorphPool demonstrates that integrating classical mathematical morphology into deep learning can lead to more efficient and accurate architectures for geometric sensing. By replacing learned linear layers with fixed non-linear morphological operations, researchers can reduce model complexity without sacrificing performance.
Future work may explore hybrid architectures that utilize morphological encoders for geometric data (depth) alongside standard linear encoders for visual data (RGB). Additionally, wider adoption of these techniques will depend on the integration of non-linear morphological kernels into mainstream libraries like PyTorch and TensorFlow.
Summary updated