Shift-Robust Molecular Relational Learning with Causal Substructure

Namkyeong Lee, Kanghoon Yoon, Gyoung S. Na, Sein Kim, Chanyoung Park

Predicting how molecules interact is a fundamental challenge in drug discovery and materials science. While Graph Neural Networks (GNNs) have become the standard for molecular relational learning, they often rely on "shortcuts"—spurious correlations between molecular scaffolds and target properties that do not reflect underlying causal mechanisms. This leads to poor generalization when models encounter novel molecular structures, a problem known as distributional shift.

The Challenge of Distributional Shift

In chemical datasets, specific molecular scaffolds (the core structural backbones) may correlate with certain properties in the training set. A standard GNN might learn that the scaffold itself causes the property, whereas the true causal driver is a specific functional group, such as a nitro group ($NO_2$). When this functional group appears on a new, unseen scaffold, the model often fails to generalize because it over-relied on the training scaffold patterns.

Furthermore, molecular interactions are context-dependent; the relevant part of a molecule depends on its interaction partner. Existing causal models for graphs are often "static" and fail to account for these paired interactions.

Illustration of (a) causal substructures versus (b) scaffolds, and (c) the resulting distributional shift in t-SNE embeddings.

Proposed Method: Causal Molecular Relational Learner (CMRL)

To address these issues, researchers from KAIST and KRICT developed the Causal Molecular Relational Learner (CMRL). CMRL leverages causal inference to disentangle causal substructures from shortcut-prone scaffolds through three key pillars:

  1. Structural Causal Model (SCM): CMRL defines a formal causal graph where the causal substructure ($C^1$) is determined by the interaction between the primary molecule ($G^1$) and its partner ($G^2$).
  2. Disentangled Representation Learning: Using an attention-based masking mechanism, CMRL splits the molecular representation into a causal component (the "signal") and a shortcut component (the "noise"). A Gumbel-softmax trick is employed to make this masking process differentiable.
  3. Conditional Intervention: To break spurious correlations, CMRL employs "backdoor adjustment." It virtually pairs a discovered causal substructure with various random shortcut components from other molecules in the dataset. The model is trained to ensure its predictions remain stable regardless of the attached "noise," forcing it to rely solely on the causal signal.
The CMRL architecture, detailing node interaction, masking for causal/shortcut disentanglement, and the various loss functions used for training.

Key Results and Insights

CMRL was evaluated across 14 real-world datasets, including molecular interaction regression (e.g., Chromophore, FreeSolv) and drug-drug interaction classification (e.g., ZhangDDI).

  • State-of-the-Art Performance: CMRL consistently outperformed established baselines like CIGIN and SSI-DDI, reducing error margins in property prediction tasks.
  • Robustness to Bias: On synthetic benchmarks with controlled levels of bias, CMRL remained stable while standard models' performance plummeted as shortcut correlations increased.
  • Superior OOD Generalization: In "scaffold-split" scenarios—testing on entirely new types of molecules—CMRL demonstrated its greatest strength, proving it learns generalizable chemical principles rather than memorizing training data.
  • Explainability by Design: Because the model explicitly masks atoms to identify causal substructures, it provides built-in explanations, allowing researchers to see exactly which functional groups drive the predictions.

Conclusion

CMRL represents a significant step toward AI that "understands" chemistry by forcing models to think causally. By focusing on the functional groups that drive interactions rather than spurious patterns, CMRL offers a more accurate and trustworthy framework for discovering the next generation of drugs and materials. Future work may involve incorporating 3D geometric information to further improve physical accuracy.

Summary updated

BibTeX
@inproceedings{lee2023shift,
  author = {Namkyeong Lee and Kanghoon Yoon and Gyoung S. Na and Sein Kim and Chanyoung Park},
  title = {{Shift-Robust Molecular Relational Learning with Causal Substructure}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure