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

RingFormer:基于自适应层级信号重新思考循环Transformer

RingFormer: Rethinking Recurrent Transformer with Adaptive Level Signals

UNIST(蔚山国家科学技术研究院);IMML Lab(IMML实验室)

Jaemu Heo, Eldor Fozilov, Hyunmin Song, Taehwan Kim

AI总结:

针对Transformer参数规模大且现有参数共享/循环方法性能不足的问题,提出RingFormer:通过单Transformer层环形重复处理输入并利用低秩矩阵生成输入相关层级信号,实现大幅参数压缩同时保持翻译、图像分类等任务高性能。

摘要:

Transformer在文本等序列数据的有效处理方面取得了巨大成功。其由多个注意力和前馈块组成的架构能够以并行方式对序列元素间的关系进行建模,这使其训练效率高且在序列建模中效果显著。尽管Transformer在处理序列数据时表现出强大性能,但与RNN和CNN等其他架构的模型相比,其参数规模要大得多。因此,一些方法探索了Transformer模型中的参数共享和循环机制以应对其计算需求。然而,这类方法难以维持与原始Transformer模型相当的高性能。为应对这一挑战,我们提出了新方法RingFormer,它采用一个Transformer层以环形方式重复处理输入,同时利用低秩矩阵生成输入相关的层级信号。实验验证表明,这能大幅减少模型参数,同时在翻译和图像分类等多种任务中保持高性能。

英文摘要:

Transformers have achieved great success in effectively processing sequential data such as text. Their architecture consisting of several attention and feedforward blocks can model relations between elements of a sequence in parallel manner, which makes them very efficient to train and effective in sequence modeling. Even though they have shown strong performance in processing sequential data, the size of their parameters is considerably larger when compared to other architectures such as RNN and CNN based models. Therefore, several approaches have explored parameter sharing and recurrence in Transformer models to address their computational demands. However, such methods struggle to maintain high performance compared to the original transformer model. To address this challenge, we propose our novel approach, RingFormer, which employs one Transformer layer that processes input repeatedly in a circular, ring-like manner, while utilizing low-rank matrices to generate input-dependent level signals. This allows us to reduce the model parameters substantially while maintaining high performance in a variety of tasks such as translation and image classification, as validated in the experiments.

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

↑