Source-linked AI summary

Hierarchical modeling of molecular energies using a deep neural network

Nicholas Lubbers, Justin S. Smith, Kipton Barros

arXiv:1710.00017v1stat.MLphysics.chem-ph

TL;DR

Molecular-energy modeling must balance the accuracy of quantum calculations with the efficiency needed for simulation and screening. HIP-NN addresses this by combining a molecular neural-network representation with a many-body-inspired hierarchical energy decomposition. It achieves state-of-the-art results, including 0.26 kcal/mol mean absolute error on QM9, and its hierarchical outputs provide a built-in reliability signal.

  • Problem

    Quantum-chemistry calculations are computationally expensive, while faster classical potentials can lack transferability to new chemical environments and bond-breaking processes.

  • Method

    HIP-NN uses a molecular representation and a single neural network to generate hierarchical energy contributions inspired by the many-body expansion.

  • Results

    0.26 kcal/mol mean absolute error is reported on QM9, and HIP-NN performs well on molecular-dynamics trajectory datasets with minimal tuning.

  • Takeaways & Limitations

    The hierarchical structure provides a built-in measure of model uncertainty in addition to accurate molecular-energy predictions.

  • Takeaways & Limitations

    QM9 energy predictions exceed 1 kcal/mol in about 2.3% of cases, which may be unacceptable for some applications.

Abstract

from arXiv · show

We introduce the Hierarchically Interacting Particle Neural Network (HIP-NN) to model molecular properties from datasets of quantum calculations. Inspired by a many-body expansion, HIP-NN decomposes properties, such as energy, as a sum over hierarchical terms. These terms are generated from a neural network--a composition of many nonlinear transformations--acting on a representation of the molecule. HIP-NN achieves state-of-the-art performance on a dataset of 131k ground state organic molecules, and predicts energies with 0.26 kcal/mol mean absolute error. With minimal tuning, our model is also competitive on a dataset of molecular dynamics trajectories. In addition to enabling accurate energy predictions, the hierarchical structure of HIP-NN helps to identify regions of model uncertainty.

I. INTRODUCTION

HIP-NN addresses the need for faster molecular-energy prediction by combining quantum-calculation accuracy with neural-network efficiency. Inspired by the many-body expansion, it hierarchically models local energy contributions and uses their decay to assess prediction reliability.

  • Ab initio quantum chemistry is accurate but typically scales cubically or worse with electron number, motivating faster methods for molecular dynamics and screening.
  • Classical potentials enable simulations of 10^6–10^9 atoms but may not transfer reliably to new chemical environments or bond-breaking processes.
  • HIP-NN uses a single neural network, inspired by the many-body expansion, to generate hierarchical local-energy terms at all expansion orders.
  • Hierarchical regularization encourages higher-order contributions to decay, making deviations from decay a signal that an energy prediction is less likely to be accurate.
  • 0.26 kcal/mol mean absolute error is reported on QM9, while HIP-NN also performs well on molecular-dynamics trajectory datasets with minimal tuning.

II. HIP-NN METHODOLOGY

HIP-NN represents molecules through invariant geometric and atomic-species inputs, then builds increasingly abstract atomic features by processing local chemical environments. Linear regressions on selected network layers produce hierarchical local energies that are summed into the molecular energy.

  • HIP-NN processes a molecular configuration into successive atomic features using interaction layers and on-site layers.Interaction layers mix information between nearby atoms, whereas on-site layers process one atom’s features.
  • Pairwise distances replace coordinates to enforce invariance to translations, rotations, and reflections, with a smooth radial cutoff preserving energy smoothness.
  • One-hot atomic-number encoding and summation over atomic and feature indices make the representation invariant to atom permutation.
  • Each layer generates a more abstract representation of an atom’s chemical environment from neighboring features and interatomic distances.
  • Linear regression on atomic features produces local hierarchical energies, and selected network layers contribute to the total HIP-NN energy.

C. On-site layers

