将SideNet添加到您的MainNet
Add a SideNet to your MainNet
摘要:
随着深度神经网络的性能和普及程度的提高,其计算成本也在增加。有许多有效的技术可以减少网络的计算足迹(量化,修剪,知识蒸馏),但这些导致模型的计算成本是相同的,无论其输入。我们人类的反应时间随着我们执行任务的复杂性而变化:较容易的任务(例如区分狗和船)比较难的任务(例如区分两种相似的狗)执行得快得多。在这种观察的推动下,我们开发了一种自适应网络复杂性的方法,方法是将一个小的分类层(我们称之为SideNet)附加到一个大型的预训练网络(我们称之为MainNet)上。给定一个输入,如果通过softmax获得的置信水平超过用户确定的阈值,则SideNet返回一个分类,并且如果其置信度太低,则仅将其传递到大型MainNet进行进一步处理。这使我们能够灵活地权衡网络的性能与计算成本。实验结果表明,将简单的单隐藏层感知器SideNets添加到预训练的ResNet和BERT MainNets上,可以大幅降低计算量,同时最大限度地降低图像和文本分类任务的性能。我们还强调了我们的方法的其他三个理想特性,即通过SideNets获得的分类是校准的,与其他计算减少技术互补,并且它们可以轻松探索计算精度空间。
英文摘要:
As the performance and popularity of deep neural networks has increased, so too has their computational cost. There are many effective techniques for reducing a network's computational footprint (quantisation, pruning, knowledge distillation), but these lead to models whose computational cost is the same regardless of their input. Our human reaction times vary with the complexity of the tasks we perform: easier tasks (e.g. telling apart dogs from boat) are executed much faster than harder ones (e.g. telling apart two similar looking breeds of dogs). Driven by this observation, we develop a method for adaptive network complexity by attaching a small classification layer, which we call SideNet, to a large pretrained network, which we call MainNet. Given an input, the SideNet returns a classification if its confidence level, obtained via softmax, surpasses a user determined threshold, and only passes it along to the large MainNet for further processing if its confidence is too low. This allows us to flexibly trade off the network's performance with its computational cost. Experimental results show that simple single hidden layer perceptron SideNets added onto pretrained ResNet and BERT MainNets allow for substantial decreases in compute with minimal drops in performance on image and text classification tasks. We also highlight three other desirable properties of our method, namely that the classifications obtained by SideNets are calibrated, complementary to other compute reduction techniques, and that they enable the easy exploration of compute accuracy space.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。