# Recurrent models can beat transformers at small scale

Markdown copy of https://realalpha.app/s/recurrent-models-can-beat-transformers-at-small-scale/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Yoshua Bengio](https://realalpha.app/builders/yoshua-bengio/) · Yoshua Bengio is a professor and Turing Award winner. · Pioneered deep learning and founded LawZero to develop safe, non-agentic AI systems for the benefit of all.
- Host: [Tim Scarfe](https://realalpha.app/people/tim-scarfe/) · Host, Machine Learning Street Talk
- Show: Machine Learning Street Talk
- Episode: [MIGHT THE ROBOTS TAKE OVER? Prof. Yoshua Bengio](https://realalpha.app/v/G1ARvwQntAU/), Jan 15, 2025
- Moment: 1:23:29 to 1:27:16 of the episode (4 min), playing on https://realalpha.app/s/recurrent-models-can-beat-transformers-at-small-scale/; the episode from there: https://realalpha.app/v/G1ARvwQntAU/?t=5009

## Quote

> “There are already many possible designs, and we are starting to see these, at least on a small scale, **beat the transformers**.”
> — [Yoshua Bengio](https://realalpha.app/builders/yoshua-bengio/) at [1:25:32](https://realalpha.app/v/G1ARvwQntAU/?t=5132) · Machine Learning Street Talk

## Takeaways

1. RNNs process tokens sequentially, limiting parallel training.
2. Transformers trade recurrence for sequence-wide parallelism.
3. Recurrence may help, but large-scale comparisons remain unsettled.

## About this segment

Yoshua Bengio explains why recurrence limits GPU parallelism but can preserve useful sequence processing. Early designs are beating transformers at small scale; the large-scale result remains unknown.

From “MIGHT THE ROBOTS TAKE OVER? [Prof. Yoshua Bengio]”, Jan 15, 2025. [Watch the full episode](https://realalpha.app/v/G1ARvwQntAU/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[1:23:41](https://realalpha.app/v/G1ARvwQntAU/?t=5021) because I mean to be honest it's it's overwhelming you've done so many papers just in the last year but one thing that that really jumped out to me is your um were RNN's all we needed paper could you um sketch that out for me when um we introduced the attention Engine mechanisms that are currently used in industry and academia. In 2014, actually, it was using RNNs as the engine. This was pre-Transformer, which came in 2017.

[1:24:13](https://realalpha.app/v/G1ARvwQntAU/?t=5053) And there's an issue with RNNs, the way that their normal design is, which is that you can't easily paralyze training over the sequences. so you have to go once so you've got a sequence of words, for example and so the neural net has to process one word and the next and the next and it needs to construct an internal state that's the recurrent state from the previous steps in order to feed the next step the problem if you just had like one computer like one normal computer the classical CPU, that's fine but in GPU days where you can paralyze thousandfold you're like well how do i do that i can't paralyze because i have to do the sequential thing so we we did a few things at the time like to paralyze across examples but but you know you lose some some paralyzation um and of course with transformers uh you basically use the same

[1:25:12](https://realalpha.app/v/G1ARvwQntAU/?t=5112) architecture except you remove the recurrence um and uh and now you can do everything in parallel like for the whole sequence this is in one shot and you can get the gradients and so in the last few years there's been several papers not just ours um people starting to explore how we could put back a bit of that recurrence into the architecture because it has some real advantages and um yeah so with the right tweaking of the architectures you can do these things There are already many possible designs, and we are starting to see these, at least on a small scale, beat the transformers.

[1:25:54](https://realalpha.app/v/G1ARvwQntAU/?t=5154) On a large scale, I don't know, but clearly there are some advantages to recurrence. Yeah, I've got Sepp coming on Friday, by the way. Yeah, he's going to tell you all about it. Yes, yes, excellent. But in a way, though, do you think it's a sign that we might have overcomplicated some of the architectures or the gating mechanism, for example? so how how much was that needed oh i don't think so i think these gates are actually useful i mean so we did the gru which is a simplification of the lstn um a while ago and so it turns out you can pretty much get rid of you know two of the gates but um but you still need that normality to get the maximum power so there's a trade-off there's trade-off you you lose a bit on the expressive power but you gain so much in uh capability because now you can you can train

[1:26:52](https://realalpha.app/v/G1ARvwQntAU/?t=5212) larger models for longer because it's so much faster right um so for now it's beneficial to to do that that trade-off is is is working very cool so another paper um a complexity-based theory
