Machine Learning Enhanced Modeling and Design
CCSE Members of the Machine Learning Development Team
Revathi Jambunathan
Andy Nonaka
Bhargav Siddani
Ishan Srivastava
Prabhat Kumar
Yingheng Tang
Zhi Jackie Yao
Researchers in CCSE are using machine learning and data-driven approach in numerous ways.
Accelerate the time-to-solution of computationally-expensive kernels and PDE solvers.
As an outer-loop to accelerate predictive design for real-world systems.
On-the-fly learning strategies to provide algorithmic decisions.
Incorporating experimental data to make informative predictions.
Using pyTorch Models in AMReX for PDE acceleration
We have developed an interface to load a pyTorch-trained machine learning model into an AMReX simulation to replace a computational kernel.
A guided tutorial including a two-component beta decay system is available
HERE.
|
As a proof of concept, a surrogate model was trained using the solution to a two-component ODE system describing beta decay. The input is a time step and output is the solution representing the mass fractions of the two species. The model itself consists of a dense neural network (DNN) that imposes both mass fractions and mass fraction rates (gradients) as constraints in the loss function. As shown in the solution (top), gradient (middle), and error (bottom) plots on the left, this model converges to the exact solution after approximately 300 epochs.
|
Application: Astrophysical Reaction Networks
Our goal is to use a machine learning model to replace the reaction network in an astrophysical simulation.
We perform smallscale flame simulations with MAESTROeX using the aprox13 network in the
StarKiller Microphysics,
which is used in astrophysical simulations including stellar explosions (please refer to
Astrophysics and Cosmology
for more details)
Traditionally, we have used stiff ODE integrator for reactions, in which case the reactions dominate the total runtime.
Preliminary tests have shown that the use of a ML model can reduce the runtime by an order of magnitude.
Below is a normalized plot of the prediction vs. solution for a number of species and the nuclear energy generation rate.
The model was trained by sampling a large fraction of cells in a traditional simulation, and generating the error plot with the unused training data.
Current development of machine learning capabilities for reaction networks can be found on our GitHub repo at
https://github.com/AMReX-Astro/ml-reactions.
For more information, please contact
Andy Nonaka
Publications
Y. Tang, R. Chen, M. Lou, J. Fan, C. Yu, A. Nonaka, Z. Yao., W. Gao,
Optical Neural Engine for Solving Scientific Partial Differential Equations,
submitted for publication, 2024.
[arxiv]
D. Fan, D. E. Willcox, C. DeGrendele, M. Zingale, and A. Nonaka,
Neural Networks for Nuclear Reactions in MAESTROeX,
The Astrophysical Journal, 940 2, 2022.
[link]
Microelectronics Applications
See our Microelectronics Research Page
for more information on ML-enhanced physical modeling for next-generation Microelectronics.
|