Learning Symmetries via Weight-Sharing with Doubly Stochastic Tensors

Putri A. van der Linden, Alejandro García-Castellanos, Sharvaree Vadgama, Thijs P. Kuipers, Erik J. Bekkers
12/5/2024
cs.LGcs.CV

No official code found. Best implementation: computri/learnable-weight-sharing (2 stars, last commit 2025-04-28).

Abstract

Group equivariance has emerged as a valuable inductive bias in deep learning, enhancing generalization, data efficiency, and robustness. Classically, group equivariant methods require the groups of interest to be known beforehand, which may not be realistic for real-world data. Additionally, baking in fixed group equivariance may impose overly restrictive constraints on model architecture. This highlights the need for methods that can dynamically discover and apply symmetries as soft constraints. For neural network architectures, equivariance is commonly achieved through group transformations of a canonical weight tensor, resulting in weight sharing over a given group $G$. In this work, we propose to learn such a weight-sharing scheme by defining a collection of learnable doubly stochastic matrices that act as soft permutation matrices on canonical weight tensors, which can take regular group representations as a special case. This yields learnable kernel transformations that are jointly optimized with downstream tasks. We show that when the dataset exhibits strong symmetries, the permutation matrices will converge to regular group representations and our weight-sharing networks effectively become regular group convolutions. Additionally, the flexibility of the method enables it to effectively pick up on partial symmetries.

View on arXivView PDF

Code Implementations(1)

20PythonOct 28, 20241 years ago

Similar Papers

Cite this paper

@article{linden2024learning,
  title  = {Learning Symmetries via Weight-Sharing with Doubly Stochastic Tensors},
  author = {Putri A. van der Linden and Alejandro García-Castellanos and Sharvaree Vadgama and Thijs P. Kuipers and Erik J. Bekkers},
  year   = {2024},
  eprint = {2412.04594},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2412.04594},
  url    = {http://arxiv.org/abs/2412.04594v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.04594.svg)](https://codeofpaper.com/paper/2412.04594)

Discussion