BrainSlug:通过深度优先的并行化透明加速深度学习
BrainSlug: Transparent Acceleration of Deep Learning Through Depth-First Parallelism
摘要:
PyTorch和TensorFlow等神经网络框架是从对象识别到机器翻译等众多机器学习应用的主力。虽然这些框架是通用的并且使用简单,但是深度神经网络中的训练和推理是资源密集型的(能量、计算和内存)。与最近专注于算法增强的工作相比,我们引入了BrainSlug,这是一个框架,通过将默认的逐层处理更改为深度优先方法,从而透明地加速神经网络工作负载,减少计算所需的数据量,从而提高可用硬件缓存的性能。BrainSlug在CPU上实现了高达41.1%的性能提升,在GPU上实现了35.7%的性能提升。这些优化对用户来说是零成本的,因为它们不需要改变硬件,只需要对软件进行微小的调整。
英文摘要:
Neural network frameworks such as PyTorch and TensorFlow are the workhorses of numerous machine learning applications ranging from object recognition to machine translation. While these frameworks are versatile and straightforward to use, the training of and inference in deep neural networks is resource (energy, compute, and memory) intensive. In contrast to recent works focusing on algorithmic enhancements, we introduce BrainSlug, a framework that transparently accelerates neural network workloads by changing the default layer-by-layer processing to a depth-first approach, reducing the amount of data required by the computations and thus improving the performance of the available hardware caches. BrainSlug achieves performance improvements of up to 41.1% on CPUs and 35.7% on GPUs. These optimizations come at zero cost to the user as they do not require hardware changes and only need tiny adjustments to the software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。