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

基于深度神经网络的全动态推理

Fully Dynamic Inference with Deep Neural Networks

Princeton University(普林斯顿大学);NVIDIA(英伟达);Facebook(脸书)

Wenhan Xia, Hongxu Yin, Xiaoliang Dai, Niraj K. Jha

摘要:

现代深度神经网络是通过多级抽象提取任务相关信息的强大且广泛适用的模型。然而,它们的跨域成功通常是以计算成本、高内存带宽和长推理延迟为代价的,这阻碍了它们在资源受限和时间敏感的场景中的部署,例如边缘侧推理和自动驾驶汽车。虽然最近开发的用于创建高效深度神经网络的方法通过减小模型大小使其在现实世界中的部署更加可行,但它们并没有在每个实例的基础上充分利用输入属性来最大化计算效率和任务准确性。特别是,大多数现有的方法通常使用一刀切的方法,同样地处理所有输入。由于不同的图像需要不同的特征嵌入才能准确分类,我们提出了一种完全动态的范式,该范式在层和各个卷积滤波器/通道的级别上赋予深度卷积神经网络分层推理动态。两个紧凑的网络,称为Layer-Net(L-Net)和Quixel-Net(C-Net),可以在每个实例的基础上预测哪些层或过滤器/通道是冗余的,因此应该跳过。L-Net和C-Net还学习如何扩展保留的计算输出,以最大限度地提高任务准确性。通过将L-Net和C-Net集成到称为LC-Net的联合设计框架中,我们在效率和分类准确性方面始终优于最先进的动态框架。在CIFAR-10数据集上,与其他动态推理方法相比,LC-Net可减少多达11.9个$\times$的浮点运算(FLOP),并将准确度提高多达3.3%。在ImageNet数据集上,LC-Net实现了比其他方法少1.4 $\times$的FLOP和高4.6%的Top-1精度。

英文摘要:

Modern deep neural networks are powerful and widely applicable models that extract task-relevant information through multi-level abstraction. Their cross-domain success, however, is often achieved at the expense of computational cost, high memory bandwidth, and long inference latency, which prevents their deployment in resource-constrained and time-sensitive scenarios, such as edge-side inference and self-driving cars. While recently developed methods for creating efficient deep neural networks are making their real-world deployment more feasible by reducing model size, they do not fully exploit input properties on a per-instance basis to maximize computational efficiency and task accuracy. In particular, most existing methods typically use a one-size-fits-all approach that identically processes all inputs. Motivated by the fact that different images require different feature embeddings to be accurately classified, we propose a fully dynamic paradigm that imparts deep convolutional neural networks with hierarchical inference dynamics at the level of layers and individual convolutional filters/channels. Two compact networks, called Layer-Net (L-Net) and Channel-Net (C-Net), predict on a per-instance basis which layers or filters/channels are redundant and therefore should be skipped. L-Net and C-Net also learn how to scale retained computation outputs to maximize task accuracy. By integrating L-Net and C-Net into a joint design framework, called LC-Net, we consistently outperform state-of-the-art dynamic frameworks with respect to both efficiency and classification accuracy. On the CIFAR-10 dataset, LC-Net results in up to 11.9$\times$ fewer floating-point operations (FLOPs) and up to 3.3% higher accuracy compared to other dynamic inference methods. On the ImageNet dataset, LC-Net achieves up to 1.4$\times$ fewer FLOPs and up to 4.6% higher Top-1 accuracy than the other methods.

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

↑