PreCM: The Padding-Based Rotation Equivariant Convolution Mode for Semantic Segmentation

Xinyu Xu, Huazhen Liu, Tao Zhang, Huilin Xiong, Wenxian Yu

TL;DR

PreCM (Padding-based rotation Equivariant Convolution Mode) is a "plug-and-play" replacement for standard convolutions that grants semantic segmentation networks rotation equivariance. By using a mathematically derived padding scheme, it ensures consistent feature extraction regardless of imaging angles, significantly boosting performance in remote sensing and medical imaging without the need for massive data augmentation.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) are famous for translation equivariance—the ability to recognize a feature regardless of where it is in an image. However, they are notoriously bad at rotation equivariance. If you rotate an input image, the resulting feature maps don't just rotate; they change fundamentally.

In fields like satellite imagery or medical pathology (e.g., scanning for capillaries or polyps), objects appear at arbitrary angles. Traditionally, researchers solve this using data augmentation—rotating training images thousands of times to "teach" the network to be rotation-blind. This is computationally expensive and doesn't guarantee the network will handle a new angle correctly. While some "equivariant" architectures exist, they often impose strict restrictions on image sizes, kernel sizes, or specific hyperparameters, making them difficult to use in real-world, multi-scale applications.

Methods

The authors introduce PreCM, a universal framework based on group theory that can be dropped into existing architectures like U-Net or SegNet.

  1. The Group Theory Foundation: PreCM utilizes the four-element cyclic group ($C_4$), representing rotations of 0°, 90°, 180°, and 270°.
  2. The Padding Innovation: The core "aha" moment of the paper is the mathematical derivation of a specific padding scheme. Standard convolutions often fail the "distributive law" (where rotating the kernel should be equivalent to rotating the image) because of how boundaries are handled. PreCM calculates precise padding values for each rotation to force this law to hold true for any image or kernel size.
  3. Three-Layer Architecture:
    • Layer 1: Extracts features across the four cardinal orientations.
  4. Layer 2: Processes and fuses these features using direct products and quotient groups to maintain equivariance.
  5. Layer 3: Performs a final weighted fusion to produce the segmentation map.
  6. Versatility: Unlike previous methods, PreCM is compatible with dilated convolutions, transposed convolutions, and asymmetric kernels.

Datasets

The authors evaluated PreCM across three distinct challenges:

  • Satellite Images of Water Bodies: A binary segmentation task where imaging angles are completely arbitrary.
  • DRIVE (Digital Retinal Images for Vessel Extraction): A medical dataset testing performance on "small-sample" scenarios (only 20 images for training).
  • Floodnet: A complex multi-class dataset (10 categories) featuring high-resolution drone imagery of post-flood scenes.

Key Insights and Ideas

  • The "Boundary" is the Enemy: The paper demonstrates that the breakdown of rotation equivariance in CNNs is largely a boundary-handling issue. By aligning padding with the rotation group, they restore mathematical consistency.
  • Efficiency over Augmentation: PreCM-based networks trained on standard data outperformed original networks that used four times more data via augmentation. This suggests that structural equivariance is more powerful than learned invariance.
  • A New Metric (RD): The authors proposed Rotation Difference (RD) to quantify robustness. It measures the pixel-level difference between a model's output for an original image versus a rotated version of that same image. A lower RD means the model is more "stable" against orientation changes.

Key Results

The researchers replaced standard convolutions with PreCM in six popular networks (including U-Net, SegNet, and PSPNet). The results were striking:

  • Accuracy Boost: Mean Intersection Over Union (mIOU) improved by 6.91% to 10.63% on the Satellite and DRIVE datasets when tested against random rotations.
  • Absolute Equivariance: For the cardinal angles (90° increments), the RD value was 0.00, proving perfect mathematical rotation equivariance.
  • Faster Convergence: On the Satellite dataset, the PreCM-based U-Net stabilized after just 60 epochs, compared to 120 epochs for the original version.
  • Robustness: Even at "random" angles (not just 90° increments), PreCM significantly reduced the RD value, meaning the segmentation remained much more consistent.

Limitations and Future Work

While PreCM achieves "zero-error" equivariance at 90-degree intervals, it is still an approximation for arbitrary random angles (like 15° or 135°), though it still outperforms standard models.

Additionally, PreCM comes with a computational trade-off. Because it processes four orientations, it requires more GPU memory. The authors mitigated this by halving the number of channels in intermediate layers to keep the total parameter count similar to the original models, but memory usage remains higher. Future research will likely focus on reducing this overhead and further refining performance for non-cardinal angles in complex scenes.

Summary updated

BibTeX
@article{xu2025precm,
  author = {Xinyu Xu and Huazhen Liu and Tao Zhang and Huilin Xiong and Wenxian Yu},
  title = {{PreCM: The Padding-Based Rotation Equivariant Convolution Mode for Semantic Segmentation}},
  journal = {IEEE Trans. Image Process.},
  year = {2025},
  doi = {10.1109/tip.2025.3558425},
}
Figure