On-site layers transform the features of individual atoms, using learned nonlinear transformations and residual connections to support deep-network training.

  • On-site layers operate on the feature vector of a single atom.
  • The on-site transformation uses learned weights and biases together with an activation function, for which HIP-NN selects softplus.
  • Residual-network transformations are used to obtain final atomic features at the next layer.
  • Empirically, the ResNet architecture mitigates vanishing gradients and permits training deeper networks.

D. Interaction layers

Interaction layers communicate information between nearby atoms through distance-dependent sensitivity functions. A hard 15 Bohr cutoff limits spatial communication, while the same activation and residual transformations are shared with on-site layers.

  • Interaction layers transmit information between atoms in addition to performing transformations analogous to on-site layers.
  • Distance-dependent sensitivity functions modulate communication between atom pairs separated by rij.
  • 15 Bohr is the hard spatial cutoff introduced by scaling all sensitivity functions with ϕcut(rij).
  • Neighbor communication is restricted to atom pairs satisfying rij < Rcut.
  • Interaction and on-site layers use the same activation function and ResNet transformation.

E. Training

HIP-NN is trained by minimizing prediction errors together with weight and hierarchy regularization. The hierarchy penalty encourages energy contributions to decay with interaction order, while L2 regularization reduces outlier predictions.

  • MAE and RMSE average absolute and squared prediction errors between predicted molecular energy and true ab initio energy over dataset D.
  • HIP-NN minimizes a loss combining MAE, RMSE, L2 regularization, and a penalty for non-hierarchical energy contributions.The loss is evaluated on the training dataset.
  • A sufficiently small λL2 reduces outlier HIP-NN predictions while introducing minimal model bias.
  • The hierarchy regularization term penalizes non-hierarchicality R to encourage decay of energy contributions across interaction order.
  • When energy contributions decay rapidly with n, HIP-NN is functioning properly; a large R indicates model malfunction for that molecule.

2. Stochastic optimization

HIP-NN uses Adam, a stochastic-gradient method, to optimize its parameters over randomized mini-batches. Validation-based early stopping and learning-rate annealing regulate training when validation error stops improving.

  • Adam updates the full parameter set U to minimize the training loss defined for HIP-NN.
  • Training partitions the dataset into randomized disjoint mini-batches and updates parameters using gradients computed for each mini-batch.
  • Each epoch passes through all mini-batches, after which the partition is re-randomized; Adam uses decaying averages of previous gradients to speed convergence.
  • Early stopping monitors validation MAE on a separate dataset and terminates training when the metric stops improving.
  • After a validation plateau lasting tpatience epochs, the learning rate is multiplied by αdecay rather than remaining fixed.

F. Implementation details

The implementation uses a hierarchical network with two interaction layers, configurable on-site depth and feature size, and one-hot atomic-species inputs. Training uses Theano and Lasagne with GPU acceleration and specified initialization and optimization settings.

  • HIP-NN uses Ninteraction = 2 interaction layers, each followed by Non-site on-site layers, with total nonlinear depth Ninteraction × (1 + Non-site).
  • The input feature vector z0_i is a one-hot encoding of atomic species, while later layers use a fixed feature-vector size Nfeature.
  • Models vary Non-site and Nfeature to study the effect of on-site depth and feature-vector size.
  • Weights use Glorot initialization, biases start at zero, and the zeroth-order energy model is initialized by least-squares fitting.
  • For n > 0, weights are rescaled to impose the expected energy scale and hierarchical decay.
  • HIP-NN uses 20 sensitivity functions with distances spanning Rlow = 1.7 Bohr to Rhigh = 10 Bohr and cutoff Rcutoff = 15 Bohr.
  • Training uses λL2 = 10−6, λR = 10−2, mini-batches of 30 molecules, and a separate 1000-molecule validation set.
  • The implementation uses Theano and Lasagne with custom layers, GPU compilation, and approximately 1 minute per QM9 training epoch on one Nvidia Tesla P100 for the stated configuration.

A. QM9 dataset

