paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SwapAdvisor

SwapAdvisor:面向深度学习数据流图的显存交换优化
ASPLOS Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems2020匹配度 2/10 · 该论文聚焦 GPU 显存交换、算子调度与内存分配优化,属于机器学习系统/运行时方向,虽涉及数据流图分析,但并非用户画像核心关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析。引用 158 inbox
Chien-Chin Huang, Gu Jin, Jinyang Li
crossref: 2026-09-12

AI 速览

一句话:提出 SwapAdvisor,用遗传算法联合优化算子调度、内存分配与 CPU-GPU 交换决策,突破 GPU 显存限制。

针对深层宽神经网络受限于 GPU 显存、难以继续扩大模型规模的问题,论文提出支持 GPU 与 CPU 内存交换的训练方案。已有交换工作仅面向特定模型且性能不佳。SwapAdvisor 将深度学习计算视为数据流图,在该图上联合优化三个维度:算子调度、内存分配以及交换决策。由于搜索空间巨大,作者设计了定制遗传算法进行探索。评估使用多种大模型,结果显示 SwapAdvisor 可训练超过 GPU 显存上限 12 倍的模型,并达到假设无限 GPU 显存基线吞吐的 53%–99%。

问题
GPU 显存有限限制了神经网络模型规模,已有的 GPU-CPU 交换方法仅支持特定模型且性能不理想。
方法
基于数据流图,将算子调度、内存分配和交换决策进行联合优化,并用定制遗传算法搜索巨大空间。
评估
在多种大模型上评估,可训练达 GPU 显存上限 12 倍的模型,吞吐达到无限显存基线的 53%–99%。
原文摘要(Abstract)

It is known that deeper and wider neural networks can achieve better accuracy. But it is difficult to continue the trend to increase model size due to limited GPU memory. One promising solution is to support swapping between GPU and CPU memory. However, existing work on swapping only handle certain models and do not achieve satisfactory performance. Deep learning computation is commonly expressed as a dataflow graph which can be analyzed to improve swapping. We propose SwapAdvisor, which performs joint optimization along 3 dimensions based on a given dataflow graph: operator scheduling, memory allocation, and swap decisions. SwapAdvisor explores the vast search space using a custom-designed genetic algorithm. Evaluations using a variety of large models show that SwapAdvisor can train models up to 12 times the GPU memory limit while achieving 53-99% of the throughput of a hypothetical baseline with infinite GPU memory.

链接与引用

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

BibTeX
@inproceedings{paperbot5469,
  title = {SwapAdvisor},
  author = {Chien-Chin Huang and Gu Jin and Jinyang Li},
  booktitle = {ASPLOS},
  year = {2020},
  doi = {10.1145/3373376.3378530}
}