TL;DR
This paper introduces POSIT, a novel self-supervised framework that automatically discovers meaningful molecular substructures (functional groups) without relying on predefined chemical rules. By learning "prototypes" of these substructures and using a contrastive approach, POSIT enhances molecular representations, leading to improved accuracy in predicting molecular properties.
What Problem Does This Paper Address?
Predicting molecular properties is crucial for drug discovery, but accurately representing molecules for these tasks is challenging. Traditional methods often rely on manually defined rules to break down molecules into substructures (like functional groups), which can be inflexible and miss important chemical nuances. While Graph Neural Networks (GNNs) have advanced molecular representation, they often focus on atom-level information and struggle to effectively capture the rich, shared information embedded in functional groups across different molecules. The paper aims to bridge this gap by developing a method that can adaptively identify these substructures in a data-driven manner, leading to more informative and generalizable molecular representations for property prediction.
Methods
POSIT employs a two-stage self-supervised learning approach:
- Pre-training Stage:
- GNN Encoder: A standard GNN (specifically, Attentive FP) is used to generate initial atom embeddings.
- Soft-Fragmentation (Partitioner): An MLP-based partitioner probabilistically assigns each atom to one of $K$ predefined substructure classes. This creates "soft" substructures rather than hard partitions.
- Connectivity Constraint: A modularity-based regularization is applied to ensure that substructures are geometrically connected, mimicking how atoms within a functional group are tightly bound. Orthogonality regularization is also used to prevent degenerate solutions.
- Prototypical Contrastive Substructure Clustering: This is the core innovation. The framework learns "prototypes" that represent the ideal embedding for each substructure class. It then uses a contrastive objective to pull substructure embeddings closer to their assigned class prototype (positive pair) and push them away from other prototypes (negative pairs). This encourages both intra-class similarity and inter-class distinctiveness. An additional loss term promotes intra-class compactness.
- Fine-tuning Stage:
- Supervised MPP: The pre-trained encoder and partitioner are fine-tuned using labeled molecular data for specific property prediction tasks.
- Cross-Scale Attention: A novel attention mechanism is introduced to fuse the learned substructure-level representations with the global graph-level representation. This allows the model to effectively leverage both fine-grained substructural information and the overall molecular context.
Datasets
The paper uses the following datasets:
- Pre-training: HIV dataset (unlabeled)
- Fine-tuning (Evaluation): 10 datasets from MoleculeNet, covering both classification and regression tasks:
- Classification: BACE, BBBP, Tox21, ToxCast, ClinTox, SIDER, HIV
- Regression: ESOL, FreeSolv, Lipophilicity
The datasets are split using scaffold splitting for classification tasks and random splitting for regression tasks, as is standard in the field.
Key Insights and Ideas
- Data-Driven Substructure Discovery: The most significant insight is that meaningful molecular substructures (functional groups) can be learned automatically from data without relying on human-defined chemical rules. This opens up possibilities for discovering novel or context-specific substructures.
- The Power of Prototypes: Using "prototypes" as class representatives is a powerful way to guide the clustering of substructures. This approach effectively captures the essence of functional groups and their variations.
- Connectivity is Key: Ensuring that identified substructures are geometrically connected is crucial for them to represent chemically meaningful entities. This constraint helps prevent the model from forming arbitrary groupings of atoms.
- Bridging Scales: The cross-scale attention mechanism is vital for effectively integrating the newly discovered substructure information with the existing graph-level representations, leading to improved predictive performance.
Key Results
- Performance Improvement: POSIT outperforms eight baseline models on five out of seven classification datasets and achieves competitive or best performance on regression tasks. For example, it shows significant gains on datasets like BACE and HIV.
- Ablation Studies: Removing either the connectivity constraint or the prototypical contrastive clustering significantly degrades performance, highlighting the indispensability of both pre-training components. Removing the cross-scale attention also leads to performance drops, underscoring its importance in the fine-tuning stage.
- Visualization Validation: T-SNE visualizations show that substructures cluster around their respective prototypes, and identified substructures often align well with known chemical priors (e.g., phenyl groups, hydroxyl groups). The model can also distinguish between similar but contextually different groups (e.g., alcoholic vs. phenolic hydroxyl).
Limitations and Future Work
- Suboptimal Cases: The paper acknowledges some limitations, such as occasional inclusion of unrelated atoms in substructures or breaking of molecular rings. The probabilistic nature of the partitioning helps mitigate these issues.
- 3D Information: The current framework primarily uses 2D molecular graphs. The authors suggest that incorporating 3D structural information could further enhance effectiveness.
- Dataset Size and Imbalance: Performance was less satisfactory on datasets with very small sizes or extreme label imbalance (e.g., FreeSolv, ClinTox, HIV), suggesting that these factors can still pose challenges.
Summary updated