A Unified Framework for Discovering Discrete Symmetries

Pavan Karjol, Rohan Kashyap, Aditya Gopalan, Prathosh A. P. · DOI

Abstract

This paper introduces a unified neural architecture and a hybrid optimization strategy designed to automatically discover unknown discrete symmetries, such as cyclic or dihedral patterns, within datasets. By integrating deep learning with multi-armed bandits, the framework identifies underlying symmetry groups while simultaneously learning target functions with high accuracy and interpretability. The approach addresses the exponential search space of possible subgroups and the limitations of standard linear layers in representing ordered symmetries.

Introduction

In machine learning, symmetry refers to transformations of input data that leave the output unchanged (invariance) or change it predictably (equivariance). While known symmetries are often hard-coded into models—such as translation invariance in Convolutional Neural Networks—real-world data frequently contains symmetries that are unknown a priori. For instance, in complex physical systems, only specific subsets of particles may interact symmetrically.

Discovering these hidden rules presents two primary challenges. First, the search space for possible subgroups grows exponentially with the number of inputs, making exhaustive search computationally infeasible. Second, most existing methods require specialized neural network designs for each symmetry type. There has lacked a single, unified architecture capable of expressing cyclic, dihedral, and symmetric groups simultaneously.

Methods: A Unified Architecture

The authors propose a unified architecture designed to bridge these gaps. The framework consists of three core components:

  1. Selection Matrices ($M_1, M_2$): Learnable linear transformations. $M_1$ identifies which input indices participate in the symmetry, while $M_2$ determines the specific type of symmetry (e.g., permutation vs. cyclic shift).
  2. Matrix-Valued Function ($\rho$): A fixed, non-linear mapping that creates pairs of input elements. This component is mathematically essential for capturing "ordered" symmetries like cyclic groups, which standard linear layers cannot represent.
  3. Invariant Core ($\phi$): An $S_{n^2}$-invariant neural network (similar to Deep Sets) that processes the transformed data.
Figure 1: The unified neural architecture showing the flow from input $x$ through selection matrices $M_1, M_2$, the non-linear mapping $\rho$, and the invariant core $\phi$.

The Necessity of Pairs

A key theoretical insight of this work is that linear transformations alone cannot realize cyclic symmetries ($Z_k$) for $k \ge 3$. By introducing the matrix-valued function $\rho$ to analyze pairs of elements, the authors bypass this fundamental limitation, allowing the model to distinguish between different types of discrete groups.

Figure 2: Definitions of the matrix-valued mapping $\rho(x)$ for different symmetry groups, illustrating how the framework handles symmetric ($S_k$), cyclic ($\mathbb{Z}_k$), and dihedral ($D_{2k}$) patterns.

Optimization Strategy

To navigate the discrete search space efficiently, the framework employs a hybrid optimization strategy. The choice of symmetry (defined by $M_1$ and $M_2$) is treated as a Multi-Armed Bandit problem solved via Linear Thompson Sampling (LinTS). This provides a rigorous performance guarantee, ensuring convergence to the correct symmetry group with high probability. Simultaneously, Stochastic Gradient Descent (SGD) is used to train the weights of the neural network $\phi$ for the selected symmetry.

Experimental Evaluation and Results

The framework was evaluated on three distinct tasks: polynomial regression with unknown invariant variables, an image-digit sum task using MNIST, and convex area estimation for quadrilaterals (invariant to cyclic shifts and reflections).

  • Discovery Accuracy: The framework achieved 100% accuracy in identifying the correct underlying subgroup across all tasks.
  • Predictive Performance: The model consistently outperformed standard SGD-trained networks and specialized state-of-the-art methods in Mean Absolute Error (MAE).
  • Sample Efficiency: The method remained effective even with extremely small training sets (e.g., 64 data points), demonstrating the power of exploiting structural symmetry.
  • Interpretability: Because the symmetry is explicitly captured by $M_1$ and $M_2$, the results are human-readable; visualizing these matrices reveals exactly which inputs the model has grouped and the nature of the discovered symmetry.

Conclusion and Future Work

This unified framework provides a robust method for discovering discrete symmetries without prior knowledge. While currently focused on subgroups of the permutation group, future work aims to extend this approach to continuous symmetries (Lie groups) and apply it to complex domains like molecular property prediction, where identifying point groups is critical for scientific discovery.

Summary updated

BibTeX
@inproceedings{karjol2024unified,
  author = {Pavan Karjol and Rohan Kashyap and Aditya Gopalan and Prathosh A. P.},
  title = {{A Unified Framework for Discovering Discrete Symmetries}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure