LatentFlow Visualizes Molecular GNN Latent Spaces for Chemists

Shiyi Liu, Jiaqing Chen, Nicholas Hadler, Rostyslav Hnatyshyn, Michael W. Mahoney, Talita Perciano, John F. Hartwig, Gunther H. Weber, Ross Maciejewski· July 27, 2026 View original

Summary

LatentFlow is a visual analytics system designed for chemists and materials scientists to analyze latent spaces in molecular Graph Neural Networks (GNNs). It helps understand how GNNs organize chemical information, track cluster changes across layers and model states, and link embeddings to meaningful chemical relationships.

This research introduces LatentFlow, a new visual analytics system developed to help chemists and materials scientists better understand the internal workings of molecular Graph Neural Networks (GNNs). While GNNs are increasingly used to predict molecular properties, comprehending how they internally represent chemical information within their latent spaces (embeddings) is crucial for diagnosing model behavior and ensuring the learned representations align with actual chemical relationships. LatentFlow addresses the limitations of existing analysis methods by providing comprehensive support for exploring latent spaces across different GNN layers and various model states, such as training epochs or configurations. It groups embeddings into clusters and visualizes their evolution using a modified Sankey diagram. Crucially, LatentFlow links these clusters to representative molecules and their shared substructures, allowing domain experts to integrate their chemical knowledge and compare it with the patterns discovered by the model, thereby enhancing model interpretability.

Why it matters

LatentFlow empowers scientists to gain deeper insights into how molecular GNNs learn, fostering trust in AI models and accelerating discovery in chemistry and materials science.

How to implement this in your domain

  1. 1Integrate LatentFlow into existing molecular GNN development workflows for enhanced model debugging and interpretation.
  2. 2Train data scientists and chemists on using LatentFlow to analyze model behavior and validate learned chemical relationships.
  3. 3Apply LatentFlow to optimize GNN architectures or identify novel molecular patterns for drug discovery or material design.
  4. 4Utilize the system to communicate GNN insights more effectively to domain experts.

Who benefits

PharmaceuticalsBiotechnologyMaterials ScienceChemical Manufacturing

Key takeaways

  • Understanding GNN latent spaces is crucial for model diagnosis and chemical interpretation.
  • LatentFlow provides visual analytics to track latent space evolution across layers and states.
  • It links embedding clusters to representative molecules and substructures.
  • The system helps scientists integrate domain knowledge and interpret model behavior.

Original post by Shiyi Liu, Jiaqing Chen, Nicholas Hadler, Rostyslav Hnatyshyn, Michael W. Mahoney, Talita Perciano, John F. Hartwig, Gunther H. Weber, Ross Maciejewski

"arXiv:2607.21941v1 Announce Type: new Abstract: Chemists and materials scientists increasingly use machine learning models, such as graph neural networks (GNNs), to predict properties of molecules and the outcomes of their reactions. Beyond predictive performance, understanding h…"

View on X

Originally posted by Shiyi Liu, Jiaqing Chen, Nicholas Hadler, Rostyslav Hnatyshyn, Michael W. Mahoney, Talita Perciano, John F. Hartwig, Gunther H. Weber, Ross Maciejewski on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses