#LSTMs
📚 Citation Classic
"Speech recognition with deep recurrent neural networks"
Graves, Mohamed & Hinton (2013)
Citations: 7,350+
Showed deep LSTMs could push p...
🔗 https://scholar.google.com/scholar?q=Graves+Mohamed+Hinton+2013+Speech+recognition+with+deep+recurrent+neural+networks
#SpeechScience
November 5, 2026 at 6:38 PM
Transformer Architecture in 5 Questions Developers Actually Ask (with 12 Lines of PyTorch)
Most Transformer explainers start with the famous diagram from "Attention Is All You Need" and lose half their readers at the first box. As a developer, I found it easier to learn the architecture by answering the five questions I kept asking myself, and by writing the core operation in code. ### 1. What problem was the Transformer actually solving? RNNs and LSTMs read a sentence one token at a time, like a message passed down a line of people. That makes long-range relationships fragile and training hard to parallelise. The Transformer replaced the chain with attention: every token can look directly at every other token in one step. Think of it as moving from a relay race to a meeting room where everyone can hear everyone. ### 2. What are Q, K and V, really? Each token is projected into three vectors by learned weight matrices: * **Query** : what this token is looking for * **Key** : what this token offers * **Value** : the information it passes on if it turns out to be relevant Compare queries with keys, turn the scores into weights, and use the weights to mix values. That is the whole idea. ### 3. What does that look like in code? Here is scaled dot-product attention, the heart of every Transformer block: import torch import torch.nn.functional as F def attention(q, k, v, mask=None): # q, k, v: (batch, seq_len, d_k) d_k = q.size(-1) scores = q @ k.transpose(-2, -1) / d_k ** 0.5 # compare + scale if mask is not None: scores = scores.masked_fill(mask == 0, float("-inf")) weights = F.softmax(scores, dim=-1) # normalise return weights @ v # collect values The `/ d_k ** 0.5` line is easy to skip, but it stops large dot products from pushing softmax into near one-hot outputs, which would kill gradients. ### 4. Why multiple heads? One attention pattern can't capture everything in "Aman told Ravi that he would lead the project": who "he" is, which verb goes with which noun, what "lead" applies to. Multi-head attention runs several attention operations in parallel on different learned projections and concatenates the results. Each head is like a different camera angle on the same match. ### 5. How does a model like GPT generate text with this? Two more pieces make it work: * **Positional encoding** : attention by itself ignores order, so "dog bites man" and "man bites dog" would look identical without it. * **Causal masking** : in a decoder, the `mask` argument above blocks each token from attending to future tokens. The model predicts one token, appends it, and repeats. Add a feed-forward layer, residual connections and layer normalisation around each sublayer, stack the block N times, and you have the architecture behind modern LLMs. ### A quick map of the model families Family | Example | Best at ---|---|--- Encoder-only | BERT | Understanding: classification, search Decoder-only | GPT | Generation Encoder-decoder | T5, original Transformer | Translation, summarisation ### Go deeper I wrote a longer, beginner-friendly walkthrough that covers every block (encoder, decoder, cross-attention, residuals, masking) with everyday analogies: Transformer Architecture Explained on AheadMint. If you've got a clearer mental model for Q/K/V, share it in the comments. I'm always collecting better analogies.
dev.to
October 31, 2026 at 10:25 AM
"Myth: Neural networks were revolutionized by the introduction of recurrent connections, specifically RNNs & LSTMs, making Transformers redundant. Truth: Early multilayer perceptrons were used in the 60s, & Transformers built upon those foundational ideas, not replacing LSTMs. #NeuralNetworks #AI"
October 19, 2026 at 7:57 PM
If you go check out the other paper, note that it's only for LSTMs - if it was transformers every single expert would have to have its own kvcache.

Tokenization and pipeline is absolutely killing us, so I'm high tuned to anything kvcache/kvcopy

