Lightweight and effective tensor sensitivity for atomistic neural networks

Michael Chigaev, Justin S. Smith, Steven Anaya, Benjamin Nebgen, Matthew Tyler Bettencourt, Kipton Barros, Nicholas Lubbers

TL;DR

Researchers have developed HIP-NN-TS, a lightweight extension to the Hierarchically Interacting Particle Neural Network that incorporates angular and many-body information using higher-rank tensors. By employing a clever weight-tying strategy, the model achieves state-of-the-art accuracy on molecular benchmarks—including a record-breaking 0.927 kcal/mol on the COMP6 suite—while adding less than 1% more parameters than its scalar-only predecessor.

What Problem Does This Paper Address?

In atomistic machine learning, models must predict properties like potential energy while respecting physical symmetries: if you rotate or translate a molecule, its energy shouldn't change.

Many early "geometrically shallow" models achieved this by only looking at scalar invariants, such as the distances between pairs of atoms. While simple, this approach is "blind" to the specific angles between atoms unless complex many-body terms (like three-body angles or four-body dihedrals) are explicitly calculated—a process that becomes computationally expensive very quickly.

Recent "geometrically deep" models use tensors (vectors and higher-order objects) to capture this angular information internally. However, these models often come with a massive increase in parameters and computational cost. The authors sought a "middle way": a method to give a neural network "tensor sensitivity" without the typical overhead.

Methods

The authors introduce Tensor Sensitivity (TS) to the existing HIP-NN architecture.

  1. Tensor Messages: Instead of just passing scalar messages about distances, HIP-NN-TS passes messages as irreducible Cartesian tensors. You can think of this like a multipole expansion:
  2. Rank 0 (Monopole): Basic distance information.
  3. Rank 1 (Dipole): Directional information (vectors).
  4. Rank 2 (Quadrupole): More complex spatial distributions.
  5. Weight Tying: This is the "secret sauce." Usually, each tensor rank would require its own set of learnable parameters. Here, the authors use the same radial functions for all ranks. The only new parameters are a few scalar coefficients used to mix the different ranks together.
  6. Invariant Reduction: To keep the network efficient, the model calculates the Frobenius norm (a measure of "magnitude") of these environment tensors. This reduces the complex spatial data back into scalars that the next layer of the neural network can easily process.

Datasets

The model was rigorously tested across several standard and challenging datasets:

  • QM7 & QM9: Small organic molecules in equilibrium states.
  • ANI-1x & ANI-1ccx: Large datasets containing millions of non-equilibrium (distorted) molecular conformations.
  • COMP6: A comprehensive benchmark for "extensibility," testing how well models perform on molecules much larger or more complex than those in the training set.
  • QM7-X: A dataset used to test learning curves and force predictions.
  • Allegro-Ag: A dataset for bulk silver, used to test performance in solid-state physics and large-scale molecular dynamics.

Key Insights and Ideas

  • Complexity Demands Angularity: The benefit of tensor sensitivity is marginal for simple, equilibrium datasets (like QM9) but becomes massive for "messy," non-equilibrium data. For the ANI-1ccx dataset, adding tensor information reduced error by 25%.
  • The Power of Weight Tying: By reusing parameters across different tensor ranks, the authors proved that you don't need a "heavy" model to capture complex physics. A HIP-NN-TS model with ~160k parameters can outperform ensembles with nearly 2 million parameters.
  • Geometrically Deep vs. Shallow: The paper highlights that while a single layer of HIP-NN-TS only captures "pairwise" couplings between messages, the hierarchical nature of the network (multiple interaction blocks) allows it to reconstruct complex N-body information over time.
  • Efficiency in Motion: The model isn't just accurate; it's fast. It scales linearly and shows excellent "strong scaling" on GPUs, making it viable for large-scale molecular dynamics simulations involving millions of atoms.

Key Results

  • Record Accuracy: HIP-NN-TS achieved a Mean Absolute Error (MAE) of 0.927 kcal/mol on the COMP6 benchmark, a significant improvement over previous state-of-the-art models like ANI-1x.
  • Force Prediction: On the QM7-X dataset, the model showed a factor of 2 reduction in force errors when moving from scalar (rank 0) to dipolar (rank 1) sensitivity.
  • Computational Throughput: While 2–4 times slower than the original scalar HIP-NN, it remains significantly faster than many "Equivariant Transformer" models while maintaining comparable or superior accuracy.
  • Parameter Efficiency: The transition from HIP-NN to HIP-NN-TS (rank 2) involves an increase in parameters of less than 1%.

Limitations and Future Work

  • Internal Invariance: While the model is sensitive to tensors, it reduces them to scalars before the next layer. This means it is not "fully equivariant" in the way some more complex architectures (like NEquip or MACE) are. The authors suggest that future versions could maintain tensor representations throughout the network.
  • Cusp Singularity: The use of Frobenius norms introduces a mathematical "cusp" (a non-smooth point) at zero. While the authors used a small regularization constant to handle this, they suggest exploring alternative definitions (like squared norms) that might be smoother but could introduce training instabilities.
  • Beyond 3-Body Info: A single interaction layer is still limited in the "order" of correlation it can capture. The authors point toward incorporating higher-body terms (like those in the Atomic Cluster Expansion) directly into the message-passing step.

Summary updated

BibTeX
@article{chigaev2023lightweight,
  author = {Michael Chigaev and Justin S. Smith and Steven Anaya and Benjamin Nebgen and Matthew Tyler Bettencourt and Kipton Barros and Nicholas Lubbers},
  title = {{Lightweight and effective tensor sensitivity for atomistic neural networks}},
  journal = {The Journal of Chemical Physics},
  year = {2023},
  doi = {10.1063/5.0142127},
}
Figure