Equivariance by Local Canonicalization: A Matter of Representation
Gerrit Gerhartz, Peter Lippmann, Fred A. Hamprecht
TL;DR
The paper presents a framework to translate existing equivariant tensor-field networks into the lightweight local canonicalization approach, achieving exact equivariance with substantially reduced runtime. It introduces LoCaFormer, a PyTorch Geometric-based architecture that uses an EDGE-like message-passing layer and flexible local-frame transformations to enable efficient, tensor-aware communication. Through experiments on QM9 and a 10k N-methylacetamide dataset, the authors demonstrate competitive accuracy and 4–5x speedups over the traditional Equiformer, while providing a modular software package (tensor_frames) for broad integration. The study also analyzes representations (Cartesian vs irreps) and radial/angular embeddings, highlighting data-efficiency advantages of built-in equivariance and detailing the trade-offs for tensorial targets and computational costs.
Abstract
Equivariant neural networks offer strong inductive biases for learning from molecular and geometric data but often rely on specialized, computationally expensive tensor operations. We present a framework to transfers existing tensor field networks into the more efficient local canonicalization paradigm, preserving equivariance while significantly improving the runtime. Within this framework, we systematically compare different equivariant representations in terms of theoretical complexity, empirical runtime, and predictive accuracy. We publish the tensor_frames package, a PyTorchGeometric based implementation for local canonicalization, that enables straightforward integration of equivariance into any standard message passing neural network.
