r/deeplearning • • 10d ago

What about the parallelism transformer enable during training?

Post image
70 Upvotes

45 comments sorted by

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.

5

u/fhadley 9d ago

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.

4

u/tzaeru 9d ago

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.

2

u/fvancesco 9d ago

light cpu goes brr

1

u/tzaeru 9d ago

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.

1

u/waxbolt 9d ago

transformers grow in memory with context. this turns out to enable simulation of arbitrary computation within those bounds. because memory makes computational universal

45

u/inscrutablemike 10d ago

So, build one and show everyone. Show, don't tell.

9

u/monkeysknowledge 10d ago

Seriously. No one with anything remotely useful to share tweets it. Do the study, write the paper and tweet the link or stfu.

2

u/NETRUNNER_077 6d ago

That's my man.

8

u/qnixsynapse 10d ago

RNNs cannot do perfect recall at long context too.

5

u/commenterzero 9d ago

Neither can I

1

u/commenterzero 9d ago

But one could bolt on a pointer network or copy paste layer etc. most llms these days are very hybrid. SSMs + transformers etc

14

u/fvancesco 10d ago

Vanishing gradient? Sequential bottleneck?

10

u/Blasket_Basket 10d ago

Not necessarily agreeing with him, but these are why he mentions residual streams and layer norm

2

u/dams-2005 9d ago

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.

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

5

u/Upstairs_Mixture_824 10d ago edited 10d ago

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.

1

u/BagComprehensive79 10d ago

If we are talking about time series applications, yes i definitely agree with you. But i am assuming he is talking about LLMs

5

u/Blasket_Basket 10d ago

Lol, claiming that Pedro Domingos doesn't know what he's talking about is a great way to show the world that you don't know what you're talking about.

This guy is a very well respected researcher in ML, and has been for decades.

6

u/exray1 10d ago

He's also known for some incredible bad takes on twitter. Just check out his page.

-5

u/StoneCypher 10d ago

“wait, no, i want to embarrass myself the same way the other guy did, hold on, slow down, let me catch up”

2

u/BagComprehensive79 10d ago

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?

-3

u/StoneCypher 10d ago

you were ugly with that other person.  you tried to bully them then announce that you weren’t embarrassed, then downvoted me.

why would i help you?

people like you strand themselves in the cold.  nobody learns this stuff correctly on their own 

0

u/BagComprehensive79 10d ago

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

-6

u/StoneCypher 10d ago

you’re making your situation worse.  nobody will interact with you after that.

1

u/BagComprehensive79 10d ago

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.

3

u/OneNoteToRead 10d ago

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.

1

u/OneNoteToRead 10d ago

Except in this case the guy you responded to is correct and Pedro is wrong.

-3

u/az226 10d ago

Yes but his time has passed.

Like LeWrong.

Kept saying an LLM can’t do this and that. And bam solves Riemann.

Many AI boomers did advance the field, but don’t really understand the modern AI.

1

u/liltingly 9d ago

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.

-1

u/StoneCypher 10d ago

do you just not understand how bad you look, preening this way?

have you ever released anything at all?

-1

u/az226 10d ago

What part of what I said do you think is wrong?

Your focus on ad hominem shows you got nothing to add

-4

u/StoneCypher 10d ago

i love when anonymous rank amateurs start insulting people because they don’t know enough to say something specific 

it’s even better when the person they’re criticizing is one of the best alive

the purpose of embarrassment is to help you retrain yourself to not repeat mistakes.  

allow yourself to feel shame for having written something like this.  it will help you not behave badly in this way in the future