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

面向推理高效的深度包围学习

Towards Inference Efficient Deep Ensemble Learning

Microsoft Research Asia(微软亚洲研究院)

Ziyue Li, Kan Ren, Yifan Yang, Xinyang Jiang, Yuqing Yang, Dongsheng Li

摘要:

包围方法可以提供令人惊讶的性能增益,但也带来显著更高的计算成本,例如,在大规模集成任务中可达2048X。然而,我们发现,在合奏方法的大部分计算是冗余的。例如,CIFAR-100数据集中超过77%的样本可以只用一个ResNet-18模型正确分类,这表明只有大约23%的样本需要额外的模型集合。为此,我们提出了一种推理高效集成学习方法,同时优化集成学习的有效性和效率。更具体地说,我们把模型的集成看作是一个顺序推理过程,并学习最佳的停止事件,用于对特定样本的推理。在推理过程的每一个时间步,一个公共选择器判断当前的集成是否已经达到集成有效性并停止进一步的推理,否则过滤这个具有挑战性的样本,以便后续模型进行更强大的集成。该方法通过对基模型和公共选择器的联合优化,实现了对不同硬度样本的集成推理动态调整,实现了集成推理的有序推进和计算量的节省.在真实数据集上使用不同主干进行的实验表明,该方法可以在保持与完整集成相当的性能的同时,降低高达56%的推理成本,实现比其他基线更好的集成效用。代码和补充材料可在www.example.com上获得。

英文摘要:

Ensemble methods can deliver surprising performance gains but also bring significantly higher computational costs, e.g., can be up to 2048X in large-scale ensemble tasks. However, we found that the majority of computations in ensemble methods are redundant. For instance, over 77% of samples in CIFAR-100 dataset can be correctly classified with only a single ResNet-18 model, which indicates that only around 23% of the samples need an ensemble of extra models. To this end, we propose an inference efficient ensemble learning method, to simultaneously optimize for effectiveness and efficiency in ensemble learning. More specifically, we regard ensemble of models as a sequential inference process and learn the optimal halting event for inference on a specific sample. At each timestep of the inference process, a common selector judges if the current ensemble has reached ensemble effectiveness and halt further inference, otherwise filters this challenging sample for the subsequent models to conduct more powerful ensemble. Both the base models and common selector are jointly optimized to dynamically adjust ensemble inference for different samples with various hardness, through the novel optimization goals including sequential ensemble boosting and computation saving. The experiments with different backbones on real-world datasets illustrate our method can bring up to 56\% inference cost reduction while maintaining comparable performance to full ensemble, achieving significantly better ensemble utility than other baselines. Code and supplemental materials are available at https://seqml.github.io/irene.

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

↑