arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.01689cs.CV
收藏

“不稳定”CNN加速器的培训--以FPGA为例

Training for 'Unstable' CNN Accelerator:A Case Study on FPGA

KouZi Xing

摘要:

随着卷积神经网络(CNN)的发展,CNN加速器在主流计算系统中得到了越来越多的开发和部署。为了利用CNN加速器,CNN模型首先在多核CPU和GPU上通过Caffe,Pytorch和Tensorflow等离线训练系统进行训练,然后编译到目标加速器中。虽然两步过程似乎是自然的,并已被广泛应用,但它假设加速器的行为可以在CPU和GPU上完全建模。这并不成立,并且当电路在超频或受诸如易故障航空航天的环境影响时以“不稳定”模式工作时,CNN加速器的行为是不确定的。加速器的确切行为取决于芯片制造和工作环境或状态。在这种情况下,将常规的离线训练结果直接应用于加速器可能导致相当大的精度损失。为了解决这个问题,我们建议对“不稳定”的CNN加速器进行训练,并在同一框架中将“不确定的行为”与数据一起学习。基本上,它从离线训练的模型开始,然后通过额外的加速器特定的训练将不确定的电路行为集成到CNN模型中。微调训练使CNN模型对电路不确定性不太敏感。我们将设计方法应用于超频的CNN加速器和有故障的加速器。根据我们在ImageNet的一个子集上的实验,当CNN加速器处于极端超频时,加速器特定的训练可以将前5名的准确率平均提高3.4%和2.4%。当加速器暴露在故障环境中时,前5个精度在最严重的故障注入下平均提高了6.8%和4.28%。

英文摘要:

With the great advancements of convolution neural networks(CNN), CNN accelerators are increasingly developed and deployed in the major computing systems.To make use of the CNN accelerators, CNN models are trained via the off-line training systems such as Caffe, Pytorch and Tensorflow on multi-core CPUs and GPUs first and then compiled to the target accelerators. Although the two-step process seems to be natural and has been widely applied, it assumes that the accelerators' behavior can be fully modeled on CPUs and GPUs. This does not hold true and the behavior of the CNN accelerators is un-deterministic when the circuit works at 'unstable' mode when it is overclocked or is affected by the environment like fault-prone aerospace. The exact behaviors of the accelerators are determined by both the chip fabrication and the working environment or status. In this case, applying the conventional off-line training result to the accelerators directly may lead to considerable accuracy loss. To address this problem, we propose to train for the 'unstable' CNN accelerator and have the 'un-determined behavior' learned together with the data in the same framework. Basically, it starts from the off-line trained model and then integrates the uncertain circuit behaviors into the CNN models through additional accelerator-specific training. The fine-tuned training makes the CNN models less sensitive to the circuit uncertainty. We apply the design method to both an overclocked CNN accelerator and a faulty accelerator. According to our experiments on a subset of ImageNet, the accelerator-specific training can improve the top 5 accuracy up to 3.4% and 2.4% on average when the CNN accelerator is at extreme overclocking. When the accelerator is exposed to a faulty environment, the top 5 accuracy improves up to 6.8% and 4.28% on average under the most severe fault injection.

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

↑