高效存储器访问的最优调度CNN卷积
Optimally Scheduling CNN Convolutions for Efficient Memory Access
摘要:
用于卷积网络的嵌入式推理引擎必须在内存带宽和缓冲区大小方面非常节省,以满足功耗和成本约束。我们提出了一个分析内存带宽模型的循环嵌套优化目标体系结构与应用程序管理的缓冲区。我们应用这个模型来优化CNN卷积循环嵌套。我们表明,我们的模型比以前公布的模型更准确。使用这个模型,我们可以确定非平凡的最低通信带宽的限制,导致严格的本地缓冲的时间表。我们表明,最佳的时间表是可实施的,在实践中,我们的模型是准确的,相对于一个真正的实施;此外,我们介绍了一种加速器架构,命名为硬件卷积块(HWC),它实现了最佳的时间表,我们表明,它实现了高达14倍的内存带宽减少相比,以前公布的加速器具有类似的内存接口,但是执行非最优调度。
英文摘要:
Embedded inference engines for convolutional networks must be parsimonious in memory bandwidth and buffer sizing to meet power and cost constraints. We present an analytical memory bandwidth model for loop-nest optimization targeting architectures with application managed buffers. We applied this model to optimize the CNN convolution loop-nest. We show that our model is more accurate than previously published models. Using this model we can identify non-trivial dataflow schedules that result in lowest communication bandwidth given tight local buffering constraints. We show that optimal dataflow schedules are implementable in practice and that our model is accurate with respect to a real implementation; moreover, we introduce an accelerator architecture, named Hardware Convolution Block (HWC), which implements the optimal schedules, and we show it achieves up to 14x memory bandwidth reduction compared to a previously published accelerator with a similar memory interface, but implementing a non-optimal schedule.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。