arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2208.00483cs.CLcs.LG
收藏

建立效率管道:Transformers效率算子的交换性和累积性

Building an Efficiency Pipeline: Commutativity and Cumulativeness of Efficiency Operators for Transformers

University of Waterloo(滑铁卢大学)

Ji Xin, Raphael Tang, Zhiying Jiang, Yaoliang Yu, Jimmy Lin

摘要:

自然语言处理(NLP)任务存在各种各样的有效方法,例如修剪、蒸馏、动态推理、量化等。我们可以将有效方法视为应用于模型的算子。自然地,我们可以构建多种效率方法的流水线,即,对模型顺序应用多个运算符。本文研究了这一思想的可拓性,更重要的是研究了有效算子的交换性和累积性。我们做了两个有趣的观察:(1)效率算子是可交换的-管道中效率方法的顺序对最终结果的影响很小;(2)效率算子也是累积的-组合几个效率方法的最终结果可以通过组合单个方法的结果来估计。这些观察加深了我们对效率算子的理解,并为其实际应用提供了有用的指导。

英文摘要:

There exists a wide variety of efficiency methods for natural language processing (NLP) tasks, such as pruning, distillation, dynamic inference, quantization, etc. We can consider an efficiency method as an operator applied on a model. Naturally, we may construct a pipeline of multiple efficiency methods, i.e., to apply multiple operators on the model sequentially. In this paper, we study the plausibility of this idea, and more importantly, the commutativity and cumulativeness of efficiency operators. We make two interesting observations: (1) Efficiency operators are commutative -- the order of efficiency methods within the pipeline has little impact on the final results; (2) Efficiency operators are also cumulative -- the final results of combining several efficiency methods can be estimated by combining the results of individual methods. These observations deepen our understanding of efficiency operators and provide useful guidelines for their real-world applications.

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

↑