Papers › On the Ability of Deep Networks to Learn Symmetries from Data: A Neural Kernel Theory

On the Ability of Deep Networks to Learn Symmetries from Data: A Neural Kernel Theory

16 Dec 2024arXiv:2412.11521archive 2025-07-28

Andrea Perin, Stephane Deny

Symmetries (transformations by group actions) are present in many datasets, and leveraging them holds significant promise for improving predictions in machine learning. In this work, we aim to understand when and how deep networks can learn symmetries from data. We focus on a supervised classification paradigm where data symmetries are only partially observed during training: some classes include all transformations of a cyclic group, while others include only a subset. We ask: can deep networks generalize symmetry invariance to the partially sampled classes? In the infinite-width limit, where kernel analogies apply, we derive a neural kernel theory of symmetry learning to address this question. The group-cyclic nature of the dataset allows us to analyze the spectrum of neural kernels in the Fourier domain; here we find a simple characterization of the generalization error as a function of the interaction between class separation (signal) and class-orbit density (noise). We observe that generalization can only be successful when the local structure of the data prevails over its non-local, symmetric, structure, in the kernel space defined by the architecture. This occurs when (1) classes are sufficiently distinct and (2) class orbits are sufficiently dense. Our framework also applies to equivariant architectures (e.g., CNNs), and recovers their success in the special case where the architecture matches the inherent symmetry of the data. Empirically, our theory reproduces the generalization failure of finite-width networks (MLP, CNN, ViT) trained on partially observed versions of rotated-MNIST. We conclude that conventional networks trained with supervision lack a mechanism to learn symmetries that have not been explicitly embedded in their architecture a priori. Our framework could be extended to guide the design of architectures and training procedures able to learn symmetries from data.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.11521")

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

By repository: official repository: 13 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

andrea-perin/gpsymm officialmentioned in paperjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 0 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

13unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from andrea-perin/gpsymm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clean_3d_ax andrea-perin/gpsymm/toy_model.py official repository unverified no licence file found · pointer only · 0898c848918c24cf · report
concat_interleave andrea-perin/gpsymm/multiple_seeds.py official repository unverified no licence file found · pointer only · 3f316e7891ba93af · report
get_accuracy andrea-perin/gpsymm/fig1_data.py official repository unverified no licence file found · pointer only · 6a332e60f9de2df6 · report
get_data andrea-perin/gpsymm/toy_model.py official repository unverified no licence file found · pointer only · d84ad4a8e8e79bf4 · report
get_datasets andrea-perin/gpsymm/fig1_data.py official repository unverified no licence file found · pointer only · 4be11eaa4df4a60d · report
get_datasets andrea-perin/gpsymm/groktest.py official repository unverified no licence file found · pointer only · 36d6f4ac12d38853 · report
get_deltasq andrea-perin/gpsymm/cntk.py official repository unverified no licence file found · pointer only · a96b39483c358815 · report
get_deltasq andrea-perin/gpsymm/mlp_ntk.py official repository unverified no licence file found · pointer only · 45893237407af809 · report
get_projected_radius andrea-perin/gpsymm/mlp_ntk.py official repository unverified no licence file found · pointer only · 037d500be599ab91 · report
kaiming_uniform_pytree andrea-perin/gpsymm/m_classification.py official repository unverified no licence file found · pointer only · e9b2a858f1ea102b · report
loss andrea-perin/gpsymm/mlp_trained.py official repository unverified no licence file found · pointer only · 7f1d2d2eaaff7f24 · report
set_seed_and_generator andrea-perin/gpsymm/fig1_data.py official repository unverified no licence file found · pointer only · 45bd5b7e41a05327 · report
train_apply andrea-perin/gpsymm/m_classification.py official repository unverified no licence file found · pointer only · 2f3600edc6e640ec · report

Tasks

Rotated MNIST

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections