Comparison of Atom Representations in Graph Neural Networks for Molecular Property Prediction

Agnieszka Pocha, Tomasz Danel, Łukasz Maziarka

Introduction

In the field of molecular property prediction, Graph Neural Networks (GNNs) have become the standard approach, typically representing molecules as graphs where atoms are nodes and bonds are edges. While significant research has focused on optimizing GNN architectures, the impact of the underlying atom featurization—how these nodes are described—remains under-explored. Often, new architectures are introduced alongside new feature sets, making it difficult to discern whether performance gains stem from the model's structure or the input data. This study systematically evaluates 12 different atom representation schemes to isolate their impact on predictive performance.

Methodology

The researchers utilized a standard Graph Convolutional Network (GCN) to compare 12 atom representations derived from combinations of six fundamental features: atom type, number of neighbors, number of hydrogens, formal charge, ring inclusion, and aromaticity. By keeping the architecture simple, the study ensured that performance variations were directly attributable to the featurization schemes. The evaluation spanned four diverse datasets: QM9 (quantum properties), ESOL (water solubility), and metabolic stability datasets for Human and Rat liver microsomes. Statistical significance was verified using Wilcoxon tests with Bonferroni correction.

Results and Analysis

The experimental results demonstrate that the choice of atom features significantly influences model performance, often as much as the architecture itself.

MSE performance across 12 atom representations for five chemical datasets.

Key Findings

  • Optimal Feature Combinations: The most consistent performance gains across all datasets came from including the number of heavy neighbors and attached hydrogens. Representation 10 (Atom type + Neighbors + Hydrogens + In Ring + Aromaticity) emerged as the top performer in four out of five tasks.
  • The "Less is More" Principle: Surprisingly, adding more features did not always lead to better results. Excluding features like formal charge or aromaticity actually improved model quality in several instances. Leaner representations often exhibited better generalization, whereas larger feature sets (e.g., the 127-dimensional L4 representation) showed higher generalization gaps between training and test data.
  • Dataset Sensitivity: The impact of featurization varied by task. The QM9 dataset showed the highest sensitivity, where the choice of representation led to massive statistical differences in Mean Squared Error (MSE).
Detailed MSE distribution for the QM9 dataset, showing high sensitivity to feature choice.

Structural Blind Spots

Analysis using t-SNE clustering revealed that models lacking specific information, such as "ring" status, consistently failed on related structural motifs (e.g., non-aromatic or nitrogen-heavy rings). This suggests that while minimal feature sets are often robust, they must still capture essential topological information relevant to the target property.

Conclusion

This research highlights that atom featurization is a critical, yet often overlooked, component of GNN design for chemistry. The findings suggest that researchers should prioritize robust, lean feature sets like Representation 10 or the well-established Coley et al. representation. Future work should investigate whether these trends persist in more complex architectures, such as Message Passing Neural Networks, or when incorporating 3D spatial descriptors.

Summary updated

Abstract

Graph neural networks have recently become a standard method for analysing chemical compounds. In the field of molecular property prediction, the emphasis is now put on designing new model architectures, and the importance of atom featurisation is oftentimes belittled. When contrasting two graph neural networks, the use of different atom features possibly leads to the incorrect attribution of the results to the network architecture. To provide a better understanding of this issue, we compare multiple atom representations for graph models and evaluate them on the prediction of free energy, solubility, and metabolic stability. To the best of our knowledge, this is the first methodological study that focuses on the relevance of atom representation to the predictive performance of graph neural networks.
BibTeX
@inproceedings{pocha2021comparison,
  author = {Agnieszka Pocha and Tomasz Danel and Łukasz Maziarka},
  title = {{Comparison of Atom Representations in Graph Neural Networks for Molecular Property Prediction}},
  booktitle = {IJCNN},
  year = {2021},
  url = {https://openreview.net/forum?id=3CC9M3Z_BKS},
}
Figure