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

基于可训练表示池的Transformer模型稀疏化

Sparsifying Transformer Models with Trainable Representation Pooling

Jagiellonian University(雅盖隆大学);Poznan University of Technology(波兹南理工大学)

Michał Pietruszka, Łukasz Borchmann, Łukasz Garncarek

摘要:

我们提出了一种新的方法来稀疏注意力的Transformer模型,学习选择最信息的令牌表示在训练过程中,从而专注于特定于任务的输入部分。由于采用了一个鲁棒的可训练top- $k$算子,算法的时间和内存复杂度都降低到了次线性.我们在一个具有挑战性的长文档摘要任务上的实验表明,即使是我们简单的基线也可以达到当前的SOTA,并且通过可训练的池化,我们可以保持其最高质量,同时在训练过程中$1.8\times$更快,在推理过程中$4.5\times$更快,在解码器中$13\times$的计算效率更高。

英文摘要:

We propose a novel method to sparsify attention in the Transformer model by learning to select the most-informative token representations during the training process, thus focusing on the task-specific parts of an input. A reduction of quadratic time and memory complexity to sublinear was achieved due to a robust trainable top-$k$ operator. Our experiments on a challenging long document summarization task show that even our simple baseline performs comparably to the current SOTA, and with trainable pooling, we can retain its top quality, while being $1.8\times$ faster during training, $4.5\times$ faster during inference, and up to $13\times$ more computationally efficient in the decoder.

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

↑