arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.01898cs.LGcs.AR
收藏

CoSA:空间加速器的约束优化调度

CoSA: Scheduling by Constrained Optimization for Spatial Accelerators

UC Berkeley(加州大学伯克利分校);Facebook(脸书)

Qijing Huang, Minwoo Kang, Grace Dinh, Thomas Norell, Aravind Kalaiah, James Demmel, John Wawrzynek, Yakun Sophia Shao

摘要:

深度神经网络(DNN)的最新进展已经导致了专用DNN加速器的积极发展,其中许多加速器具有大量空间布局的处理元件,以及多级存储层次结构和灵活的互连。虽然DNN加速器可以利用数据重用并实现高峰值吞吐量,但它们也向程序员暴露了大量的运行时参数,这些程序员需要显式地管理如何在空间和时间上调度计算。事实上,不同的调度选择可能导致性能和效率的广泛变化,从而激发了对快速高效的搜索策略的需求,以导航广阔的调度空间。为了应对这一挑战,我们提出了CoSA,这是一种基于约束优化的方法,用于调度DNN加速器。相对于现有的方法,要么依赖于设计师的设计或迭代法导航的搜索空间,CoSA表示调度决策作为一个约束优化问题,可以确定性地解决使用数学优化技术。具体而言,CoSA利用DNN操作符和硬件中的可扩展性,将DNN调度空间公式化为具有算法和架构约束的混合整数规划(MIP)问题,可以解决该问题以一次性自动生成高效调度。我们证明,在广泛的DNN网络中,CoSA生成的调度显着优于最先进的方法,几何平均值高达2.5倍,同时将求解时间缩短了90倍。

英文摘要:

Recent advances in Deep Neural Networks (DNNs) have led to active development of specialized DNN accelerators, many of which feature a large number of processing elements laid out spatially, together with a multi-level memory hierarchy and flexible interconnect. While DNN accelerators can take advantage of data reuse and achieve high peak throughput, they also expose a large number of runtime parameters to the programmers who need to explicitly manage how computation is scheduled both spatially and temporally. In fact, different scheduling choices can lead to wide variations in performance and efficiency, motivating the need for a fast and efficient search strategy to navigate the vast scheduling space. To address this challenge, we present CoSA, a constrained-optimization-based approach for scheduling DNN accelerators. As opposed to existing approaches that either rely on designers' heuristics or iterative methods to navigate the search space, CoSA expresses scheduling decisions as a constrained-optimization problem that can be deterministically solved using mathematical optimization techniques. Specifically, CoSA leverages the regularities in DNN operators and hardware to formulate the DNN scheduling space into a mixed-integer programming (MIP) problem with algorithmic and architectural constraints, which can be solved to automatically generate a highly efficient schedule in one shot. We demonstrate that CoSA-generated schedules significantly outperform state-of-the-art approaches by a geometric mean of up to 2.5x across a wide range of DNN networks while improving the time-to-solution by 90x.

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

↑