资源有效推理的双嵌套网络
Doubly Nested Network for Resource-Efficient Inference
摘要:
我们提出了双嵌套网络(DNNet),其中所有神经元都代表自己的子模型,解决相同的任务。每个子模型都是分层和通道嵌套的。虽然逐层嵌套子模型是直接的,具有\cite{xie2015holistically}中提出的深度监督,但据我们所知,文献中尚未探索过通道嵌套。逐层嵌套是不平凡的,因为连续层之间的神经元都彼此连接。在这项工作中,我们介绍了一种技术来解决这个问题,通过排序通道拓扑和相应的连接神经元。为此,使用通道因果卷积。切片双重嵌套网络给出了一个工作子网络。我们提出的具有切片操作的网络结构最值得注意的应用是资源有效的推理。在测试时,诸如可用于运行预测算法的时间和存储器之类的计算资源可以在设备和应用之间显著变化。在给定预算约束的情况下,我们可以相应地对网络进行切片,并在预算范围内使用子模型进行推理,不需要额外的计算,如部署后的训练或微调。我们证明了我们的方法的有效性,在几个实际的情况下,有效地利用可用资源。
英文摘要:
We propose doubly nested network(DNNet) where all neurons represent their own sub-models that solve the same task. Every sub-model is nested both layer-wise and channel-wise. While nesting sub-models layer-wise is straight-forward with deep-supervision as proposed in \cite{xie2015holistically}, channel-wise nesting has not been explored in the literature to our best knowledge. Channel-wise nesting is non-trivial as neurons between consecutive layers are all connected to each other. In this work, we introduce a technique to solve this problem by sorting channels topologically and connecting neurons accordingly. For the purpose, channel-causal convolutions are used. Slicing doubly nested network gives a working sub-network. The most notable application of our proposed network structure with slicing operation is resource-efficient inference. At test time, computing resources such as time and memory available for running the prediction algorithm can significantly vary across devices and applications. Given a budget constraint, we can slice the network accordingly and use a sub-model for inference within budget, requiring no additional computation such as training or fine-tuning after deployment. We demonstrate the effectiveness of our approach in several practical scenarios of utilizing available resource efficiently.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。