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

将预训练的Transformers微调为快速衰减的权重

Fine-Tuning Pre-trained Transformers into Decaying Fast Weights

Jenni

Huanru Henry Mao

摘要:

自回归Transformers是强语言模型,但由于自注意机制,在每个令牌生成期间会产生O(T)复杂度。最近的工作提出了基于核的方法来近似因果自我注意,通过使用具有各种更新规则和特征映射的递归公式来替换它,以实现O(1)的时间和内存复杂度。我们探索了这些方法,发现它们不必要地复杂,并提出了一个简单的替代方案-衰减快速权重-在GPU上运行速度快,优于以前的方法,并保留了GPT-2的99%的注意力性能。我们还显示了对WikiText-103对更复杂的注意力替代品的竞争力表现。

英文摘要:

Autoregressive Transformers are strong language models but incur O(T) complexity during per-token generation due to the self-attention mechanism. Recent work proposes kernel-based methods to approximate causal self-attention by replacing it with recurrent formulations with various update rules and feature maps to achieve O(1) time and memory complexity. We explore these approaches and find that they are unnecessarily complex, and propose a simple alternative - decaying fast weights - that runs fast on GPU, outperforms prior methods, and retains 99% of attention's performance for GPT-2. We also show competitive performance on WikiText-103 against more complex attention substitutes.

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

↑