Group-Equivariant Neural Networks with Fusion Diagrams

Zimu Li, Han Zheng, Erik H. Thiede, Junyu Liu, Risi Kondor · DOI

Abstract: Many learning tasks, including learning potential energy surfaces from ab initio calculations, involve global spatial symmetries and permutational symmetry between atoms or general particles. Equivariant graph neural networks are a standard approach to such problems, with one of the most successful methods employing tensor products between various tensors that transform under the spatial group. However, as the number of different tensors and the complexity of relationships between them increase, maintaining parsimony and equivariance becomes increasingly challenging. In this paper, we propose using fusion diagrams, a technique widely employed in simulating SU(2)-symmetric quantum many-body problems, to design new equivariant components for equivariant neural networks. This results in a diagrammatic approach to constructing novel neural network architectures. When applied to particles within a given local neighborhood, the resulting components, which we term "fusion blocks," serve as universal approximators of any continuous equivariant function defined in the neighborhood. We incorporate a fusion block into pre-existing equivariant architectures (Cormorant and MACE), leading to improved performance with fewer parameters on a range of challenging chemical problems. Furthermore, we apply group-equivariant neural networks to study non-adiabatic molecular dynamics of stilbene cis-trans isomerization. Our approach, which combines tensor networks with equivariant neural networks, suggests a potentially fruitful direction for designing more expressive equivariant neural networks.

Introduction

In computational chemistry and drug discovery, machine learning models must respect fundamental physical laws, specifically spatial symmetries. For a model to be physically consistent, rotating a molecule should leave its predicted energy unchanged (invariance), while the predicted forces on its atoms should rotate in tandem with the structure (equivariance). While Equivariant Graph Neural Networks (GNNs) have emerged as the gold standard for these tasks, designing architectures that are both expressive and computationally efficient remains a significant challenge.

The Challenge of Equivariance

Current equivariant models rely heavily on Clebsch-Gordan (CG) products to combine tensors. However, as models increase in depth and complexity, the combinatorial explosion of possible tensor interactions makes manual architecture design difficult. Researchers often resort to heuristics, which can result in architectures that are either computationally bloated or lack the expressive power to capture complex many-body interactions between atoms.

Methodology: Fusion Diagrams and Blocks

To address these challenges, we bridge the gap between machine learning and the tensor-network formalism used in quantum physics. We adopt Fusion Diagrams, a graphical notation from SU(2)-symmetric quantum simulations, to represent sequences of CG products as edges and vertices. This diagrammatic language simplifies the visualization and tracking of information "fusion" while strictly maintaining symmetry.

We introduce the Fusion Block, a structural component that integrates information from a central atom, its neighbors, and their connecting edges simultaneously. Unlike standard pairwise interactions, these blocks naturally incorporate higher-order relationships. Using Classical Invariant Theory (specifically Gordan’s Theorem), we prove that these fusion blocks are universal approximators for any continuous equivariant function within a local neighborhood.

The proposed architecture integrates fusion blocks into equivariant GNNs, providing a diagrammatic approach to many-body interactions.

Experimental Evaluation

We integrated fusion blocks into two state-of-the-art architectures: Cormorant (resulting in CoFD) and MACE (resulting in MoFD). These models were evaluated on three major benchmarks:

  1. QM-9: Predicting quantum properties for ~130,000 small molecules.
  2. MD-17: Learning potential energy surfaces and forces from molecular trajectories.
  3. Stilbene Isomerization: A challenging non-adiabatic dynamics task requiring property prediction across ground and excited electronic states.

Results and Discussion

Our experiments demonstrate that fusion diagrams act as a powerful "pruning tool" for symmetry, allowing for more efficient models. On the QM-9 dataset, the CoFD model achieved accuracy comparable to or better than the original Cormorant while utilizing approximately 60% fewer parameters (122k vs. 300k).

Comparison of CoFD and Cormorant on QM-9 properties. CoFD achieves competitive results with significantly fewer parameters, particularly in complex metrics like electronic spatial extent (R^2).

In the Stilbene isomerization task, the dense version of MoFD outperformed the original MACE in force prediction for excited states. Furthermore, MoFD demonstrated superior computational efficiency, with training epochs completing in 31 seconds compared to 52 seconds for MACE, attributed to more efficient handling of angular momentum features.

Conclusion

By treating complex tensor products as diagrammatic fusion blocks, we provide a principled framework for designing O(3) equivariant neural networks. While "dense" fusion blocks offer maximum expressive power, they come with higher computational costs. Future work will explore "recoupling" techniques—permuting internal diagram connections—to further optimize deep equivariant models and enhance the interpretability of learned physical laws.

Summary updated

Abstract

Many learning tasks, including learning potential energy surfaces from ab initio calculations, involve global spatial symmetries and permutational symmetry between atoms or general particles. Equivariant graph neural networks are a standard approach to such problems, with one of the most successful methods employing tensor products between various tensors that transform under the spatial group. However, as the number of different tensors and the complexity of relationships between them increase, maintaining parsimony and equivariance becomes increasingly challenging. In this paper, we propose using fusion diagrams, a technique widely employed in simulating SU($2$)-symmetric quantum many-body problems, to design new equivariant components for equivariant neural networks. This results in a diagrammatic approach to constructing novel neural network architectures. When applied to particles within a given local neighborhood, the resulting components, which we term "fusion blocks," serve as universal approximators of any continuous equivariant function defined in the neighborhood. We incorporate a fusion block into pre-existing equivariant architectures (Cormorant and MACE), leading to improved performance with fewer parameters on a range of challenging chemical problems. Furthermore, we apply group-equivariant neural networks to study non-adiabatic molecular dynamics of stilbene cis-trans isomerization. Our approach, which combines tensor networks with equivariant neural networks, suggests a potentially fruitful direction for designing more expressive equivariant neural networks.
BibTeX
@article{li2024group,
  author = {Zimu Li and Han Zheng and Erik H. Thiede and Junyu Liu and Risi Kondor},
  title = {{Group-Equivariant Neural Networks with Fusion Diagrams}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2024},
  doi = {10.1088/2632-2153/ad4a04},
}
Figure