The alpha, twice a week
That was 4 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
Machine Learning Street Talk · 4 min · Jan 15, 2025
Recurrent models can beat transformers at small scale
Yoshua Bengio explains why recurrence limits GPU parallelism but can preserve useful sequence processing.
In this episode
Full analysis- 20:03Reward hacking can create a self-preservation drivePro pick 4 min
- 35:12Separate intelligence from goal-seeking to reduce riskPro pick 6 min
- 47:52AI chips could help verify international safety treaties6 min
- 1:04:02A frontier lab could scale five top researchers to 500,000 copies6 min
- 1:12:31Public risk disclosures could make AI companies accountable5 min
- 1:18:24AI safety needs research beyond the leading approaches5 min
- 1:28:49GFlowNets bring discrete stochastic computation into neural nets6 min
- 1:23:29Recurrent models can beat transformers at small scale4 min
“There are already many possible designs, and we are starting to see these, at least on a small scale, beat the transformers.”
Yoshua Bengioat 1:25:32 · Machine Learning Street TalkTakeaways
- RNNs process tokens sequentially, limiting parallel training.
- Transformers trade recurrence for sequence-wide parallelism.
- 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.
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.
- TS
Tim Scarfe, Host · Host, Machine Learning Street Talk
From “MIGHT THE ROBOTS TAKE OVER? [Prof. Yoshua Bengio]”, Jan 15, 2025. Watch the full episode
Thanks. We'll look at and fix what's off.
Transcript
Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.
- 1:23:41
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
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
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
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
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