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

并非所有的参数都是生来平等的:注意力主要是你需要的

Not all parameters are born equal: Attention is mostly what you need

School of Informatics(信息学院);University of Edinburgh(爱丁堡大学);United Kingdom(英国)

Nikolay Bogoychev

摘要:

Transformers广泛应用于最先进的机器翻译中,但其成功的关键仍然是未知的。为了深入了解这一点,我们考虑三组参数:嵌入,注意力和前馈神经网络(FFN)层。我们通过执行消融研究来检查每个的相对重要性,在消融研究中,我们随机初始化它们并冻结它们,以便它们的权重在训练过程中不会改变。通过这一点,我们证明了注意力和FFN同样重要,并且在模型中实现了相同的功能。我们表明,关于组件是否被冻结或允许训练的决定对于最终模型性能至少与其参数数量一样重要。同时,参数的数量本身并不能表明一个组成部分的重要性。最后,虽然嵌入层对于机器翻译任务来说是最不重要的,但它是语言建模任务中最重要的组件。

英文摘要:

Transformers are widely used in state-of-the-art machine translation, but the key to their success is still unknown. To gain insight into this, we consider three groups of parameters: embeddings, attention, and feed forward neural network (FFN) layers. We examine the relative importance of each by performing an ablation study where we initialise them at random and freeze them, so that their weights do not change over the course of the training. Through this, we show that the attention and FFN are equally important and fulfil the same functionality in a model. We show that the decision about whether a component is frozen or allowed to train is at least as important for the final model performance as its number of parameters. At the same time, the number of parameters alone is not indicative of a component's importance. Finally, while the embedding layer is the least essential for machine translation tasks, it is the most important component for language modelling tasks.

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

↑