What is Your Force Field Really Learning? Gaining Scientific Intuition with A Dual-Level Explainability Framework

Yi Cao, Peter Mastracco, Jieneng Chen, Alan Yuille, Paulette ClancyXAI4Science @ AAAI 2026

TL;DR

Machine learning force fields (MLFFs) are powerful but often opaque. This paper introduces DUAL-X, a novel framework that uses a two-tiered approach (Grad-CAM for "where" and SHAP for "what") to reveal what MLFFs are actually learning about atomic interactions. This allows researchers to understand why a model makes a prediction, leading to more trustworthy and insightful AI for materials discovery.

What Problem Does This Paper Address?

Machine learning force fields (MLFFs) are revolutionizing materials science by providing accurate simulations at a fraction of the cost of traditional methods. However, their "black-box" nature is a major hurdle. Researchers can't fully trust these models for high-stakes applications, diagnose their failures, or extract the underlying scientific principles they might have learned. This lack of transparency creates a gap between predictive power and true scientific understanding, hindering discovery. The paper aims to bridge this gap by making MLFFs interpretable.

Methods

The core of the paper is the DUAL-X framework, a hierarchical approach to explainability:

  • Level 1: Model-Centric Locus ("The Where"): This level uses Grad-CAM (Gradient-weighted Class Activation Mapping), adapted from computer vision, to identify which atoms or regions in a material structure are most influential for the MLFF's prediction of total energy. It essentially highlights the model's "attention" areas.
  • Level 2: Human-Centric Mechanism ("The What"): This level uses SHAP (SHapley Additive exPlanations) applied to SOAP (Smooth Overlap of Atomic Positions) descriptors. SOAP descriptors represent local atomic environments in a physically meaningful way. By analyzing SHAP values on these descriptors, the framework decodes what specific physical interactions (like bond lengths, angles, or coordination patterns) the model prioritizes within the "attention" regions identified in Level 1.

This combination allows researchers to understand both where the model is looking and what physical phenomena it's focusing on.

Datasets

The study uses a dataset of Cr-doped Sb₂Te₃, a material relevant for topological and thermoelectric applications. Reference data was generated using Density Functional Theory (DFT) via Density Functional Theory (DFT) with the Perdew-Burke-Ernzerhof (PBE) functional and Grimme's D3 dispersion correction. This dataset consists of approximately 20,000 atomic configurations sampled from ab initio molecular dynamics (AIMD) trajectories at three different temperatures (300 K, 600 K, and 1200 K) to capture a broad range of thermal conditions. The dataset was split into training (80%), validation (10%), and test (10%) subsets.

Key Insights and Ideas

  • Training Strategy Dictates Chemical Intuition: The way an MLFF is trained profoundly shapes its understanding of chemical physics. Different strategies lead to models that "learn" different aspects of the material's behavior.
  • Beyond Accuracy: Physical Fidelity Matters: Models with similar predictive accuracy (e.g., low RMSE) can learn fundamentally different physics. This highlights the inadequacy of accuracy metrics alone for evaluating MLFF quality and emphasizes the need for interpretability.
  • Emergent Chemical Intelligence: MLFFs, especially when trained with diverse data, can learn sophisticated, chemically relevant patterns that go beyond simple atomic interactions. The FT-Multi-T model, for instance, learned the importance of specific Cr-Cr angular correlations ($f$-type, $l=3$) crucial for the material's phase-change behavior.
  • Task-Dependent Reliability: The "best" model depends on the scientific question. A generalist model might be better for predicting bulk properties (like total energy), while a specialized model is needed for phenomena driven by local atomic events (like migration barriers).

Key Results

  • DUAL-X reveals distinct MLFF behaviors:
    • The Foundation model (pre-trained) shows diffuse attention, focusing on the Sb-Te matrix, suggesting it integrates collective behavior.
  • The Scratch model (trained from random initialization) exhibits sharp, localized attention on Cr dopants, indicating a focus on dopant-specific physics.
  • The FT-Multi-T model (multi-temperature fine-tuned) shows minimal attention on stable structures (indicating internalized knowledge) but reacts strongly to dynamic configurations.
  • FT-Multi-T model's specialization: This model showed a dramatic 170-fold increase in the importance of the Cr-Cr $f$-type ($l=3$) angular correlation feature compared to the scratch model. This feature is critical for understanding dopant clustering and phase-switching behavior.
  • Performance vs. Physics: Despite similar RMSE values, the FT-Multi-T model demonstrated more robust generalization and physically consistent learning compared to single-temperature fine-tuned or scratch-trained models.
  • Cr-Cr $f$-type correlation dominance: The FT-Multi-T model learned that the specific Cr-Cr interaction at 4.34 Å, characterized by $f$-type angular correlations ($l=3$), is the most predictive feature for the material's behavior, a level of insight completely missed by simpler models.

Limitations and Future Work

  • Single Material System: The current implementation of DUAL-X is demonstrated on a single material system (Cr-doped Sb₂Te₃).
  • Future Work: The authors propose extending the framework to other complex material classes (e.g., catalysts, battery electrodes). They also suggest integrating alternative XAI techniques to build a more robust consensus and further refine the understanding of model decision-making. The ultimate goal is to use these insights to guide targeted synthesis and experimental validation, transforming MLFFs into active tools for in silico knowledge discovery and automated materials design.

Summary updated

BibTeX
@inproceedings{cao2026what,
  author = {Yi Cao and Peter Mastracco and Jieneng Chen and Alan Yuille and Paulette Clancy},
  title = {{What is Your Force Field Really Learning? Gaining Scientific Intuition with A Dual-Level Explainability Framework}},
  booktitle = {XAI4Science @ AAAI},
  year = {2026},
  url = {https://openreview.net/forum?id=K95Tt6fYud},
}
Figure