Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applications

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Shanmugavelu, Sanjif, Taillefumier, Mathieu, Culver, Christopher, Hernandez, Oscar, Coletti, Mark, Sedova, Ada
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912095045419008
author Shanmugavelu, Sanjif
Taillefumier, Mathieu
Culver, Christopher
Hernandez, Oscar
Coletti, Mark
Sedova, Ada
author_facet Shanmugavelu, Sanjif
Taillefumier, Mathieu
Culver, Christopher
Hernandez, Oscar
Coletti, Mark
Sedova, Ada
contents Run to run variability in parallel programs caused by floating-point non-associativity has been known to significantly affect reproducibility in iterative algorithms, due to accumulating errors. Non-reproducibility can critically affect the efficiency and effectiveness of correctness testing for stochastic programs. Recently, the sensitivity of deep learning training and inference pipelines to floating-point non-associativity has been found to sometimes be extreme. It can prevent certification for commercial applications, accurate assessment of robustness and sensitivity, and bug detection. New approaches in scientific computing applications have coupled deep learning models with high-performance computing, leading to an aggravation of debugging and testing challenges. Here we perform an investigation of the statistical properties of floating-point non-associativity within modern parallel programming models, and analyze performance and productivity impacts of replacing atomic operations with deterministic alternatives on GPUs. We examine the recently-added deterministic options in PyTorch within the context of GPU deployment for deep learning, uncovering and quantifying the impacts of input parameters triggering run to run variability and reporting on the reliability and completeness of the documentation. Finally, we evaluate the strategy of exploiting automatic determinism that could be provided by deterministic hardware, using the Groq accelerator for inference portions of the deep learning pipeline. We demonstrate the benefits that a hardware-based strategy can provide within reproducibility and correctness efforts.
format Preprint
id arxiv_https___arxiv_org_abs_2408_05148
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applications
Shanmugavelu, Sanjif
Taillefumier, Mathieu
Culver, Christopher
Hernandez, Oscar
Coletti, Mark
Sedova, Ada
Distributed, Parallel, and Cluster Computing
Machine Learning
Run to run variability in parallel programs caused by floating-point non-associativity has been known to significantly affect reproducibility in iterative algorithms, due to accumulating errors. Non-reproducibility can critically affect the efficiency and effectiveness of correctness testing for stochastic programs. Recently, the sensitivity of deep learning training and inference pipelines to floating-point non-associativity has been found to sometimes be extreme. It can prevent certification for commercial applications, accurate assessment of robustness and sensitivity, and bug detection. New approaches in scientific computing applications have coupled deep learning models with high-performance computing, leading to an aggravation of debugging and testing challenges. Here we perform an investigation of the statistical properties of floating-point non-associativity within modern parallel programming models, and analyze performance and productivity impacts of replacing atomic operations with deterministic alternatives on GPUs. We examine the recently-added deterministic options in PyTorch within the context of GPU deployment for deep learning, uncovering and quantifying the impacts of input parameters triggering run to run variability and reporting on the reliability and completeness of the documentation. Finally, we evaluate the strategy of exploiting automatic determinism that could be provided by deterministic hardware, using the Groq accelerator for inference portions of the deep learning pipeline. We demonstrate the benefits that a hardware-based strategy can provide within reproducibility and correctness efforts.
title Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applications
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2408.05148