Content area

Abstract

We present a novel machine learning (ML)-based method to accelerate conservative-to-primitive inversion, focusing on hybrid piecewise polytropic and tabulated equations of state. Traditional root-finding techniques are computationally expensive, particularly for large-scale relativistic hydrodynamics simulations. To address this, we employ feedforward neural networks (NNC2PS and NNC2PL), trained in PyTorch (2.0+) and optimized for GPU inference using NVIDIA TensorRT (8.4.1), achieving significant speedups with minimal accuracy loss. The NNC2PS model achieves L1 and L errors of 4.54×107 and 3.44×106, respectively, while the NNC2PL model exhibits even lower error values. TensorRT optimization with mixed-precision deployment substantially accelerates performance compared to traditional root-finding methods. Specifically, the mixed-precision TensorRT engine for NNC2PS achieves inference speeds approximately 400 times faster than a traditional single-threaded CPU implementation for a dataset size of 1,000,000 points. Ideal parallelization across an entire compute node in the Delta supercomputer (dual AMD 64-core 2.45 GHz Milan processors and 8 NVIDIA A100 GPUs with 40 GB HBM2 RAM and NVLink) predicts a 25-fold speedup for TensorRT over an optimally parallelized numerical method when processing 8 million data points. Moreover, the ML method exhibits sub-linear scaling with increasing dataset sizes. We release the scientific software developed, enabling further validation and extension of our findings. By exploiting the underlying symmetries within the equation of state, these findings highlight the potential of ML, combined with GPU optimization and model quantization, to accelerate conservative-to-primitive inversion in relativistic hydrodynamics simulations.

Details

1009240
Business indexing term
Title
Machine Learning-Driven Conservative-to-Primitive Conversion in Hybrid Piecewise Polytropic and Tabulated Equations of State
Author
Kacmaz Semih 1   VIAFID ORCID Logo  ; Haas, Roland 2   VIAFID ORCID Logo  ; Huerta, E A 3   VIAFID ORCID Logo 

 Department of Physics, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA 
 Department of Physics, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA, Department of Physics an Astronomy, University of British Columbia, Vancouver, BC V6T 1Z1, Canada 
 Department of Physics, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA, Data Science and Learning Division, Argonne National Laboratory, Lemont, IL 60439, USA, Department of Computer Science, The University of Chicago, Chicago, IL 60637, USA 
Publication title
Symmetry; Basel
Volume
17
Issue
9
First page
1409
Number of pages
18
Publication year
2025
Publication date
2025
Publisher
MDPI AG
Place of publication
Basel
Country of publication
Switzerland
Publication subject
e-ISSN
20738994
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2025-08-29
Milestone dates
2025-07-10 (Received); 2025-08-25 (Accepted)
Publication history
 
 
   First posting date
29 Aug 2025
ProQuest document ID
3254649207
Document URL
https://www.proquest.com/scholarly-journals/machine-learning-driven-conservative-primitive/docview/3254649207/se-2?accountid=208611
Copyright
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-09-26
Database
ProQuest One Academic