Skip to main content
QUICK REVIEW

[Paper Review] Expressivity and Generalization: Fragment-Biases for Molecular GNNs

Tom Wollschläger, Niklas Kemper|arXiv (Cornell University)|Jun 12, 2024
Computational Drug Discovery MethodsComputer Science3 citations
TL;DR

This paper introduces the Fragment-WL test, a theoretical extension of the Weisfeiler-Leman framework, to analyze fragment-biased Graph Neural Networks (GNNs). It proposes a novel GNN architecture that performs message passing over molecular fragments using an infinite vocabulary of basic building blocks, achieving state-of-the-art performance with 12% lower error on ZINC and 34% lower error than other fragment-biased models, while outperforming transformer-based models in generalization.

ABSTRACT

Although recent advances in higher-order Graph Neural Networks (GNNs) improve the theoretical expressiveness and molecular property predictive performance, they often fall short of the empirical performance of models that explicitly use fragment information as inductive bias. However, for these approaches, there exists no theoretic expressivity study. In this work, we propose the Fragment-WL test, an extension to the well-known Weisfeiler & Leman (WL) test, which enables the theoretic analysis of these fragment-biased GNNs. Building on the insights gained from the Fragment-WL test, we develop a new GNN architecture and a fragmentation with infinite vocabulary that significantly boosts expressiveness. We show the effectiveness of our model on synthetic and real-world data where we outperform all GNNs on Peptides and have 12% lower error than all GNNs on ZINC and 34% lower error than other fragment-biased models. Furthermore, we show that our model exhibits superior generalization capabilities compared to the latest transformer-based architectures, positioning it as a robust solution for a range of molecular modeling tasks.

Motivation & Objective

  • To close the gap between theoretical expressiveness and empirical performance in molecular GNNs by providing a theoretical framework for fragment-biased models.
  • To develop a GNN architecture that leverages substructures as inductive bias while maintaining linear complexity and improved expressiveness.
  • To enable a fragmentation scheme with an infinite vocabulary of molecular fragments based on simple, flexible building blocks.
  • To demonstrate superior generalization and predictive performance on both synthetic and real-world molecular datasets, including ZINC and Peptides.
  • To show that fragment-based GNNs can outperform even the latest transformer-based architectures in out-of-distribution generalization.

Proposed method

  • Propose the Fragment-WL test as an extension of the standard Weisfeiler-Leman test to analyze the expressiveness of fragment-biased GNNs.
  • Design a new GNN architecture that performs message passing directly on graph fragments rather than individual nodes.
  • Introduce a fragmentation method that generates an infinite vocabulary of substructures from basic molecular building blocks, enabling fine-grained representation learning.
  • Use a message-passing framework where node representations are updated based on the aggregated features of their incident fragments.
  • Apply a learnable readout mechanism using sum aggregation and a two-layer MLP to predict molecular properties from fragment-level representations.
  • Train the model using MAE loss with early stopping and reduce-on-plateau learning rate scheduling on multiple molecular datasets.
Figure 1: Example graph ${G}$ with corresponding augmented variants. ${\text{NF}}({G})$ includes node features, ${\text{FR}}({G})$ also includes a representation for each fragment and ${\text{HLG}}({G})$ also has connections between neighboring fragment represenations.
Figure 1: Example graph ${G}$ with corresponding augmented variants. ${\text{NF}}({G})$ includes node features, ${\text{FR}}({G})$ also includes a representation for each fragment and ${\text{HLG}}({G})$ also has connections between neighboring fragment represenations.

Experimental results

Research questions

  • RQ1Can a theoretical framework be developed to analyze the expressiveness of fragment-biased GNNs, which are empirically effective but lack formal analysis?
  • RQ2How does incorporating fragment-level message passing improve the generalization and predictive performance of GNNs on molecular graphs?
  • RQ3Can a fragmentation scheme with an infinite vocabulary of substructures be constructed while maintaining computational efficiency and model expressiveness?
  • RQ4To what extent does the proposed model generalize to out-of-distribution data compared to standard GNNs and transformer-based models?
  • RQ5Does the integration of fragment-level inductive bias lead to improved performance on long-range interaction and rare substructure prediction tasks?

Key findings

  • The proposed model achieves 12% lower error than all other GNNs on the ZINC dataset, demonstrating significant performance gains.
  • On the Peptides dataset, the model outperforms all GNNs, indicating strong predictive power for complex molecular tasks.
  • The model reduces error by 34% compared to other fragment-biased models, highlighting its superior learning efficiency and expressiveness.
  • The model exhibits superior generalization capabilities, outperforming state-of-the-art transformer-based architectures on out-of-distribution molecular property prediction.
  • The Fragment-WL test successfully enables a fine-grained hierarchy of expressiveness across fragment-biased models, validating its theoretical utility.
  • The model achieves near-perfect accuracy (99.9%) in predicting the count of the 10 most frequent fragments in the ZINC-subset dataset, demonstrating strong substructure recognition.
Figure 2: Graphs ${G}^{1}$ and ${G}^{2}$ with their corresponding higher-level graph of fragments. The edges of the fragment representation to the vertices of ${G}^{1}$ and ${G}^{2}$ are omitted. ${G}^{1}$ and ${G}^{2}$ are indistinguishable by WL, NF -WL and FR -WL but distinguishable by HLG-WL as
Figure 2: Graphs ${G}^{1}$ and ${G}^{2}$ with their corresponding higher-level graph of fragments. The edges of the fragment representation to the vertices of ${G}^{1}$ and ${G}^{2}$ are omitted. ${G}^{1}$ and ${G}^{2}$ are indistinguishable by WL, NF -WL and FR -WL but distinguishable by HLG-WL as

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.