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

基于多任务目标的预训练编码器剪枝

Pruning Pretrained Encoders with a Multitask Objective

Johns Hopkins University(约翰斯·霍普金斯大学);Microsoft Semantic Machines(微软语义机器)

Patrick Xia, Richard Shin

摘要:

当存在多个期望的下游任务时,预训练的语言模型的大小使得它们具有挑战性并且使用起来昂贵。在这项工作中,我们采用最近的策略,在微调模型修剪,探讨是否有可能修剪一个编码器,使其可以用于多个任务的问题。我们分配一个固定的参数预算和比较修剪一个单一的模型与多任务目标对单任务模型的最佳合奏。我们发现,在两种修剪策略(元素和秩修剪)下,多任务目标的方法在所有任务的平均值上分别优于训练模型,并且在每个单独的任务上都具有竞争力。额外的分析发现,在修剪过程中使用多任务目标也可以是减少低资源任务的模型大小的有效方法。

英文摘要:

The sizes of pretrained language models make them challenging and expensive to use when there are multiple desired downstream tasks. In this work, we adopt recent strategies for model pruning during finetuning to explore the question of whether it is possible to prune a single encoder so that it can be used for multiple tasks. We allocate a fixed parameter budget and compare pruning a single model with a multitask objective against the best ensemble of single-task models. We find that under two pruning strategies (element-wise and rank pruning), the approach with the multitask objective outperforms training models separately when averaged across all tasks, and it is competitive on each individual one. Additional analysis finds that using a multitask objective during pruning can also be an effective method for reducing model sizes for low-resource tasks.

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

↑