Papers › Metric Learning for Clifford Group Equivariant Neural Networks

Metric Learning for Clifford Group Equivariant Neural Networks

13 Jul 2024arXiv:2407.09926archive 2025-07-28

Riccardo Ali, Paulina Kulytė, Haitz Sáez de Ocáriz Borde, Pietro Liò

Clifford Group Equivariant Neural Networks (CGENNs) leverage Clifford algebras and multivectors as an alternative approach to incorporating group equivariance to ensure symmetry constraints in neural representations. In principle, this formulation generalizes to orthogonal groups and preserves equivariance regardless of the metric signature. However, previous works have restricted internal network representations to Euclidean or Minkowski (pseudo-)metrics, handpicked depending on the problem at hand. In this work, we propose an alternative method that enables the metric to be learned in a data-driven fashion, allowing the CGENN network to learn more flexible representations. Specifically, we populate metric matrices fully, ensuring they are symmetric by construction, and leverage eigenvalue decomposition to integrate this additional learnable component into the original CGENN formulation in a principled manner. Additionally, we motivate our method using insights from category theory, which enables us to explain Clifford algebras as a categorical construction and guarantee the mathematical soundness of our approach. We validate our method in various tasks and showcase the advantages of learning more flexible latent metric representations. The code and data are available at https://github.com/rick-ali/Metric-Learning-for-CGENNs

PaperPDFCodeCode Syntology ran

In Syntology 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="2407.09926")

Code

Syntology Ran 19 of 26 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 4 ran · honoured contract; 2 ran · violated contract; 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 7 ran with no contract checked.

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

rick-ali/metric-learning-for-cgenns officialmentioned in paperpytorchMIT 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

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

4ran · honoured contract
2ran · violated contract
3ran · our draft was wrong
3ran · fixture could not drive it
7ran
7unverified

Licence: 0 of the 26 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 rick-ali/metric-learning-for-cgenns. “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.

MVLinear rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran MIT (permissive) · eacc9335cde1d246 · report
_smooth_abs_sqrt rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · honoured contract fingerprinted MIT (permissive) · 12d00178b3ee0e76 · report
calculate_norm rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · our draft was wrong MIT (permissive) · 4fd600fe4428ec1d · report
calculate_norms rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · our draft was wrong MIT (permissive) · 378003362f195653 · report
canonical_reordering_sign rick-ali/metric-learning-for-cgenns/algebra/metric.py official repository ran · violated contract MIT (permissive) · c267455507445bf8 · report
canonical_reordering_sign rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · fixture could not drive it MIT (permissive) · eb3217cce9b27f2c · report
canonical_reordering_sign rick-ali/Metric-Learning-for-CGENNs/algebra/metric.py official repository ran MIT (permissive) · 2354e2c3c7b22d3c · report
canonical_reordering_sign_euclidean rick-ali/metric-learning-for-cgenns/algebra/metric.py official repository ran · honoured contract fingerprinted MIT (permissive) · cffd0c2ee938ffee · report
canonical_reordering_sign_euclidean rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · honoured contract fingerprinted MIT (permissive) · 4c1b710580c8b7cf · report
canonical_reordering_sign_euclidean rick-ali/Metric-Learning-for-CGENNs/algebra/metric.py official repository ran fingerprinted MIT (permissive) · d5c05c34d2e55a48 · report
construct_gmt rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · our draft was wrong MIT (permissive) · 8c0324f3633ef2c8 · report
count_set_bits rick-ali/metric-learning-for-cgenns/algebra/metric.py official repository ran · honoured contract fingerprinted MIT (permissive) · 24a3800851807b8e · report
count_set_bits rick-ali/Metric-Learning-for-CGENNs/algebra/metric.py official repository ran fingerprinted MIT (permissive) · a660d9bd93058229 · report
get_invariants rick-ali/Metric-Learning-for-CGENNs/models/lorentz_cggnn.py official repository ran MIT (permissive) · 02b4e625d513ec06 · report
gmt_element rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 1ca665edea3adf3f · report
psi rick-ali/Metric-Learning-for-CGENNs/models/lorentz_cggnn.py official repository ran fingerprinted MIT (permissive) · eb8ab1e8e209f7b1 · report
unsorted_segment_mean rick-ali/Metric-Learning-for-CGENNs/models/nbody_cggnn.py official repository ran · fixture could not drive it MIT (permissive) · bc66f19be57720e7 · report
unsorted_segment_sum rick-ali/Metric-Learning-for-CGENNs/models/lorentz_cggnn.py official repository ran MIT (permissive) · f1e6153da7a4214f · report
unsqueeze_like rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository ran · violated contract fingerprinted MIT (permissive) · f6c0971a1cd07155 · report
FullyConnectedSteerableGeometricProductLayer rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · af68a09b089926e0 · report
NormalizationLayer rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · 80acaf82da83dc26 · report
b rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · 158aefe877c35425 · report
beta rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · 9a6fb42786449575 · report
cayley rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · 54e377e3d53dcda9 · report
geometric_product rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · a1a30d9532aee437 · report
q rick-ali/metric-learning-for-cgenns/models/modules/fcgp.py official repository unverified MIT (permissive) · dcba8eaf7d6bbc97 · report

Tasks

Metric Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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