Uncertainty-Aware Mixed-Variable Machine Learning for Materials Design

Hengrui Zhang, Wei Wayne Chen, Akshay Iyer, Daniel W. Apley · DOI

TL;DR

This paper presents a systematic comparison between frequentist (Random Forest-based) and Bayesian (Latent Variable Gaussian Process) machine learning models for optimizing materials designs with mixed numerical and categorical variables. The authors demonstrate that while Bayesian models excel in low-dimensional or smooth landscapes, frequentist ensemble models are more robust for high-dimensional, "ill-behaved" design spaces.

What Problem Does This Paper Address?

Designing new materials is a high-stakes game of "hot or cold." Researchers must navigate a vast space of chemical compositions, crystal structures, and processing conditions to find the optimal combination for a specific property, like stiffness or conductivity. Because experiments and high-fidelity simulations are prohibitively expensive, we use Bayesian Optimization (BO) to intelligently pick the next sample to evaluate.

However, materials design is inherently a mixed-variable problem. You might have numerical variables (like annealing temperature) alongside categorical ones (like choosing between Iron, Nickel, or Cobalt). Most standard machine learning models used in BO struggle to handle these mixed inputs while providing reliable Uncertainty Quantification (UQ). Without accurate UQ, the optimization process can get stuck in local minima or waste resources exploring unpromising regions.

Methods

The researchers compared two representative "uncertainty-aware" models capable of handling mixed variables:

  1. Latent Variable Gaussian Process (LVGP) - The Bayesian Approach: This model maps categorical variables into a continuous "latent space." This allows it to calculate distances between categories (e.g., how "similar" Iron is to Nickel in a specific context) and use standard Gaussian Process kernels. Its uncertainty comes from the posterior distribution of the random field.
  2. Lolo (Random Forest-based) - The Frequentist Approach: Lolo is an ensemble of decision trees. It naturally handles categorical variables by splitting nodes. Its uncertainty estimation is derived from the variance of predictions across the different trees in the forest, applying a bias correction to improve reliability.

The authors integrated these into a standard BO framework (see Figure 1) using Expected Improvement (EI) as the acquisition function to balance exploring high-uncertainty regions and exploiting known good ones.

Figure 1. Schematic of Bayesian Optimization framework. An ML model is fitted to the known input–response data, and predicts the response for unevaluated inputs with uncertainty. The acquisition function is calculated from the prediction, guiding the selection of new input(s) to evaluate. The process iterates to find the optimal response.

Datasets

The study evaluated these models across two main categories:

  • Mathematical Test Functions: A suite of synthetic benchmarks including the Branin, McCormick, Camel, and Rastrigin functions (low-dimensional) and the Perm, Rosenbrock, and Quadratic functions (high-dimensional). These "white-box" problems allowed the authors to precisely control dimensionality and complexity.
  • Materials Property Datasets:
    • $M_2AX$ Compounds: Optimizing Young’s and Bulk moduli based on chemical composition (3 categorical variables).
  • Lacunar Spinels: Optimizing bandgap and decomposition enthalpy (stability) across a 4-dimensional categorical space.

Key Insights and Ideas

  • Dimensionality vs. Complexity: The "suitability boundary" depends on the nature of the problem. LVGP is the clear winner for low-dimensional problems because its Bayesian UQ is better at identifying sparse regions, leading to highly efficient exploration.
  • The "Smoothness" Trap: LVGP assumes a degree of smoothness. When a function is "ill-behaved"—meaning it has erratic jumps or clusters of identical values (like the bandgap of lacunar spinels)—LVGP’s performance drops. In these cases, the high model complexity of Random Forests (Lolo) allows for a better fit.
  • UQ Quality is King: As shown in Figure 4 (labeled Figure 6 in the provided images), LVGP provides much smoother and more intuitive uncertainty bounds in sparse data regions compared to Lolo, which can have "blocky" and less informative uncertainty estimates.
Figure 4. Illustration of the behaviors of LVGP and Lolo fitting the Branin function, with 10 and 30 samples. Each panel plots f(x,t) versus x for four fixed values of t, while different colors of curves indicate levels of t. Solid lines represent the true function value, black dots are sample points in the training set, dashed lines are the predicted mean value, and shaded areas show the uncertainty estimation (plus/minus one standard deviation). The global minimum function value is marked by dashed lines.

Key Results

  • Low-Dimensional Efficiency: In simple 2D and 3D tests (Branin, McCormick, Camel), LVGP-BO converged to the global minimum in significantly fewer iterations than Lolo-BO.
  • High-Dimensional Robustness: For the complex 10D Perm function, Lolo-BO outperformed LVGP-BO, which struggled with the erratic behavior near the domain boundaries.
  • Materials Design Success: In the $M_2AX$ modulus optimization, both models found the optimum within 20 iterations (a huge saving over exhaustive search), with LVGP showing a slight edge in convergence speed. However, for the "ill-behaved" bandgap property in lacunar spinels, Lolo-BO proved more effective when starting with very small datasets.
Figure 2. a–d. Visualization of the Branin, McCormick, Camel, and Rastrigin functions in 2-dimensional (2D) continuous form. e–h. Optimization histories across replicates for the Branin, McCormick, Camel, and Rastrigin functions. These plots show the minimal objective function values observed at every iteration. Solid lines represent the median among replicates; shaded areas show plus/minus one MAD. The green dashed lines mark the global minimum value of each function.

Limitations and Future Work

The authors note that they used the "vanilla" version of LVGP. There are advanced extensions (like those using different kernels or handling larger datasets) that might improve its high-dimensional performance. Additionally, this study focused on two specific models; future work could expand this to include other popular UQ methods like Deep Ensembles or Bayesian Neural Networks. The paper provides a vital roadmap for materials scientists: start with Bayesian models for simpler spaces, but don't be afraid to switch to frequentist ensembles when the design landscape gets rugged and high-dimensional.

Summary updated

BibTeX
@misc{zhang2022uncertainty,
  author = {Hengrui Zhang and Wei Wayne Chen and Akshay Iyer and Daniel W. Apley and Wei Chen},
  title = {{Uncertainty-Aware Mixed-Variable Machine Learning for Materials Design}},
  year = {2022},
  eprint = {2207.04994},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.04994},
}
Figure