Generative Adversarial Symmetry Discovery

Jianke Yang, Robin Walters, Nima Dehmamy, Rose Yu

Abstract

Symmetry is a fundamental inductive bias in deep learning, yet identifying the correct symmetries for complex scientific datasets remains a manual and error-prone process. We present LieGAN, a generative adversarial framework designed to automatically discover the underlying symmetries of a dataset. By learning Lie algebra bases that represent continuous transformations, LieGAN enables the extraction of interpretable physical laws—such as Lorentz invariance in particle physics—directly from raw data. These discovered symmetries can then be integrated into equivariant neural architectures to improve performance and data efficiency without requiring prior geometric knowledge.

Introduction

In deep learning, leveraging symmetry is a powerful method for improving model performance. If a problem is known to be rotationally invariant, such as identifying a galaxy in a telescope image, an equivariant neural network can achieve higher accuracy with significantly less training data. However, this approach relies on a critical assumption: that the symmetry group is known a priori.

In many complex scientific domains—including particle physics, fluid dynamics, and molecular modeling—the exact symmetries may be unknown, approximate, or mathematically difficult to derive. Enforcing an incorrect symmetry can degrade model performance, while ignoring a valid one leads to suboptimal data efficiency. LieGAN addresses this "discovery gap" by providing a framework that looks at raw data and automatically identifies the underlying group transformations that leave the data distribution invariant.

The LieGAN Framework

LieGAN is inspired by the architecture of Generative Adversarial Networks (GANs). However, while a traditional GAN learns to generate new data points, the LieGAN generator learns to generate transformations.

Adversarial Symmetry Discovery

The framework consists of two competing components:

  1. The Generator ($\Phi$): Instead of a standard deep network, the generator is parameterized as a set of learnable matrices representing a Lie algebra basis. It samples a transformation from the group generated by these bases and applies it to the input data.
  2. The Discriminator ($D$): This neural network attempts to distinguish between the original data and the data transformed by the generator.

If a transformation is a true symmetry of the data, the transformed distribution should be identical to the original distribution. The generator "wins" the adversarial game when it identifies transformations that successfully fool the discriminator into thinking the transformed data is real.

Regularization and Stability

To ensure the model discovers meaningful symmetries rather than trivial solutions, the authors implement specific constraints:

  • Identity Penalty: Prevents the generator from simply learning the identity transformation (where nothing changes).
  • Orthogonality: Ensures the discovered Lie algebra bases are distinct and span a valid transformation space.
  • LieGNN Integration: The authors also propose LieGNN, a method to convert discovered symmetries into an invariant metric tensor. This allows the discovered geometry to be integrated directly into Equivariant Graph Neural Networks as a custom inductive bias.

Experimental Evaluation

The framework was evaluated across several distinct domains to test its ability to recover known physical laws and improve downstream tasks:

  • High-Energy Physics: In a top-quark tagging task, LieGAN successfully recovered the 6-dimensional Lorentz group (comprising rotations and boosts) from raw particle momenta. This demonstrates the model's ability to extract fundamental physics from jet simulations.
  • N-Body Dynamics: For simulated 2-body and 3-body gravitational systems, LieGAN-informed models achieved prediction errors nearly as low as models provided with ground-truth physical equations.
  • Computer Vision: On Rotated MNIST, the framework identified $SE(2)$ symmetries (rotations and translations) and proved robust enough to distinguish between valid and invalid rotations (e.g., recognizing that a "6" and a "9" are distinct despite their rotational similarity).
  • Molecular Modeling: Using the QM9 dataset, the model successfully identified 3D spatial symmetries ($SE(3)$) inherent in molecular structures.

Key Insights

LieGAN shifts the paradigm of symmetry in machine learning from a manual engineering task to a distribution matching problem. Because the model learns Lie algebra bases (matrices), the results are highly interpretable. Researchers can inspect the learned matrices to identify specific physical behaviors, such as momentum boosts or specific rotational axes, effectively using LieGAN as a tool for scientific discovery.

Furthermore, LieGAN acts as a bridge between "black box" Multi-Layer Perceptrons (MLPs) and hard-coded equivariant models. It allows for a two-stage pipeline: first, discover the symmetry; second, use that symmetry to constrain a task-specific model.

Limitations and Future Work

While LieGAN represents a significant step forward, several challenges remain:

  • Discrete Symmetries: Lie algebras describe continuous transformations. Currently, LieGAN struggles to identify discrete symmetries (like mirror reflections) unless they are specifically parameterized.
  • Global vs. Local: The current framework focuses on global symmetries. Future iterations could extend this to "gauge symmetries," which vary across different points in space or time.
  • Linearity: The transformations are currently limited to linear group representations. Extending the generator to handle non-linear coordinate transformations would expand its utility in fields like general relativity.

Summary updated

BibTeX
@inproceedings{yang2023generative,
  author = {Jianke Yang and Robin Walters and Nima Dehmamy and Rose Yu},
  title = {{Generative Adversarial Symmetry Discovery}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=6bBla9LAJ2},
}
Figure