text
📜 𝐎𝐥𝐝-𝐬𝐜𝐡𝐨𝐨𝐥 𝐑𝐍𝐍𝐬 𝐜𝐚𝐧 𝐚𝐜𝐭𝐮𝐚𝐥𝐥𝐲 𝐫𝐢𝐯𝐚𝐥 𝐟𝐚𝐧𝐜𝐲 𝐭𝐫𝐚𝐧𝐬𝐟𝐨𝐫𝐦𝐞𝐫𝐬!
📜 𝐎𝐥𝐝-𝐬𝐜𝐡𝐨𝐨𝐥 𝐑𝐍𝐍𝐬 𝐜𝐚𝐧 𝐚𝐜𝐭𝐮𝐚𝐥𝐥𝐲 𝐫𝐢𝐯𝐚𝐥 𝐟𝐚𝐧𝐜𝐲 𝐭𝐫𝐚𝐧𝐬𝐟𝐨𝐫𝐦𝐞𝐫𝐬!
new_line
new_line
text
Researchers from Mila and Borealis AI just have shown that simplified versions of good old Recurrent Neural Networks (RNNs) can match the performance of today's transformers.
Researchers from Mila and Borealis AI just have shown that simplified versions of good old Recurrent Neural Networks (RNNs) can match the performance of today's transformers.
new_line
new_line
text
They took a fresh look at LSTMs (from 1997!) and GRUs (from 2014). They stripped these models down to their bare essentials, creating "minLSTM" and "minGRU". The key changes:
They took a fresh look at LSTMs (from 1997!) and GRUs (from 2014). They stripped these models down to their bare essentials, creating "minLSTM" and "minGRU". The key changes:
new_line
text
❶ Removed dependencies on previous hidden states in the gates
❶ Removed dependencies on previous hidden states in the gates
new_line
text
❷ Dropped the tanh that had been added to restrict output range in order to avoid vanishing gradients
❷ Dropped the tanh that had been added to restrict output range in order to avoid vanishing gradients
new_line
text
❸ Ensured outputs are time-independent in scale (not sure I understood that well either, don't worry)
❸ Ensured outputs are time-independent in scale (not sure I understood that well either, don't worry)
new_line
new_line
text
⚡️ As a result, you can use a “parallel scan” algorithm to train these new, minimal RNNs, in parallel, taking 88% more memory but also making them 200x faster than their traditional counterparts for long sequences
⚡️ As a result, you can use a “parallel scan” algorithm to train these new, minimal RNNs, in parallel, taking 88% more memory but also making them 200x faster than their traditional counterparts for long sequences
new_line
new_line
text
🔥 The results are mind-blowing! Performance-wise, they go toe-to-toe with Transformers or Mamba.
🔥 The results are mind-blowing! Performance-wise, they go toe-to-toe with Transformers or Mamba.
new_line
new_line
text
And for Language Modeling, they need 2.5x fewer training steps than Transformers to reach the same performance! 🚀
And for Language Modeling, they need 2.5x fewer training steps than Transformers to reach the same performance! 🚀
new_line
new_line
text
🤔 Why does this matter?
🤔 Why does this matter?
new_line
new_line
text
By showing there are simpler models with similar performance to transformers, this challenges the narrative that we need advanced architectures for better performance!
By showing there are simpler models with similar performance to transformers, this challenges the narrative that we need advanced architectures for better performance!
new_line
new_line
text
💬 François Chollet wrote in a tweet about this paper:
💬 François Chollet wrote in a tweet about this paper:
new_line
new_line
text
“The fact that there are many recent architectures coming from different directions that roughly match Transformers is proof that architectures aren't fundamentally important in the curve-fitting paradigm (aka deep learning)”
“The fact that there are many recent architectures coming from different directions that roughly match Transformers is proof that architectures aren't fundamentally important in the curve-fitting paradigm (aka deep learning)”
new_line
new_line
text
“Curve-fitting is about embedding a dataset on a curve. The critical factor is the dataset, not the specific hard-coded bells and whistles that constrain the curve's shape.”
“Curve-fitting is about embedding a dataset on a curve. The critical factor is the dataset, not the specific hard-coded bells and whistles that constrain the curve's shape.”
new_line
new_line
text
It’s the Bitter lesson by Rich Sutton striking again: don’t need fancy thinking architectures, just scale up your model and data!
It’s the Bitter lesson by Rich Sutton striking again: don’t need fancy thinking architectures, just scale up your model and data!
new_line
new_line
text
Read the paper 👉 
Read the paper 👉 
resource
https://huggingface.co/papers/2410.01201
paper
2410.01201
https://huggingface.co/papers/2410.01201
Were RNNs All We Needed? (2410.01201)
📜 𝐎𝐥𝐝-𝐬𝐜𝐡𝐨𝐨𝐥 𝐑𝐍𝐍𝐬 𝐜𝐚𝐧 𝐚𝐜𝐭𝐮𝐚𝐥𝐥𝐲 𝐫𝐢𝐯𝐚𝐥 𝐟𝐚𝐧𝐜𝐲 𝐭𝐫𝐚𝐧𝐬𝐟𝐨𝐫𝐦𝐞𝐫𝐬!

Researchers from Mila and Borealis AI just have shown that simplified versions of good old Recurrent Neural Networks (RNNs) can match the performance of today's transformers.

They took a fresh look at LSTMs (from 1997!) and GRUs (from 2014). They stripped these models down to their bare essentials, creating "minLSTM" and "minGRU". The key changes:
❶ Removed dependencies on previous hidden states in the gates
❷ Dropped the tanh that had been added to restrict output range in order to avoid vanishing gradients
❸ Ensured outputs are time-independent in scale (not sure I understood that well either, don't worry)

⚡️ As a result, you can use a “parallel scan” algorithm to train these new, minimal RNNs, in parallel, taking 88% more memory but also making them 200x faster than their traditional counterparts for long sequences

🔥 The results are mind-blowing! Performance-wise, they go toe-to-toe with Transformers or Mamba.

And for Language Modeling, they need 2.5x fewer training steps than Transformers to reach the same performance! 🚀

🤔 Why does this matter?

By showing there are simpler models with similar performance to transformers, this challenges the narrative that we need advanced architectures for better performance!

💬 François Chollet wrote in a tweet about this paper:

“The fact that there are many recent architectures coming from different directions that roughly match Transformers is proof that architectures aren't fundamentally important in the curve-fitting paradigm (aka deep learning)”

“Curve-fitting is about embedding a dataset on a curve. The critical factor is the dataset, not the specific hard-coded bells and whistles that constrain the curve's shape.”

It’s the Bitter lesson by Rich Sutton striking again: don’t need fancy thinking architectures, just scale up your model and data!

Read the paper 👉 https://huggingface.co/papers/2410.01201
👍
ajibawa-2023 YaTharThShaRma999 Q-bert deusilence ethancl1 den0620 antiven0m nnikolovskii Joseph717171 kotyKD DmitryRyumin slai1988 fblgit Ryukijano phi0112358 privategeek24 ntnq
👀
YaTharThShaRma999 John6666 Joseph717171 connorads louisbrulenaudet
/avatars/ea4398745974d781ae9dc0e95b12cabe.svg
Joseph
Joseph717171
user
https://cdn-avatars.huggingface.co/v1/production/uploads/6401c8c9f98fbc64bcd7dca1/MOSgc_mPbfUZ-354osy1v.png
FBL
fblgit
user