[Paper Review] Learning Attributed Graph Representations with Communicative Message Passing Transformer
This paper proposes CoMPT, a Communicative Message Passing Transformer that enhances molecular graph representation by explicitly modeling bidirectional message passing between nodes and edges using a Transformer-based architecture. By incorporating a topological message diffusion mechanism to mitigate message explosion and over-smoothing, CoMPT achieves state-of-the-art performance, improving average performance by around 4% on graph-level tasks and achieving 0.214 MAE on 1H-NMR node-level prediction.
Constructing appropriate representations of molecules lies at the core of numerous tasks such as material science, chemistry and drug designs. Recent researches abstract molecules as attributed graphs and employ graph neural networks (GNN) for molecular representation learning, which have made remarkable achievements in molecular graph modeling. Albeit powerful, current models either are based on local aggregation operations and thus miss higher-order graph properties or focus on only node information without fully using the edge information. For this sake, we propose a Communicative Message Passing Transformer (CoMPT) neural network to improve the molecular graph representation by reinforcing message interactions between nodes and edges based on the Transformer architecture. Unlike the previous transformer-style GNNs that treat molecules as fully connected graphs, we introduce a message diffusion mechanism to leverage the graph connectivity inductive bias and reduce the message enrichment explosion. Extensive experiments demonstrated that the proposed model obtained superior performances (around 4$\%$ on average) against state-of-the-art baselines on seven chemical property datasets (graph-level tasks) and two chemical shift datasets (node-level tasks). Further visualization studies also indicated a better representation capacity achieved by our model.
Motivation & Objective
- To address the limitations of existing GNNs in capturing long-range dependencies and underutilizing edge information in molecular graphs.
- To overcome the over-smoothing and message enrichment explosion issues in deep GNNs and Transformer-style GNNs.
- To enhance molecular representation learning by explicitly modeling interactions between node and edge features through a communicative message-passing mechanism.
- To integrate structural inductive bias via a diffusion mechanism that respects molecular topology, improving generalization and expressivity.
Proposed method
- CoMPT employs a Transformer-based architecture where both node and edge embeddings are updated iteratively through cross-attention mechanisms between nodes and edges.
- A message diffusion mechanism is introduced using the molecular graph's topological adjacency matrix to constrain message propagation and reduce explosive message accumulation.
- The model uses learnable node position and edge direction embeddings to preserve structural context and improve representation quality.
- Message passing is performed in a communicative fashion, where nodes and edges exchange information in a bidirectional manner, enhancing feature expressivity.
- The framework supports both graph-level and node-level prediction tasks through a learnable readout mechanism and node-wise regression heads.
- The model is trained end-to-end using cross-entropy or mean absolute error (MAE) loss depending on the task.
Experimental results
Research questions
- RQ1Can a Transformer-based GNN that explicitly models node-edge interactions outperform standard GNNs and vanilla Transformers in molecular representation learning?
- RQ2How does incorporating a topological message diffusion mechanism affect model performance and stability in molecular graph tasks?
- RQ3To what extent does CoMPT alleviate over-smoothing and preserve distinguishable atomic representations in deep architectures?
- RQ4How do node position, edge direction, and message diffusion contribute individually to the final performance?
Key findings
- CoMPT achieved an average performance gain of approximately 4% over state-of-the-art baselines across seven graph-level molecular property prediction datasets.
- On node-level tasks, CoMPT achieved a mean absolute error (MAE) of 0.214 ppm for 1H-NMR and 1.321 ppm for 13C-NMR, outperforming all baselines.
- Ablation studies showed that removing the message diffusion mechanism caused the largest performance drop, highlighting its critical role in controlling message explosion.
- t-SNE visualization confirmed that CoMPT mitigates over-smoothing and enables clear separation of scaffold atoms and distinct side-chain functional groups.
- The inclusion of node position and edge direction embeddings further improved performance, indicating their importance for structural awareness.
- The model demonstrated robustness across multiple random seeds, with low standard deviation in repeated experiments (e.g., 0.003 for 1H-NMR MAE).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.