Learning Layer-wise Equivariances Automatically using Gradients

Tycho F. A. van der Ouderaa, Alexander Immer, Mark van der Wilk
2/12/2026

No confident code implementation found for this paper.

Abstract

Convolutions encode equivariance symmetries into neural networks leading to better generalisation performance. However, symmetries provide fixed hard constraints on the functions a network can represent, need to be specified in advance, and can not be adapted. Our goal is to allow flexible symmetry constraints that can automatically be learned from data using gradients. Learning symmetry and associated weight connectivity structures from scratch is difficult for two reasons. First, it requires efficient and flexible parameterisations of layer-wise equivariances. Secondly, symmetries act as constraints and are therefore not encouraged by training losses measuring data fit. To overcome these challenges, we improve parameterisations of soft equivariance and learn the amount of equivariance in layers by optimising the marginal likelihood, estimated using differentiable Laplace approximations. The objective balances data fit and model complexity enabling layer-wise symmetry discovery in deep networks. We demonstrate the ability to automatically learn layer-wise equivariances on image classification tasks, achieving equivalent or improved performance over baselines with hard-coded symmetry.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ouderaa2026learning,
  title  = {Learning Layer-wise Equivariances Automatically using Gradients},
  author = {Tycho F. A. van der Ouderaa and Alexander Immer and Mark van der Wilk},
  year   = {2026},
  eprint = {2310.06131},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.06131},
  journal = {NEURIPS 2023 2023}
}

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/2310.06131.svg)](https://codeofpaper.com/paper/2310.06131)

Discussion