arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05148cs.DCcs.LG
收藏

浮点非结合性对高性能计算与深度学习应用可复现性的影响

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

Maxeler Technologies, a Groq Company(马克斯乐技术公司,格罗克旗下公司);ETH Zurich/Swiss National Supercomputing Centre (CSCS)(苏黎世联邦理工学院/瑞士国家超级计算中心);Oak Ridge National Laboratory(橡树岭国家实验室)

Sanjif Shanmugavelu, Mathieu Taillefumier, Christopher Culver, Oscar Hernandez, Mark Coletti, Ada Sedova

AI总结:

本文研究浮点非结合性对HPC与深度学习应用可复现性的影响,分析了GPU上确定性原子操作替代方案、PyTorch确定性选项的影响,并验证了基于Groq加速器的硬件确定性策略的优势。

摘要:

众所周知,由浮点非结合性导致的并行程序运行间差异会因误差累积,显著影响迭代算法的可复现性。不可复现性会严重影响随机程序正确性测试的效率与效果。近期研究发现,深度学习训练与推理流水线对浮点非结合性的敏感性有时极强,这会阻碍商业应用的认证、鲁棒性与敏感性的准确评估以及漏洞检测。科学计算应用领域的新方法将深度学习模型与高性能计算相结合,进一步加剧了调试与测试的挑战。本文研究了现代并行编程模型中浮点非结合性的统计特性,分析了在GPU上用确定性替代方案替换原子操作对性能与生产力的影响。我们结合深度学习GPU部署场景,检验了PyTorch中近期新增的确定性选项,揭示并量化了触发运行间差异的输入参数的影响,同时报告了相关文档的可靠性与完整性。最后,我们利用Groq加速器处理深度学习流水线的推理部分,评估了利用确定性硬件可提供的自动确定性策略,证明了基于硬件的策略在可复现性与正确性工作中能够带来的优势。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