arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03088cs.ARcs.LG
收藏

HASS:面向数据流DNN加速器的硬件感知稀疏性搜索

HASS: Hardware-Aware Sparsity Search for Dataflow DNN Accelerator

Imperial College London(伦敦帝国学院);University of Cambridge(剑桥大学)

Zhewen Yu, Sudarshan Sreeram, Krish Agrawal, Junyi Wu, Alexander Montgomerie-Corcoran, Cheng Zhang, Jianyi Cheng, Christos-Savvas Bouganis, Yiren Zhao

AI总结:

本文提出硬件感知稀疏性搜索(HASS),通过软硬件协同优化为数据流加速器利用非结构化权重和激活稀疏性,相比现有设计实现1.3至4.2倍效率提升。

摘要:

深度神经网络(DNNs)擅长从图像、音频和文本等原始数据中学习层次化表示。为了以高性能和高能效计算这些DNN模型,通常将其部署在定制硬件加速器上。在各种加速器设计中,数据流架构因其层流水线结构和数据并行性的可扩展性而展现出优异性能。利用权重和激活稀疏性可进一步提升内存存储和计算效率。然而,现有方法侧重于非数据流加速器的稀疏性利用,由于引入了庞大的硬件设计空间,无法直接应用于数据流加速器。因此,这可能错失寻找稀疏特征与硬件设计最佳组合的机会。本文提出一种新方法,通过软硬件协同优化,为数据流加速器利用非结构化权重和激活稀疏性。我们提出硬件感知稀疏性搜索(HASS),系统地为数据流加速器确定高效的稀疏解决方案。在一组模型上,与现有的非数据流或非硬件感知稀疏设计相比,我们实现了1.3倍至4.2倍的效率提升。特别是,MobileNetV3的吞吐量可优化至每秒4895张图像。HASS已开源:https://github.com/Yu-Zhewen/HASS

英文摘要:

Deep Neural Networks (DNNs) excel in learning hierarchical representations from raw data, such as images, audio, and text. To compute these DNN models with high performance and energy efficiency, these models are usually deployed onto customized hardware accelerators. Among various accelerator designs, dataflow architecture has shown promising performance due to its layer-pipelined structure and its scalability in data parallelism. Exploiting weights and activations sparsity can further enhance memory storage and computation efficiency. However, existing approaches focus on exploiting sparsity in non-dataflow accelerators, which cannot be applied onto dataflow accelerators because of the large hardware design space introduced. As such, this could miss opportunities to find an optimal combination of sparsity features and hardware designs. In this paper, we propose a novel approach to exploit unstructured weights and activations sparsity for dataflow accelerators, using software and hardware co-optimization. We propose a Hardware-Aware Sparsity Search (HASS) to systematically determine an efficient sparsity solution for dataflow accelerators. Over a set of models, we achieve an efficiency improvement ranging from 1.3$\times$ to 4.2$\times$ compared to existing sparse designs, which are either non-dataflow or non-hardware-aware. Particularly, the throughput of MobileNetV3 can be optimized to 4895 images per second. HASS is open-source: \url{https://github.com/Yu-Zhewen/HASS}

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

↑