arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.09676cs.LGcs.NE
收藏

基于剪枝感知的多任务推理合并算法

Pruning-Aware Merging for Efficient Multitask Inference

ETH Zürich(苏黎世联邦理工学院);Beihang University(北京航空航天大学);Singapore Management University(新加坡管理大学)

Xiaoxi He, Dawei Gao, Zimu Zhou, Yongxin Tong, Lothar Thiele

摘要:

许多移动应用程序需要在资源受限的平台上选择性地执行多个相关的深度学习推理任务。给定一组深度神经网络,每个神经网络针对单个任务进行预训练,期望执行任务的任意组合产生最小的计算成本。由于任务相关性,单独修剪每个网络会产生次优的计算成本。一个有希望的补救措施是将网络合并成一个多任务网络,以消除网络修剪之前跨任务的冗余。然而,修剪由现有的网络合并方案组合的多任务网络不能最小化每个任务组合的计算成本,因为他们不考虑这样的未来修剪。为此,我们从理论上确定的条件,使修剪多任务网络的所有任务组合的计算最小化。在此基础上,我们提出了修剪感知合并(PAM),一个启发式的网络合并计划,以构建一个多任务网络,近似这些条件。合并后的网络,然后准备进一步修剪现有的网络修剪方法。对不同修剪方案、数据集和网络架构的评估表明,PAM在没有网络合并的情况下,计算量比基线减少了4.87倍,在使用最先进的网络合并方案的情况下,计算量比基线减少了2.01倍。

英文摘要:

Many mobile applications demand selective execution of multiple correlated deep learning inference tasks on resource-constrained platforms. Given a set of deep neural networks, each pre-trained for a single task, it is desired that executing arbitrary combinations of tasks yields minimal computation cost. Pruning each network separately yields suboptimal computation cost due to task relatedness. A promising remedy is to merge the networks into a multitask network to eliminate redundancy across tasks before network pruning. However, pruning a multitask network combined by existing network merging schemes cannot minimise the computation cost of every task combination because they do not consider such a future pruning. To this end, we theoretically identify the conditions such that pruning a multitask network minimises the computation of all task combinations. On this basis, we propose Pruning-Aware Merging (PAM), a heuristic network merging scheme to construct a multitask network that approximates these conditions. The merged network is then ready to be further pruned by existing network pruning methods. Evaluations with different pruning schemes, datasets, and network architectures show that PAM achieves up to 4.87x less computation against the baseline without network merging, and up to 2.01x less computation against the baseline with a state-of-the-art network merging scheme.

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

↑