Learning Infinitesimal Generators of Continuous Symmetries from Data

Gyeonghoon Ko, Hyunsu Kim, Juho Lee · DOI

Abstract

Symmetry is a fundamental concept in both physics and machine learning, providing a powerful inductive bias that allows models to generalize from limited data. While standard symmetries like rotation and translation are often hard-coded, real-world datasets frequently contain complex, non-linear, or approximate symmetries that are difficult to define manually. We present a framework for discovering these continuous symmetries directly from raw data by modeling infinitesimal generators using Neural Ordinary Differential Equations (Neural ODEs). Our method successfully identifies affine transformations in images and complex physical symmetries in partial differential equations (PDEs), demonstrating significant performance gains in low-data regimes.

Introduction

In machine learning, symmetry acts as a "cheat code." If a model understands that a cat remains a cat regardless of its orientation or position, it does not need to see every possible rotation to achieve robust classification. Traditionally, these symmetries are exploited through data augmentation or by designing equivariant architectures restricted to specific mathematical Lie groups.

However, many datasets exhibit hidden symmetries that are not easily captured by standard geometric transformations. For instance, the evolution of a fluid flow or the complex distortions in natural images may follow underlying rules that are unknown a priori. This paper addresses the challenge of symmetry discovery: the automated identification of continuous transformations that preserve the essential features of a task without prior knowledge of the symmetry group.

Methodology: Learning the Flow

The core of our approach is the learning of Infinitesimal Generators. In the language of Lie theory, these generators are vector fields that define how a data point moves to stay within its symmetry group.

Neural ODEs as Generators

Instead of learning discrete transformations, we model a continuous "flow" using a Neural ODE. By integrating along a learned vector field $V$, we can transform a data point $x_0$ by an arbitrary scale $s$ to obtain a new point $\vartheta_s^V(x_0)$. This allows the model to capture the infinitesimal changes that constitute a global symmetry.

Conceptual diagram of a vector field V and the resulting flow that transforms a point x0 to a new state.

The Validity Score ($S$)

To guide the learning process, we define a Validity Score $S$, which quantifies how well a transformation preserves the task-relevant information:

  • For Images: We utilize a pre-trained feature extractor. A transformation is considered a valid symmetry if the feature vector of the transformed image remains close to that of the original.
  • For Physics (PDEs): We evaluate whether the transformed data still satisfies the original differential equations.

Regularization and Diversity

To ensure the model learns meaningful and distinct symmetries, we employ two key regularization terms: an Orthonormality Loss to encourage the discovery of linearly independent generators, and a Lipschitz Loss to ensure the learned vector fields are smooth and stable.

Experimental Results

We evaluated our framework across two distinct domains: computer vision and physical simulations.

Computer Vision: CIFAR-10

On the CIFAR-10 dataset, our model successfully identified the six standard affine generators—translation, scaling, shearing, and rotation—without any prior geometric information. Beyond spatial transformations, the method also discovered symmetries in color space, identifying transformations related to brightness, contrast, and color shifts. To improve focus, we introduced a "pixel sensitivity" weight, ensuring the model prioritizes the image subject over background noise when learning symmetries.

Visualization of learned infinitesimal generators and their resulting transformations on images and physical PDE simulations.

Models trained with data augmented by these learned symmetries achieved an accuracy of 94.9%, nearly matching the 95.1% achieved by human-designed affine augmentations.

Physics and PDEs

In the domain of physics, we tested the method on several famous PDEs, including the Korteweg-de Vries (KdV) and Kuramoto-Sivashinsky (KS) equations. The framework successfully retrieved complex, non-linear symmetries that traditional linear methods would miss. A key finding was the discovery of "approximate symmetries"—transformations that, while not mathematically perfect, are highly effective for data augmentation in low-data scenarios.

Discussion and Limitations

While the ability to discover symmetries from scratch is a significant advancement, several challenges remain. The integration of ODEs is computationally more intensive than applying pre-defined transformations, leading to slower training times. Additionally, the method is sensitive to the choice of numerical differentiation schemes in the PDE domain. Finally, the current framework is limited to continuous symmetries and cannot yet identify discrete symmetries like horizontal flips.

Conclusion

By modeling infinitesimal generators with Neural ODEs, we provide a robust framework for discovering the underlying structure of complex datasets. This approach allows machine learning models to automatically exploit symmetries, leading to better generalization and performance, especially when labeled data is scarce.

Summary updated

BibTeX
@inproceedings{ko2024learning,
  author = {Gyeonghoon Ko and Hyunsu Kim and Juho Lee},
  title = {{Learning Infinitesimal Generators of Continuous Symmetries from Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=wl44W8xpc7},
}
Figure