Recently, adaptive inference is gaining increasing attention due to its high computational efficiency. Different from existing works, which mainly exploit architecture redundancy for adaptive network design, in this paper, we focus on spatial redundancy of input samples, and propose a novel Resolution Adaptive Network (RANet). Our motivation is that low-resolution representations can be sufficient for classifying "easy" samples containing canonical objects, while high-resolution features are curial for recognizing some "hard" ones. In RANet, input images are first routed to a lightweight sub-network that efficiently extracts coarse feature maps, and samples with high confident predictions will exit early from the sub-network. The high-resolution paths are only activated for those "hard" samples whose previous predictions are unreliable. By adaptively processing the features in varying resolutions, the proposed RANet can significantly improve its computational efficiency. Experiments on three classification benchmark tasks (CIFAR-10, CIFAR-100 and ImageNet) demonstrate the effectiveness of the proposed model in both anytime prediction setting and budgeted batch classification setting.
翻译:最近,适应性推论因其高计算效率而日益受到越来越多的关注。与现有工程不同,这些工程主要利用建筑冗余进行适应性网络设计,在本文件中,我们侧重于输入样本的空间冗余,并提出一个新的分辨率适应网络(RANet ) 。 我们的动机是,低分辨率的表示方式可以足以对含有罐头物体的“容易”样品进行分类,而高分辨率的特征对于识别某些“硬”样品来说是难得的。在RANet中,输入图像首先被引导到一个轻量的子网络,该小网络能够有效地提取粗糙的地物图,而具有高度自信预测的样品将尽早从子网络中退出。高分辨率路径只为那些先前预测不可靠的“硬”样品启动。通过适应性处理不同决议中的特征,拟议的RANet可以大大提高其计算效率。关于三个分类基准任务(CIFAR-10、CIFAR-100和图像网)的实验表明拟议的模型在及时预测设置和编入预算的批次分类设置方面的有效性。