SymmetryGAN: Symmetry Discovery with Deep Learning

Krish Desai, Benjamin Nachman, Jesse Thaler

TL;DR

SymmetryGAN is a new deep learning framework that automatically discovers the statistical symmetries of a dataset. By combining Generative Adversarial Networks (GANs) with the concept of "inertial reference densities," the authors provide a rigorous way to identify transformations that leave a data distribution invariant, with successful applications ranging from simple Gaussians to complex particle physics data from the LHC.

What Problem Does This Paper Address?

In physics, symmetries are fundamental—think of how a sphere looks the same no matter how you rotate it. However, defining symmetry for a dataset (an ensemble of points) is surprisingly tricky. When you transform coordinates, the probability density changes by a "Jacobian factor" (a measure of how much the transformation stretches or squashes space). This makes it hard to tell if a transformation is a true symmetry of the underlying physics or just a mathematical artifact of the coordinate change.

Existing machine learning methods often require researchers to bake symmetries into the model architecture (like Translation Invariance in CNNs). This paper asks the inverse: Can we build a machine that looks at raw data and tells us what the symmetries are?

Methods

The authors introduce SymmetryGAN, which adapts the standard GAN architecture for discovery rather than generation:

  1. Inertial Reference Densities: To solve the Jacobian problem, the authors draw an analogy to "inertial frames" in classical mechanics. They define a symmetry as a transformation that preserves both the data distribution and a simple reference distribution (usually a uniform one). This requirement ensures the Jacobian factors cancel out.
  2. The Architecture:
    • Generator ($g$): Instead of creating images from noise, this generator learns a transformation function. It is constrained to be "equiareal" (meaning it doesn't change volumes, keeping the Jacobian determinant at $\pm 1$).
  3. Discriminator ($d$): This is a standard classifier that tries to distinguish between the original data and the data transformed by the generator.
  4. The Min-Max Game: If the generator finds a true symmetry, the transformed data will look identical to the original data, and the discriminator will be "confounded" (unable to tell them apart).
  5. Symmetry Discovery Map: The authors propose a way to map initial random starting points to final learned symmetries, allowing them to visualize the entire "manifold" of a symmetry group (e.g., all possible rotation angles).

Datasets

The paper validates the approach using a hierarchy of complexity:

  • Synthetic Gaussians: 1D Gaussians (testing reflection symmetry), 2D Gaussians with and without correlations, and complex Gaussian Mixtures (bimodal, octagonal, and grid patterns).
  • LHC Olympics Dijet Data: Simulated high-energy proton-proton collisions from the Large Hadron Collider. This dataset represents "dijet" events—sprays of particles flying off in opposite directions—where the underlying symmetries are governed by momentum conservation and azimuthal rotation.

Key Insights and Ideas

  • Jacobian Cancellation is the "Aha!" Moment: By forcing the generator to preserve a uniform reference density, the authors mathematically prove that the likelihood ratio becomes invariant. This provides the "rigorous statistical definition" promised in the abstract.
  • Discovery vs. Inference: The paper distinguishes between discovering a symmetry (finding a specific transformation that works) and inferring the group (understanding the global structure, like realizing a set of transformations forms the group $SO(2)$).
  • Symmetry as Data Augmentation: Once a symmetry is discovered, it can be used to "amplify" a dataset. You can apply the discovered transformations to existing data to create a much larger, physically consistent training set for other machine learning tasks.

Key Results

  • Perfect Recovery in 2D: For a standard 2D Gaussian, SymmetryGAN successfully mapped random initializations to the unit circle of $SO(2)$ rotations.
  • Discrete Subgroup Identification: By adding a "cyclic-enforcing" term to the loss function, the model could specifically pick out discrete symmetries, such as the 8-fold symmetry of an octagonal distribution.
  • LHC Success: When applied to 4D particle physics data, SymmetryGAN correctly identified that rotating both jets by the same angle is a symmetry, while rotating them independently is not—exactly what is expected from the law of momentum conservation. The KL divergence (a measure of difference between distributions) for the discovered symmetries was nearly zero, indistinguishable from statistical noise.

Limitations and Future Work

  • Linearity Constraints: Most of the empirical work focused on linear transformations (matrices). While the theory supports non-linear symmetries (like the Hénon map), parameterizing these for deep learning remains a challenge.
  • The "Inference" Gap: While the model finds points on the symmetry manifold, it doesn't yet automatically "name" the group (e.g., outputting "This is $SU(3)$"). The authors suggest using the "Symmetry Discovery Map" and tools from algebraic topology to bridge this gap.
  • Training Stability: Like all GANs, SymmetryGAN can be "finicky" to train, particularly when the symmetry group is disjoint (made of separate pieces). The authors noted that learning the global discovery map in a single run is a significant future algorithmic challenge.

Summary updated

Abstract

What are the symmetries of a dataset? Whereas the symmetries of an individual data element can be characterized by its invariance under various transformations, the symmetries of an ensemble of data elements are ambiguous due to Jacobian factors introduced while changing coordinates. In this paper, we provide a rigorous statistical definition of the symmetries of a dataset, which involves inertial reference densities, in analogy to inertial frames in classical mechanics. We then propose SymmetryGAN as a novel and powerful approach to automatically discover symmetries using a deep learning method based on generative adversarial networks (GANs). When applied to Gaussian examples, SymmetryGAN shows excellent empirical performance, in agreement with expectations from the analytic loss landscape. SymmetryGAN is then applied to simulated dijet events from the Large Hadron Collider (LHC) to demonstrate the potential utility of this method in high energy collider physics applications. Going beyond symmetry discovery, we consider procedures to infer the underlying symmetry group from empirical data.
BibTeX
@inproceedings{desai2021symmetrygan,
  author = {Krish Desai and Benjamin Nachman and Jesse Thaler},
  title = {{SymmetryGAN: Symmetry Discovery with Deep Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=LD1G6FZ3Ay},
}
Figure