跳到正文
菜单
简体中文

Transformer vs RNN

Attention-based neural architecture that replaced recurrence with self-attention.

功能对比

这两项技术尚未记录可对比的属性。

该选哪个?

由上述差异按固定规则生成,不是模型生成的。

Choose Transformer if…

已记录的属性中,没有任何一项显示它更有优势。

Choose RNN if…

已记录的属性中,没有任何一项显示它更有优势。

关于本页

页面保持可访问,但在积累足够的带来源细节之前不纳入搜索索引(PRD SEO-08)。

Transformer

architecture · Algorithms

The Transformer is a neural network architecture that processes a whole sequence at once using self-attention instead of stepping through it one token at a time. It solves the problem that recurrent networks could not parallelise training and struggled to relate distant positions in a sequence. It exists because attention alone turned out to be sufficient for translation quality, and because removing recurrence made training scale across many accelerators. Almost every large language model in use today is a Transformer variant, which makes it the single most load-bearing node in this graph.

RNN

architecture · Algorithms

A recurrent neural network processes a sequence one step at a time, carrying a hidden state that summarises what it has seen. It solves the problem that a fixed-size input cannot represent a sequence of arbitrary length. It exists because order matters in language and time series. Training it is slow and unstable over long sequences, which is the limitation the Transformer was designed to remove.