When Does an E(2)-Steerable CNN Guarantee Invariant Galaxy Classification?

Alejandro Treny OrtegaarXiv 2026

TL;DR

If you rotate a photo of a galaxy by 90 degrees, the galaxy itself hasn't changed—yet a neural network explicitly built with rotation-invariant math still changes its mind on roughly one in ten galaxies. This paper acts as a forensic codebase audit, revealing how a single padding pixel and a flattened readout layer silently destroy mathematical symmetry guarantees. Better yet, the author fixes it using tiny, ring-shaped readouts that dynamically track the galaxy's center, keeping predictions rock-steady even when the galaxy is rotated or shifted off-center.

What Problem Does This Paper Address?

In radio astronomy, galaxies are often sorted into two morphological buckets: Class I (bright at the core, fading at the edges) and Class II (brightest at the outer lobes). Because space has no "up," rotating or reflecting a telescope image shouldn't alter a galaxy's classification. To guarantee this, astronomers adopted $E(2)$-steerable Convolutional Neural Networks (CNNs), which bake rotational and reflectional symmetries directly into the convolutional filters.

However, auditing a widely cited open-source $E(2)$-steerable galaxy classifier revealed a surprise: despite theoretical guarantees, rotating or flipping images by exact 90-degree increments ($D_4$ symmetry, the eight exact symmetries of a square pixel grid) caused ~10% of galaxies to flip labels. Why did a mathematically invariant network fail in practice? And if you fix the symmetry, how do you preserve enough spatial information to tell core-bright from edge-bright galaxies without relying on brittle, centered cutouts?

Methods

First, the author diagnoses the two exact bugs breaking symmetry in the reference architecture:

  1. The One-Pixel Parity Bug: Native $150 \times 150$ images were asymmetrically padded to $151 \times 151$ before passing through a stride-2 pooling layer. That extra pixel turned an odd-sized internal grid ($147^2$) into an even one ($148^2$), causing reflections to swap even and odd grid indices during downsampling.
  2. The Flattened Head: Instead of pooling features globally as reported in the original paper, the public code flattened a $36 \times 36$ spatial grid directly into a massive 2.5M-parameter dense layer, allowing the network to weight rotated pixel positions differently.
Figure 1: Morphology, parity audit, and exact-D4 readouts. (a) MiraBest FRI and FRII cutouts with K = 6 schematic rings. (b) Stage-wise exact-D4 relative error (shared D4 weights): padding 150 →151 jumps 2.34 × 106× at Pool1, whereas native 1502 and stride-1 (N = 4) stay at 10−7– 10−6. (c) K = 6 masks on 362 (Centred Gaussian shows the argmax ring around +).

Simply swapping flattening for Global Average Pooling (GAP) restores exact invariance, but averaging the whole image destroys radial layout—crucial when your entire job is distinguishing bright cores from bright edges.

To keep radial structure and exact $D_4$ invariance while slashing head parameters by $113.7\times$ (down to ~22k weights), the author tests five compact readouts that summarize each channel into $K=6$ features. The standout novel readout is Centred Gaussian: six smooth, overlapping concentric Gaussian rings that aren't nailed to the center of the image, but instead dynamically anchor themselves to the $D_4$-equivariant center of mass (centroid) of the network's activations.

Datasets

All experiments use MiraBest, a benchmark dataset of morphologically classified radio galaxies containing $150 \times 150$ pixel cutouts:

  • MiraBest Confident: 833 galaxies (397 Class I, 436 Class II) used for stratified five-fold cross-validation and artificial off-center shift stress tests (shifting images by 2 to 12 pixels).
  • MiraBest Uncertain: 389 galaxies (194 Class I, 195 Class II) used for out-of-distribution evaluation.

Key Insights and Ideas

  • One pixel can ruin group equivariance: Keeping native $150^2$ inputs maintains symmetry down to floating-point noise ($10^{-7}$), whereas padding to $151^2$ causes relative error at the first pooling layer to spike by $2.34 \times 10^6\times$ (to 24.9%).
  • Equivariant trunks need invariant heads: A steerable convolutional backbone only permutes features predictably; if the final dense layer isn't constrained to weight symmetry-swapped pixels identically, end-to-end invariance evaporates.
  • Compact invariant heads just need patience: Under short training (60 epochs), huge flattened heads appear to outperform compact invariant heads. Give them 120 epochs, however, and tiny ring-based heads catch up in accuracy with zero symmetry flips.
  • Follow the light, not the frame: Fixed concentric rings fail when a galaxy isn't dead-center in the cutout. Anchoring smooth Gaussian rings to the activation centroid preserves exact $D_4$ rotational invariance while making the readout resilient to spatial shifts.
Figure 2: Classification accuracy under changes in orientation and cutout position (N = 833). (a) Long-budget CV accuracy vs. 32-view PIL flip rate (arrow: Flatten canonical to WC-D4). (b) Mean accuracy over four cardinal shifts (∆= 0–12 px): Fixed Gaussian recovers +6.1 pp over hard Radial at 12 px, and Centred Gaussian adds +11.5 pp more, staying near 90%. (c) Training regimes (short E2E, long E2E, 8-view frozen Flatten trunk).

Key Results

  • Fixing Flips without Losing Accuracy: On centered cutouts (120 epochs), the baseline Flatten head hits 92.20% accuracy, but flips predictions on 12.5% of galaxies under exact $D_4$ rotations/reflections (dropping worst-case accuracy across all 8 views to 84.39%). Standard GAP eliminates flips (0.0%) but tanks accuracy to 87.03%. Compact invariant heads bridge the gap with 0.0% $D_4$ flips: Orbit-union reaches 91.84% accuracy, Fixed Gaussian reaches 91.00% (with the lowest continuous rotation flip rate at 4.7%), and Centred Gaussian reaches 89.68% with the best calibration (0.020 ECE).
  • Surviving Off-Center Shifts: When galaxies are shifted 12 pixels off-center, Flatten drops 25.8 percentage points (to 66.45%, flipping on 33.2% of $D_4$ views) and Fixed Gaussian drops 12.7 pp (to 78.33%). Centred Gaussian holds steady at 89.86%—beating fixed rings by 11.52 pp while maintaining zero exact $D_4$ flips.

Limitations and Future Work

  • Code vs. Private Checkpoints: The audit inspects the pinned public repository commit, not the private model checkpoints from the original 2021 study.
  • Discrete vs. Continuous Exactness: Exact zero-flip guarantees apply only to the 8 discrete $D_4$ symmetries (90° turns and flips); arbitrary rotation angles still introduce pixel interpolation errors.
  • Centroid Distractions: While activation-centroid anchoring handles shifted galaxies well, bright neighboring sources or clipped radio lobes near cutout borders could pull the centroid off-target.
  • Architecture Scope: Experiments focus on shallow LeNet-style steerable networks; scaling these compact centroid-anchored readouts to deeper escnn backbones remains future work.

Summary updated

BibTeX
@misc{ortega2026when,
  author = {Alejandro Treny Ortega},
  title = {{When Does an E(2)-Steerable CNN Guarantee Invariant Galaxy Classification?}},
  year = {2026},
  eprint = {2611.39898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39898},
}
Figure