RWKV: Reinventing RNNs for the Transformer Era (Paper Explained)

Subscribers:
284,000
Published on ● Video Link: https://www.youtube.com/watch?v=x8pW19wKfXQ



Duration: 1:02:17
64,259 views
1,813


#gpt4 #rwkv #transformer

We take a look at RWKV, a highly scalable architecture between Transformers and RNNs.

Fully Connected (June 7th in SF) Promo Link: https://www.fullyconnected.com/?promo=ynnc

OUTLINE:
0:00 - Introduction
1:50 - Fully Connected In-Person Conference in SF June 7th
3:00 - Transformers vs RNNs
8:00 - RWKV: Best of both worlds
12:30 - LSTMs
17:15 - Evolution of RWKV's Linear Attention
30:40 - RWKV's Layer Structure
49:15 - Time-Parallel vs Sequence Mode
53:55 - Experimental Results & Limitations
58:00 - Visualizations
1:01:40 - Conclusion

Paper: https://arxiv.org/abs/2305.13048
Code: https://github.com/BlinkDL/RWKV-LM

Abstract:
Transformers have revolutionized almost all natural language processing (NLP) tasks but suffer from memory and computational complexity that scales quadratically with sequence length. In contrast, recurrent neural networks (RNNs) exhibit linear scaling in memory and computational requirements but struggle to match the same performance as Transformers due to limitations in parallelization and scalability. We propose a novel model architecture, Receptance Weighted Key Value (RWKV), that combines the efficient parallelizable training of Transformers with the efficient inference of RNNs. Our approach leverages a linear attention mechanism and allows us to formulate the model as either a Transformer or an RNN, which parallelizes computations during training and maintains constant computational and memory complexity during inference, leading to the first non-transformer architecture to be scaled to tens of billions of parameters. Our experiments reveal that RWKV performs on par with similarly sized Transformers, suggesting that future work can leverage this architecture to create more efficient models. This work presents a significant step towards reconciling the trade-offs between computational efficiency and model performance in sequence processing tasks.

Authors: Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Huanqi Cao, Xin Cheng, Michael Chung, Matteo Grella, Kranthi Kiran GV, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartlomiej Koptyra, Hayden Lau, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Xiangru Tang, Bolun Wang, Johan S. Wind, Stansilaw Wozniak, Ruichong Zhang, Zhenyuan Zhang, Qihang Zhao, Peng Zhou, Jian Zhu, Rui-Jie Zhu

Links:
Homepage: https://ykilcher.com
Merch: https://ykilcher.com/merch
YouTube: https://www.youtube.com/c/yannickilcher
Twitter: https://twitter.com/ykilcher
Discord: https://ykilcher.com/discord
LinkedIn: https://www.linkedin.com/in/ykilcher

If you want to support me, the best thing to do is to share out the content :)

If you want to support me financially (completely optional and voluntary, but a lot of people have asked for this):
SubscribeStar: https://www.subscribestar.com/yannickilcher
Patreon: https://www.patreon.com/yannickilcher
Bitcoin (BTC): bc1q49lsw3q325tr58ygf8sudx2dqfguclvngvy2cq
Ethereum (ETH): 0x7ad3513E3B8f66799f507Aa7874b1B0eBC7F85e2
Litecoin (LTC): LQW2TRyKYetVC8WjFkhpPhtpbDM4Vw7r9m
Monero (XMR): 4ACL8AGrEo5hAir8A9CeVrW8pEauWvnp1WnSDZxW7tziCDLhZAGsgzhRQABDnFy8yuM9fWJDviJPHKRjV4FWt19CJZN9D4n




Other Videos By Yannic Kilcher


2023-10-14Efficient Streaming Language Models with Attention Sinks (Paper Explained)
2023-10-07Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution (Paper Explained)
2023-09-12Retentive Network: A Successor to Transformer for Large Language Models (Paper Explained)
2023-09-03Reinforced Self-Training (ReST) for Language Modeling (Paper Explained)
2023-08-15[ML News] LLaMA2 Released | LLMs for Robots | Multimodality on the Rise
2023-08-14How Cyber Criminals Are Using ChatGPT (w/ Sergey Shykevich)
2023-08-13Recipe AI suggests FATAL CHLORINE GAS Recipe
2023-08-12DeepFloyd IF - Pixel-Based Text-to-Image Diffusion (w/ Authors)
2023-06-20[ML News] GPT-4 solves MIT Exam with 100% ACCURACY | OpenLLaMA 13B released
2023-06-06Tree-Ring Watermarks: Fingerprints for Diffusion Images that are Invisible and Robust (Explained)
2023-06-02RWKV: Reinventing RNNs for the Transformer Era (Paper Explained)
2023-05-23Tree of Thoughts: Deliberate Problem Solving with Large Language Models (Full Paper Review)
2023-05-21OpenAI suggests AI licenses (US Senate hearing on AI regulation w/ Sam Altman)
2023-05-12[ML News] Geoff Hinton leaves Google | Google has NO MOAT | OpenAI down half a billion
2023-04-27Scaling Transformer to 1M tokens and beyond with RMT (Paper Explained)
2023-04-15OpenAssistant RELEASED! The world's best open-source Chat AI!
2023-04-10AI Alignment Livestream (aka OpenAssistant "Just Chatting")
2023-04-06OpenAssistant First Models are here! (Open-Source ChatGPT)
2023-03-18The biggest week in AI (GPT-4, Office Copilot, Google PaLM, Anthropic Claude & more)
2023-03-15GPT-4 is here! What we know so far (Full Analysis)
2023-03-11This ChatGPT Skill will earn you $10B (also, AI reads your mind!) | ML News



Tags:
deep learning
machine learning
arxiv
explained
neural networks
ai
artificial intelligence
paper
gpt4
gpt 4
recurrent neural network
rwkv
rvkw
transformer alternative
gpt-4
deep learning tutorial
what is deep learning