arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00503cs.LGcs.AI
收藏

Transformer中的稳态与稀疏性

Homeostasis and Sparsity in Transformer

Ural Federal University(乌拉尔联邦大学);LLC "Nexus"(Nexus有限责任公司)

Leonid Kotyuzanskiy, Artem Klimov

AI总结:

本文提出在Transformer中引入稳态机制(RFB-kWTA和“智能”抑制)及稀疏分布式表示,显著提升机器翻译性能,在Multi30K数据集上BLEU达0.3062,优于经典Transformer和仅用dropout的模型。

摘要:

Transformer架构已成为现代神经网络领域不可或缺的一部分,在文本生成、机器翻译、图像和音频处理等多种任务中发挥着关键作用。此外,还有另一种构建智能系统的方法,由Jeff Hawkins提出,灵感来源于新皮层中的过程。在我们的文章中,我们希望结合其中的一些想法,并提出在Transformer的注意力机制和Transformer块的输出中使用稳态机制,如RFB-kWTA和“智能”抑制,同时进行一项实验,即在Transformer的不同位置引入稀疏分布式表示。RFB-kWTA利用层激活随时间变化的统计信息来调整整个层,增强稀有激活的值,同时减少频繁激活的值。“智能”抑制也利用激活统计信息来采样稀疏掩码,激活时间越稀有的神经元越有可能被激活。我们提出的机制显著优于经典Transformer(BLEU 0.2768)以及仅在注意力机制和Transformer块输出中使用dropout的模型(BLEU 0.3007),在Multi30K数据集上取得了0.3062的分数。

英文摘要:

The transformer architecture has become an integral part of the field of modern neural networks, playing a crucial role in a variety of tasks, such as text generation, machine translation, image and audio processing, among others. There is also an alternative approach to building intelligent systems, proposed by Jeff Hawkins and inspired by the processes occurring in the neocortex. In our article we want to combine some of these ideas and to propose the use of homeostasis mechanisms, such as RFB-kWTA and "Smart" Inhibition, in the attention mechanism of the transformer and at the output of the transformer block, as well as conducting an experiment involving the introduction of sparse distributed representations of the transformer at various points. RFB-kWTA utilizes statistics of layer activations across time to adjust the entire layer, enhancing the values of rare activations while reducing those of frequent ones. "Smart" Inhibition also uses activation statistics to sample sparsity masks, with rarer activation times are more likely to be activated. Our proposed mechanisms significantly outperform the classical transformer 0.2768 BLEU and a model that only makes use of dropout in the attention mechanism and output of the transformer block 0.3007 BLEU, achieving a score of 0.3062 on the Multi30K dataset.

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

↑