arXiv:2610.36429cs.LGOct 2026

Manuscript Offprint

arXiv:2610.36429

Simulated petrological labels enable probabilistic mineralogy prediction from whole-rock geochemistry

Matthew J. Liu, Aaron D. Kaplan, Michael L. Whittaker, Kristin A. Persson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Matthew J. Liu

Materials Sciences Division

Lawrence Berkeley National Laboratory

Berkeley, CA, USA

matthewliu@berkeley.edu

Michael L. Whittaker

Energy Geosciences Division

Lawrence Berkeley National Laboratory

Berkeley, CA, USA

MWhittaker@lbl.gov

Aaron D. Kaplan

Materials Sciences Division

Lawrence Berkeley National Laboratory

Berkeley, CA, USA

aaron.kaplan.physics@gmail.com

Kristin A. Persson

Materials Sciences Division

Lawrence Berkeley National Laboratory

Berkeley, CA, USA

kaperssson@lbl.gov

Abstract

Modal mineralogy, the mineral identities and abundances in rocks, guides geological studies and industrial resource extraction. While measuring modal mineralogy is time-intensive, whole-rock chemical measurements furnish elemental concentrations at higher throughput. Predicting mineralogy from elemental data, however, poses a one-to-many inverse problem, and labeled mineralogical datasets are too sparse to train on at scale. We address both challenges by simulating petrological labels that express multiple formation conditions per composition and at a scale unattainable by measurements. Nearly one million simulated labels supervise the middle component of a three-part model: a transformer encoder self-supervised on roughly 788,000 whole-rock compositions, the simulation-trained heads that predict distributions over mineral assemblages, and a recalibration layer that aligns the predictions with measured mineralogy. Zero-shot on 640 volcanic rocks, the model discriminates the presence of most mineral categories and predicts which rocks are richer in each mineral. However, the predicted abundances are systematically offset from measured values. Recalibration fit on as few as 25 labeled rocks recovers 76 percent of the likelihood improvement from fitting on the full 368-rock fitting set, while abundance error responds more slowly (11.0% zero-shot and 9.5% with the full fitting set). This work demonstrates how a machine learning model in the geochemical sciences can both leverage an imperfect simulator and mitigate its systematic biases. 1^{1}

1 Introduction

Modal mineralogy underpins both geological investigations and the mining value chain. Mineral assemblages reflect the evolution of magmas and inform flowsheet design and extraction methods for critical materials [39, 27, 36]. Determining modal mineralogy typically requires an expert to count mineral grains under a microscope or perform X-ray diffraction on carefully prepared samples. In contrast, higher-throughput techniques such as inductively coupled plasma mass spectrometry measure whole-rock chemistry at lower cost [45]. Predicting mineralogy from geochemistry would

1^{1}Code is available at https://github.com/matthew-j-liu/phasecast.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Sim2Science: ML with Imperfect Scientific Models.

therefore bridge accessible measurements to richer geological information. However, predicting mineralogy directly from geochemistry is limited by two key obstacles. The first challenge is the paucity of labeled data. While whole-rock geochemistry is routinely compiled in databases (e.g., PetDB and GEOROC) [26, 38], modal mineralogy rarely accompanies these compositions. The second challenge is the one-to-many mapping between elemental composition and the mineral assemblages that could produce it. For a fixed composition, the identity and proportion of phases in an assemblage depend on magmatic temperature, pressure, and water content; kinetics of crystal nucleation, growth, and chemical diffusion; and transport and separation processes such as exsolution.

We recognized an opportunity to address both obstacles of mineral prediction by leveraging thermodynamic simulators. Solvers such as Perple_X, THERMO-CALC, and MELTS approximate mineral formation by solving for thermodynamically stable assemblages [17, 3, 10]. These simulators minimize Gibbs free energy to obtain the equilibrium assemblage under fixed formation conditions (e.g., temperature, pressure, water content). While exact formation conditions cannot be recovered from a rock, recent solvers such as MAGEMin are fast enough to sweep candidate conditions for every composition [37], enabling diverse label generation. Simulation at scale thus provides the labels that measurements rarely do, and expresses the one-to-many mapping of our inverse problem. The tradeoff, however, is that labels inherit the simulator's imperfections. For example, kinetics and transport are omitted, and formation conditions are assumed, leading to systematic deviation of simulated from measured mineralogy. Even so, we reasoned that simulated petrological labels could supervise a machine learning model, with recalibration on a small set of measured rocks offering a means to mitigate the simulation's systematic errors. In this work, we simulate equilibrium crystallization of volcanic rocks, where the crystals that form remain in the cooling melt. To interrogate our hypothesis, we pretrain a transformer encoder on roughly 788,000 whole-rock compositions, train probabilistic heads on the roughly 950,000 assemblages simulated across sampled formation conditions, and evaluate the predictions on 640 volcanic rocks before and after recalibration. Appendix A contextualizes our approach among prior work in computational geoscience.

References (46)