Probing the effects of broken symmetries in machine learning

Marcel F. Langer, Sergey N. Pozdnyakov, Michele Ceriotti

Abstract

In the development of machine learning interatomic potentials (MLPs), rotational invariance is typically considered a fundamental requirement, often hard-coded into model architectures at significant computational cost. This paper investigates whether such strict "inductive bias" is strictly necessary for practical scientific simulations. By evaluating the Point Edge Transformer (PET)—a model that is not rotationally invariant by design—on water systems, the authors show that while broken symmetry introduces minor artifacts like non-conservation of angular momentum in vacuum ("ghost torques"), these effects are negligible in bulk liquid and solid systems. The findings suggest that approximate symmetry, learned through data augmentation, is often sufficient for high-fidelity molecular dynamics.

Introduction

Physical laws dictate that the energy of a molecular system should remain invariant under rotation. Most state-of-the-art MLPs, such as NequIP or MACE, enforce this rotational invariance through complex equivariant mathematical frameworks. While effective, these constraints can limit model flexibility and increase computational overhead. Recently, unconstrained models have demonstrated high benchmark accuracy, leading to a critical question: Does the lack of formal symmetry break the underlying physics during long-term simulations? This study explores the consequences of "learned" versus "hard-coded" symmetry, specifically focusing on conservation laws and stability in the Point Edge Transformer (PET) architecture.

Methodology and Datasets

The authors utilize the PET architecture, which is invariant to translations and atom permutations but lacks inherent rotational invariance. To compensate, they employ three strategies:

  1. Rotational Augmentation: Training the model on various orientations of the same structure to learn rotational independence.
  2. Inference-time Averaging: Predicting energy for multiple rotations and averaging the results to improve symmetry.
  3. Multiple Time-Step (MTS) Integration: Using a dual-force approach where expensive averaged forces are calculated periodically to maintain simulation stability without excessive cost.

The model was tested on three water-based datasets: bulk liquid water (revPBE0-D3 level), gas-phase water (as a stress test for vacuum extrapolation), and hexagonal ice (to evaluate solid-state proton disorder).

Results and Discussion

The "Ghost" Torque

A primary consequence of broken rotational symmetry is the emergence of "ghost torques." In a vacuum, a non-symmetric model's energy surface is slightly non-uniform with respect to rotation, generating spurious torques that cause a water molecule to precess unnaturally.

Impact of broken rotational symmetry on angular momentum conservation and vibrational spectra in vacuum.

As shown in Figure 1, while these artifacts are prominent in isolated molecules, they can be mitigated through inference-time averaging. Using a "2i" averaging grid (36 rotations) reduced the spurious torque on a molecule by an order of magnitude compared to the raw model.

Bulk Resilience and Accuracy

Surprisingly, these symmetry artifacts almost entirely vanish in bulk liquid water. In the interpolative regime—where the model operates within the bounds of its training data—the errors from broken symmetry are smaller than the general noise of the model. PET achieved competitive force errors (~17 meV/Å MAE), comparable to strictly equivariant models.

Structural and thermodynamic properties of bulk water, showing the resilience of the PET model to broken rotational symmetry.

As illustrated in Figure 2, structural properties like the O-O pair correlation function ($g_{OO}(r)$) and thermodynamic free energy surfaces are virtually indistinguishable between the non-symmetric and symmetrized models. Data augmentation alone proved remarkably effective; for properties like diffusion and structural correlations, the "raw" non-symmetric model performed identically to the "symmetrized" version within statistical error. Furthermore, the model correctly predicted the tiny energy differences between different proton-ordered ice structures with an error of only ~0.02 meV/molecule.

Conclusion

This research suggests that the rigid enforcement of rotational symmetry in MLPs may be less critical for bulk material simulations than previously assumed. While symmetry breaking causes detectable artifacts in vacuum, these do not necessarily degrade the quality of bulk phase predictions. Approximate symmetry, achieved through robust data augmentation and optional inference-time averaging, offers a viable and potentially more efficient alternative for practical scientific applications. Future work will explore whether these findings hold for more anisotropic systems or complex chemical reactions where exact conservation laws might be more pivotal.

Summary updated

BibTeX
@article{langer2024probing,
  author = {Marcel F. Langer and Sergey N. Pozdnyakov and Michele Ceriotti},
  title = {{Probing the effects of broken symmetries in machine learning}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2024},
  doi = {10.1088/2632-2153/ad86a0},
}
Figure