arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.16392cs.CVcs.AI
收藏

具有可跳过子路径的自适应深度网络

Adaptive Depth Networks with Skippable Sub-Paths

Incheon National University(仁川国立大学)

Woochul Kang, Hyungseop Lee

AI总结:

本文提出一种自适应深度网络方法,将残差阶段拆分为可跳过子路径并通过自蒸馏训练,从而在单一网络中组合出不同精度-效率权衡的子网络,以极低训练成本实现灵活推理。

摘要:

可预测地自适应调整网络深度是控制推理延迟并满足各种设备资源条件的有效方法。然而,以往的自适应深度网络并未就为何跳过以及跳过哪些层提供通用原则和形式化解释,因此其方法难以推广,且需要冗长复杂的训练步骤。本文提出一种实用的自适应深度网络方法,能够以极少的训练代价适用于各种网络。在我们的方法中,每个层次化残差阶段被划分为两条子路径,并通过简单的自蒸馏策略训练它们获得不同的性质。第一条子路径对于层次化特征学习至关重要,第二条子路径则被训练用于细化已学习的特征,并在被跳过时最小化性能下降。与以往的自适应网络不同,我们的方法不以迭代方式训练每个目标子网络。然而,在测试时,我们可以以组合方式连接这些子路径,从单一网络中选择具有不同精度-效率权衡的子网络。我们提供了形式化论证,说明所提出的训练方法为何能在减少整体预测误差的同时最小化跳过子路径的影响。我们通过卷积神经网络和Transformer展示了该方法的通用性和有效性。

英文摘要:

Predictable adaptation of network depths can be an effective way to control inference latency and meet the resource condition of various devices. However, previous adaptive depth networks do not provide general principles and a formal explanation on why and which layers can be skipped, and, hence, their approaches are hard to be generalized and require long and complex training steps. In this paper, we present a practical approach to adaptive depth networks that is applicable to various networks with minimal training effort. In our approach, every hierarchical residual stage is divided into two sub-paths, and they are trained to acquire different properties through a simple self-distillation strategy. While the first sub-path is essential for hierarchical feature learning, the second one is trained to refine the learned features and minimize performance degradation if it is skipped. Unlike prior adaptive networks, our approach does not train every target sub-network in an iterative manner. At test time, however, we can connect these sub-paths in a combinatorial manner to select sub-networks of various accuracy-efficiency trade-offs from a single network. We provide a formal rationale for why the proposed training method can reduce overall prediction errors while minimizing the impact of skipping sub-paths. We demonstrate the generality and effectiveness of our approach with convolutional neural networks and transformers.

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

↑