Constructing Invariant and Equivariant Operations by Symmetric Tensor Network

Meng Zhang, Chao Wang, Hao Zhang, Shaojun Dong, Lixin He · DOI

Abstract

This work introduces a systematic, graphical framework for building neural networks that are inherently aware of 3D rotations. By utilizing Symmetric Tensor Networks, we provide a unified method to construct functions that remain invariant or equivariant regardless of coordinate system rotation. This framework supports a wide range of data types, from simple vectors to complex high-rank tensors, bridging the gap between Cartesian and spherical tensor representations.

Introduction

In scientific domains such as chemistry, physics, and materials science, data is frequently defined by 3D coordinates (e.g., atomic positions). A fundamental requirement for physical models is that properties like energy or force should not change simply because the coordinate system is rotated. Standard neural networks often fail to capture this symmetry, treating rotated versions of the same system as distinct data points. This leads to data inefficiency and poor generalization.

While "Geometric Deep Learning" has introduced methods to enforce invariance and equivariance, existing approaches are often fragmented. Some are limited to specific tensor ranks or struggle to reconcile Cartesian tensors (standard grids/matrices) with spherical tensors (common in quantum mechanics). This paper proposes a "grand unified theory" for constructing symmetry-preserving functions for any input or output rank.

Methodology: The Graphical Language of Tensors

The core of this approach is the use of Tensor Networks—a diagrammatic language where nodes represent tensors and lines represent "contractions" (summing over indices, analogous to matrix multiplication). This Penrose-style notation transforms complex algebraic proofs into intuitive visual "wiring diagrams."

Key Components

  • Tensor Network Generators: The framework identifies a fundamental set of building blocks, such as the identity tensor $\delta$ and the Levi-Civita tensor $\epsilon$. These can be wired together to generate any rotationally invariant polynomial.
  • Equivariance via Differentiation: A significant theoretical contribution is the demonstration that equivariant functions (where the output rotates with the input) can be derived simply by taking the derivative of invariant functions (where the output remains constant).
  • The Stone-Weierstrass Bridge: Using this classical theorem, the authors prove that their tensor network constructions can approximate any continuous rotationally symmetric function.
Graphical notation for tensor networks, illustrating basic components (a), contraction (b), differentiation for equivariance (c), and decomposition (d).

Unified Representation: The $P_l$ Tensor

A major challenge in equivariant modeling is the discrepancy between different mathematical representations of tensors. This paper introduces a mathematical "translator" known as the $P_l$ tensor. This component allows the framework to handle both Cartesian and spherical tensors interchangeably, providing a unified path for scientific modeling across disciplines.

The $P_l$ tensor acts as a bridge, mapping high-rank tensor indices to a unified representation.

Key Insights and Results

By baking symmetry into the architecture itself, the framework treats symmetry as a hard constraint rather than a learned feature. The "physics" is handled by the tensor network structure, while standard non-linear functions (like MLPs) operate on the resulting invariant outputs to provide expressivity.

Theoretical Completeness

The paper mathematically proves that the proposed "Tensor Network Generators" are sufficient to represent any $SO(3)$ (rotation) or $O(3)$ (rotation + reflection) invariant/equivariant continuous function. Furthermore, the authors derive explicit, "ready-to-code" formulas for common scenarios, such as mapping vector inputs (atomic positions) to tensor outputs (stress tensors or Hamiltonians). The framework also explicitly accounts for "parity," distinguishing between true tensors and pseudotensors under mirror reflections.

Conclusion and Future Work

This work provides a rigorous theoretical foundation for symmetric neural networks. By showing that popular models like Tensor Field Networks (TFN) and Equivariant Graph Neural Networks (EGNN) are specific cases of this general framework, it offers a path toward more robust and unified geometric deep learning.

Future research will focus on addressing the computational complexity of using large sets of generators through low-rank tensor decompositions (e.g., Tensor Trains). Additionally, integrating these generators into standard deep learning libraries like PyTorch or JAX will be crucial for practical applications in molecular property prediction and beyond.

Summary updated

BibTeX
@misc{zhang2025constructing,
  author = {Meng Zhang and Chao Wang and Hao Zhang and Shaojun Dong and Lixin He},
  title = {{Constructing Invariant and Equivariant Operations by Symmetric Tensor Network}},
  year = {2025},
  eprint = {2508.12596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12596},
}
Figure