Shape-Tailored Deep Neural Networks

Naeemullah Khan, Angira Sharma, Ganesh Sundaramoorthi, Philip H. S. TorrarXiv 2021

Introduction

Standard Convolutional Neural Networks (CNNs) rely on fixed, square kernels for feature extraction. While powerful, this "one-size-fits-all" approach introduces significant artifacts in image segmentation, particularly at object boundaries. A square kernel inevitably "bleeds" across boundaries, mixing data from the foreground object and its background, leading to blurred descriptors and segmentation errors. Furthermore, standard CNNs lack inherent invariance to geometric transformations like rotation or warping, typically requiring massive data augmentation and millions of parameters to learn these properties.

Methods: PDE-Based Shape-Tailored Filtering

Shape-Tailored Deep Neural Networks (ST-DNN) address these limitations by replacing standard convolutions with spatial filtering defined by the Poisson partial differential equation (PDE).

Shape-Tailored Smoothing

Instead of a rigid square kernel, ST-DNN solves a Poisson equation within an arbitrarily shaped region of interest. This process acts as a "smart blur" that respects object boundaries, ensuring that data aggregation never crosses the segmentation mask.

Deep PDE Stacking and Joint Evolution

Multiple PDE layers are stacked to approximate complex convolutional kernels while maintaining shape-tailored properties. During inference, the network employs a joint evolution strategy: descriptors are updated based on the current region shape, and the shape is refined using the updated descriptors. This iterative process is differentiable, allowing the model weights to be learned via standard back-propagation through the PDE solvers.

ST-DNN Architecture: The model uses PDE layers to iteratively refine segmentation masks and feature descriptors.

Key Insights

  • Mathematical Covariance: ST-DNNs are analytically proven to be covariant to translations and rotations. The output transforms identically to the input, eliminating the need for extensive rotation-based data augmentation.
  • Efficiency through Physics: By using PDE solutions as a natural basis for image structure, the network requires significantly fewer parameters—only 8,900 compared to the 45 million in an FCN-ResNet101.
  • Robustness to Warping: The shape-tailored descriptors are inherently robust to domain deformations, a common failure point for traditional models.

Experimental Results

The model was evaluated on benchmarks including the Real-World Texture Segmentation Dataset (RWTSD), BSDS500, and synthetic Brodatz datasets.

Performance and Efficiency

On the RWTSD benchmark, ST-DNN achieved a Ground Truth Covering (GT-Cov) of 0.94, outperforming DeepLab-v3 (0.86) and FCN-ResNet101 (0.83). Remarkably, these results were achieved with training sets 2-3 orders of magnitude smaller than those required by standard architectures.

Robustness to Deformation: ST-DNN maintains accurate segmentation under increasing image warping, outperforming standard CNN architectures.

Model Complexity

The 5,000x reduction in parameter count allows for rapid training—less than 2 hours on a single GPU. Inference for a 256x256 image takes approximately 2 seconds, typically converging within 20 iterations.

Limitations and Future Work

The iterative nature of ST-DNN inference, while effective, is currently slower than the feed-forward pass of standard CNNs, potentially limiting real-time applications. Additionally, the method's performance can depend on the initial segmentation mask, often a simple grid. Future research will focus on improving initialization strategies and extending the shape-tailored approach to general semantic segmentation tasks beyond textures.

Summary updated

BibTeX
@misc{khan2021shape,
  author = {Naeemullah Khan and Angira Sharma and Ganesh Sundaramoorthi and Philip H. S. Torr},
  title = {{Shape-Tailored Deep Neural Networks}},
  year = {2021},
  eprint = {2102.08497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.08497},
}
Figure