LatentFlow: Visual Analytics for Latent Space Analysis in Molecular Graph Neural Networks
Summary
LatentFlow is a visual analytics system for analyzing latent spaces in molecular graph neural networks, helping scientists understand how clusters of molecular embeddings evolve across layers and model states.
View Cached Full Text
Cached at: 07/27/26, 07:43 AM
# Visual Analytics for Latent Space Analysis in Molecular Graph Neural Networks
Source: [https://arxiv.org/html/2607.21941](https://arxiv.org/html/2607.21941)
\\onlineid
0\\vgtccategoryResearch\\vgtcpapertypeapplication\\authorfooterShiyi Liu, Jiaqing Chen, Rostyslav Hnatyshyn, and Ross Maciejewski are with Arizona State University\. E\-mail: shiyiliu@asu\.edu; jchen501@asu\.edu; rhnatysh@asu\.edu, and rmacieje@asu\.edu; Nicholas Hadler is with University of California, Berkeley\. E\-mail: nhadler@berkeley\.edu Michael W\. Mahoney is with ICSI, LBNL, and University of California, Berkeley\. E\-mail: mmahoney@stat\.berkeley\.edu Talita Perciano and Gunther Weber are with Lawrence Berkeley National Laboratory\. E\-mail: TPerciano@lbl\.gov and GHWeber@lbl\.gov John F\. Hartwig is with University of California, Berkeley, and Lawrence Berkeley National Laboratory\. E\-mail: jhartwig@berkeley\.edu\.
\\authororcidJiaqing Chen0009\-0002\-9395\-0277\\authororcidNicholas Hadler0000\-0002\-9167\-5227\\authororcidRostyslav Hnatyshyn0009\-0006\-0510\-1152\\authororcidMichael W\. Mahoney0000\-0001\-7920\-4652 \\authororcidTalita Perciano0000\-0002\-2388\-1803\\authororcidJohn F\. Hartwig0000\-0002\-4157\-468X\\authororcidGunther H\. Weber0000\-0002\-1794\-1398\\authororcidRoss Maciejewski0000\-0001\-8803\-6355
###### 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 how these models organize chemical information internally in their latent spaces, i\.e\., the embeddings of the molecules, is critical\. Analyzing latent spaces helps diagnose model behavior and assess whether the learned embeddings are organized in ways that reflect meaningful chemical relationships\. Unfortunately, existing methods provide limited support for analyzing latent spaces across layers and across different model states \(e\.g\., training epochs, model configurations, and input data\), making it difficult to understand how these latent spaces evolve throughout a model or relate to chemical concepts\. We present*LatentFlow*, a visual analytics system developed in collaboration with a domain expert for analyzing latent spaces in molecular GNNs\.*LatentFlow*groups embeddings into clusters and supports exploration of latent spaces by tracking how these clusters change across layers and model states using a modified Sankey diagram\. To support interpretation,*LatentFlow*links these clusters to representative molecules and their shared substructures, and it allows scientists to introduce their own domain knowledge and compare it with the patterns found in the latent spaces\. We evaluate*LatentFlow*through two case studies\. The results show that*LatentFlow*helps scientists understand how latent spaces evolve, identify meaningful molecular patterns, and better interpret model behavior\.
###### keywords:
Visual analytics, latent space, chemistry and material science, graph neural networks\.
\\teaser![[Uncaptioned image]](https://arxiv.org/html/2607.21941v1/x1.png)
*LatentFlow*interface for analyzing latent spaces in molecular GNNs through coordinated views\. \(A\) The Modified Sankey View shows cluster changes across two model\-state dimensions\. \(B\) The horizontal \(B1\) and vertical Sankey View \(B2\) reveal detailed transitions along a single dimension\. \(C\) The scatterplot projects embeddings into 2D to inspect how molecules are distributed and separated\. \(D\) The cluster member view displays molecules within a selected cluster for direct inspection\. \(E\) The Top\-kkPanel summarizes cluster\-level structure, including thekkvalue selector \(E1\), prediction distributions \(E2\), substructures \(E3\), and representative molecules \(E4\)\. \(F\) The Structure Editor allows experts to query substructures and highlight matching molecules across views\. \(G\) The control panel provides controls for dataset selection, clustering configuration, and coordinated interaction\.
## 1Introduction
In chemistry and materials science, machine learning models, especially Graph Neural Networks \(GNNs\), are widely used to study molecular properties and chemical reactions\[[3](https://arxiv.org/html/2607.21941#bib.bib12),[49](https://arxiv.org/html/2607.21941#bib.bib22),[53](https://arxiv.org/html/2607.21941#bib.bib24)\]\. By operating directly on graph representations of molecular structure, GNNs have achieved state\-of\-the\-art performance in tasks such as molecular property prediction\[[16](https://arxiv.org/html/2607.21941#bib.bib19),[23](https://arxiv.org/html/2607.21941#bib.bib125)\], reaction outcome prediction\[[54](https://arxiv.org/html/2607.21941#bib.bib126)\], toxicity screening\[[42](https://arxiv.org/html/2607.21941#bib.bib127),[43](https://arxiv.org/html/2607.21941#bib.bib128)\], and materials discovery\[[10](https://arxiv.org/html/2607.21941#bib.bib129)\]\. Despite this success, molecular machine learning models often provide limited insight into why particular predictions are made\. Researchers, therefore, analyze the internal representations learned by GNNs to better understand how they encode and organize chemical information\.
During learning, each layer transforms its input into a set of embeddings that collectively define a layer\-specific*latent space*\. These latent spaces are often projected into lower\-dimensional spaces and clustered to reveal emergent patterns\[[2](https://arxiv.org/html/2607.21941#bib.bib1),[7](https://arxiv.org/html/2607.21941#bib.bib14),[8](https://arxiv.org/html/2607.21941#bib.bib2)\]\. However, it remains difficult to determine which structural patterns are represented at different layers, when chemically meaningful structure–property relationships emerge, and how these patterns evolve, reorganize, or deteriorate during training\[[1](https://arxiv.org/html/2607.21941#bib.bib13),[35](https://arxiv.org/html/2607.21941#bib.bib130)\]\. Tracking latent\-space evolution can therefore reveal how chemical information develops within the model and help experts identify the factors that ultimately drive its predictions\.
We identify three key challenges in understanding how molecular representations are learned and organized in the latent spaces of molecular GNNs: \(i\) tracing changes across multiple latent spaces; \(ii\) identifying meaningful patterns in large latent spaces; and \(iii\) relating latent spaces to chemical knowledge\. First, tracing changes across latent spaces is difficult because embeddings vary across*layers*and*model states*\[[32](https://arxiv.org/html/2607.21941#bib.bib72)\]\.*Model states*refer to training epochs, model configurations, and input data\. Extant visualizations for tracing transitions operate along a single dimension, making it difficult to follow how molecules are reorganized across multiple dimensions\. Second, the scale of latent spaces makes it difficult to identify meaningful patterns, as a large number of points need to be manually examined\. Third, relating latent spaces to chemical knowledge remains challenging\. Embeddings encode molecular structure in a numerical form that does not necessarily correspond to chemical concepts, obfuscating what drives the observed organization of molecules\[[27](https://arxiv.org/html/2607.21941#bib.bib44),[45](https://arxiv.org/html/2607.21941#bib.bib123)\]\.
In this paper, we present LatentFlow \([Abstract](https://arxiv.org/html/2607.21941#abstract1)\), a visual analytics system for exploring how latent spaces in molecular GNNs evolve across network layers and model states\. LatentFlow helps computational chemists identify chemically meaningful patterns encoded in learned molecular representations\. The system was developed in close collaboration with a domain expert and follows a multi\-level visual analytics workflow that progresses from overview to detailed inspection\.*LatentFlow*groups molecules based on their embeddings in each latent space\. To support tracking how these clusters change, we introduce an interactive modified Sankey diagram that reveals the transitions between clusters of embeddings as they split, merge, or persist across layers and model states\. Interactive filtering and summary visualizations reduce visual clutter while preserving key structural patterns in cluster transitions\.*LatentFlow*connects model outputs to domain knowledge by linking clusters to molecular structures, substructures, and similarity measures, enabling experts to interpret the results in terms of chemistry\. Experts can also introduce their own domain knowledge by defining substructures or labels and compare them with model\-learned patterns in the latent space\. Our contributions are summarized as follows:
- •We develop*LatentFlow*, an interactive visual analytics system that enables chemists to explore high\-dimensional latent spaces down to individual molecules\.
- •We propose a design for a modified Sankey diagram that enables experts to explore large latent spaces, discovering interesting molecular cluster patterns and tracing how these clusters split, merge, stabilize, or collapse\.
- •We validate our approach through two case studies, demonstrating*LatentFlow*’s effectiveness in understanding model behavior and connecting model dynamics with chemically meaningful patterns\.
## 2Related Work
The design of*LatentFlow*relates to the analysis of neural network representations, visual interpretability of machine learning models, and chemistry\-specific visualization\. In this section, we first review how researchers study latent spaces to understand the internal learning processes of deep neural networks \([Section˜2\.1](https://arxiv.org/html/2607.21941#S2.SS1)\); we then describe visual analytics systems developed to make these opaque models interpretable \([Section˜2\.2](https://arxiv.org/html/2607.21941#S2.SS2)\); and, finally, we review visual analytics approaches applied to chemistry, positioning our work within the broader landscape of interpretable scientific machine learning and human\-in\-the\-loop chemoinformatics \([Section˜2\.3](https://arxiv.org/html/2607.21941#S2.SS3)\)\.
### 2\.1Latent Spaces in Deep Neural Networks
Deep neural networks learn transformations that map raw inputs into latent spaces, i\.e\., high\-dimensional embeddings that place similar data points close to each other\[[5](https://arxiv.org/html/2607.21941#bib.bib30),[20](https://arxiv.org/html/2607.21941#bib.bib109)\]\. These embeddings serve as input features for downstream tasks such as property prediction and classification, while also providing a basis for notions of similarity through distance\. Researchers often examine latent spaces to understand how features are learned and develop across layers\[[47](https://arxiv.org/html/2607.21941#bib.bib49)\]\. A common approach uses similarity\-based metrics, which show that models may converge to structurally similar embeddings despite different initializations\[[46](https://arxiv.org/html/2607.21941#bib.bib71),[32](https://arxiv.org/html/2607.21941#bib.bib72)\]\. Dimensionality reduction\[[24](https://arxiv.org/html/2607.21941#bib.bib117)\]supports the inspection of embedding distributions and can reveal training and optimization issues such as embedding collapse, where embeddings lie in a lower\-dimensional subspace, making distinct inputs difficult to distinguish\. Clustering and distance\-based approaches characterize how data points organize in latent space\. Embeddings often form structured groups aligned with semantic or functional patterns\[[5](https://arxiv.org/html/2607.21941#bib.bib30)\]\. Most existing methods still rely on aggregate similarity measures or static visualizations, making it difficult to examine how molecular groups form, evolve, and reorganize across layers and model states\.
### 2\.2Visual Analytics for Model Latent Spaces
Beyond static projections, interactive approaches explore and analyze latent spaces\. A number of visual analytics systems facilitate the exploration of latent spaces to help experts interpret and diagnose neural network behavior\. To interpret these high\-dimensional spaces, many prior approaches rely on dimensionality reduction to obtain low\-dimensional representations of embeddings\. Techniques such as PCA\[[39](https://arxiv.org/html/2607.21941#bib.bib87)\], t\-SNE\[[57](https://arxiv.org/html/2607.21941#bib.bib88)\], and UMAP\[[40](https://arxiv.org/html/2607.21941#bib.bib89)\]project these embeddings into two or three dimensions, where scatterplots remain the dominant visual form\[[25](https://arxiv.org/html/2607.21941#bib.bib86)\]\. These methods typically either emphasize the spatial arrangement of points in the projection\[[55](https://arxiv.org/html/2607.21941#bib.bib90)\]or relate the projection to known labels or properties\[[56](https://arxiv.org/html/2607.21941#bib.bib91),[13](https://arxiv.org/html/2607.21941#bib.bib92)\]\. This allows experts to inspect the distribution of embeddings in the latent space, including cluster structure, separation, and density patterns; comparisons are supported by encoding cluster membership as color\[[56](https://arxiv.org/html/2607.21941#bib.bib91),[13](https://arxiv.org/html/2607.21941#bib.bib92)\]\.
Systems such as WizMap\[[58](https://arxiv.org/html/2607.21941#bib.bib93)\]further scale these scatterplot\-based visualizations to embeddings with millions of data points\. EmbeddingVis\[[36](https://arxiv.org/html/2607.21941#bib.bib95)\]provides coordinated views to examine how relationships among data points are preserved in the embedding space\. Latent space cartography\[[37](https://arxiv.org/html/2607.21941#bib.bib85)\]enables experts to explore latent spaces by defining directions that correspond to meaningful changes in the data and compares how embeddings vary along these directions\. CorGIE\[[38](https://arxiv.org/html/2607.21941#bib.bib97)\]connects the original graph structure with the embedding space, allowing experts to see how each node is positioned in the latent space\.
Despite these advances, prior work primarily analyzes embedding spaces in isolation or through pairwise comparison\. To the best of our knowledge, none of the existing approaches explicitly models how representation structures change across model layers and model states\. To address this gap, we introduce a modified Sankey diagram that represents the transition of molecules between clusters and supports visual analysis across two dimensions\.
### 2\.3Visual Analytics for Chemoinformatics
Visualization has long played a central role in analyzing chemical data\. Early work on visualizing learned chemical embeddings explored local sampling strategies, such as inspecting neighborhoods around exemplar molecules to assess embedding coherence\[[17](https://arxiv.org/html/2607.21941#bib.bib98)\]\. Extensions sample along principal components of pretrained embeddings\[[59](https://arxiv.org/html/2607.21941#bib.bib99)\]or traverse random orthogonal directions in latent space\[[33](https://arxiv.org/html/2607.21941#bib.bib100)\], providing qualitative insights into embedding smoothness and structural organization\.
Building on projection\-based analysis, numerous interactive systems have been developed to support analysis of chemical data\. For example, InVADo\[[52](https://arxiv.org/html/2607.21941#bib.bib107)\]focuses on the interactive visual analysis of molecular docking data, supporting experts in examining docking poses, interaction patterns, and binding affinities through coordinated views tailored to structure\-based drug discovery tasks\. Scalable projection techniques such as TMAP\[[44](https://arxiv.org/html/2607.21941#bib.bib101)\]enhance neighborhood preservation to enable the visualization of large molecular descriptor datasets\. More comprehensive platforms, including PUMA\[[19](https://arxiv.org/html/2607.21941#bib.bib102)\]and DataWarrior\[[51](https://arxiv.org/html/2607.21941#bib.bib105)\], integrate multiple analytical techniques to support chemical diversity analysis, scaffold inspection, and interactive compound selection\.
With the growing adoption of machine learning models in chemoinformatics, visualization has increasingly been paired with interpretability methods\. Systems such as the ChemInformatics Model Explorer \(CIME\)\[[26](https://arxiv.org/html/2607.21941#bib.bib108)\]provide interfaces for inspecting datasets with visualizations of how individual atoms contribute to model predictions\. ChemoGraph\[[30](https://arxiv.org/html/2607.21941#bib.bib106)\]is an interactive visual analytics system that represents molecular similarity as a graph, allowing experts to explore groups of similar molecules\. ChemVA\[[50](https://arxiv.org/html/2607.21941#bib.bib131)\]supports virtual screening of candidate chemical compounds through coordinated views that enable exploration of molecular similarity, comparison of multiple dimensionality reduction projections, and assessment of projection trustworthiness\. These approaches support the exploration of molecular similarity, projection structure, model outputs, or feature importance, but generally focus on individual molecular representations or predictions\. Our work introduces a visual analytics system that not only interprets model outputs at the molecular level, but also allows chemists to incorporate their own domain knowledge and compare it with the output of the model\.
## 3Background
Understanding the behavior of deep molecular models requires bridging machine learning mechanisms with chemistry\. In this section, we outline the technical foundations that inform the visual analytics system of*LatentFlow*\. We first explain how molecular GNNs encode structural information to form dynamic latent spaces\. Following this, we introduce the established chemical representations and similarity metrics that chemists rely on to interpret these molecular spaces\.
### 3\.1Molecular GNNs
Molecular GNNs represent each molecule as a graph, where atoms form nodes and chemical bonds form edges\. Node features encode basic chemical information, such as the atom’s species, degree, aromaticity, formal charge, bond type, and other related structural properties\. A molecular GNN associates each node \(i\.e\., atom\) with a vector called a node embedding\. These embeddings are computed through message passing, where each node gathers information from its neighboring nodes and updates itself\. Stacking multiple layers allows nodes to capture information from increasingly large neighborhoods\.
After message passing, the model can compute a single embedding for each molecule by combining node embeddings; for example, through summation or averaging\. Embeddings constantly change during training as model parameters are optimized across successive epochs\. Different training configurations further alter this process and produce different embeddings for the same set of molecules\.
A*latent space*consists of the embeddings of all molecules at a given layer in a model\. Each molecule corresponds to a point in this space, and its positions reflect how the model encodes structural similarity\. Since embeddings change across both layers and model states, the latent space does not remain fixed but evolves over time\. As a result, the same set of molecules can be arranged differently across multiple latent spaces, each arrangement corresponding to a stage of training\.
To examine how molecules are organized in a latent space, researchers commonly use clustering and dimensionality reduction\. Clustering groups molecules based on their embeddings and assigns molecules with similar patterns to the same cluster, while dimensionality reduction projects high\-dimensional embeddings into a low\-dimensional subspace, providing a view of their overall distribution and arrangement\.
Figure 1:*LatentFlow*integrates model data and domain knowledge into a four\-level visual analytics system\. \(A\) Model data, including molecular structures, embeddings extracted from different layers and model states, and model predictions, are provided as input\. \(B\) At the overview level, embeddings are grouped into clusters using clustering methods and visualized in the Modified Sankey View to show how molecules move between clusters\. \(C\) At the latent space level, embeddings are projected into two dimensions using dimensionality reduction methods and displayed in the Scatterplot View to reveal how molecules are distributed\. \(D\) At the cluster level, structural fingerprints are used to compute Tanimoto similarity and common substructures, which are shown in the Top\-k View to summarize cluster structure\. \(E\) At the member level, individual molecules are rendered as 2D structures in the Cluster Member Panel, enabling detailed inspection and cross\-view tracing\. \(F\) Domain knowledge is introduced through substructure queries and uploaded labels, which are applied across views to relate model\-learned organization to known chemical patterns\.
### 3\.2Chemical Representations and Similarity
Molecules are often compared through their substructures\. Small changes in chemical structure can lead to drastically different properties\. For example, replacing a hydrogen atom with a chlorine atom in an aromatic ring can significantly decrease solubility and increase hydrophobicity\. For this reason, chemists often look for common substructures when they want to compare molecules\.
Molecular structures are often represented using Simplified Molecular Input Line Entry System \(SMILES\) strings, which encode a molecule as a text sequence that can be converted into a 2D depiction\.111[http://opensmiles\.org/](http://opensmiles.org/)This representation is convenient for storage, display, and retrieval\. To compare molecules, chemists often use structural fingerprints, which summarize the presence or absence of local patterns in a molecule\. Tanimoto similarity\[[4](https://arxiv.org/html/2607.21941#bib.bib115)\]compares two fingerprints and returns a score that reflects how much their structures overlap\. A higher score indicates that two molecules share more of the same structural features, while a lower score indicates the opposite\. Common substructures and similarity scores are useful because they help connect groups of molecules back to concrete chemical patterns\.
## 4Analytical Tasks and Requirements
We developed*LatentFlow*through an iterative design process in close collaboration with a domain expert in computational chemistry with approximately 7 years of experience\. The collaboration lasted five months, during which we met twice per week to refine the system through continuous feedback and design iterations\. We initially began development by identifying three core challenges \(C1–C3\) that scientists typically encounter when they try to analyze the training dynamics of the models they are developing\. We subsequently derived four corresponding design requirements \(DR1–DR4\) from these challenges that inform our system’s design\.
### 4\.1Challenges
Understanding how molecular GNNs learn and organize chemical information is inherently challenging\. Through our iterative design process with a domain expert, we identified three key challenges:
C1\. Tracking the evolution of latent spaces\.Embeddings evolve across layers and model states, resulting in multiple latent spaces for the input molecules\. Tracing how latent spaces organize molecules as embeddings change across these spaces is challenging because these variations occur along multiple dimensions\. Traditional flow\-based visualizations \(e\.g\., Sankey diagrams\) can represent how groups evolve along one dimension, such as layers or training epochs, but they fail to capture relationships in multiple dimensions\.
C2\. Identifying meaningful patterns\.With multiple latent spaces derived from different layers and model states, the total number of embeddings grows quickly\. Each latent space contains the entire input dataset, and collectively, they form a huge, high\-dimensional dataset that is difficult to analyze directly\. While dimensionality reduction and clustering techniques provide summaries of individual latent spaces, they introduce a significant cognitive load, as the expert needs to inspect a large number of points and groups\. As a result, it is difficult to identify relevant molecules and important patterns\.
C3\. Relating latent spaces to chemistry\.While embeddings capture patterns learned by the model, they do not necessarily correspond to established chemical concepts such as functional groups, bonding patterns, or other interpretable properties\. Even when molecules form clusters or are separated in the latent space, it remains unclear which aspects of molecular structure drive these patterns\.
### 4\.2Design Requirements
We derived the following design requirements from the challenges identified above, which guided the development of*LatentFlow*\.
DR1\. Multi\-dimensional embedding evolution tracking\.The system should provide a visualization that shows how molecules are reorganized across latent spaces from different layers and model states\. The visualization should support at least two dimensions of variation, so that changes from different sources can be observed together\. This requirement addressesC1\.
DR2\. Provide summaries and interactions for latent space exploration\.The system should summarize each latent space to show how molecules are organized and how their embeddings evolve across each dimension, eliminating the need to perform manual pairwise comparisons of latent spaces\. Experts should be able to filter latent spaces based on how much they change\. This requirement addressesC2\.
DR3\. Link embeddings to molecules\.The system should allow experts to identify which molecule each embedding represents and inspect it in detail\. The same molecule should be highlighted across views to support exploration\. This requirement contributes to addressingC3\.
DR4\. Show structural features for selected molecules\.The system should be able to compute and display structural features for selected molecules\. This feature would assist experts in understanding what structural properties are shared by these molecules and how similar they are\. This requirement addressesC2andC3\.
## 5LatentFlow
*LatentFlow*supports the analysis of latent spaces by combining model data and domain knowledge through coordinated visualizations \([Fig\.˜1](https://arxiv.org/html/2607.21941#S3.F1)\)\. The system accepts two types of input: \(1\) model data, including molecular structures, embeddings extracted from different layers and model states, and model predictions; and \(2\) domain knowledge, which can be introduced by experts through substructure queries using the Structure Editor \([Abstract](https://arxiv.org/html/2607.21941#abstract1)F,[Section˜5\.7](https://arxiv.org/html/2607.21941#S5.SS7)\) or by uploading external labels \([Abstract](https://arxiv.org/html/2607.21941#abstract1)C2,[Section˜5\.4](https://arxiv.org/html/2607.21941#S5.SS4)\)\. These inputs are integrated through a multi\-level visual analytics system that allows experts to move from an overview to a detailed inspection of individual molecules\.
At the overview level \([Fig\.˜1](https://arxiv.org/html/2607.21941#S3.F1)B\), embeddings from each model state are grouped into clusters using methods such as k\-nearest neighbors \(k\-NN\)\[[12](https://arxiv.org/html/2607.21941#bib.bib103)\], agglomerative hierarchical clustering \(AHC\)\[[29](https://arxiv.org/html/2607.21941#bib.bib111),[28](https://arxiv.org/html/2607.21941#bib.bib112)\], hierarchical density\-based spatial clustering \(HDBSCAN\)\[[9](https://arxiv.org/html/2607.21941#bib.bib113)\], and projected Gaussian means \(PG\-Means\)\[[14](https://arxiv.org/html/2607.21941#bib.bib114)\]\. These methods produce different groupings: k\-NN emphasizes local neighborhood structure, agglomerative clustering provides hierarchical groupings at different levels of granularity, HDBSCAN identifies clusters with varying densities and separates noise, and PG\-Means adapts the number of clusters based on the data distribution\. The Modified Sankey View \([Abstract](https://arxiv.org/html/2607.21941#abstract1)A\) visualizes the resulting clusters, representing clusters as nodes and transitions of molecules across layers and model states as flows \(DR1\)\. This view allows experts to identify regions where cluster structure changes significantly and select cells for further analysis \(DR1\)\. When external labels are provided, similarity metrics such as adjusted mutual information \(AMI\)\[[41](https://arxiv.org/html/2607.21941#bib.bib121)\], normalized mutual information \(NMI\)\[[11](https://arxiv.org/html/2607.21941#bib.bib120)\], and the Fowlkes–Mallows index \(FMI\)\[[15](https://arxiv.org/html/2607.21941#bib.bib122)\]are computed to quantify the agreement between cluster assignments and the uploaded labels, with higher values indicating stronger agreement \(DR2, DR3\)\. The selected metric is encoded as the background color of each cell in the Modified Sankey View\.
At the latent space level \([Fig\.˜1](https://arxiv.org/html/2607.21941#S3.F1)C\), embeddings are projected into two dimensions using dimensionality reduction methods\. To support comparison across model states, the projection pipeline employs temporally consistent layouts\. PCA uses a shared projection basis across all model states, while t\-SNE and UMAP employ temporally coherent layouts inspired by Dynamic t\-SNE\[[48](https://arxiv.org/html/2607.21941#bib.bib15)\]and Joint UMAP\[[61](https://arxiv.org/html/2607.21941#bib.bib18)\]\. These methods provide different views of the data: PCA emphasizes global variance, t\-SNE highlights local neighborhoods and cluster separation, and UMAP balances local and global structure\. The resulting projections are shown in the Scatterplot View, where each point represents a molecule\. This approach allows experts to examine how molecules are distributed, assess cluster separation, and compare cluster structure with labels or model outputs \(DR3\)\.
At the cluster level \([Fig\.˜1](https://arxiv.org/html/2607.21941#S3.F1)D\), the system computes structural features to summarize each cluster \(DR4\)\. To compare molecules, structural fingerprints encode the presence of local chemical patterns, and their Tanimoto similarity score \(c\.f\.[Section˜3\.2](https://arxiv.org/html/2607.21941#S3.SS2)\) is displayed\. Common substructures are extracted from representative molecules within each cluster\. The Top\-kkPanel displays these features, allowing experts to relate clusters to shared structural patterns and assess how consistent the molecular structure is within clusters\.
At the member level \([Fig\.˜1](https://arxiv.org/html/2607.21941#S3.F1)E\), individual molecules are rendered as 2D structures using RDKit\[[34](https://arxiv.org/html/2607.21941#bib.bib116)\]\. The Cluster Member Panel shows these representations, allowing experts to inspect molecules directly and compare structures \(DR3\)\. Interactions such as hovering highlight the corresponding positions of molecules across views, enabling detailed tracing of how individual molecules are organized across latent spaces\.
LatentFlow is a web\-based visual analytics system\. The Python back\-end is powered by Flask222[https://pypi\.org/project/Flask/](https://pypi.org/project/Flask/)and supports operations on embeddings such as clustering and projection\. The front\-end is implemented in TypeScript with React333[https://react\.dev/](https://react.dev/)and D3\.444[https://d3js\.org/](https://d3js.org/)All color encodings in the interface are designed to be colorblind\-friendly, using distinguishable palettes for categorical and sequential data\[[22](https://arxiv.org/html/2607.21941#bib.bib132)\]\. An online demo is available at[https://latent\-space\-vis\.vercel\.app/](https://latent-space-vis.vercel.app/)\.
### 5\.1Control Panel
A compact control panel is positioned at the edge of the workspace and can be expanded on demand \(Fig\.[Abstract](https://arxiv.org/html/2607.21941#abstract1)G\)\. It provides controls for selecting the datasets and data splits \(e\.g\., training or test data\) that will be rendered in the interface\. Experts can choose different clustering methods and adjust their parameters, updating the clusters shown in the visualization\. These interactions enable examination of how clustering choices affect latent space organization \(DR1,DR2\)\. A preview toggle controls whether an enlarged molecular structure appears on hover, and a size slider adjusts its display size\. An export function enables saving bookmarked molecules for further analysis\.
### 5\.2Modified Sankey View
Visual Design\.*LatentFlow*visualizes cluster changes across models using a modified Sankey\-style layout, as shown in[Abstract](https://arxiv.org/html/2607.21941#abstract1)A\. The layout forms a matrix where rows and columns correspond to two selected dimensions, such as layers and training epochs in[Abstract](https://arxiv.org/html/2607.21941#abstract1)A \(DR1\)\. Within each cell \([Abstract](https://arxiv.org/html/2607.21941#abstract1)A1\), clusters appear as rectangles, with their area encoding the number of molecules within the cluster\. To connect cells, we draw flows between clusters in both directions that describe how clusters change across models; the width of each flow represents the number of molecules that move from one cluster to the next\. Horizontal flows are colored red and vertical ones green, providing better visual separation between the two dimensions\.
Cell background colors encode a clustering metric; by default, this metric is the number of clusters in each cell\. We use a sequential color scale to represent increasing values, with darker blue indicating larger numbers of clusters\. Changes in cluster membership between cells are represented by gap heatmaps, shown as rectangles in the gaps between rows and columns \([Abstract](https://arxiv.org/html/2607.21941#abstract1)A2\)\. Their color encodes the percentage of molecules that change cluster assignment\. As with flows, vertical gaps are shown in green and horizontal gaps in red; darker colors indicate larger values\.
Interactions\.Experts can toggle the visibility of nodes, paths, cell background colors, and gaps, allowing the viewer to focus on specific elements\. To this end, the Modified Sankey View also supports value \-based filtering \(DR2\) of flows \([Abstract](https://arxiv.org/html/2607.21941#abstract1)A3\) and cells\.
Experts can select a cell to highlight its row and column, or select a cluster to highlight its flows and cells\. These interactions enable experts to inspect the molecules within clusters and trace them across latent spaces \(DR3\)\. The axes can be swapped, and the order of models can be reversed\. Pan and zoom interactions support navigation across large matrices as the number of models increases \(DR2\)\.
Design Alternatives\.We considered several alternative designs for visualizing cluster transitions across two dimensions, as shown in[Fig\.˜2](https://arxiv.org/html/2607.21941#S5.F2)\.
A straightforward approach is to juxtapose two standard Sankey diagrams \([Fig\.˜2](https://arxiv.org/html/2607.21941#S5.F2)A\), one arranged horizontally and the other vertically\. However, this design makes it difficult to establish correspondence between nodes across the two views, requiring users to mentally match clusters\. This cognitive burden increases further as the number of layers or epochs grows\.
Another alternative is to overlay two Sankey diagrams \([Fig\.˜2](https://arxiv.org/html/2607.21941#S5.F2)B\), for example, by rotating one diagram and placing it on top of the other\. While this design shows both dimensions to be shown in a single view, it introduces severe visual clutter due to overlapping flow paths, an issue again amplified by scale\.
Figure 2:Several designs for the Sankey View; C is employed in*LatentFlow*\.Our design addresses these limitations by restructuring the layout of Sankey nodes \([Fig\.˜2](https://arxiv.org/html/2607.21941#S5.F2)C\)\. Instead of aligning nodes in one direction, clusters within each cell are offset to create space for both directions\. Flows do not occupy the full extent of each node, which reduces overlap and improves readability\. This design supports the simultaneous visualization of transitions along two dimensions while maintaining scalability and preserving the ability to trace cluster relationships\.
Figure 3:Case study 1: analysis of a Chemprop model showing the transition from taxonomy\-aligned to property\-driven latent space organization\. \(A\) The Modified Sankey View shows that early epochs exhibit strong agreement witharyl/alkyllabels \(darker AMI\), while later epochs diverge as cluster assignments reorganize\. \(B\) Scatterplot Views show that clusters only partially correspond to thearyl/alkyltaxonomy, with mixed labels within cluster regions\. Across epochs \(0, 3, 19\), label\-based separation weakens while a smoother organization aligned with ground\-truth solubility emerges\.
### 5\.3Sankey Views
Two additional Sankey Views \([Abstract](https://arxiv.org/html/2607.21941#abstract1)B\) are placed to the right and below the Modified Sankey View to show cluster transitions along a given dimension\. Selecting a cell in the Modified Sankey View opens the detailed Sankey View for the corresponding layer and epoch\. The horizontal Sankey View shows cluster transitions across layers for the selected epoch \([Abstract](https://arxiv.org/html/2607.21941#abstract1)B1\), while the vertical Sankey View shows transitions across epochs for the selected layer \([Abstract](https://arxiv.org/html/2607.21941#abstract1)B2\)\.
In the Sankey View, rectangles represent clusters, corresponding to the same grouping of molecules as in the Modified Sankey View\. When a cell is selected, clusters across the Modified Sankey View and the detailed Sankey View are colored consistently to facilitate comparison across views\. Each node is shaded according to the split across training and test samples; the darker portion of each node represents test molecules\. Hovering over a molecule in the Scatterplot View, Cluster Member View, or Top\-k Panel shows its trajectory \([Abstract](https://arxiv.org/html/2607.21941#abstract1)B3\) as a path through nodes across model states, providing details on changes not shown in aggregated flows \(DR2\)\.
### 5\.4Scatterplot View
The Scatterplot View \([Abstract](https://arxiv.org/html/2607.21941#abstract1)C\) shows molecules projected onto 2D space for cells selected in any Sankey View\. Each point represents a molecule and is positioned according to its projected coordinates\. By default, points are colored by their cluster assignment\.The color scheme can be modified using the scatterplot toolbar \([Abstract](https://arxiv.org/html/2607.21941#abstract1)C1\), which can encode expert\-uploaded labels, the train/test split, ground\-truth targets, model predictions, and prediction error\. Experts can also upload external labels \([Abstract](https://arxiv.org/html/2607.21941#abstract1)C2\) to compare clusters with domain\-defined groupings \(DR3,DR4\)\. Color encoding and filtering enable comparison of cluster structure with chemical properties and labels \(DR2\)\.
The Scatterplot View provides additional interactions\. Pan and zoom support navigation in dense regions\. Hovering over a point reveals a tooltip showing the molecule’s 2D structure \([Abstract](https://arxiv.org/html/2607.21941#abstract1)C3\), which is rendered from its SMILES representation by RDKit, along with basic metadata \(DR4\)\. Hovering over a point also highlights its trajectory across clusters in the Sankey View, enabling inspection across latent spaces and connecting embeddings to molecular structures \(DR3\)\.
### 5\.5Cluster Member Panel
Selecting a cluster in the Modified Sankey View, Sankey View, or Scatterplot View displays its molecules in a separate panel called the Cluster Member Panel \(DR2, DR3\)\. This panel is organized as a paginated table, where each molecule is rendered using RDKit\. Hovering over a molecule highlights it in the scatterplot as well as its trajectory in the Sankey View, allowing experts to locate the molecule throughout the interface\. Experts can bookmark molecules, which can later be exported, by clicking the bookmark icon \([Abstract](https://arxiv.org/html/2607.21941#abstract1)D1\)\.
### 5\.6Top\-k Panel
The Top\-kkPanel shows cluster\-level information in three columns \([Abstract](https://arxiv.org/html/2607.21941#abstract1)E\), based on the top\-kkmolecules closest to the cluster centroid in the embedding space\. The value ofkkcan be adjusted through a drop\-down menu \([Abstract](https://arxiv.org/html/2607.21941#abstract1)E1\) to change the number of representative molecules\. The first column \([Abstract](https://arxiv.org/html/2607.21941#abstract1)E2\) uses ridge plots to show the distribution of model outputs for molecules in the cluster\. These plots show the distributions of ground\-truth values and predictions, enabling the assessment of prediction accuracy and variation within each cluster \(DR2\)\. The second column \([Abstract](https://arxiv.org/html/2607.21941#abstract1)E3\) shows common substructures extracted from the top\-kkmolecules in the cluster \(DR4\)\. These substructures are obtained by matching shared subgraphs across molecules and highlight recurring structural patterns\. The Tanimoto similarity \(c\.f\.[Section˜3\.2](https://arxiv.org/html/2607.21941#S3.SS2)\) values are also shown to indicate how similar the molecules are\. The third column \([Abstract](https://arxiv.org/html/2607.21941#abstract1)E3\) shows the top\-kkmolecules\. Hovering over a molecule highlights it in the Scatterplot View and its trajectories in the Sankey View, enabling cross\-view comparison \(DR3\)\.
### 5\.7Structure Editor
A Structure Editor \([Abstract](https://arxiv.org/html/2607.21941#abstract1)F\) enables the creation of chemical substructures using an embedded molecular editor\[[6](https://arxiv.org/html/2607.21941#bib.bib134)\], a sketching tool commonly used by chemists for drawing molecular structures\. Once a structure is defined, the system searches for molecules containing the substructure and highlights matches across views in the system\. Matches are highlighted in the Scatterplot View and are listed in the Cluster Member Panel\. These interactions enable comparison of user\-defined substructures with clusters and latent spaces \(DR4\)\.
Figure 4:Case study 1: Cluster 0 atEpoch 19/gnn3\(A\) The Top\-kkPanel shows representative molecules and shared substructures\. \(B\) The Cluster Member Panel shows individual molecules in the cluster\.
## 6Case Studies
To evaluate the effectiveness of*LatentFlow*, we present two case studies conducted with the same domain expert who participated in the design process\. Throughout the five\-month development period, the expert independently used*LatentFlow*to explore multiple datasets and models during regular analysis sessions\. The findings reported in the following case studies reflect observations made during these exploratory analyses\. In Case Study 1, we analyze a Chemprop model\[[23](https://arxiv.org/html/2607.21941#bib.bib125)\]using user\-defined labels to examine how latent spaces evolve from coarse taxonomy\-based groupings to property\-driven organization\. In Case Study 2, we compare two DimeNet models\[[21](https://arxiv.org/html/2607.21941#bib.bib124)\]trained with and without conformer augmentation to examine how data augmentation affects latent space organization and cluster structure\. Together, these case studies demonstrate how*LatentFlow*supports tracing latent space changes, inspecting cluster structure, and relating patterns to molecular properties\.
### 6\.1Case Study 1: From Taxonomy to Property\-Driven Clustering
Overview analysis with external labels \(DR2, DR3\)\.This case study focuses on a 2D graph neural network, Chemprop, trained on the MoleculeNet ESOL dataset\[[60](https://arxiv.org/html/2607.21941#bib.bib11)\]to predict the solubility of small organic molecules in water\. The expert begins with a coarse taxonomy that labels molecules asaryloralkyl\.Arylmolecules are dominated by aromatic ring motifs such as benzene rings![[Uncaptioned image]](https://arxiv.org/html/2607.21941v1/myfigs/benzene.png), whilealkylmolecules are primarily chain\-like![[Uncaptioned image]](https://arxiv.org/html/2607.21941v1/myfigs/alkyl.png)\. Although this taxonomy captures a broad structural distinction, it does not directly determine solubility, so it serves as a reference rather than as the target explanation\.
To compare the latent space to this reference, the expert uploads thearyl/alkyllabels and encodes AMI \([Section˜5](https://arxiv.org/html/2607.21941#S5)\) as the background color in the Modified Sankey View, as shown in[Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)A\. The cells are shown with a blue background, where darker blue indicates higher AMI values and stronger agreement between the current clusters and the labels\.
Figure 5:Case study 1: Cluster 1 atEpoch 19/gnn3\(A\) The Top\-kkPanel shows representative molecules and shared substructures\. \(B\) The Cluster Member Panel shows individual molecules in the cluster\.The expert first examines the Modified Sankey View to assess how the latent space aligns with the uploaded labels across model states\. Across the view, early epochs appear darker, while later epochs become lighter \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)A\)\. Darker blue indicates higher AMI values, showing that clusters in early epochs closely match thearyl/alkyllabels, whereas lower AMI values in later epochs indicate that clusters no longer correspond to this taxonomy\. Flow patterns indicate that most reorganization occurs in early epochs, with larger flows reflecting substantial changes in cluster assignment, while later epochs show smaller flows, indicating that the latent space becomes more stable over time\.
Track label alignment across model states \(DR1, DR3\)\.To examine this transition in detail, the expert focuses on thegnn3layer, where this pattern is most evident, and selectsEpoch 0\([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)A1\),Epoch 3\([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)A2\), andEpoch 19\([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)A3\) for further inspection\.
In the Scatterplot View \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B\), coloring points byaryl/alkyl, shows a clear separation atEpoch 0, with orange \(aryl\) and blue \(alkyl\) points occupying distinct regions of the projection \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B1\)\. ByEpoch 3, the two colors begin to intermix within the same regions, appearing together in overlapping areas rather than forming distinct groups \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B2\)\. ByEpoch 19, the two colors are fully mixed across the projection, and no clear boundary remains between the two label groups \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B3\)\. This progression indicates that the latent space gradually moves away from the initial taxonomy\-based organization\.
However, when recoloring the points by ground\-truth solubility, a different pattern appears\. Here, a sequential blue color scale encodes solubility, with darker shades indicating higher values and lighter shades lower values\. In early epochs \([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B4–B6\), the distribution appears irregular, with no clear spatial trend\. As training progresses, the structure becomes more pronounced\. ByEpoch 19\([Fig\.˜3](https://arxiv.org/html/2607.21941#S5.F3)B6\), a clear color gradient emerges, with darker blue points \(higher solubility\) concentrated on one side and lighter blue points \(lower solubility\) concentrated on the other\. This contrast between early and later epochs indicates that the latent space reorganizes according to a property more directly related to the prediction task\.
Figure 6:Case study 2: comparison of two DimeNet models with the same architecture but different training inputs\. \(A\) The Modified Sankey View shows that, starting fromoutput\_block\_3, cluster assignments diverge between the two models \(10confmodel in the top row andnoaugmodel in the bottom row\)\. \(B\)*Scatterplot Views*at the selected layer show that the10confmodel produces clusters that are better aligned with target values, whereas thenoaugmodel remains more heterogeneous\. \(C\) Substructure queries for the phosphite substructureP\(O\)\(O\)from SMILES show that molecules sharing the same motif are grouped into a single cluster in thenoaugmodel but distributed across multiple clusters in the10confmodel\. \(D\) In the final layer, clusters correspond to distinct structural patterns and levels of prediction accuracy\.Relate cluster structure to molecular features \(DR3, DR4\)\.To characterize these clusters, the expert first examines the Top\-kkPanel \([Fig\.˜4](https://arxiv.org/html/2607.21941#S5.F4),[Fig\.˜5](https://arxiv.org/html/2607.21941#S6.F5)\)\. The panel shows that Cluster 0, associated with higher predicted solubility, contains methane\-like substructures \(CH4\\mathrm\{CH\_\{4\}\}\) \([Fig\.˜4](https://arxiv.org/html/2607.21941#S5.F4)A\)\. In contrast, Cluster 1, associated with lower predicted solubility, contains aromatic ring substructures and a halogen substituent such asCl\\mathrm\{Cl\}\([Fig\.˜5](https://arxiv.org/html/2607.21941#S6.F5)A1\)\. At this level, the extracted substructures show that they largely reproduce the initialaryl/alkyldistinction, with Cluster 0 appearing more alkyl\-like \(containing![[Uncaptioned image]](https://arxiv.org/html/2607.21941v1/myfigs/alkyl.png)\) and Cluster 1 more aryl\-like \(containing![[Uncaptioned image]](https://arxiv.org/html/2607.21941v1/myfigs/benzene.png)\)\. However, the extracted substructures do not explain the difference in solubility between the clusters
Inspect molecules to identify chemical factors \(DR3, DR4\)\.To examine this further, the expert opens the Cluster Member Panel and inspects individual molecules within each cluster\. In Cluster 0, the molecules are generally small and structurally simple, with few substituents \([Fig\.˜4](https://arxiv.org/html/2607.21941#S5.F4)B\)\. In contrast, molecules in Cluster 1 are larger and more complex, and consistently contain halogen atoms such asCl\\mathrm\{Cl\}\([Fig\.˜5](https://arxiv.org/html/2607.21941#S6.F5)B\)\. This difference is visible across multiple molecules in each cluster, rather than being driven by a few outliers\. These observations indicate that molecular size and halogenation contribute to the separation between clusters\.
Returning to the Top\-kkPanel, the expert verifies that this pattern is already reflected in the extracted substructures\. The presence ofCl\\mathrm\{Cl\}appears as a recurring feature in Cluster 1, confirming that the cluster\-level summary captures this signal as shown in[Fig\.˜5](https://arxiv.org/html/2607.21941#S6.F5)A1\. Together, these observations indicate that the model organizes molecules based on factors beyond the coarsearyl/alkyltaxonomy, incorporating additional structural properties such as size and halogenation\.
Takeaway\.This case study shows that latent space organization evolves from coarse taxonomy\-based groupings to property\-driven structure during training\. While early representations align with thearyl/alkyldistinction, this alignment weakens as the model reorganizes molecules according to factors more directly related to solubility\. Through cluster\- and molecule\-level inspection, the expert identifies that molecular size and halogenation, rather than the coarse taxonomy alone, explain the observed separation\. This analysis follows the multi\-level design of*LatentFlow*\. The expert first uses the Modified Sankey View to identify when the latent space diverges from the initial taxonomy, then uses the Scatterplot View to examine how spatial organization changes, followed by the Top\-kkPanel to relate clusters to structural patterns, and finally the Cluster Member Panel to verify these patterns at the level of individual molecules\. This stepwise workflow enables the expert to move from a high\-level overview to a detailed, property\-driven interpretation of latent space organization\.
### 6\.2Case Study 2: Effect of Conformer Augmentation on Latent Space Organization
In this case study, the expert analyzes two 3D graph neural network models, trained to predict experimental catalyst selectivity\. The baseline model \(noaug\) is trained using a single structure for each molecule, and the augmented model \(10conf\) is trained on multiple conformations per molecule, thereby using data augmentation to expose the model to a broader set of valid 3D geometries for the same molecular graph\. In practice, molecules naturally sample multiple conformations due to thermal motion, and these conformations can exhibit slightly different properties, with observed behavior reflecting their ensemble\. This data augmentation resulted in lower error and better extrapolation to out\-of\-distribution catalysts\[[18](https://arxiv.org/html/2607.21941#bib.bib26)\], but*post hoc*performance metrics do not explain how data augmentation impacts the models’ latent spaces\. Our expert aimed to examine how data augmentation affects the organization of the latent spaces for the Dimenet architecture\. The expert wants to understand whether conformer augmentation leads to more structured and chemically meaningful groupings of molecules compared to the baseline model\. To do this, the expert used*LatentFlow*to compare the latent spaces of all layers across all training epochs of the two models\.
Locate divergence in latent spaces \(DR1, DR2\)\.In the Modified Sankey View \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)A\), the expert compares the two models across layers by examining the gap heatmaps, where the shade of the green color encodes the fraction of molecules that change cluster assignment between corresponding cells\. In the early layers \(output\_block\_0tooutput\_block\_2\), the gaps are shown in light green \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)A1\), indicating that only a small fraction of molecules changes clusters and that the two models group molecules similarly\. Atoutput\_block\_3, the gap color becomes darker green \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)A2\), indicating that a larger fraction of molecules are reassigned to different clusters\. This change shows that the cluster structure begins to diverge between the two models\. Based on this observation, the expert selectsoutput\_block\_3for further inspection, as it marks the first layer where the latent spaces differ\.
Compare cluster separation \(DR2\)\.[Figure˜6](https://arxiv.org/html/2607.21941#S6.F6)B shows the*Scatterplot Views*foroutput\_block\_3of the two models\. In thenoaugmodel \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)B1\), molecules form several clusters, but when colored by ground\-truth values, points of different colors are mixed within the same cluster regions\. High\- and low\-value points appear together across the projection, with no consistent spatial ordering, indicating that spatial proximity does not correspond to similarity in the target\. In contrast, the10confmodel \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)B2\) shows a more structured pattern\. When colored by ground\-truth values, the colors are arranged along a clear left\-to\-right gradient, with similar colors grouped together and values changing progressively across the projection\. Points with similar target values are located close to each other, while points with different values appear in different regions\. These differences indicate that10conforganizes molecules such that spatial position reflects target similarity, whereasnoaugshows no consistent relationship between position and target values\.
Test substructure\-driven grouping \(DR4\)\.To test whether latent\-space clustering captures groups of catalysts with similar structural features, the expert queries a phosphite substructure,P\(O\)\(O\)\\mathrm\{P\(O\)\(O\)\}, using the Structure Editor \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)C\)\. Innoaug, the highlighted molecules are almost entirely assigned to the same cluster, as indicated by their uniform light\-blue color corresponding to Cluster 1 \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)C1\)\. This shows that most matching molecules are grouped into a single cluster, suggesting that the model organizes these data primarily according to a shared molecular motif\. In contrast, in10conf, the highlighted molecules appear in multiple colors \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)C2\), reflecting assignment to different clusters \(e\.g\., Cluster 1, 4, and 5\)\. The same substructure is distributed across several clusters rather than grouped into one, indicating that10confis less dominated by a single substructure and instead captures additional differences among these data points\.
Compare cluster structures \(DR3, DR4\)\.The expert continued tracing10confthrough later layers\. The Modified Sankey View \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)A\) shows that further reorganization occurs before the final layers stabilize\. Therefore, the expert examined the final layer to understand the resulting grouping structure\. Inspecting the final layer of10confreveals that it learns a latent\-space organization that more effectively captures structure–selectivity relationships by grouping molecules with related structural features and, consequently, similar predicted selectivities\. For example, Cluster 4 \([Fig\.˜6](https://arxiv.org/html/2607.21941#S6.F6)D\) corresponds to catalysts with low selectivity values and relatively flexible molecular structures, features consistent with their reduced selectivity\. This suggests that augmentation improves the model’s ability to learn latent representations that better reflect meaningful structure–selectivity relationships\.
Takeaway\.This case study shows how*LatentFlow*supports a stepwise, linked analysis of latent\-space organization across complementary views\. The Modified Sankey View helps identify stages with substantial reorganization, the Scatterplot View reveals how molecules are partitioned, and the substructure and Top\-kkPanel help interpret the structural features associated with each group\. By linking these views, the expert can seamlessly shift from identifying where changes occur to understanding how those changes manifest in the learned representation and what molecular features underlie them\.
## 7Discussion and Conclusions
In this work, we introduced*LatentFlow*, a visual analytics system for helping computational chemists investigate how molecular structures and properties are organized in latent spaces to reveal chemically meaningful patterns\.*LatentFlow*was designed to address three challenges faced by computational chemists when interpreting molecular GNN latent spaces: tracking how molecular representations change across model states; identifying meaningful structural patterns; and relating these representations to chemical knowledge\. By linking latent\-space organization to molecular structures and properties, the system helps reveal structure–property relationships and chemical factors underlying model predictions\. We hope that*LatentFlow*provides a foundation for future visual analytics tools that support the interpretation, diagnosis, and development of embedding\-based machine learning models in chemistry and related scientific domains\.
### 7\.1Lessons Learned
One lesson from our design process is that latent space analysis is most useful when the expert can start from a coarse overview and then move to concrete molecules\[[31](https://arxiv.org/html/2607.21941#bib.bib23)\]\. In practice, the expert first uses the Modified Sankey View to find cells with significant changes in cluster membership\. Once transitions of interest are identified, the expert then uses the Scatterplot View, Cluster Member View, and Top\-kkPanel to inspect the molecules behind those transitions\. These views are highly complementary, with the Sankey View showing*where*significant transitions happen \(i\.e\., across either layers or time\), while the detailed molecule\-level views show*what*the transitions contain\.
We also found that introducing external domain\-specific knowledge was valuable when examining latent spaces\. The Structure Editor enables experts to draw substructures and immediately search for matching molecules across views, supporting hypothesis testing without switching context or relying on external programs\.
### 7\.2Generalization to Other Models and Domains
Although LatentFlow was developed in close collaboration with a single domain expert, the challenges that motivated the system were not tied to a specific project or dataset\. During the design process, the expert repeatedly emphasized the difficulty of understanding how molecular representations evolve during training, identifying when chemically meaningful structures emerge, and relating representation changes to prediction behavior\. These challenges arise naturally in workflows that rely on learned molecular embeddings\. While our study does not claim that these needs are representative of all molecular machine learning practitioners, they motivated a set of analytical tasks that may also be relevant in other embedding\-based molecular analysis scenarios\.
### 7\.3Limitations and Future Work
*LatentFlow*currently shows only two model\-state dimensions at a time in the Modified Sankey View\. This approach works well for the cases we studied, such as layer and epoch or model configurations, but it does not display all possible dimensions together\. When domain experts want to compare another factor, such as a different model configuration or parameter setting, they must switch the axes\. Future work could explore how the Sankey View could be extended to higher dimensions\.
The insights gleaned from the system are highly dependent on choosing suitable clustering and projections\. Different clustering methods can produce different groupings, and different projection methods can change how molecules appear in the Scatterplot View\. Although*LatentFlow*employs temporally consistent projection strategies to support comparison across model states, low\-dimensional projections inevitably introduce distortions of the underlying high\-dimensional structure\. Different projection methods may emphasize different aspects of the data, leading to different visual organizations of the same latent space\. We made these choices configurable because no single setting works best for every dataset\. However, this flexibility requires comparison of multiple views and parameter settings to determine whether an observed pattern is robust across different projections and clustering methods\. Future work could rank or recommend settings based on how consistently they preserve structural patterns and cluster transitions\.
A related limitation is that some clustering methods can produce a large number of clusters\. The number of clusters typically ranged up to 10, for which the visualization remained easy to interpret\. As the number of clusters increases, the Modified Sankey View becomes crowded, increasing visual density and making individual flows harder to distinguish and transitions more difficult to trace\. Although background coloring and gap\-based encodings improve readability, they are not sufficient when many clusters are present\. Visual clutter becomes increasingly noticeable once the number of clusters reaches several dozen, particularly when many transitions are present between adjacent model states\. A similar issue arises when experts introduce taxonomies with many label categories\. While the current system supports comparison between clusters and external labels, increasing the number of categories can make color encodings more difficult to interpret and reduce the effectiveness of visual comparison\. Larger taxonomies would likely require category aggregation, hierarchical groupings, or alternative visual encodings\. Future work could introduce additional filtering and simplification mechanisms, such as bundling nearby flows, aggregating small clusters, or supporting hierarchical label structures, to reduce visual complexity while preserving key transition patterns\.
Another limitation is that summary views can hide important details\. Background colors, gap heatmaps, and flow widths highlight main changes, but they may obscure fine\-grained variations due to individual molecules that behave differently\. The Top\-kkPanel has a similar limitation, as it only shows representative molecules, and it may miss rare cases or small transitions\. While these summaries improve readability, they can overlook exceptions\. Future work could add mechanisms to surface these exceptions more directly, as well as improved summarization techniques to better balance overview and detail\.
Finally, the current system focuses on inspection and comparison rather than automated explanation\.*LatentFlow*helps experts identify where changes happen and which molecules are involved, but it does not automatically decide which transitions are relevant\. In future work, we plan to explore ranking strategies that highlight transitions based on change magnitude, cluster stability, or chemical novelty\. This would reduce the need for manual examination and help experts locate meaningful patterns more quickly\.
## 8Acknowledgments
This work was supported by the Laboratory Directed Research and Development \(LDRD\) Program of Lawrence Berkeley National Laboratory and by the U\.S\. Department of Energy, Office of Science, Advanced Scientific Computing Research \(ASCR\) program under Contract No\. DE\-AC02\-05CH11231 to Lawrence Berkeley National Laboratory and Award No\. DE\-SC0023328 to Arizona State University \(“Visualizing High\-dimensional Functions in Scientific Machine Learning”\)\. We would also like to acknowledge the DOE Competitive Portfolios grant and the DOE SciGPT grant\. This research used resources at the National Energy Research Scientific Computing Center \(NERSC\), a U\.S\. Department of Energy, Office of Science, User Facility under NERSC Award Number ASCR\-ERCAP0026937\. We thank the NIH for funding this work at UC Berkeley \(1R35GM130387\)\. N\.H\. was supported by the National Science Foundation Graduate Research Fellowship Program under Grant No\. \(DGE 2146752\)\. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author\(s\) and do not necessarily reflect the views of the National Science Foundation\.
## References
- \[1\]A\. Achille and S\. Soatto\(2018\)Emergence of invariance and disentanglement in deep representations\.Journal of Machine Learning Research19\(50\),pp\. 1–34\.External Links:[Link](http://jmlr.org/papers/v19/17-646.html)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p2.1)\.
- \[2\]M\. Andronov, M\. V\. Fedorov, and S\. Sosnin\(2021\)Exploring chemical reaction space with reaction difference fingerprints and parametric t\-sne\.ACS Omega6\(45\),pp\. 30743–30751\.Note:PMID: 34805702External Links:[Document](https://dx.doi.org/10.1021/acsomega.1c04778),[Link](https://doi.org/10.1021/acsomega.1c04778),https://doi\.org/10\.1021/acsomega\.1c04778Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p2.1)\.
- \[3\]K\. Atz, F\. Grisoni, and G\. Schneider\(2021\)Geometric deep learning on molecular representations\.Nature Machine Intelligence3\(12\),pp\. 1023–1032\.External Links:[Document](https://dx.doi.org/10.1038/s42256-021-00418-8),[Link](https://doi.org/10.1038/s42256-021-00418-8),ISSN 2522\-5839Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[4\]D\. Bajusz, A\. Rácz, and K\. Héberger\(2015\)Why is tanimoto index an appropriate choice for fingerprint\-based similarity calculations?\.Journal of Cheminformatics7\(1\),pp\. 20\.External Links:[Document](https://dx.doi.org/10.1186/s13321-015-0069-3)Cited by:[§3\.2](https://arxiv.org/html/2607.21941#S3.SS2.p2.1)\.
- \[5\]Y\. Bengio, A\. Courville, and P\. Vincent\(2013\)Representation learning: a review and new perspectives\.IEEE Transactions on Pattern Analysis and Machine Intelligence35\(8\),pp\. 1798–1828\.External Links:[Document](https://dx.doi.org/10.1109/TPAMI.2013.50)Cited by:[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[6\]B\. Bienfait and P\. Ertl\(2013\)JSME: a free molecule editor in javascript\.Journal of cheminformatics5\(1\),pp\. 24\.External Links:[Document](https://dx.doi.org/10.1186/1758-2946-5-24)Cited by:[§5\.7](https://arxiv.org/html/2607.21941#S5.SS7.p1.1)\.
- \[7\]J\. W\. Burns, A\. S\. Zalte, C\. R\. A\. Abreu, J\. Sieg, C\. Feldmann, M\. Mathea, and W\. H\. Green\(2026\-02\)Deep Learning Foundation Models from Classical Molecular Descriptors\.arXiv\.External Links:2506\.15792,[Document](https://dx.doi.org/10.48550/arXiv.2506.15792)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p2.1)\.
- \[8\]R\. Bushuiev, A\. Bushuiev, R\. Samusevich, C\. Brungs, J\. Sivic, and T\. Pluskal\(2025\)Self\-supervised learning of molecular representations from millions of tandem mass spectra using dreams\.Nature Biotechnology\.External Links:[Document](https://dx.doi.org/10.1038/s41587-025-02663-3),[Link](https://doi.org/10.1038/s41587-025-02663-3),ISSN 1546\-1696Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p2.1)\.
- \[9\]R\. J\. G\. B\. Campello, D\. Moulavi, and J\. Sander\(2013\)Density\-based clustering based on hierarchical density estimates\.InAdvances in Knowledge Discovery and Data Mining,J\. Pei, V\. S\. Tseng, L\. Cao, H\. Motoda, and G\. Xu \(Eds\.\),Berlin, Heidelberg,pp\. 160–172\.External Links:ISBN 978\-3\-642\-37456\-2,[Document](https://dx.doi.org/10.1007/978-3-642-37456-2%5F14)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[10\]S\. Chen, A\. Wulamu, Q\. Zou, H\. Zheng, L\. Wen, X\. Guo, H\. Chen, T\. Zhang, and Y\. Zhang\(2023\)MD\-gnn: a mechanism\-data\-driven graph neural network for molecular properties prediction and new material discovery\.Journal of Molecular Graphics and Modelling123,pp\. 108506\.External Links:ISSN 1093\-3263,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.jmgm.2023.108506),[Link](https://www.sciencedirect.com/science/article/pii/S1093326323001043)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[11\]R\. Cilibrasi and P\.M\.B\. Vitanyi\(2005\)Clustering by compression\.IEEE Transactions on Information Theory51\(4\),pp\. 1523–1545\.External Links:[Document](https://dx.doi.org/10.1109/TIT.2005.844059)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[12\]T\. Cover and P\. Hart\(1967\)Nearest neighbor pattern classification\.IEEE Transactions on Information Theory13\(1\),pp\. 21–27\.External Links:[Document](https://dx.doi.org/10.1109/TIT.1967.1053964)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[13\]R\. Faust, D\. Glickenstein, and C\. Scheidegger\(2019\)DimReader: axis lines that explain non\-linear projections\.IEEE Transactions on Visualization and Computer Graphics25\(1\),pp\. 481–490\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2018.2865194)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[14\]Y\. Feng and G\. Hamerly\(2006\)PG\-means: learning the number of clusters in data\.InAdvances in Neural Information Processing Systems,B\. Schölkopf, J\. Platt, and T\. Hoffman \(Eds\.\),Vol\.19,pp\.\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2006/file/a9986cb066812f440bc2bb6e3c13696c-Paper.pdf),[Document](https://dx.doi.org/10.7551/mitpress/7503.003.0054)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[15\]E\. B\. Fowlkes and C\. L\. Mallows\(1983\)A method for comparing two hierarchical clusterings\.Journal of the American Statistical Association78\(383\),pp\. 553–569\.External Links:[Document](https://dx.doi.org/10.1080/01621459.1983.10478008),[Link](https://doi.org/10.1080/01621459.1983.10478008),https://doi\.org/10\.1080/01621459\.1983\.10478008Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[16\]J\. Gasteiger, J\. Groß, and S\. Günnemann\(2020\)Directional message passing for molecular graphs\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=B1eWbxStPH)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[17\]R\. Gómez\-Bombarelli, J\. N\. Wei, D\. Duvenaud, J\. M\. Hernández\-Lobato, B\. Sánchez\-Lengeling, D\. Sheberla, J\. Aguilera\-Iparraguirre, T\. D\. Hirzel, R\. P\. Adams, and A\. Aspuru\-Guzik\(2018\)Automatic chemical design using a data\-driven continuous representation of molecules\.ACS Central Science4\(2\),pp\. 268–276\.Note:PMID: 29532027External Links:[Document](https://dx.doi.org/10.1021/acscentsci.7b00572),[Link](https://doi.org/10.1021/acscentsci.7b00572),https://doi\.org/10\.1021/acscentsci\.7b00572Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p1.1)\.
- \[18\]R\. Gómez\-Bombarelli, J\. N\. Wei, D\. Duvenaud, J\. M\. Hernández\-Lobato, B\. Sánchez\-Lengeling, D\. Sheberla, J\. Aguilera\-Iparraguirre, T\. D\. Hirzel, R\. P\. Adams, and A\. Aspuru\-Guzik\(2018\)Automatic chemical design using a data\-driven continuous representation of molecules\.ACS Central Science4\(2\),pp\. 268–276\.Note:PMID: 29532027External Links:[Document](https://dx.doi.org/10.1021/acscentsci.7b00572),[Link](https://doi.org/10.1021/acscentsci.7b00572),https://doi\.org/10\.1021/acscentsci\.7b00572Cited by:[§6\.2](https://arxiv.org/html/2607.21941#S6.SS2.p1.1)\.
- \[19\]M\. González\-Medina and J\. L\. Medina\-Franco\(2017\)Platform for unified molecular analysis: puma\.Journal of Chemical Information and Modeling57\(8\),pp\. 1735–1740\.Note:PMID: 28737911External Links:[Document](https://dx.doi.org/10.1021/acs.jcim.7b00253),[Link](https://doi.org/10.1021/acs.jcim.7b00253),https://doi\.org/10\.1021/acs\.jcim\.7b00253Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p2.1)\.
- \[20\]I\. Goodfellow, Y\. Bengio, A\. Courville, and Y\. Bengio\(2016\)Deep learning\.Vol\.1,MIT press Cambridge\.External Links:[Document](https://dx.doi.org/10.4258/hir.2016.22.4.351)Cited by:[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[21\]N\. Hadler, N\. I\. Rinehart, M\. Elkin, J\. Nicolai, G\. Gheibi, J\. Chen, M\. Avaylon, R\. Maciejewski, G\. H\. Weber, M\. W\. Mahoney, T\. Perciano, and J\. F\. Hartwig\(2026\)A 3d, structure\-based, deep learning approach for predicting the regioselectivity of transition\-metal catalysis\.ChemRxiv2026\(0128\),pp\.\.External Links:[Document](https://dx.doi.org/10.26434/chemrxiv.10001648/v1),[Link](https://chemrxiv.org/doi/abs/10.26434/chemrxiv.10001648/v1),https://chemrxiv\.org/doi/pdf/10\.26434/chemrxiv\.10001648/v1Cited by:[§6](https://arxiv.org/html/2607.21941#S6.p1.1)\.
- \[22\]M\. Harrower and C\. A\. Brewer\(2003\)ColorBrewer\. org: an online tool for selecting colour schemes for maps\.The Cartographic Journal40\(1\),pp\. 27–37\.External Links:[Document](https://dx.doi.org/10.1179/000870403235002042)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p6.1)\.
- \[23\]E\. Heid, K\. P\. Greenman, Y\. Chung, S\. Li, D\. E\. Graff, F\. H\. Vermeire, H\. Wu, W\. H\. Green, and C\. J\. McGill\(2024\)Chemprop: a machine learning package for chemical property prediction\.Journal of Chemical Information and Modeling64\(1\),pp\. 9–17\.Note:PMID: 38147829External Links:[Document](https://dx.doi.org/10.1021/acs.jcim.3c01250),[Link](https://doi.org/10.1021/acs.jcim.3c01250),https://doi\.org/10\.1021/acs\.jcim\.3c01250Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1),[§6](https://arxiv.org/html/2607.21941#S6.p1.1)\.
- \[24\]T\. Hua, W\. Wang, Z\. Xue, S\. Ren, Y\. Wang, and H\. Zhao\(2021\)On feature decorrelation in self\-supervised learning\.InProceedings of the IEEE/CVF international conference on computer vision,pp\. 9598–9608\.Cited by:[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[25\]Z\. Huang, D\. Witschard, K\. Kucher, and A\. Kerren\(2023\)VA \+ embeddings star: a state\-of\-the\-art report on the use of embeddings in visual analytics\.Computer Graphics Forum42\(3\),pp\. 539–571\.External Links:[Link](https://onlinelibrary.wiley.com/doi/abs/10.1111/cgf.14859),https://onlinelibrary\.wiley\.com/doi/pdf/10\.1111/cgf\.14859,[Document](https://dx.doi.org/10.1111/cgf.14859)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[26\]C\. Humer, H\. Heberle, F\. Montanari, T\. Wolf, F\. Huber, R\. Henderson, J\. Heinrich, and M\. Streit\(2022\)ChemInformatics model explorer \(cime\): exploratory analysis of chemical model explanations\.Journal of Cheminformatics14\(1\),pp\. 21\.External Links:[Document](https://dx.doi.org/10.1186/s13321-022-00600-z)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p3.1)\.
- \[27\]J\. Jiménez\-Luna, F\. Grisoni, and G\. Schneider\(2020\)Drug discovery with explainable artificial intelligence\.Nature Machine Intelligence2\(10\),pp\. 573–584\.External Links:[Document](https://dx.doi.org/10.1038/s42256-020-00236-4),[Link](https://doi.org/10.1038/s42256-020-00236-4)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p3.1)\.
- \[28\]S\. C\. Johnson\(1967\)Hierarchical clustering schemes\.Psychometrika32\(3\),pp\. 241–254\.External Links:[Document](https://dx.doi.org/10.1007/BF02289588)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[29\]J\. H\. W\. Jr\.\(1963\)Hierarchical grouping to optimize an objective function\.Journal of the American Statistical Association58\(301\),pp\. 236–244\.External Links:[Document](https://dx.doi.org/10.1080/01621459.1963.10500845),[Link](https://www.tandfonline.com/doi/abs/10.1080/01621459.1963.10500845),https://www\.tandfonline\.com/doi/pdf/10\.1080/01621459\.1963\.10500845Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[30\]B\. Kale, A\. Clyde, M\. Sun, A\. Ramanathan, R\. Stevens, and M\. E\. Papka\(2023\)ChemoGraph: interactive visual exploration of the chemical space\.Computer Graphics Forum42\(3\),pp\. 13–24\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1111/cgf.14807),[Link](https://onlinelibrary.wiley.com/doi/abs/10.1111/cgf.14807),https://onlinelibrary\.wiley\.com/doi/pdf/10\.1111/cgf\.14807Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p3.1)\.
- \[31\]D\. Keim, G\. Andrienko, J\. Fekete, C\. Görg, J\. Kohlhammer, and G\. Melançon\(2008\)Visual analytics: definition, process, and challenges\.InInformation Visualization: Human\-Centered Issues and Perspectives,pp\. 154–175\.External Links:ISBN 978\-3\-540\-70956\-5,[Document](https://dx.doi.org/10.1007/978-3-540-70956-5%5F7),[Link](https://doi.org/10.1007/978-3-540-70956-5_7)Cited by:[§7\.1](https://arxiv.org/html/2607.21941#S7.SS1.p1.1)\.
- \[32\]S\. Kornblith, M\. Norouzi, H\. Lee, and G\. Hinton\(2019\-09–15 Jun\)Similarity of neural network representations revisited\.InProceedings of the 36th International Conference on Machine Learning,K\. Chaudhuri and R\. Salakhutdinov \(Eds\.\),Proceedings of Machine Learning Research, Vol\.97,pp\. 3519–3529\.External Links:[Link](https://proceedings.mlr.press/v97/kornblith19a.html)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p3.1),[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[33\]M\. J\. Kusner, B\. Paige, and J\. M\. Hernández\-Lobato\(2017\-06–11 Aug\)Grammar variational autoencoder\.InProceedings of the 34th International Conference on Machine Learning,D\. Precup and Y\. W\. Teh \(Eds\.\),Proceedings of Machine Learning Research, Vol\.70,pp\. 1945–1954\.External Links:[Link](https://proceedings.mlr.press/v70/kusner17a.html)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p1.1)\.
- \[34\]G\. Landrum\(2016\)RDKit: open\-source cheminformatics software\.Note:\\urlhttps://www\.rdkit\.orgAccessed: 2026\-03\-12Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p5.1)\.
- \[35\]A\. C\. Li, A\. A\. Efros, and D\. Pathak\(2022\)Understanding collapse in non\-contrastive siamese representation learning\.InComputer Vision – ECCV 2022,S\. Avidan, G\. Brostow, M\. Cissé, G\. M\. Farinella, and T\. Hassner \(Eds\.\),Cham,pp\. 490–505\.External Links:ISBN 978\-3\-031\-19821\-2,[Document](https://dx.doi.org/10.1007/978-3-031-19821-2%5F28)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p2.1)\.
- \[36\]Q\. Li, K\. S\. Njotoprawiro, H\. Haleem, Q\. Chen, C\. Yi, and X\. Ma\(2018\)EmbeddingVis: a visual analytics approach to comparative network embedding inspection\.In2018 IEEE Conference on Visual Analytics Science and Technology \(VAST\),Vol\.,pp\. 48–59\.External Links:[Document](https://dx.doi.org/10.1109/VAST.2018.8802454)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p2.1)\.
- \[37\]Y\. Liu, E\. Jun, Q\. Li, and J\. Heer\(2019\)Latent space cartography: visual analysis of vector space embeddings\.Computer Graphics Forum38\(3\),pp\. 67–78\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1111/cgf.13672),[Link](https://onlinelibrary.wiley.com/doi/abs/10.1111/cgf.13672),https://onlinelibrary\.wiley\.com/doi/pdf/10\.1111/cgf\.13672Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p2.1)\.
- \[38\]Z\. Liu, Y\. Wang, J\. Bernard, and T\. Munzner\(2022\)Visualizing graph neural networks with corgie: corresponding a graph to its embedding\.IEEE Transactions on Visualization and Computer Graphics28\(6\),pp\. 2500–2516\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2022.3148197)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p2.1)\.
- \[39\]A\. Maćkiewicz and W\. Ratajczak\(1993\)Principal components analysis \(pca\)\.Computers & Geosciences19\(3\),pp\. 303–342\.External Links:ISSN 0098\-3004,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/0098-3004%2893%2990090-R),[Link](https://www.sciencedirect.com/science/article/pii/009830049390090R)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[40\]L\. McInnes, J\. Healy, and J\. Melville\(2020\)UMAP: uniform manifold approximation and projection for dimension reduction\.External Links:1802\.03426,[Link](https://arxiv.org/abs/1802.03426),[Document](https://dx.doi.org/arXiv.1802.03426)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[41\]M\. Meilă\(2007\)Comparing clusterings—an information based distance\.Journal of Multivariate Analysis98\(5\),pp\. 873–895\.External Links:ISSN 0047\-259X,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.jmva.2006.11.013),[Link](https://www.sciencedirect.com/science/article/pii/S0047259X06002016)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p2.1)\.
- \[42\]Y\. Miao, H\. Ma, and J\. Huang\(2023\)Recent advances in toxicity prediction: applications of deep graph learning\.Chemical Research in Toxicology36\(8\),pp\. 1206–1226\.Note:PMID: 37562046External Links:[Document](https://dx.doi.org/10.1021/acs.chemrestox.2c00384),[Link](https://doi.org/10.1021/acs.chemrestox.2c00384),https://doi\.org/10\.1021/acs\.chemrestox\.2c00384Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[43\]S\. Monem, A\. H\. Abdel\-Hamid, and A\. E\. Hassanien\(2025\)Drug toxicity prediction model based on enhanced graph neural network\.Computers in Biology and Medicine185,pp\. 109614\.External Links:ISSN 0010\-4825,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.compbiomed.2024.109614),[Link](https://www.sciencedirect.com/science/article/pii/S0010482524016998)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[44\]D\. Probst and J\. Reymond\(2020\)Visualization of very large high\-dimensional data sets as minimum spanning trees\.Journal of Cheminformatics12\(1\),pp\. 12\.External Links:[Document](https://dx.doi.org/10.1186/s13321-020-0416-x),[Link](https://doi.org/10.1186/s13321-020-0416-x)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p2.1)\.
- \[45\]Y\. A\. Qadri, S\. Shaikh, K\. Ahmad, I\. Choi, S\. W\. Kim, and A\. V\. Vasilakos\(2025\)Explainable artificial intelligence: a perspective on drug discovery\.Pharmaceutics17\(9\),pp\. 1119\.External Links:[Document](https://dx.doi.org/10.3390/pharmaceutics17091119),[Link](https://doi.org/10.3390/pharmaceutics17091119)Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p3.1)\.
- \[46\]M\. Raghu, J\. Gilmer, J\. Yosinski, and J\. Sohl\-Dickstein\(2017\)Svcca: singular vector canonical correlation analysis for deep learning dynamics and interpretability\.Advances in neural information processing systems30\.Cited by:[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[47\]P\. E\. Rauber, S\. G\. Fadel, A\. X\. Falcão, and A\. C\. Telea\(2017\)Visualizing the hidden activity of artificial neural networks\.IEEE Transactions on Visualization and Computer Graphics23\(1\),pp\. 101–110\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2016.2598838)Cited by:[§2\.1](https://arxiv.org/html/2607.21941#S2.SS1.p1.1)\.
- \[48\]P\. E\. Rauber, A\. X\. Falcão, and A\. C\. Telea\(2016\)Visualizing time\-dependent data using dynamic t\-sne\.InProceedings of the Eurographics / IEEE VGTC Conference on Visualization: Short Papers,EuroVis ’16,Goslar, DEU,pp\. 73–77\.External Links:[Document](https://dx.doi.org/10.1111/cgf.12878)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p3.1)\.
- \[49\]P\. Reiser, M\. Neubert, A\. Eberhard, L\. Torresi, C\. Zhou, C\. Shao, H\. Metni, C\. van Hoesel, H\. Schopmans, T\. Sommer, and P\. Friederich\(2022\)Graph neural networks for materials science and chemistry\.Communications Materials3\(1\),pp\. 93\.External Links:[Document](https://dx.doi.org/10.1038/s43246-022-00315-6),[Link](https://doi.org/10.1038/s43246-022-00315-6),ISSN 2662\-4443Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[50\]M\. V\. Sabando, P\. Ulbrich, M\. Selzer, J\. Byška, J\. Mičan, I\. Ponzoni, A\. J\. Soto, M\. L\. Ganuza, and B\. Kozlíková\(2021\)ChemVA: interactive visual analysis of chemical compound similarity in virtual screening\.IEEE Transactions on Visualization and Computer Graphics27\(2\),pp\. 891–901\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2020.3030438)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p3.1)\.
- \[51\]T\. Sander, J\. Freyss, M\. von Korff, and C\. Rufener\(2015\)DataWarrior: an open\-source program for chemistry aware data visualization and analysis\.Journal of Chemical Information and Modeling55\(2\),pp\. 460–473\.Note:PMID: 25558886External Links:[Document](https://dx.doi.org/10.1021/ci500588j),[Link](https://doi.org/10.1021/ci500588j),https://doi\.org/10\.1021/ci500588jCited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p2.1)\.
- \[52\]M\. Schäfer, N\. Brich, J\. Byška, S\. M\. Marques, D\. Bednář, P\. Thiel, B\. Kozlíková, and M\. Krone\(2024\)InVADo: interactive visual analysis of molecular docking data\.IEEE Transactions on Visualization and Computer Graphics30\(4\),pp\. 1984–1997\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2023.3337642)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p2.1)\.
- \[53\]X\. Shi, L\. Zhou, Y\. Huang, Y\. Wu, and Z\. Hong\(2024\)A review on the applications of graph neural networks in materials science at the atomic scale\.Materials Genome Engineering Advances2\(2\),pp\. e50\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1002/mgea.50),[Link](https://onlinelibrary.wiley.com/doi/abs/10.1002/mgea.50),https://onlinelibrary\.wiley\.com/doi/pdf/10\.1002/mgea\.50Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[54\]S\. Shilpa, G\. Kashyap, and R\. B\. Sunoj\(2023\)Recent applications of machine learning in molecular property and chemical reaction outcome predictions\.The Journal of Physical Chemistry A127\(40\),pp\. 8253–8271\.Note:PMID: 37769193External Links:[Document](https://dx.doi.org/10.1021/acs.jpca.3c04779),[Link](https://doi.org/10.1021/acs.jpca.3c04779),https://doi\.org/10\.1021/acs\.jpca\.3c04779Cited by:[§1](https://arxiv.org/html/2607.21941#S1.p1.1)\.
- \[55\]D\. Smilkov, N\. Thorat, C\. Nicholson, E\. Reif, F\. B\. Viégas, and M\. Wattenberg\(2016\)Embedding projector: interactive visualization and interpretation of embeddings\.External Links:1611\.05469,[Link](https://arxiv.org/abs/1611.05469),[Document](https://dx.doi.org/10.48550/arXiv.1611.05469)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[56\]J\. Stahnke, M\. Dörk, B\. Müller, and A\. Thom\(2016\)Probing projections: interaction techniques for interpreting arrangements and errors of dimensionality reductions\.IEEE Transactions on Visualization and Computer Graphics22\(1\),pp\. 629–638\.External Links:[Document](https://dx.doi.org/10.1109/TVCG.2015.2467717)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[57\]L\. Van der Maaten and G\. Hinton\(2008\)Visualizing data using t\-sne\.\.Journal of machine learning research9\(11\)\.Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p1.1)\.
- \[58\]Z\. J\. Wang, F\. Hohman, and D\. H\. Chau\(2023\-07\)WizMap: scalable interactive visualization for exploring large machine learning embeddings\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 3: System Demonstrations\),D\. Bollegala, R\. Huang, and A\. Ritter \(Eds\.\),Toronto, Canada,pp\. 516–523\.External Links:[Link](https://aclanthology.org/2023.acl-demo.50/),[Document](https://dx.doi.org/10.18653/v1/2023.acl-demo.50)Cited by:[§2\.2](https://arxiv.org/html/2607.21941#S2.SS2.p2.1)\.
- \[59\]R\. Winter, F\. Montanari, F\. Noé, and D\. Clevert\(2019\)Learning continuous and data\-driven molecular descriptors by translating equivalent chemical representations\.Chem\. Sci\.10,pp\. 1692–1701\.External Links:[Document](https://dx.doi.org/10.1039/C8SC04175J),[Link](http://dx.doi.org/10.1039/C8SC04175J)Cited by:[§2\.3](https://arxiv.org/html/2607.21941#S2.SS3.p1.1)\.
- \[60\]Z\. Wu, B\. Ramsundar, E\. N\. Feinberg, J\. Gomes, C\. Geniesse, A\. S\. Pappu, K\. Leswing, and V\. Pande\(2018\-01\)MoleculeNet: a benchmark for molecular machine learning\.Chemical science9\(2\),pp\. 513—530\.External Links:[Document](https://dx.doi.org/10.1039/c7sc02664a),ISSN 2041\-6520,[Link](https://europepmc.org/articles/PMC5868307)Cited by:[§6\.1](https://arxiv.org/html/2607.21941#S6.SS1.p1.2)\.
- \[61\]Y\. Zou, B\. Li, and R\. Ran\(2025\)Joint umap for visualization of time\-dependent data\.InComputational Visual Media: 13th International Conference, CVM 2025, Hong Kong SAR, China, April 19–21, 2025, Proceedings, Part III,Berlin, Heidelberg,pp\. 266–288\.External Links:ISBN 978\-981\-96\-5814\-5,[Link](https://doi.org/10.1007/978-981-96-5815-2_14),[Document](https://dx.doi.org/10.1007/978-981-96-5815-2%5F14)Cited by:[§5](https://arxiv.org/html/2607.21941#S5.p3.1)\.Similar Articles
Deep Dreams Are Made of This: Visualizing Monosemantic Features in Diffusion Models
This paper introduces Latent Visualization by Optimization (LVO), a mechanistic interpretability technique that uses sparse autoencoders to visualize monosemantic features in diffusion models like Stable Diffusion 1.5.
Latent-Kernel Discrete Flow Maps for Few-Step Generation
The paper introduces Latent-Kernel Discrete Flow Maps (LKF), a flow-map kernel for discrete diffusion models that captures correlations between positions via a shared latent, enabling few-step generation without distillation and improving text generation perplexity.
Unsupervised learning of acquisition variability in structural connectomes via hybrid latent space modeling
This paper introduces an unsupervised framework for modeling acquisition-related variability in structural connectomes using hybrid latent space modeling, eliminating the need for manual capacity tuning by architecturally annealing encoder outputs.
AsymFlow Claims More Realistic AI Images by Moving Beyond Latent Diffusion
AsymFlow is a new method from Stanford that converts latent diffusion models to pixel space, achieving more realistic images by avoiding information loss from compression. It surpasses FLUX.2 klein on benchmarks with lower computational cost.
FlowLet: Conditional 3D Brain MRI Synthesis using Wavelet Flow Matching
FlowLet is a conditional generative framework that synthesizes age-conditioned 3D brain MRIs using flow matching in an invertible wavelet domain, improving brain age prediction accuracy for underrepresented age groups with high efficiency.