Skip to main content
QUICK REVIEW

[Paper Review] HamNet: Conformation-Guided Molecular Representation with Hamiltonian Neural Networks

Ziyao Li, Shu-Wen Yang|arXiv (Cornell University)|May 8, 2021
Machine Learning in Materials ScienceMaterials Science27 references6 citations
TL;DR

HamNet introduces a physics-inspired molecular representation method that uses a differentiable Hamiltonian Neural Network to predict 3D molecular conformations from 2D structures, leveraging learnable energy and dissipation functions. It achieves state-of-the-art performance on MoleculeNet benchmarks by combining conformation prediction with a message-passing fingerprint generator.

ABSTRACT

Well-designed molecular representations (fingerprints) are vital to combine medical chemistry and deep learning. Whereas incorporating 3D geometry of molecules (i.e. conformations) in their representations seems beneficial, current 3D algorithms are still in infancy. In this paper, we propose a novel molecular representation algorithm which preserves 3D conformations of molecules with a Molecular Hamiltonian Network (HamNet). In HamNet, implicit positions and momentums of atoms in a molecule interact in the Hamiltonian Engine following the discretized Hamiltonian equations. These implicit coordinations are supervised with real conformations with translation- & rotation-invariant losses, and further used as inputs to the Fingerprint Generator, a message-passing neural network. Experiments show that the Hamiltonian Engine can well preserve molecular conformations, and that the fingerprints generated by HamNet achieve state-of-the-art performances on MoleculeNet, a standard molecular machine learning benchmark.

Motivation & Objective

  • To develop a differentiable, physics-informed method for learning 3D molecular conformations from 2D molecular graphs.
  • To overcome limitations of existing 3D molecular fingerprinting methods, including high computational cost and lack of translational/rotational invariance.
  • To improve molecular representation learning by integrating physical laws (Hamiltonian dynamics) into deep learning architectures.
  • To achieve superior performance on molecular property prediction tasks compared to both 2D and 3D baselines.
  • To enable end-to-end training of conformations and fingerprints using invariant supervision loss functions.

Proposed method

  • The Hamiltonian Engine models atomic positions and momentums as implicit variables that evolve via discretized Hamiltonian equations with learnable energy and dissipation functions.
  • The engine is trained using a novel loss function that enforces translational and rotational invariance, ensuring robustness to coordinate system changes.
  • Real molecular conformations are used as supervision targets for the final positions predicted by the Hamiltonian Engine.
  • The predicted 3D coordinates are fed into a modified Message-Passing Neural Network (MPNN) to generate final molecular fingerprints.
  • The architecture integrates atom features and learned conformations through a redesigned MPNN that preserves geometric information.
  • The entire framework is end-to-end differentiable, enabling joint optimization of conformation prediction and fingerprint generation.

Experimental results

Research questions

  • RQ1Can a differentiable, physics-based neural network effectively predict molecular conformations from 2D molecular structures?
  • RQ2How does incorporating Hamiltonian dynamics improve molecular representation learning compared to standard MPNNs or 2D fingerprints?
  • RQ3To what extent do translation- and rotation-invariant losses enhance the generalization and robustness of conformation prediction?
  • RQ4Can a Hamiltonian-based approach outperform existing 3D and 2D molecular fingerprinting methods on standard benchmarks?
  • RQ5How do hyperparameters such as step size, depth, and latent dimensionality affect the performance and efficiency of the Hamiltonian Engine?

Key findings

  • The Hamiltonian Engine achieves state-of-the-art conformation prediction performance, outperforming conventional geometric and neural baselines.
  • HamNet achieves a Multi-MAE of 1.194 ± 0.038 on MoleculeNet, surpassing the previous SOTA Attentive FP (1.292) and 3DGCN (–).
  • On the ESOL dataset, HamNet achieves an RMSE of 0.731 ± 0.024, outperforming Attentive FP (0.736) and 3DGCN (0.824 ± 0.014).
  • The model demonstrates robustness to hyperparameter choices, with optimal performance achieved at step size η ∈ [0.025, 0.050] and depth T ≈ 25–30.
  • Increasing the latent dimensionality (df) up to 32 significantly improves performance, while running time remains largely unaffected.
  • The use of invariant loss functions enables effective training without requiring ground-truth conformations to be aligned in space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.