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

自然语言任务上乘法规模缩放的组合计算

Combining Compressions for Multiplicative Size Scaling on Natural Language Tasks

Apple(苹果公司);Cornell Tech(康奈尔大学科技校区);Massachusetts Institute of Technology(麻省理工学院)

Rajiv Movva, Jinhao Lei, Shayne Longpre, Ajay Gupta, Chris DuBois

摘要:

量化、知识蒸馏和幅度修剪是自然语言处理中神经网络压缩的最流行方法。独立地,这些方法减少了模型大小,可以加速推理,但它们的相对效益和组合的相互作用还没有得到严格的研究。对于这些技术的八个可能子集中的每一个,我们比较了六个BERT架构大小和八个GLUE任务的准确性与模型大小的权衡。我们发现,量化和蒸馏始终提供更大的好处比修剪。令人惊讶的是,除了修剪和量化之外,同时使用多种方法很少会产生收益递减。相反,我们观察到模型大小的互补和超乘法减少。我们的工作定量地表明,结合压缩方法可以协同减少模型大小,从业者应该优先考虑(1)量化,(2)知识蒸馏,(3)修剪,以最大限度地提高精度与模型大小的权衡。

英文摘要:

Quantization, knowledge distillation, and magnitude pruning are among the most popular methods for neural network compression in NLP. Independently, these methods reduce model size and can accelerate inference, but their relative benefit and combinatorial interactions have not been rigorously studied. For each of the eight possible subsets of these techniques, we compare accuracy vs. model size tradeoffs across six BERT architecture sizes and eight GLUE tasks. We find that quantization and distillation consistently provide greater benefit than pruning. Surprisingly, except for the pair of pruning and quantization, using multiple methods together rarely yields diminishing returns. Instead, we observe complementary and super-multiplicative reductions to model size. Our work quantitatively demonstrates that combining compression methods can synergistically reduce model size, and that practitioners should prioritize (1) quantization, (2) knowledge distillation, and (3) pruning to maximize accuracy vs. model size tradeoffs.

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

↑