DeltaNet Explained (Part II) | Songlin Yang
This blog post series accompanies our NeurIPS ‘24 paper - Parallelizing Linear Transformers with the Delta Rule over Sequence Length (w/ Bailin Wang, Yu Zhang, Yikang Shen and Yoon Kim). You can find the implementation here and the presentation slides here. Ok, we’ve seen in the previous section that DeltaNet does really well on these diagnostic synthetic tasks. So now we just need to scale it up to modern LMs, right? Well, it turns out it’s not that simple. In particular, the original DeltaNet treated DeltaNet as a pure RNN which required O(L) sequential steps, which is inefficient on modern hardware such as GPUs with massive parallel processing capabilities. We thus seek strategies to parallelize DeltaNet across sequence length to enable hardware-efficient training. In this post, we first discuss parallel scan as a interesting-but-impractical strategy for parallelizing DeltaNet. We then give another algorithm for parallelization that is more efficient in practice. Let’s start with De
DeltaNet Explained (Part II) | Songlin Yang DeltaNet Explained (Part II) An algorithm that parallelizes DeltaNet computation across the sequence length dimension This blog post series accompanies our NeurIPS ‘24 paper - Parallelizing Linear Transformers with the Delta Rule over Sequence Length (w/ Bailin Wang , Yu Zhang , Yikang Shen and Yoon Kim ). You can find the implementation here and the presentation slides here . Part I - The Model Part II - The Algorithm Part III - The Neural Architecture Parallel Scan for DeltaNet: A Failed Attempt Ok, we’ve seen in the previous section that DeltaNet
related reading
- Parallelizing Linear Transformers with the Delta Rule over Sequence Lengtharxiv.org
- DeltaNet Explained (Part I) | Songlin Yangsustcsonglin.github.io
- [2412.06464] Gated Delta Networks: Improving Mamba2 with Delta Rulearxiv.org
- Linear Attention Fundamentals | Hailey Schoelkopfhaileyschoelkopf.github.io
- How To Scale Your Modeljax-ml.github.io
- [2607.07953] Linear Attention Architectures: Mechanisms, Trade-offs, and Cross-Layer Routingarxiv.org
- ali (@waterloo_intern) on Xx.com
- Transformer Inference Arithmetic | kipply's blogkipp.ly
- Aman's AI Journal • Primers • Ilya Sutskever's Top 30aman.ai
- Linear Transformers Are Faster After All – Manifest AImanifestai.com
- Mamba: The Easy Wayjackcook.com
- Log-Linear Attentionarxiv.org