Regularizing Towards Soft Equivariance Under Mixed Symmetries

Hyunsu Kim, Hyungi Lee, Hongseok Yang, Juho Lee

Introduction

Strictly baking symmetries into neural network architectures works wonders for perfect data, but it often fails when real-world data is only approximately symmetric. To address this, researchers have introduced a Projection-based Equivariance Regularizer (PER). This method gently nudges a standard neural network toward multiple candidate symmetries, automatically discovering the right amount of "softness" for each symmetry during training without explicit supervision.

The Challenge of Approximate and Mixed Symmetries

Exploiting known symmetries in data is a cornerstone of modern deep learning. For example, Convolutional Neural Networks (CNNs) leverage translation invariance, while Graph Neural Networks (GNNs) use permutation invariance. Typically, these symmetries are hard-coded directly into the model's architecture, creating "equivariant networks."

However, real-world data is messy. Symmetries are often approximate (soft) due to measurement noise or environmental factors like gravity and wind. For instance, a projectile's trajectory might be mostly rotationally symmetric, but wind can break this symmetry along a specific axis.

Strict vs. Soft Equivariance

Furthermore, data often exhibits mixed symmetries, meaning multiple types of symmetries are present, each with varying degrees of approximation. Hard-coding strict symmetries into an architecture is too rigid for these scenarios, leading to suboptimal performance. Existing methods that attempt to relax these constraints struggle to handle multiple mixed symmetries with different, unknown noise levels. The core challenge is building a single model that flexibly adapts to multiple approximate symmetries without requiring complex architectural gymnastics.

A Regularizer-Based Approach

Instead of restricting the network's architecture, this paper proposes a regularizer-based approach applied to a standard Multilayer Perceptron (MLP).

Projection-Based Equivariance Regularizer (PER)

For any given candidate symmetry group (e.g., 3D rotations), there is a mathematical subspace of network weights that perfectly respects that symmetry. PER calculates the $L_2$ distance between the network's actual weights (and biases) and this ideal equivariant subspace. This distance is then added as a penalty to the loss function. The authors mathematically prove that minimizing this weight-space distance directly minimizes the actual equivariance error of the model's outputs.

Projection-Based Equivariance Regularizer

Automatic Hyperparameter Tuning

The real advantage of this method is how it handles mixed and soft symmetries. The authors introduce an algorithm that dynamically adjusts the regularization coefficients for each candidate symmetry group during training. By observing the magnitude of the equivariance error for each group early in the training process, the model automatically lowers the penalty for symmetries that are heavily broken in the data, while raising it for strict symmetries.

Key Insights and Results

The authors evaluated their method on both synthetic datasets (Moment of Inertia and Cosine Similarity tasks with injected noise) and real-world data (Waymo Open Motion Dataset for vehicle motion forecasting).

  • Data-Driven Symmetry Discovery: A major insight is that practitioners do not need to know how noisy their symmetries are beforehand. By providing a list of candidate symmetry groups and letting the auto-tuning algorithm run, the network accurately reverse-engineers the exact levels of symmetry approximation hidden in the dataset. The authors demonstrated a high Pearson correlation between the equivariance errors injected into synthetic data and the regularization coefficients the model automatically settled on.
  • Superior Performance on Soft Symmetries: On synthetic tasks, PER significantly outperformed strictly equivariant baselines and prior soft-equivariance methods. For example, on the Inertia task, PER achieved Mean Squared Errors (MSE) between 0.25 and 0.56 across various noise profiles, whereas strictly equivariant models completely failed on soft symmetries (MSE up to 62.36).
  • Adapting to Preprocessing Artifacts: In the Waymo dataset, standard data normalization (e.g., scaling the Z-axis differently than X and Y because cars drive on flat roads) inadvertently breaks 3D rotation symmetry. PER successfully detected this preprocessing-induced "softness" and adapted, achieving the lowest Average Distance Error (ADE) across different normalization schemes, whereas strictly equivariant models failed to adapt.

Limitations and Future Work

While promising, the current mathematical formulation and experiments are entirely focused on MLPs. Extending this projection-based regularizer to more complex architectures like CNNs, RNNs, or Transformers remains an open research direction. Additionally, the method requires the user to provide a predefined list of candidate symmetry groups upfront; it can figure out how strongly to apply them, but it cannot discover entirely novel, undefined symmetries from scratch.

Summary updated

BibTeX
@inproceedings{kim2023regularizing,
  author = {Hyunsu Kim and Hyungi Lee and Hongseok Yang and Juho Lee},
  title = {{Regularizing Towards Soft Equivariance Under Mixed Symmetries}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=9jJb8YsLxtZ},
}
Figure