This is also what's killing distributed inference
October 1, 2026 at 9:37 PM
This is the same idea that took us from LSTMs to GRUs, right?
October 1, 2026 at 7:19 PM
are you sure you have the right one? they only mention LSTMs and they say it doesn’t work for transformers
October 1, 2026 at 1:30 AM
LSTMs huh? Had a suspicion
September 30, 2026 at 11:30 PM
is that the right paper? it uses mixture of lstms and byte order predictions
September 30, 2026 at 9:46 PM
I’ve been saying for a while: LSTMs were peak AI in terms of human creative playfulness. Also stylenet and gans.
I feel like people are using Jev to recapture the silliness that was GPT2-3
cee.wtf cee @cee.wtf · Sep 26
September 26, 2026 at 1:02 PM
I think the Chinese models still use LSTMs because it's more efficient on the CPU level. I could have completely garbled that info though.
September 25, 2026 at 11:59 PM
@gildilinie because LSTMs (and other RNNs) were the state of the art in sequence modeling before we had the Transformer. Perhaps you are taking my comparison more literally than I intended it.
September 23, 2026 at 6:19 PM
@gildilinie because LSTMs (and other RNNs) were the state of the art in sequence modeling before we had the Transformer. Perhaps you are taking my comparison more literally than I intended it, they are as you point out different architecturally.
September 23, 2026 at 6:17 PM
New paper🎉 With Nazanin Shafiabadi & Olivier Bonami, we ask how predictable French noun gender is from form alone. LSTMs (no suffix info given) reach ~90% accuracy and converge exactly on suffix boundaries, suggesting morphology drives this predictability.
🔗 www.peren-revues.fr/lexique/2262
September 22, 2026 at 4:26 PM
Googleが論文でTransformerアーキテクチャを発表
エンジニアへの影響:全トークンの並列処理でGPU利用効率が向上しスケーラビリティを確保
https://dev.to/mangeshmandlik/transformer-basics-the-architecture-behind-chatgpt-claude-and-gemini-1ljg
Transformer Basics: The Architecture Behind ChatGPT, Claude and Gemini
Before 2017, most language AI systems relied on Recurrent Neural Networks (RNNs) and LSTMs. They...
dev.to
September 19, 2026 at 12:00 PM
📢 New paper in Biogeosciences!

We find that memory effects in evaporative fraction are strongest in evergreen broadleaved forests and savannas. This is shown with explainable machine learning (LSTMs) applied to fluxnet data.

Read the highlight paper: tinyurl.com/mrfmcfsv
August 30, 2026 at 12:13 PM
D1028. Studied at home. LSTMs. ❤️
August 23, 2026 at 4:57 AM
worth trying, but before reaching for GRUs or LSTMs I'd check if attention already covers the long range dependency you're after. depends heavily on sequence length and how much of the signal is truly ordered vs local. recurrence buys you a lot on short structured sequences.
August 22, 2026 at 5:06 PM
HDD-ISA distinguishes memory, recurrence, self-reference, and self-modeling through intervention, not just interpretation.

The framework provides protocols, design rules, and implementation guides for Transformers, RNN/LSTMs, and black-box LLMs.

doi.org/10.5281/zeno...
HDD-ISA - AI Architectures for Causal Discriminations
This paper introduces the Intervention-Separable Architecture based on History-Dependent Dynamics (HDD-ISA), an architectural interface specification for designing or instrumenting AI architectures to...
doi.org
August 22, 2026 at 6:44 PM
So both LSTMs and GRUs also address the vanishing gradient problem; I don’t see transformers as a replacement so much as a complementary approach, and I’m curious about e.g. grafting them into the feedforward networks in transformers to facilitate online learning
August 22, 2026 at 3:48 PM
Ah, yeah, okay, that makes more sense

One thing I’ve thought a lot about doing lately is trying to work some RNN features into the neural net stack, like GRUs or LSTMs:
Performance analysis of neural network architectures for time series forecasting: A comparative study of RNN, LSTM, GRU, and hybrid models
A Monte Carlo method to assess machine learning time series algorithms is outlined. Nine 2-hidden-layer algorithms with RNN, LSTM, and GRU structures are evaluated. These are RNN, LSTM, GRU, RNN-LSTM,...
pmc.ncbi.nlm.nih.gov
August 22, 2026 at 3:36 PM
I had given up hope on this translation coming out, so it is very cool to see it in print!

The NLP world has changed a lot since I wrote this, but if there are any Chinese speakers who want to read about CKY parsing, LSTMs, and evaluation design in a single unified reference, they are in luck!
August 22, 2026 at 12:05 AM
It's shaky (even as the artefact of a particular time — LSTMs are RNNs, for instance) and out of date, though. It misses a lot of straight CV (mostly represented as CNNs), especially diffusion models and vision transformers (giving the impression that transformers are only language models).
August 20, 2026 at 8:38 PM
Torben Schiz, Pedro H. J. Nardelli, Henrik Ebel: Communication Reduction via Semantic-Based Encoding in DMPC Using LSTMs https://arxiv.org/abs/2608.17592 https://arxiv.org/pdf/2608.17592 https://arxiv.org/html/2608.17592
August 19, 2026 at 6:46 AM
New AI blends CNNs and LSTMs for faster violence detection

Read more:
https://quantumzeitgeist.com/bennett-university-blends-cnns-lstms-faster/
New AI Blends CNNs And LSTMs For Faster Violence Detection
New research details a hybrid architecture that combines Time-Distributed Convolutional Neural Networks (TD-CNNs) and Long Short-Term Memory (LSTM) networks for faster, more accurate violence detection in video.
quantumzeitgeist.com
August 14, 2026 at 5:46 PM
The "AGI" argument seems to be coming from people who ... haven't really used neural networks before.

Based on my experience, LSTMs give you token-prediction, but a 100B parameter neural network (transformer) is doing something entirely different -- just it still isn't "alive", nor is it AGI
August 12, 2026 at 9:16 PM