paperbot · PL 论文追踪

全部论文 待读 收藏

P1 DeepStability

DeepStability:深度学习中的数值稳定性问题与解决方案数据库
ICSE Proceedings of the 44th International Conference on Software Engineering2022匹配度 6/10 · 论文关注深度学习库的数值稳定性问题,与浮点程序分析及ML系统静态分析方向相关,但主要是实证研究与数据库构建,未涉及静态分析技术或LLM,因此匹配度中等。引用 34 inbox
Eliska Kloberdanz, Kyle G. Kloberdanz, Wei Le
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:分析 PyTorch 与 TensorFlow 的数值不稳定问题,建立首个深度学习数值稳定性问题与解决方案数据库。

深度学习系统的可靠性依赖于算法实现的数值稳定性,但大量多样的数值计算使朴素实现容易产生错误或不精确的学习结果;数学等价的算法或公式可能有不同的稳定性,设计稳定实现需要软件工程、深度学习和数值分析的跨学科知识。本文研究成熟深度学习库 PyTorch 与 TensorFlow,识别数值不稳定的算法方法及其解决方案,深入分析其根因、表现形式和修复补丁,并据此构建首个深度学习数值稳定性问题与解决方案数据库 DeepStability。该数据库为开发者与工具构建者预防、检测、定位和修复不稳定实现提供参考;作者还用它定位 TensorFlow 中的数值稳定性问题,提交的修复已被接受并合入。

问题
如何确保深度学习算法实现的数值稳定性,避免数学等价但数值不稳定实现导致错误或不精确的学习结果。
方法
系统研究 PyTorch 和 TensorFlow,识别不稳定的数值方法,分析其根因、表现形式与修复补丁,并构建 DeepStability 数据库。
评估
利用 DeepStability 在 TensorFlow 中定位数值稳定性问题,提交修复并被接受合入,验证数据库的实用性。
原文摘要(Abstract)

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 DeepStability, the first database of numerical stability issues and solutions in DL. Our findings and DeepStability provide future references to developers and tool builders to prevent, detect, localize and fix numerically unstable algorithm implementations. To demonstrate that, using DeepStability we have located numerical stability issues in Tensorflow, and submitted a fix which has been accepted and merged in.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2202-03493,
  title = {DeepStability},
  author = {Eliska Kloberdanz and Kyle G. Kloberdanz and Wei Le},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1145/3510003.3510095}
}