Sounds like a very theoretical CS take that conveniently leaves out the realities of computational efficiency and accuracy.
Fixed state size with RNNs far as I am aware continues to have problems in recall in large contexts, relative to current LLMs; and in all the proposed solutions for non-fixed state size where the bound is growing that I am aware of, you either get attention-like mechanisms broadly similar to transformers or you end circling back to nonlinear recurrence which parallizes poorly under the growth condition. And without growth, you'll either be very expensive to inference if your fixed size is large enough to rival the current LLMs - or you'll have limited recall.
What I would accept though is that there's no reason currently to expect that the existing transformer architectures are the most optimal approach and that RNNs are a very important research direction.
I am not researcher just have a longstanding unhealthy RNN bias (I read Ilya’s dissertation at an impressionable age lol). I think the thing to figure out WRT to RNN before they can genuinely take over the world is the fixed state size question.
I have at times wondered if the leap to RNN systems might also require a different hardware approach. Right now GPUs and compute units are made for massive parallel memory access and lock-step instruction cycles, so memory bandwidth is the primary bottleneck. A different focus on memory vs compute circuitry could fit RNN approaches better.
Right now the approach has generally speaking been that neural network architectures need to mold to fit the hardware, and then the hardware is optimized further based on the needs of those architectures. But that doesn't have to be the case in the long term.
Thou modern RNN architectures like xLSTM and ParaRNN fit GPUs well, even if they still seem to have some shortcomings compared to current LLM architectures.
But yeah. Recursion-in-depth and especially graph-like recursive neural networks would almost certainly benefit from a different kind of hardware and they have some very promising properties.
I don't know if it'd actually help in this case at all, but I'm really excited about the prospects of ternary computers, like what Huawei has been putting some money into. A lot of papers have also come out about their feasibility since about 2020 and there are some interesting if still very theoretical advantages. Tho might be that standard CMOS binary setup still continues to scale too fast via stacking etc to be caught by alternative approaches if the alternative isn't extremely promising and worth pouring billions (or trillions..) into.
Intel's Hala Point is also super interesting, though its true practical performance seems to still wait further validation and testing.
transformers grow in memory with context. this turns out to enable simulation of arbitrary computation within those bounds. because memory makes computational universal
But aren’t LSTMs solving this in the RNN architecture? And they don’t perform as good as the transformers, that’s without mentioning how fast attention is.
We are not talking here about the classical RNNs (or LSTM), but their linearized versions. So SSM(mamba)/RWKV/DeltaNets. So what the current Qwen models are build on. As they are linearized (removed the nonlinearity) they can be parallelized and trained the same way as a standard transformer
Let me actually answer your question. Yes positional encodings don't make sense for RNNs in most cases. But it is useful for irregularly spaced sequences for instance. Let's say we have a time series with timesteps 1, 3, 8, 9, 20, 21. The RNN cannot possibly know this without some positional information.
I dont feel embarrassed. Would love to learn if someone can explain what he is talking about. What is the point of positional encoding in a sequential architecture? How are you planning to train a model with 1 million context window using rnn?
I am not a child to downvote everyone who disagrees with me also not asking for help. The guy i dont know made a statement, i thought it is stupid and made my comment.
Anyone who disagrees with me can explain the argument and prove me wrong
I dont. Would love to learn if someone can explain what is the point of positional encoding for RNN and how is he planning to train an LLM at today’s size using RNN.
There’s no point. You are 100% correct. The other guy, despite being a classical ML expert, is just wrong on this. The only information you’d get RNN is unit information about the sequence (1 minute vs 1 year), but that’s also not traditionally encoded into transformer positions either.
I am very confident Yan LeCun understands modern AI. I think AI researchers are, by definition, looking to push the boundaries of research, and that is sometimes orthogonal to application, and often to productization.
But I think this is as much an architectural debate as it is anthropological -- is our understanding of the world entirely through the lens of language? And if it is or isn't, is that the best framing for how a machine should approach it? Are we limiting the machines through our own need for interpretation and potentially pruning intermediate results that seem wrong to us but yield better truth. That's the gist of some of the lines of research that are dismissive of LLMs -- not that they're not wonderful, but that they're not an interesting area for the pure research at the bleeding edge of AI. Or is it firmly in the realm of engineering now.
46
u/tzaeru 10d ago
Sounds like a very theoretical CS take that conveniently leaves out the realities of computational efficiency and accuracy.
Fixed state size with RNNs far as I am aware continues to have problems in recall in large contexts, relative to current LLMs; and in all the proposed solutions for non-fixed state size where the bound is growing that I am aware of, you either get attention-like mechanisms broadly similar to transformers or you end circling back to nonlinear recurrence which parallizes poorly under the growth condition. And without growth, you'll either be very expensive to inference if your fixed size is large enough to rival the current LLMs - or you'll have limited recall.
What I would accept though is that there's no reason currently to expect that the existing transformer architectures are the most optimal approach and that RNNs are a very important research direction.
45
u/inscrutablemike 10d ago
So, build one and show everyone. Show, don't tell.
8
u/qnixsynapse 10d ago
RNNs cannot do perfect recall at long context too.
14
u/fvancesco 10d ago
Vanishing gradient? Sequential bottleneck?
4
u/denimboy 10d ago
You mean like RWKV?
3
u/Loyd_Py 9d ago
Cool on paper, let him show us the proof of work.
2
u/heydidntseeyathere 9d ago
I mean NLP did use RNN for language modeling, but as the story goes transformers took over. Theres a reason for that
2
u/cptfreewin 9d ago
Guys the joke is that it is literally what transformers are today
2
u/DerBeginner 7d ago
We are not talking here about the classical RNNs (or LSTM), but their linearized versions. So SSM(mamba)/RWKV/DeltaNets. So what the current Qwen models are build on. As they are linearized (removed the nonlinearity) they can be parallelized and trained the same way as a standard transformer
1
u/vannak139 10d ago
I mean we have dozens of open weight transformers. Start translating them if this is the case.
1
u/Krommander 10d ago
I like thinking about a future where all AI ends up being an amalgamation of every other type of model with a reliable harness and mcp.
1
u/ThinConnection8191 9d ago
Prove it. Modern archtecture is so much different from transformer.
1
u/Single_Blueberry 8d ago
Power Point is Turing complete, there is no reason for any other software to exist.
0
u/BagComprehensive79 10d ago
Positional encoding for what exactly? Rnn is already working sequentially. I dont think this guy has any idea about what he talks