Statistics

# Mixing precision for model acceleration

A mixed-precision approach for modeling large geospatial datasets can achieve benchmark accuracy with a fraction of the computational run time. The international team of researchers drew upon the power of three of the world's most powerful supercomputers: HAWK in Germany, Shaheen-II in KAUST (pictured above) and Summit (the second most powerful computer in the world). © 2021 KAUST; Anastasia Serin

By applying high-precision calculations only where they’re needed most, a KAUST-led research team has been able to significantly speed up modeling of large geospatial datasets without overall precision loss. The approach, implemented on a high-performance computing system based on highly parallelized graphics processor units (GPUs), will allow larger datasets to be analyzed in shorter time.

While computers have the capacity to perform very large calculations very quickly, the result can sometimes be less precise than hand calculations because of the limitation of how numbers are stored in digital systems. Standard or “single” precision numbers effectively have 6–9 actual decimal digits of precision, meaning that any calculation resulting in a longer sequence of digits will be truncated, thereby losing information.

While double-precision numbers can be used, this doubles the memory and calculation intensity. For geospatial datasets where the accumulation of such precision errors can lead to erroneous modeling results, this imparts a major limitation on the size of dataset that can be calculated precisely.

Sameh Abdulah and colleagues including Hatem Ltaief, Marc Genton, Ying Sun and David Keyes from KAUST, in collaboration with researchers from the University of Tennessee, Knoxville (UTK) in the U.S., have now developed an elegant solution to this problem by mixing precision as required.

“For decades, modeling of environmental data relied on double-precision arithmetic to predict missing data,” says Abdulah. “Today, there is high-performance computing hardware that can run single- and half-precision arithmetic with a speedup of 16 and 32 times compared with double-precision arithmetic. To take advantage of this, we propose a three-precision framework that can exploit the acceleration of lower precision while maintaining accuracy by using double-precision arithmetic for vital information.”

Using the PaRSEC runtime system developed by UTK, which allows for on-demand precision and the orchestration of tasks and data movement across multiple parallel GPUs, the researchers exploited the statistical relationships in the data to reduce precision for weakly correlated spatial locations to single- or half-precision based on distance.

Double-precision calculations are only applied for the strongly correlated locations that have the most influence on model accuracy.

“The main goal of this project is to leverage the recent parallel linear algebra algorithms developed by KAUST’s Extreme Computing Research Center to scale up geospatial statistics applications on leading-edge parallel architectures,” says Abdulah.

“We have shown that we can achieve significant speedup compared to full double-precision arithmetic modeling while preserving the parameter estimations and prediction accuracy to meet the application requirements,” he explains. “Next, we intend to integrate approximations with mixed precision to further reduce memory footprint and shorten calculation time.”
{"ft_lang_label":"__label__en","ft_lang_prob":0.8597192,"math_prob":0.85242647,"size":4099,"snap":"2023-40-2023-50","text_gpt3_token_len":765,"char_repetition_ratio":0.13064714,"word_repetition_ratio":0.0070546735,"special_character_ratio":0.16882166,"punctuation_ratio":0.102874435,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95102334,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-11T02:44:07Z\",\"WARC-Record-ID\":\"<urn:uuid:b7417472-d870-4656-aad1-e1c8a444ccf3>\",\"Content-Length\":\"62293\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:16c04d29-bdf5-4437-b3d7-8d9e22268cc7>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c63de64-cc5e-4cf5-85d6-7a5df89eba68>\",\"WARC-IP-Address\":\"146.75.29.72\",\"WARC-Target-URI\":\"https://discovery.kaust.edu.sa/en/article/6522/mixing-precision-for-model-acceleration/\",\"WARC-Payload-Digest\":\"sha1:M5MTHXEALV54JJBYZASUZD3HDGA2TXCK\",\"WARC-Block-Digest\":\"sha1:HJGB67Z746TFYWXLDRUY2LNNEZEXU5TG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679103464.86_warc_CC-MAIN-20231211013452-20231211043452-00639.warc.gz\"}"}