arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.13526cs.DS
收藏

峰值内存调度新工具

New Tools for Peak Memory Scheduling

Ce Jin, Manish Purohit, Zoya Svitkina, Erik Vee, Joshua R. Wang

AI总结:

本研究提出主导调度概念及新工具,用于最小化计算图峰值内存,证明其存在性并给出高效计算方法,应用于树和串并联图,证明加权黑鹅卵石游戏强NP完全,并设计固定参数可处理算法。

摘要:

我们研究了计算图的调度问题,以最小化峰值内存消耗,由于大型深度学习模型的流行激增,这一任务日益关键。该问题对应于经典一次性黑鹅卵石游戏的加权版本。我们提出了主导调度的概念,以捕捉为子图找到“最佳”调度的想法,并引入了计算和利用主导调度的新工具。令人惊讶的是,我们表明尽管要求严格,任何计算图都存在主导调度;而且,在温和的技术条件下,只要我们能有效地为特定类别的图找到最优调度,就能有效地计算主导调度。我们将这些新工具应用于分析树和串并联图。我们表明,即使图是外树——或者更简单,南瓜图,一种最简单的串并联图,加权一次性黑鹅卵石游戏也是强NP完全的。在积极方面,我们设计了一个固定参数可处理算法,当以出度为参数时,为串并联图找到主导调度(因此也是峰值内存最小化调度)。该算法对于具有n个节点和最大出度d的串并联图运行时间为$2^{O(d \log d)} \cdot poly(n)$;对于南瓜图,我们可以将对d的依赖改进为$O(2^d \cdot poly(n))$。

英文摘要:

We study scheduling of computation graphs to minimize peak memory consumption, an increasingly critical task due to the surge in popularity of large deep-learning models. This problem corresponds to the weighted version of the classical one-shot black pebbling game. We propose the notion of a dominant schedule to capture the idea of finding the ``best'' schedule for a subgraph and introduce new tools to compute and utilize dominant schedules. Surprisingly, we show that despite the strong requirements, a dominant schedule exists for any computation graph; and, moreover, that it is possible to compute the dominant schedule efficiently whenever we can find optimal schedules efficiently for a particular class of graphs (under mild technical conditions). We apply these new tools to analyze trees and series-parallel graphs. We show that the weighted one-shot black pebbling game is strongly NP-complete even when the graph is an out-tree -- or simpler still, a pumpkin, one of the simplest series-parallel graphs. On the positive side, we design a fixed-parameter tractable algorithm to find a dominant schedule (hence also a peak memory minimizing schedule) for series-parallel graphs when parameterized by the out-degree. This algorithm runs in time $2^{O(d \log d)} \cdot poly(n)$ for series-parallel graphs with $n$ nodes and maximum out-degree $d$; for pumpkins, we can improve the dependence on $d$ to $O(2^d \cdot poly(n))$.

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

↑