Research

Speeding up and reducing memory usage for scientific machine learning via mixed precision

DOE

Source: doe_osti

Questions this answers

Sources

Source record

The underlying research record — supporting evidence for the object above.

Key Details

Posted Date
Source
doe_osti

Description

Scientific machine learning (SciML) has emerged as a versatile approach to address complex computational science and engineering problems. Within this field, physics-informed neural networks (PINNs) and deep operator networks (DeepONets) stand out as the leading techniques for solving partial differential equations by incorporating both physical equations and experimental data. However, training PINNs and DeepONets require significant computational resources, including long computational times and large amounts of memory. In search of computational efficiency, training neural networks using half precision (float16) rather than the conventional single (float32) or double (float64) precision has gained substantial interest, given the inherent benefits of reduced computational time and memory consumed. However, we find that float16 cannot be applied to SciML methods, because of gradient divergence at the start of training, weight updates going to zero, and the inability to converge to a local minima. To overcome these limitations, we explore mixed precision, which is an approach that combines the float16 and float32 numerical formats to reduce memory usage and increase computational speed. Our experiments showcase that mixed precision training not only substantially decreases training times and memory demands but also maintains model accuracy. Here, we also reinforce our empirical observations with a theoretical analysis. The research has broad implications for SciML in various computational applications.. Authors: Hayford, Joel [Yale University, New Haven, CT (United States); University of Pennsylvania, Philadelphia, PA (United States)]; Goldman-Wetzler, Jacob [Hastings High School, Hastings-on-Hudson, NY (United States)] (ORCID:0009000210041140); Wang, Eric [WW-P High School North, Plainsboro, NJ (United States)]; Lu, Lu [Yale University, New Haven, CT (United States)] (ORCID:0000000254765768). DOE Contract: SC0022953. Subjects: 97 MATHEMATICS AND COMPUTING; Computational efficiency; Deep operator networks; Mixed precision; Partial differential equations; Physics-informed neural networks; Scientific machine learning

Frequently Asked Questions

What is this record?+
It is a publication associated with DOE — published findings, a technical standard, or a notice. It reports results or specifications. There is nothing here to apply for.

Where this record sits

What else do you want to know?

100M+ government records — search across all categories