Abstract
Designing equivariance as an inductive bias into deep-nets has been a prominent approach to build effective models, e.g., a convolutional neural network incorporates translation equivariance. However, incorporating these inductive biases requires knowledge about the equivariance properties of the data, which may not be available, e.g., when encountering a new domain. To address this, we study how to "discover interpretable equivariances" from data. Specifically, we formulate this discovery process as an optimization problem over a model’s parameter-sharing schemes. We propose to use the partition distance to empirically quantify the accuracy of the recovered equivariance. Also, we theoretically analyze the method for Gaussian data and provide a bound on the mean squared gap between the studied discovery scheme and the oracle scheme. Empirically, we show that the approach recovers known equivariances, such as permutations and shifts, on sum of numbers and spatially-invariant data.
Introduction
Inductive biases—assumptions built into a model's architecture—are the cornerstone of modern deep learning. Convolutional Neural Networks (CNNs), for instance, succeed because they are hard-coded with translation equivariance, ensuring features are treated consistently regardless of their spatial location. However, designing these biases typically requires deep domain expertise. When faced with novel data types, such as complex genomic sequences or exotic sensor arrays, the underlying symmetries may be unknown. This paper proposes a principled, automated framework to discover interpretable equivariances directly from data by learning optimal parameter-sharing schemes.
Methodology: Equivariance as Parameter-Sharing
The authors frame the discovery of equivariance as a parameter-sharing problem. The model weights $\theta$ are defined via an assignment matrix $A$ that maps a smaller vector of unique parameters $\psi$ to the full model (i.e., $\theta = A\psi$). When $A$ assigns multiple weights to the same value in $\psi$, those weights are shared, effectively enforcing a symmetry.
To learn this sharing scheme, the paper employs a bi-level optimization strategy:
- Lower-level: Optimize the unique parameters $\psi$ on the training set.
- Upper-level: Optimize the sharing matrix $A$ on a validation set to maximize generalization.
Because $A$ is naturally discrete, the authors use a continuous relaxation $[0, 1]$ to enable gradient-based optimization, supplemented by entropy and nuclear norm penalties to encourage the matrix to converge toward a discrete, low-rank structure. To evaluate the quality of the discovered symmetries, they introduce Partition Distance (PD), a metric from clustering theory that measures the distance between the learned sharing scheme and the ground-truth symmetry.
Theoretical Insights and the Validation Trade-off
Theoretically, the authors demonstrate that for Gaussian data, this discovery method provably yields a lower Mean Squared Error (MSE) than standard training without sharing. A key insight from their analysis is the validation set trade-off: unlike standard deep learning where validation sets are small, discovering robust structural biases may require a validation set that is larger than the training set.
As shown in Figure 3, as the fraction of training data ($r$) increases—and the validation set correspondingly shrinks—the MSE of the discovered models ("Ours" and "Ours*") increases, suggesting that a substantial validation signal is necessary to correctly identify the underlying parameter-sharing structure.
Empirical Results and Scalability
The approach was validated on several tasks with known symmetries:
- Permutation Invariance: In a "Sum of Numbers" regression task, the model successfully discovered that all input positions should share the same weight.
- Shift Equivariance: In signal processing tasks, the method recovered Toeplitz-like structures from scratch, effectively "re-inventing" the 1D convolution.
Furthermore, the method demonstrates strong scalability. As seen in Figure 5, even as the dimensionality ($K$) increases to 100, the proposed gradient-based optimization ("Ours") maintains a significant performance advantage over the "No sharing" baseline and closely tracks the performance of the "Oracle" model which has symmetries hard-coded.
Conclusion and Future Work
This work bridges the gap between group theory and automated architecture design by treating equivariance as a learned clustering of parameters. While currently focused on discrete group actions and linear/Gaussian assumptions for theory, the empirical success on deep networks suggests a promising path toward fully automated discovery of inductive biases. Future work remains to extend this to continuous groups (like rotations) and to reduce the computational overhead inherent in bi-level optimization.
Summary updated