Learning Linear Groups in Neural Networks

Emmanouil Theodosis, Karim Helwani, Demba E. BaarXiv 2023 · DOI

Abstract

Traditional deep learning architectures often rely on hardcoded symmetries, such as translation equivariance in Convolutional Neural Networks (CNNs). However, determining the appropriate symmetries for novel data types remains a significant challenge. This paper introduces Linear Group Networks (LGNs), a framework designed to discover underlying group structures directly from data. By learning linear operators that act on network weights, LGNs can automatically uncover interpretable operations such as pooling and blurring without human intervention.

Introduction

Equivariance is a cornerstone of modern deep learning, enabling models to generalize across transformations. While CNNs excel at handling translation, applying similar principles to genomic sequences or complex graphs requires prior knowledge of relevant symmetries. Current methods are typically "unidirectional," embedding known symmetries rather than uncovering hidden ones. LGNs address this gap by treating symmetry discovery as a learning problem, allowing the network to identify the optimal group actions for a given task.

Methodology: Learning Weight-Space Actions

The core innovation of LGNs is the learning of a "generator" matrix that acts on the network's filters to produce a set of related weights, forming a cyclic group.

The Vectorization Trick

Standard matrix multiplication is often insufficient to represent all linear operations, such as filter transposition. To overcome this, LGNs "lift" filters into a higher-dimensional space through vectorization. This allows the model to learn any linear operator, providing the flexibility needed for comprehensive symmetry discovery.

Invertibility and Regularization

For a set of operations to constitute a mathematical group, they must be invertible. LGNs incorporate a specific regularization term—an invertibility loss—to ensure that learned transformations do not collapse into non-invertible states. While this adds computational overhead (roughly 30% to 100% depending on the method), it is essential for maintaining the group-theoretic properties of the network.

Unrolled Architecture

LGNs are compatible with various architectures but are particularly effective when used with "unrolled" networks (e.g., those based on the ISTA algorithm). These architectures are valued for their parameter efficiency and interpretability, complementing the LGN's goal of discovering clear, rule-based data transformations.

Emergent Interpretability

A key finding of this research is that LGNs "invent" well-known signal processing techniques based on the task requirements. The learned structures typically fall into three categories:

  1. Skew-symmetric: Facilitates smoothing and filtering operations.
  2. Toeplitz: Represents weight-sharing and permutations, akin to standard convolution.
  3. Multi-scale: Operations that apply different transformations across various regions of the filter.
Learned matrix structures across different tasks and datasets, showing (a) Skew-symmetric, (b) Toeplitz, and (c) Multi-scale patterns.

Interestingly, these structures are task-dependent. Classification tasks tend to produce "causal averaging" structures (similar to pooling), while reconstruction tasks yield distinct block-weight configurations.

Experimental Results

The authors evaluated LGNs on MNIST and CIFAR10 benchmarks, as well as synthetic datasets.

Consistency and Recovery

In synthetic experiments, LGNs successfully recovered matrices correlating with planar rotations and median filtering. Furthermore, the network consistently identified similar Skew-symmetric and Toeplitz structures across both MNIST and CIFAR10 when trained for classification, suggesting these symmetries are fundamental to processing natural images.

A learned generator matrix for a specific rank (r=6), illustrating the complex patterns discovered by the LGN.

Conclusion and Future Directions

LGNs provide a scalable and interpretable method for symmetry discovery. While the current implementation is limited to cyclic groups and incurs a training overhead due to invertibility constraints, it opens the door for automated architecture design in domains where intuitive symmetries are unknown. Future work will explore more complex group structures and applications to non-grid data like point clouds and chemical graphs.

Summary updated

BibTeX
@misc{theodosis2023learning,
  author = {Emmanouil Theodosis and Karim Helwani and Demba E. Ba},
  title = {{Learning Linear Groups in Neural Networks}},
  year = {2023},
  eprint = {2305.18552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18552},
}
Figure