paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Estimating GPU memory consumption of deep learning models

估算深度学习模型的 GPU 内存消耗
FSE Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2020匹配度 6/10 · 该论文面向机器学习系统,提出解析式方法在运行前估算深度学习模型的 GPU 内存消耗,与“PL→AI 中面向 ML 系统的静态/资源分析”方向相关。但它的分析对象是 DL 模型计算图与框架运行时,而非 Agentic/LLM 程序或代码级静态分析,也不涉及浮点程序分析或贝叶斯程序分析,因此属于相邻但非核心工作。引用 134 inbox
Yanjie Gao, Yu Liu, Hongyu Zhang, Zhengxian Li, Yonghao Zhu, Haoxiang Lin, Mao Yang
crossref: 2026-09-12

AI 速览

一句话:提出 DNNMem,一种在运行前精确估算深度学习模型 GPU 内存消耗的解析式工具。

深度学习任务常因 GPU 内存耗尽而失败,而开发者在执行前难以知道模型所需显存。本文提出 DNNMem,采用解析式估算方法,系统计算计算图与深度学习框架运行时两部分的 GPU 内存消耗,从而在训练或部署前预测显存占用。作者在 TensorFlow、PyTorch 和 MXNet 三个主流框架上,使用 5 个真实代表性模型及不同超参数进行实验。结果表明 DNNMem 能有效估算 GPU 内存消耗,有助于避免因架构或超参数选择不当导致的 OOM 失败,减少计算资源浪费并提升开发效率。

问题
深度学习模型执行前其 GPU 内存消耗未知,不当的神经架构或超参数选择会导致显存耗尽并使任务失败,造成计算资源浪费和开发效率下降。
方法
提出 DNNMem,用解析式估算方法系统计算计算图与深度学习框架运行时的 GPU 内存消耗,在任务执行前预测显存占用。
评估
在 TensorFlow、PyTorch、MXNet 三个主流框架下,对 5 个真实代表性模型及不同超参数进行实验,验证估算方法的有效性。
原文摘要(Abstract)

Deep learning (DL) has been increasingly adopted by a variety of software-intensive systems. Developers mainly use GPUs to accelerate the training, testing, and deployment of DL models. However, the GPU memory consumed by a DL model is often unknown to them before the DL job executes. Therefore, an improper choice of neural architecture or hyperparameters can cause such a job to run out of the limited GPU memory and fail. Our recent empirical study has found that many DL job failures are due to the exhaustion of GPU memory. This leads to a horrendous waste of computing resources and a significant reduction in development productivity. In this paper, we propose DNNMem, an accurate estimation tool for GPU memory consumption of DL models. DNNMem employs an analytic estimation approach to systematically calculate the memory consumption of both the computation graph and the DL framework runtime. We have evaluated DNNMem on 5 real-world representative models with different hyperparameters under 3 mainstream frameworks (TensorFlow, PyTorch, and MXNet). Our extensive experiments show that DNNMem is effective in estimating GPU memory consumption.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5797,
  title = {Estimating GPU memory consumption of deep learning models},
  author = {Yanjie Gao and Yu Liu and Hongyu Zhang and Zhengxian Li and Yonghao Zhu and Haoxiang Lin and Mao Yang},
  booktitle = {FSE},
  year = {2020},
  doi = {10.1145/3368089.3417050}
}