arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.09480cs.LGcs.AIcs.CL
收藏

多出口DNN中的无监督早期退出

Unsupervised Early Exit in DNNs with Multiple Exits

IIT Bombay(印度理工学院孟买分校)

Hari Narayan N U, Manjesh K. Hanawal, Avinash Bhardwaj

摘要:

深度神经网络(DNN)通常被设计为顺序级联的可微分块/层,其中预测模块仅连接到其最后一层。DNN可以在主干上的多个点上附加预测模块,其中推理可以在中间阶段停止,而无需通过所有模块。最后一个出口点可以提供更好的预测误差,但也涉及更多的计算资源和延迟。一个在预测误差和成本方面都是“最佳”的退出点是可取的。最佳退出点可能取决于任务的潜在分布,并且可能会从一种任务类型更改为另一种任务类型。在神经推理期间,实例的基础事实可能不可用,并且无法估计每个出口点处的出错率。因此,人们面临着在无监督环境中选择最佳出口的问题。先前的工作在离线监督设置中解决了这个问题,假设有足够的标记数据可用于估计每个出口点处的出错率并调整参数以获得更好的准确度。然而,预先训练的DNN通常部署在新的领域中,对于这些领域,可能无法获得大量的地面实况。我们将退出选择问题建模为一个无监督的在线学习问题,并使用强盗理论来确定最佳退出点。具体来说,我们专注于弹性BERT,一个预先训练的多出口DNN,以证明它“几乎”满足强优势(SD)属性,使得在不知道地面真实标签的情况下学习在线设置中的最佳出口成为可能。我们开发了基于置信上限(UCB)的算法UEE-UCB,可证明实现了SD属性下的次线性后悔。因此,我们的方法提供了一种自适应学习多出口DNN中特定于域的最佳出口点的方法。我们在IMDb和Yelp数据集上实证验证了我们的算法。

英文摘要:

Deep Neural Networks (DNNs) are generally designed as sequentially cascaded differentiable blocks/layers with a prediction module connected only to its last layer. DNNs can be attached with prediction modules at multiple points along the backbone where inference can stop at an intermediary stage without passing through all the modules. The last exit point may offer a better prediction error but also involves more computational resources and latency. An exit point that is `optimal' in terms of both prediction error and cost is desirable. The optimal exit point may depend on the latent distribution of the tasks and may change from one task type to another. During neural inference, the ground truth of instances may not be available and error rates at each exit point cannot be estimated. Hence one is faced with the problem of selecting the optimal exit in an unsupervised setting. Prior works tackled this problem in an offline supervised setting assuming that enough labeled data is available to estimate the error rate at each exit point and tune the parameters for better accuracy. However, pre-trained DNNs are often deployed in new domains for which a large amount of ground truth may not be available. We model the problem of exit selection as an unsupervised online learning problem and use bandit theory to identify the optimal exit point. Specifically, we focus on Elastic BERT, a pre-trained multi-exit DNN to demonstrate that it `nearly' satisfies the Strong Dominance (SD) property making it possible to learn the optimal exit in an online setup without knowing the ground truth labels. We develop upper confidence bound (UCB) based algorithm named UEE-UCB that provably achieves sub-linear regret under the SD property. Thus our method provides a means to adaptively learn domain-specific optimal exit points in multi-exit DNNs. We empirically validate our algorithm on IMDb and Yelp datasets.

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

↑