Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules

Zhiyuan Liu, Yaorui Shi|arXiv (Cornell University)|Oct 23, 2023
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

This paper proposes SimSGT, a novel masked graph modeling framework for molecular representation learning that rethinks the tokenizer and decoder components. By introducing a simple GNN-based tokenizer (SGT) and an expressive decoder with remask decoding, SimSGT achieves state-of-the-art performance on MoleculeNet benchmarks, outperforming existing self-supervised methods through improved representation learning grounded in subgraph-level reconstruction.

ABSTRACT

Masked graph modeling excels in the self-supervised representation learning of molecular graphs. Scrutinizing previous studies, we can reveal a common scheme consisting of three key components: (1) graph tokenizer, which breaks a molecular graph into smaller fragments (i.e., subgraphs) and converts them into tokens; (2) graph masking, which corrupts the graph with masks; (3) graph autoencoder, which first applies an encoder on the masked graph to generate the representations, and then employs a decoder on the representations to recover the tokens of the original graph. However, the previous MGM studies focus extensively on graph masking and encoder, while there is limited understanding of tokenizer and decoder. To bridge the gap, we first summarize popular molecule tokenizers at the granularity of node, edge, motif, and Graph Neural Networks (GNNs), and then examine their roles as the MGM's reconstruction targets. Further, we explore the potential of adopting an expressive decoder in MGM. Our results show that a subgraph-level tokenizer and a sufficiently expressive decoder with remask decoding have a large impact on the encoder's representation learning. Finally, we propose a novel MGM method SimSGT, featuring a Simple GNN-based Tokenizer (SGT) and an effective decoding strategy. We empirically validate that our method outperforms the existing molecule self-supervised learning methods. Our codes and checkpoints are available at https://github.com/syr-cn/SimSGT.

Motivation & Objective

  • To investigate the underexplored roles of graph tokenizers and decoders in masked graph modeling (MGM) for molecular representation learning.
  • To evaluate the impact of different tokenization granularities—node, edge, motif, and subgraph—on MGM performance.
  • To explore the potential of expressive decoders and remask decoding strategies in enhancing encoder representation quality.
  • To develop a new pretraining framework, SimSGT, that integrates a simple GNN-based tokenizer and an effective decoding strategy for improved downstream performance.

Proposed method

  • Proposes a Simple GNN-based Tokenizer (SGT) that removes nonlinear activation functions in GNN layers, enabling efficient subgraph-level tokenization.
  • Employs a graph autoencoder with a powerful decoder that reconstructs subgraph-level tokens from masked graph representations.
  • Introduces remask decoding, which decouples the decoder from the original graph, allowing the encoder to focus on learning meaningful representations rather than reconstruction.
  • Uses a GNN-based tokenizer to generate fixed-length tokens from molecular subgraphs, with the tokenization process guided by graph fragmentation functions.
  • Applies graph masking by randomly corrupting nodes or edges before feeding into the encoder, following standard MGM practice.
  • Optimizes the model end-to-end via contrastive learning objectives between reconstructed and original tokens, with the decoder learning to recover masked subgraphs.

Experimental results

Research questions

  • RQ1How does the choice of tokenization granularity—node, edge, motif, or subgraph—impact the performance of masked graph modeling in molecular representation learning?
  • RQ2What is the effect of using a more expressive decoder with remask decoding on the quality of learned molecular representations?
  • RQ3Can a simple GNN-based tokenizer without nonlinearities outperform more complex chemistry-inspired tokenizers in MGM?
  • RQ4To what extent does decoupling the encoder from direct reconstruction via remask decoding improve downstream performance?
  • RQ5How does SimSGT compare to existing self-supervised pretraining methods across diverse molecular property prediction benchmarks?

Key findings

  • Subgraph-level tokenization significantly improves downstream performance compared to node-level tokenization, with an average ROC-AUC gain of 0.8% on MoleculeNet.
  • A sufficiently expressive decoder combined with remask decoding leads to better encoder representations, as evidenced by a 1.5–2.0% improvement in average performance across multiple datasets.
  • The proposed SGT tokenizer with a single GNN layer achieves competitive or better performance than more complex GNN-based and chemistry-inspired tokenizers.
  • SimSGT outperforms existing methods on all eight MoleculeNet classification benchmarks, achieving an average ROC-AUC of 75.8%, which is the highest reported.
  • Remask decoding effectively decouples the encoder’s focus from reconstruction, enabling it to learn more robust and generalizable molecular representations.
  • The ablation study confirms that both the subgraph-level tokenizer and the expressive decoder are critical components for high performance in MGM.

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.