arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.01163cs.LGstat.ML
收藏

SmartDeal:重新建模深度网络权重以实现高效推理和训练

SmartDeal: Re-Modeling Deep Network Weights for Efficient Inference and Training

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Rice University(莱斯大学)

Xiaohan Chen, Yang Zhao, Yue Wang, Pengfei Xu, Haoran You, Chaojian Li, Yonggan Fu, Yingyan Lin, Zhangyang Wang

摘要:

深度神经网络(DNN)的破纪录性能伴随着大量的参数化,导致外部动态随机存取存储器(DRAM)用于存储。DRAM访问的高能耗使得在资源受限的设备上部署DNN变得非常重要,这就要求最大限度地减少重量和数据移动,以提高能效。我们提出了SmartDeal(SD),这是一个算法框架,可以用更高成本的内存存储/访问来换取更低成本的计算,以便积极提高推理和训练的存储和能源效率。SD的核心是一种具有结构约束的新颖权重分解,精心制作以释放硬件效率潜力。具体来说,我们将每个权重张量分解为小基矩阵和大结构稀疏系数矩阵的乘积,该系数矩阵的非零被量化为2的幂。由此产生的稀疏和量化的DNN大大减少了数据移动和权重存储的能量,由于稀疏位操作和成本有利的计算,恢复原始权重的开销最小。除了推论之外,我们还采取了另一个飞跃,接受节能培训,引入创新技术来解决培训中出现的独特障碍,同时保留可持续发展结构。我们还设计了一个专用的硬件加速器,充分利用SD结构,以提高真正的能源效率和延迟。我们在不同的设置中对多个任务,模型和数据集进行实验。结果表明:1)应用于推理,SD实现了高达2.44倍的能源效率,通过实际硬件实现评估; 2)应用于训练,SD导致存储和训练能量减少10.56倍和4.48倍,与最先进的训练基线相比,准确性损失可以忽略不计。我们的源代码可以在网上找到。

英文摘要:

The record-breaking performance of deep neural networks (DNNs) comes with heavy parameterization, leading to external dynamic random-access memory (DRAM) for storage. The prohibitive energy of DRAM accesses makes it non-trivial to deploy DNN on resource-constrained devices, calling for minimizing the weight and data movements to improve the energy efficiency. We present SmartDeal (SD), an algorithm framework to trade higher-cost memory storage/access for lower-cost computation, in order to aggressively boost the storage and energy efficiency, for both inference and training. The core of SD is a novel weight decomposition with structural constraints, carefully crafted to unleash the hardware efficiency potential. Specifically, we decompose each weight tensor as the product of a small basis matrix and a large structurally sparse coefficient matrix whose non-zeros are quantized to power-of-2. The resulting sparse and quantized DNNs enjoy greatly reduced energy for data movement and weight storage, incurring minimal overhead to recover the original weights thanks to the sparse bit-operations and cost-favorable computations. Beyond inference, we take another leap to embrace energy-efficient training, introducing innovative techniques to address the unique roadblocks arising in training while preserving the SD structures. We also design a dedicated hardware accelerator to fully utilize the SD structure to improve the real energy efficiency and latency. We conduct experiments on both multiple tasks, models and datasets in different settings. Results show that: 1) applied to inference, SD achieves up to 2.44x energy efficiency as evaluated via real hardware implementations; 2) applied to training, SD leads to 10.56x and 4.48x reduction in the storage and training energy, with negligible accuracy loss compared to state-of-the-art training baselines. Our source codes are available online.

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

↑