Learning Symmetries via Weight-Sharing with Doubly Stochastic Tensors
Putri A. van der Linden, Alejandro García-Castellanos, Sharvaree Vadgama, Thijs P. Kuipers, Erik J. Bekkers
TL;DR
The paper tackles the limitation of fixed, pre-specified symmetry biases in deep learning by introducing Weight Sharing Convolutional Networks (WSCNNs) that learn symmetry-driven kernel sharing via stacks of learnable doubly stochastic matrices, i.e., soft permutations. By enforcing double stochasticity through the Sinkhorn operator, the approach jointly optimizes weight-sharing patterns and base kernels, enabling exact regular group convolutions in strongly symmetric data and flexible partial symmetry discovery otherwise. Empirically, WSCNNs match or surpass fixed-symmetry models on rotated MNIST and CIFAR-10 while using fewer parameters, and they reveal learned representations that align with underlying group-like transformations. The work provides a practical pathway to data-driven symmetry discovery with implications for parameter efficiency and robustness in symmetry-aware learning systems.
Abstract
Group equivariance has emerged as a valuable inductive bias in deep learning, enhancing generalization, data efficiency, and robustness. Classically, group equivariant methods require the groups of interest to be known beforehand, which may not be realistic for real-world data. Additionally, baking in fixed group equivariance may impose overly restrictive constraints on model architecture. This highlights the need for methods that can dynamically discover and apply symmetries as soft constraints. For neural network architectures, equivariance is commonly achieved through group transformations of a canonical weight tensor, resulting in weight sharing over a given group $G$. In this work, we propose to learn such a weight-sharing scheme by defining a collection of learnable doubly stochastic matrices that act as soft permutation matrices on canonical weight tensors, which can take regular group representations as a special case. This yields learnable kernel transformations that are jointly optimized with downstream tasks. We show that when the dataset exhibits strong symmetries, the permutation matrices will converge to regular group representations and our weight-sharing networks effectively become regular group convolutions. Additionally, the flexibility of the method enables it to effectively pick up on partial symmetries.
