浅深网络:理解和减轻网络过度思考
Shallow-Deep Networks: Understanding and Mitigating Network Overthinking
摘要:
我们描述了深度神经网络(DNN)的一个普遍弱点-过度思考-当DNN在其最后一层之前可以达到正确的预测时,就会发生这种情况。过度思考是计算上的浪费,而且当最后一层正确的预测变成错误分类时,它也可能是破坏性的。理解过度思考需要研究每个预测在DNN的前向传递过程中如何演变,这通常是不透明的。对于预测透明度,我们提出了浅深网络(SDN),这是对现有DNN的通用修改,引入了内部分类器。我们将SDN应用于四个现代架构,在三个图像分类任务上进行训练,以表征过度思考问题。我们表明,SDNs可以通过基于信心的早期退出来减轻过度思考的浪费效应,这将平均推理成本降低了50%以上,并保持了准确性。我们还发现,破坏性的影响发生在自然输入的错误分类的50%,它可以诱导,相反,最近的后门攻击。为了减轻这种影响,我们提出了一个新的混淆度量来量化可能导致错误分类的内部分歧。
英文摘要:
We characterize a prevalent weakness of deep neural networks (DNNs)---overthinking---which occurs when a DNN can reach correct predictions before its final layer. Overthinking is computationally wasteful, and it can also be destructive when, by the final layer, a correct prediction changes into a misclassification. Understanding overthinking requires studying how each prediction evolves during a DNN's forward pass, which conventionally is opaque. For prediction transparency, we propose the Shallow-Deep Network (SDN), a generic modification to off-the-shelf DNNs that introduces internal classifiers. We apply SDN to four modern architectures, trained on three image classification tasks, to characterize the overthinking problem. We show that SDNs can mitigate the wasteful effect of overthinking with confidence-based early exits, which reduce the average inference cost by more than 50% and preserve the accuracy. We also find that the destructive effect occurs for 50% of misclassifications on natural inputs and that it can be induced, adversarially, with a recent backdooring attack. To mitigate this effect, we propose a new confusion metric to quantify the internal disagreements that will likely lead to misclassifications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。