Density of States Prediction for Materials Discovery via Contrastive Learning from Probabilistic Embeddings

Shufeng Kong, Francesco Ricci, Dan Guevarra, Jeffrey B. Neaton, Carla P. Gomes, John M. Gregoire · DOI

Abstract

Machine learning for materials discovery has largely focused on predicting an individual scalar rather than multiple related properties, where spectral properties are an important example. Fundamental spectral properties include the phonon density of states (phDOS) and the electronic density of states (eDOS), which individually or collectively are the origins of a breadth of materials observables and functions. Building upon the success of graph attention networks for encoding crystalline materials, we introduce a probabilistic embedding generator specifically tailored to the prediction of spectral properties. Coupled with supervised contrastive learning, our materials-to-spectrum (Mat2Spec) model outperforms state-of-the-art methods for predicting ab initio phDOS and eDOS for crystalline materials. We demonstrate Mat2Spec's ability to identify eDOS gaps below the Fermi energy, validating predictions with ab initio calculations and thereby discovering candidate thermoelectrics and transparent conductors. Mat2Spec is an exemplar framework for predicting spectral properties of materials via strategically incorporated machine learning techniques.

Introduction: Beyond Scalar Properties

In materials science, most machine learning (ML) models are "scalar-focused," aiming to predict a single value such as a material's melting point or band gap. However, the most critical information often lies in spectral properties, specifically the Phonon Density of States (phDOS) and Electronic Density of States (eDOS). These spectra act as a "fingerprint" or "pulse," describing how atoms vibrate and how electrons are distributed across energy levels.

Calculating these spectra using traditional ab initio methods, such as Density Functional Theory (DFT), is computationally expensive, often requiring hours or days per material. Previous ML attempts to predict full spectral curves struggled with high-dimensional data and the complex relationships between a crystal's geometry and its resulting spectrum. Mat2Spec addresses these challenges by moving beyond simple regression to a label-aware, probabilistic framework.

The Mat2Spec Framework

Mat2Spec (Materials-to-Spectrum) is a multi-component architecture designed to capture the underlying correlations and uncertainties within spectral data. The framework consists of four primary pillars:

  1. Graph Attention Network (GATGNN): The model encodes crystal structures as graphs, where atoms are nodes and bonds are edges, capturing local and global geometric features.
  2. Probabilistic Embedding Generator: Instead of mapping a material to a single point in a latent space, Mat2Spec maps it to a Multivariate Gaussian Mixture. This allows the model to represent the inherent complexity and distribution of spectral features.
  3. Supervised Contrastive Learning: This serves as the model's "secret sauce." During training, the model maximizes the similarity between the representation of the material's structure and the representation of its actual spectrum. This ensures the structural features learned by the GNN are specifically tuned to be predictive of the spectrum's shape.
  4. Distribution-Based Loss: Rather than relying solely on Mean Squared Error (MSE), the model utilizes Wasserstein Distance (WD) and Kullback-Leibler (KL) divergence. These metrics are superior for comparing the "shapes" of distributions rather than simple point-by-point differences.
The Mat2Spec architecture featuring a probabilistic encoder and a decoder with contrastive learning.

Performance and Data Efficiency

Mat2Spec was evaluated on two primary datasets from the Materials Project: a phDOS dataset of ~1,500 materials and an eDOS dataset of ~30,000 materials. The model consistently outperformed state-of-the-art (SOTA) baselines like E3NN and GATGNN across all metrics, including $R^2$, Mean Absolute Error (MAE), and Wasserstein Distance. For phDOS, it achieved an $R^2$ of 0.63, a significant improvement over the previous SOTA of 0.56.

A standout feature of Mat2Spec is its remarkable data efficiency. The model provides better predictions using only 1/8th of the training data than baseline models do when using the full dataset. This robustness is crucial for materials science, where high-quality, computationally expensive data is often scarce.

Data efficiency comparison showing Mat2Spec's superior performance even with significantly smaller training sets.

Real-World Discovery: Hunting for "Gapped Metals"

The practical utility of Mat2Spec was demonstrated by screening 8,106 candidate materials from the Materials Project that lacked eDOS data. The researchers sought a rare class of materials: metals with a small "gap" in their electronic states just below the Fermi level. These "gapped metals" are prime candidates for high-performance thermoelectrics and transparent conductors.

Following DFT validation of 100 candidates, Mat2Spec successfully identified 15 new gapped metals, including families of fluorides ($Li_2AMF_6$) and oxides ($ARNb_2O_6$). In contrast, baseline models either failed to find these rare materials or produced high rates of false positives, highlighting Mat2Spec's superior ability to identify specific spectral features.

Limitations and Future Outlook

While Mat2Spec represents a significant leap forward, challenges remain. The model tends to "smooth out" very sharp, high-frequency peaks, and its performance is sensitive to the relaxation state of the crystal structure (errors increase by ~4% for unrelaxed structures).

Future work will focus on improving the resolution of sharp spectral features and integrating the framework with crystal structure generators. Furthermore, the framework is general enough to be applied to experimental data, such as X-ray absorption or Raman spectroscopy, potentially bridging the gap between simulation and laboratory measurement.

Summary updated

BibTeX
@inproceedings{kong2022density,
  author = {Shufeng Kong and Francesco Ricci and Dan Guevarra and Jeffrey B. Neaton and Carla P. Gomes and John M. Gregoire},
  title = {{Density of States Prediction for Materials Discovery via Contrastive Learning from Probabilistic Embeddings}},
  booktitle = {Nature Communications},
  year = {2022},
  doi = {10.1038/s41467-022-28543-x},
}
Figure