QM9 contains about 131k pruned organic molecules used to benchmark HIP-NN across training sizes and model complexities. HIP-NN reaches 0.26 kcal/mol MAE, while hierarchical behavior also tracks prediction reliability and model limitations remain.

  • Dataset construction: QM9 contains about 134k organic molecules, with approximately 3k removed for geometric inconsistency and 11 more removed after energy-minimization difficulties, leaving about 131k molecules.The pruned dataset is randomly partitioned into training, validation, and testing sets; validation contains 1000 molecules.
  • Benchmark performance: HIP-NN achieves an MAE of 0.26 kcal/mol on QM9 when trained on the largest datasets, outperforming existing reported models according to the authors.The benchmark compares HIP-NN with recent state-of-the-art models using training sets of three different sizes.
  • Model complexity and hierarchy: Removing hierarchical energy contributions and hierarchical regularization degrades MAE by approximately 9% and increases errors above 1 kcal/mol by approximately 22%, while RMSE remains comparable.The error-above-threshold statistic is the percentage of test molecules whose absolute energy error exceeds 1 kcal/mol.
  • Model complexity and hierarchy: With only 5 atomic features and 1.6k parameters, HIP-NN achieves 1.2 kcal/mol MAE, while increasing feature count generally reduces error; a non-hierarchical 80-feature model may overfit.The 1.2 kcal/mol result approaches the paper’s stated standard of chemical accuracy.
  • Remaining errors: Approximately 2.3% of predicted molecular energies have errors exceeding 1 kcal/mol despite the best MAE, leaving room to reduce outliers.The authors identify fewer large-error predictions as an area for improved models.
  • Prediction reliability: For most QM9 molecules with R ≳ 3 × 10^-2, increasing non-hierarchicality corresponds to larger typical and outlier error quantiles.The paper interprets larger R as a breakdown of the energy hierarchy assumption; scatter at extreme R values is attributed to limited data.

B. MD Trajectories

HIP-NN performs well on finite-temperature molecular dynamics trajectories, while its hierarchical decomposition supports both interpretable energy terms and uncertainty estimation. Dataset precision limits indicate that lower errors may be possible with more precise energies.

  • MD Trajectories: HIP-NN demonstrates good performance on MD trajectory datasets with minimal tuning.The trajectories cover benzene, malonaldehyde, salicylic acid, and toluene at T = 500 K, with energies and forces computed using DFT with the PBE exchange-correlation potential.
  • MD Trajectories: The MD benchmark evaluates MAE across training-set sizes, model types, and molecule types.Table III reports MAE in kcal/mol and compares finite-temperature molecular conformers.
  • Model Design: The hierarchical decomposition and its regularization improve performance, with removing the decomposition increasing MAE by 9%.The fraction of errors under 1 kcal/mol also increases by 22% without the decomposition, despite negligible growth in total parameter count.
  • Hierarchical Interpretation: The hierarchical energy terms correspond to progressively richer local information, from dressed atoms to neighbor distances and angular geometry.The zeroth-order term represents dressed atoms; higher-order terms combine local pairwise information and capture features such as angles between atom triples.
  • Hierarchical Interpretation: The truncated model energy has an MAE that decays exponentially with the truncation order k.For the best-performing models with fixed Ninteraction = 3, this decay is observed in the truncated energy.

V. CONCLUSION

HIP-NN models molecular energies using invariant molecular representations and a hierarchy inspired by the many-body expansion. The approach performs strongly on benchmark and trajectory datasets, while its energy hierarchy provides an empirical uncertainty signal.

  • Conclusion: HIP-NN encodes permutation, rotation, and translation invariances while incorporating locality and hierarchical structure.Its smooth energy function may potentially drive molecular dynamics simulations.
  • Conclusion: HIP-NN improves significantly upon the state of the art for energy prediction on the QM9 benchmark.The conclusion also reports promise on finite-temperature molecular trajectory datasets.
  • Conclusion: A hierarchy that does not decay sufficiently fast indicates that the corresponding molecular energy prediction is less likely to be accurate.This provides an empirical measure of model uncertainty.
Loading 1710.00017v1…