arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.03493cs.LGcs.NAmath.NA
收藏

DeepStability:深度学习中的不稳定数值方法及其解决方案研究

DeepStability: A Study of Unstable Numerical Methods and Their Solutions in Deep Learning

Iowa State University(爱荷华州立大学);Cape Privacy(开普隐私)

E. Kloberdanz, K. G. Kloberdanz, W. Le

摘要:

深度学习(DL)已成为解决各种重要问题的不可或缺的一部分,这就是为什么确保DL系统的质量至关重要。实现DL软件的可靠性和鲁棒性的挑战之一是确保算法实现在数值上是稳定的。DL算法需要大量和各种各样的数值计算。数值计算的幼稚实现可能导致错误,从而导致不正确或不准确的学习和结果。数值算法或数学公式可以具有数学上等效的几种实现,但具有不同的数值稳定性属性。设计数值稳定的算法实现是具有挑战性的,因为它需要软件工程、DL和数值分析的跨学科知识。在本文中,我们研究了两个成熟的DL库PyTorch和Tensorflow,目标是识别不稳定的数值方法及其解决方案。具体来说,我们调查了哪些DL算法是数值不稳定的,并对数值不稳定的根本原因、表现形式和补丁进行了深入分析。基于这些发现,我们推出了DL中的第一个数值稳定性问题和解决方案数据库。我们的研究结果,并提供未来的参考开发人员和工具建设者,以防止,检测,本地化和修复数值不稳定的算法实现。为了证明这一点,我们使用{ \it DeepStability}定位了Tensorflow中的数值稳定性问题,并提交了一个已被接受并合并的修复程序。

英文摘要:

Deep learning (DL) has become an integral part of solutions to various important problems, which is why ensuring the quality of DL systems is essential. One of the challenges of achieving reliability and robustness of DL software is to ensure that algorithm implementations are numerically stable. DL algorithms require a large amount and a wide variety of numerical computations. A naive implementation of numerical computation can lead to errors that may result in incorrect or inaccurate learning and results. A numerical algorithm or a mathematical formula can have several implementations that are mathematically equivalent, but have different numerical stability properties. Designing numerically stable algorithm implementations is challenging, because it requires an interdisciplinary knowledge of software engineering, DL, and numerical analysis. In this paper, we study two mature DL libraries PyTorch and Tensorflow with the goal of identifying unstable numerical methods and their solutions. Specifically, we investigate which DL algorithms are numerically unstable and conduct an in-depth analysis of the root cause, manifestation, and patches to numerical instabilities. Based on these findings, we launch, the first database of numerical stability issues and solutions in DL. Our findings and provide future references to developers and tool builders to prevent, detect, localize and fix numerically unstable algorithm implementations. To demonstrate that, using {\it DeepStability} we have located numerical stability issues in Tensorflow, and submitted a fix which has been accepted and merged in.

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

↑