Gaussian Dynamic Convolution for Efficient Single-Image Segmentation

Xin Sun, Changrui Chen, Xiaorui Wang, Junyu Dong, Huiyu Zhou, Sheng ChenIEEE TCSVT 2021 · DOI

Abstract

Interactive single-image segmentation is ubiquitous in scientific and commercial imaging software. Lightweight neural networks offer a practical way to accomplish this task, particularly when only limited user input, such as scribbles, is available. Inspired by the dynamic receptive field of the human visual system, we propose Gaussian Dynamic Convolution (GDC) to efficiently aggregate contextual information. By stochastically selecting spatial sampling areas according to Gaussian distribution offsets, GDC provides a lightweight yet powerful module for both interactive and standard semantic segmentation. Experiments on Pascal-Context, Pascal-VOC 2012, and Cityscapes demonstrate that GDC outperforms existing convolutions, producing richer features and a better "overall impression" of the image.

The Challenge of Single-Image Segmentation

Traditional semantic segmentation models are typically data-hungry, requiring thousands of annotated images to generalize. However, many practical tools—like the "Quick Selection" feature in image editors—require segmenting an object in a single, specific image using only a few user-provided "seeds" or scribbles.

Existing solutions struggle with this constraint. Standard convolutions utilize fixed, rigid receptive fields, while dilated convolutions, though capable of capturing larger contexts, remain static. Even "Deformable Convolutions," which learn offsets, require significant training data to optimize those parameters, making them prone to overfitting in data-scarce, single-image scenarios. The challenge lies in creating a module that captures diverse, multi-scale features efficiently without memorizing limited user input.

Gaussian Dynamic Convolution (GDC)

The core innovation of this work is the Gaussian Dynamic Convolution (GDC). Unlike standard convolutions that sample pixels from a fixed grid, GDC keeps the center weight fixed while "scattering" the surrounding weights.

The GDC mechanism samples spatial offsets from a two-dimensional Gaussian distribution to create a dynamic receptive field.

The spatial offsets for these weights are randomly sampled from a two-dimensional half-Gaussian distribution. This approach offers three primary advantages:

  1. Stochastic Sampling: Every time the kernel slides, it potentially observes a slightly different set of neighboring pixels, providing implicit data augmentation.
  2. Dynamic Receptive Field: By adjusting the standard deviation ($\Sigma$) of the Gaussian, the model can flexibly change how far it looks for context.
  3. Efficiency: GDC does not require an additional sub-network to learn offsets, keeping the architecture lightweight and suitable for real-time interactive tools.

Implementation and Architecture

The GDC module can be easily integrated into existing architectures. For single-image tasks, the authors utilized a MobileNet v2 backbone, concatenating feature maps from different layers and passing them through a GDC-enhanced module before final pixel-level classification.

The GDC Module integrated into a segmentation pipeline, showing how it complements standard convolutions to refine the final output.

Additionally, the authors proposed Gaussian Dynamic Pyramid Pooling (GDPP) for standard semantic segmentation. In GDPP, the smallest and largest scales are fixed to define boundaries, while the intermediate scales are dynamically sampled using GDC to produce more vivid feature maps.

Key Results and Insights

The researchers evaluated GDC across three major benchmarks: Pascal-Context, Pascal-VOC 2012, and Cityscapes.

  • Single-Image Performance: On Pascal-Context, a GDC-based lightweight network achieved 65.12% mIoU, a significant improvement over the standard convolution baseline (53.41%) and dilated convolutions (60.01%).
  • Semantic Segmentation: Integrated into a larger pipeline on Pascal-VOC 2012, the model achieved 64.71% mIoU, outperforming comparable Atrous Spatial Pyramid Pooling (ASPP) modules while using fewer parameters.
  • State-of-the-Art Results: Using a ResNet-101 backbone on Cityscapes, the GDC-enhanced model reached 80.6% mIoU, surpassing established leaders like DeepLabv3.

Visualizations using t-SNE confirmed that GDC produces more diverse and "vivid" feature vectors compared to static convolutions. This stochasticity prevents the network from memorizing specific scribble coordinates, forcing it to learn generalized representations of object shape and texture.

Conclusion

Gaussian Dynamic Convolution introduces a bio-inspired, stochastic approach to feature aggregation. By replacing rigid grids with Gaussian-distributed sampling, GDC provides a powerful regularization effect and a flexible receptive field. This makes it particularly effective for interactive segmentation where data is scarce, while remaining competitive for large-scale semantic segmentation tasks.

Summary updated

BibTeX
@article{sun2021gaussian,
  author = {Xin Sun and Changrui Chen and Xiaorui Wang and Junyu Dong and Huiyu Zhou and Sheng Chen},
  title = {{Gaussian Dynamic Convolution for Efficient Single-Image Segmentation}},
  journal = {IEEE Transactions on Circuits and Systems for Video Technology},
  year = {2021},
  doi = {10.1109/tcsvt.2021.3096814},
}
Figure