Introduction
Convolutional Neural Networks (CNNs) are notoriously brittle when encountering color variations not present during training. For instance, a model trained on red apples may fail to recognize green ones. Current approaches to this problem—converting images to grayscale or using color jitter augmentation—either discard valuable discriminative information or rely on brute-force learning of redundant filters. This work introduces Color Equivariant Convolutions (CEConvs), which mathematically share "shape" knowledge across different hues, making models structurally robust to color-based domain shifts.
Methodology: Equivariance in Photometrics
The core innovation extends the concept of group equivariance from geometric transformations to photometric ones. By treating RGB pixels as points in 3D space, the authors identified that a hue shift (preserving saturation and brightness) is equivalent to a rotation around the "grayscale diagonal" (R=G=B).
A CEConv layer learns a base filter and automatically generates "hue-rotated" versions. This allows the network to learn a shape (e.g., a petal) once and apply it across the entire color spectrum. To manage computational costs, hybrid architectures use CEConvs primarily in early layers where color selectivity is most prominent.
Experimental Results
The authors evaluated CEConvs against standard CNNs and data augmentation on several benchmarks, including synthetic toy datasets and real-world natural image datasets.
Robustness to Hue Shifts
On the Flowers-102 dataset, where color is a primary diagnostic feature, standard ResNet accuracy plummets as the test-time hue is shifted. CE-ResNet, however, maintains a nearly flat, high-accuracy profile across the entire hue circle, demonstrating superior generalization compared to both standard models and those trained with color jitter.
Handling Data Imbalance and Bias
On the Long-tailed ColorMNIST dataset, where certain color-class combinations are rare, CEConvs achieved 91.35% accuracy, significantly outperforming standard CNNs at 71.59%. This result proves that sharing shape information across colors helps the model learn effectively from underrepresented color samples. Similarly, on Biased ColorMNIST, CEConvs showed greater stability against misleading color cues as the dataset standard deviation increased.
Conclusion
CEConvs represent a significant step toward making neural networks more robust to real-world color variations. By decoupling shape and color through structural equivariance, these networks achieve better performance on imbalanced datasets and maintain high accuracy under domain shifts. While they introduce some computational overhead, hybrid models offer a practical path forward. Future research may extend this framework to other photometric properties like saturation and brightness.
Summary updated