Abstract
Manifold visualisation techniques are commonly used to visualise high-dimensional datasets in physical sciences. In this paper, we apply a recently introduced manifold visualisation method, slisemap, on datasets from physics and chemistry. slisemap combines manifold visualisation with explainable artificial intelligence. Explainable artificial intelligence investigates the decision processes of black box machine learning models and complex simulators. With slisemap, we find an embedding such that data items with similar local explanations are grouped together. Hence, slisemap gives us an overview of the different behaviours of a black box model, where the patterns in the embedding reflect a target property. In this paper, we show how slisemap can be used and evaluated on physical data and that it is helpful in finding meaningful information on classification and regression models trained on these datasets.
Introduction
Machine learning is increasingly used in the physical sciences to predict molecular properties or classify particle collisions. However, these powerful models are usually "black boxes." For scientists, simply getting a highly accurate prediction isn't enough; they need to understand how the features influence the prediction to uncover underlying physical phenomena and trust the model.
Currently, scientists use two separate tools that fall short:
- Manifold Visualization (e.g., t-SNE, UMAP): These compress high-dimensional data into 2D plots to find clusters, but they are unsupervised. They group points by feature similarity, not by how those features relate to a target prediction.
- Explainable AI (e.g., LIME, SHAP): These explain black-box models by creating simple, local approximations. However, they often require generating synthetic, sampled data points to probe the model. In physics and chemistry, randomly generating data can easily violate strict physical constraints (like energy conservation), leading to nonsensical explanations.
This paper addresses the need for a method that simultaneously visualizes high-dimensional data and explains black-box models, using only real data to respect physical laws.
Methods
The authors apply SLISEMAP, a recently introduced supervised dimensionality reduction technique. Instead of just mapping high-dimensional points to 2D based on distance, SLISEMAP simultaneously trains a simple, interpretable "local model" (like linear or logistic regression) for every single data point. The algorithm optimizes a loss function so that data points are placed close together in the 2D embedding if they share similar local models.
To rigorously evaluate these visualizations, the authors introduce and utilize specific performance metrics:
- Permutation loss: A sanity check to ensure the embedding actually captures the relationship between features and the target variable.
- Local model stability: Measures if the algorithm finds the same types of local explanations when trained on different subsets of the data.
- Neighbourhood stability: Measures if individual data points consistently end up in the same local neighborhoods across different data samples.
Datasets
The authors evaluated SLISEMAP on three physical science datasets:
- GeckoQ: 31,637 atmospheric organic compounds. The task is to predict saturation vapor pressure based on molecular functional groups.
- Elementary particle jets: 10,000 simulated Large Hadron Collider (LHC) proton-proton collisions. The task is to classify whether a particle jet originated from a quark or a gluon.
- QM9: 10,000 small organic molecules. The task is to predict HOMO (Highest Occupied Molecular Orbital) energies.
Key Insights
- Visualizing by explanation reveals physical truths: When data is clustered by how the model makes decisions, the resulting clusters directly map to physical theories. In the GeckoQ dataset, SLISEMAP naturally grouped molecules containing hydrogen-bond-forming functional groups together, as these features drive the prediction of low vapor pressure.
- Real data prevents physical nonsense: Because SLISEMAP builds its local models by looking at neighboring actual data points in the embedding—rather than generating synthetic data points—it inherently respects the physical constraints of the dataset.
- Supervision beats unsupervised clustering for interpretability: Compared to t-SNE, SLISEMAP created distinct, easily interpretable regions because the embedding is explicitly supervised by the target variable's local behavior.
Key Results
- Superior Explanation Quality: SLISEMAP produced highly accurate local models. On the Particle Jets dataset, SLISEMAP achieved a local loss of
0.000, outperforming LIME (0.004). - Better Generalization: SLISEMAP explanations cover a wider area of the data manifold accurately. Its "Nearest Neighbor Coverage" on the Jets dataset was
0.999, vastly outperforming t-SNE (0.969), SHAP (0.592), and LIME (0.397). - Qualitative Alignment with Physics: In particle jet classification, SLISEMAP isolated a cluster of gluon jets driven by "jet girth," aligning with the principle that gluon jets are wider than quark jets.
Limitations and Future Work
Limitations: The authors note that neighbourhood stability was sometimes low for molecular datasets. This occurs when a data point sits on the boundary between two physical behaviors, leading to multiple valid "alternative explanations."
Future Work: The authors suggest exploring these "alternative explanations" to quantify uncertainty. Ultimately, if a black-box model can be accurately approximated by stable local SLISEMAP models, it might be possible to replace the black box with this interpretable procedure.
Summary updated