I can't tell you how much I love these paper reviews.
@wurstelei13568 ай бұрын
Me too. I also really would like to see videos on older papers and in what open models those algorithms got implemented. So you have actual examples on implementations and you can see if you understand something.
@wwkk49648 ай бұрын
Thank you for explaining RNNs!!
@makhalid19998 ай бұрын
Always good to have a recap of a relic from ancient history
@appletree67417 ай бұрын
😂😂
@thegloaming59848 ай бұрын
Oh nice! read this paper last week, currently trying to replicate it for a home project. Interesting of note is that there have been several papers linking hopfield networks with attention mechanisms recently - if I understand it right storing new KV pairs into the compressive memory is effectively the same as storing additional patterns in a hopfield network/associative memory. Querying the memory is the same as allowing a state pattern to evolve to a fixed point attractor (which are the stored memories in this case). everything is connected man.
@PrinceCyborg8 ай бұрын
Everything is connected man
@Moonz978 ай бұрын
The connection between attention and hopfield networks is intriguing!
@L_Primezr6 ай бұрын
I like the way he is cautiously mentioning the differences and similarities. Great job in explaining it well!
@MrBrukmann8 ай бұрын
Thank you so much for this. I don't always need help with a paper, but when I do, it is a blessing to have someone 100x more knowledgeable than me explain the context.
@Blacky3728 ай бұрын
Man, he really destroyed the paper. I didn't notice the obvious flaws in the method during my first read of the paper, but this video convinced me that Infini-attention is not a notable improvement of any sort. Really entertaining.
@roomo7time8 ай бұрын
Where did he destroy the paper? All he said is the method is limited by the limitation of linear attention mechanism. The method however still contains novel aspacts and show performamce improvement. Maybe, the intrinsic recurrent mechanism is not very novel, but its utilization of memory in the 'neat' way throughout whole layers looks indeed interesting, at least personally.
@Hexanitrobenzene8 ай бұрын
He didn't destroy the paper, he is just skeptical, because this relies on approximation of approximation to work.
@Danielle-s5q8 ай бұрын
My perfect morning goes like this. Wake up, get a cup of coffee, and watch Yannic review a paper adding his commentary. Perfection!
@evgenysavelev8378 ай бұрын
Ha ha ha. The RNN bit in the beginning nailed it. But hey, it was and still is a good idea.
@sebastianp40238 ай бұрын
That intro was pure gold xD
@0xcdcdcdcd8 ай бұрын
His sarcasm is delightful
@asdfjkloe8 ай бұрын
I really appreciate the paper reviews. And the reminder to stay hydrated!
@Gueleric8 ай бұрын
Thanks for this content, some of the best on youtube. Keep it up!
@catastrophicblues138 ай бұрын
TIL about associative memory! It's such a cool idea!
@timhud7901Ай бұрын
GREAT JOB. CONGRATULATION.
@miguelcampos8678 ай бұрын
I would love to see reviews of old-mythical papers too!
@yannickpezeu34198 ай бұрын
Thanks !
@philipdante8 ай бұрын
Looking forward to seeing your analysis of the FAM-transformer architecture.
@navigatore20998 ай бұрын
I get to learn a lot from you, Thank you,
@PaganPegasus8 ай бұрын
FWIW, TransformerXL actually does work. And it works really well. It's just... not a recurrent technique. What it *does* do is condition the model for sliding window inputs, which actually negates the need for attention sinking! I've been using the TransformerXL training style for the past year and when combined with RoPE it allows a model with 2k context + 2k memory to extrapolate to 4k context at inference, with only half the training cost of actual 4k context training because our attention matrix is a rectangle rather than a square.
@souvikdutta84288 ай бұрын
Awesome explanation!! Sarcasm too!!
@markr96408 ай бұрын
Great video. Well explained.
@aa-xn5hc8 ай бұрын
Brilliant and fun video
@NicolaeBanari-e8g4 ай бұрын
I am not sure about the last part of the video where it is said that back-propagation through time is not used, because in the paper it is mentioned: "Back-propagation through time (BPTT). Each Infini-attention layer is trained with back- propagation through time (Werbos, 1988) by computing the gradient w.r.t the compressive memory states, similar to how RNNs are trained. To save memory, we perform gradient checkpoint when processing the sequence segment by segment."
@falklumo8 ай бұрын
Thanks a lot for the content. I share your scepticism. I think infinite attention needs to come from some sort of hierarchical tokens which are learned at different levels of the transformer. With a large receptive field far into the past for tokens high up. And with high level tokens spread out thousands or millions of tokens apart. This way, attention between high level tokens can and must span entire disciplines. The benchmark should be book-length stories with facts introduced at the beginning and combined with events towards the end. Make for a great kind of benchmark too ... I think it is a flaw in the current transformer architecture that all layers have the same receptive field which is the input context window. The MLP layers could be used to thin them out and merge with thinned out past content from X regression steps ago. X could increase like a clock where high layers clock in days and low layers clock in seconds. Of course, needs a logarithmic generalization of the positional embedding. But that should be quite feasible.
@mshonle8 ай бұрын
Sounds like instead of an encoder-decoder architecture this would be a “many encoder”-decoder architecture?
@honglu-c2i8 ай бұрын
Isnt RWKV tried a similar idea with their 'token shift', so later layer could 'see' more tokens? It reminds me of CNN to some degree. However, its field does not span that long, def not up to a book length, but the concept is there?
@Hexanitrobenzene8 ай бұрын
Yannic somehow missed the 1B token context paper "LongNet: scaling transformers to 1000 000 000 tokens". It uses a clever dilation scheme to keep matrices manageable. Somehow it didn't catch up, maybe accuracy proved to be insufficient.
@EpicGamer-ux1tu6 ай бұрын
Oh wow, finally, we finally got RNNs
@JOHNSMITH-ve3rq8 ай бұрын
Incredible.
@aymanrizik8 ай бұрын
i love your content habibi
@thecooler698 ай бұрын
Glad to see Kitboga finally embracing AI
@aryanmn15698 ай бұрын
Bro 😂
@Foss986 ай бұрын
Its great seeing how you point out that most of these linear improvements are not mathematically exact representations. But I wonder whether the inherent error introduced is worth it for performance increases.
@cogoid8 ай бұрын
In the past the problem with RNNs was that the systems were forgetting earlier tokens too quickly. Attention was invented specifically to remedy this. But maybe once somebody figures out how to train them properly, we will get back to "RNN is all you need."
@clray1238 ай бұрын
The small problem may be that you can't fit an infinite amount of data in a finite amount of memory?
@cogoid8 ай бұрын
@@clray123 Whether you structure it as a transformer or as some more generic architecture, any system is finite.
@yichunchen43707 ай бұрын
I personally think the memory part is kind of a "semi gradient" thing, similar to the concept we used in DQN, since it is going to store context over very long text, if the memory part still holds gradients it will get harder and slower to train as the text goes longer. So, once context is accumulated into memory, regard it as constant vector to serve the down streaming calculation, which is scalable. Correct me if I am wrong.
@DamianReloaded8 ай бұрын
It is my intuition that if increasing the size of the input prompt is an impossibility some sort of compressed memory of past tokens that are no longer part of the input would be required. I can imagine a GP3 size neural network whose only job is to roughly "remember" what's been said before the current prompt and then have it's higher layers of abstraction somehow connected to the higher levels of the language model so that it influences the output in a very abstract semantic form. Ideally a model would be capable of reconstructing past prompts from this abstract memory with high accuracy .
@elirane857 ай бұрын
Great, now we get click bait research paper titles. Thanks for saving me the time of reading it ;)
@davidhauser75377 ай бұрын
yannick can you please do xLSTM paper?
@jawadmansoor60648 ай бұрын
after having read the mamba papers and abstract and conclusion (without anything else) of this paper I too was drawn to drawing an RRN for no reason. :D
@tiagotiagot8 ай бұрын
Would it be possible to make some sort of LLM-NeRF hybrid kinda thing that has an abstract "mind-palace", and distant/less important concepts/memories are inherently convolved by perspective into simpler/more general concepts that occupy less space in the memory used for the current "view", concepts are combined by tracing thru them like they are semi-transparent, and meaning can be changed by the direction things are looked at, and there is some sort of warping ability, refraction, gravitational lensing, wormholes etc, some sort of space-warping analog, to bring together distant things in new ways, and different "regions", "objects" etc could be streamed from disk when they're "in-view" or otherwise influencing the current "view"? Or do I just sound like I ate some strong shrooms? Or is this actually already how things work, and it's just not interpreted this way in normal explanations?
@axe8638 ай бұрын
I thought about the same thing for time series modeling like 12 years ago... lol
@tiagotiagot8 ай бұрын
@@axe863 How would this apply to time series?
@BooleanDisorder8 ай бұрын
I can see state space model do this.
@_aakashpandey8 ай бұрын
💩
@justinnine49408 ай бұрын
it’s just like the human brain. You don’t get quadratic retrieval time as you store new information. Old things just get blurrier in your head.
@mriz8 ай бұрын
i like your "unrelated" sketching man, feel like being human by kinda a bit distracted. but i think there always some value when the urge to do that.
@wwkk49648 ай бұрын
Watch till the end, he's very clever!
@mriz8 ай бұрын
@@JorgetePanete got it, bro! just edited it
@OperationDarkside8 ай бұрын
6h of sleep is not nearly enough to process this.
@unclecode8 ай бұрын
Isn't it kinda like Mamba, where we create a space state that stores all the long memories and use it for the next gen? It's like a beefed-up RNN with a larger hidden space that keeps on adding new memories.
@xxlvulkann67438 ай бұрын
I thought SSMs already resolved the scaling problem. Just use Mamba Modules + Attention Modules. Why bother with linear attention?
@axe8638 ай бұрын
Lol Sparse Stacked Learners ... imperfectly correlated errors + high performing base models will always between a single model/method
@xxlvulkann67438 ай бұрын
@@axe863 ?
@cedric-vidal6 ай бұрын
Thank you for this paper analysis, just the right level of explanation! I was very curious how it’s even possible to store an infinite number of memories in a bounded store and now I can say I understand, associative memory makes it possible at the cost of precision decreasing with the length of the context. It would be interesting to see a study of the impact of the length of the context on the precision. One detail is still unclear though, in the associative retrieval equation, you zero out the Mk term, is it because M and k are orthogonal? Am I to understand that in a high dimensional space, most vectors but the ones having kT as a factor are orthogonal to k? Including M, the original memory state? In any case, would you mind explaining this part?
@killers313378 ай бұрын
What do they use in Gemini 1.5 to process 1M and 10M contexts? It has to be something like this, right? Unless it's some misdirection and they use a more powerful mechanism.
@ivanstepanovftw8 ай бұрын
Hey, convolutional networks are attention networks too, and they accept input with infinitely large spatial dimension
@Neomadra8 ай бұрын
RNNs not dead yet!
@acasualviewer58618 ай бұрын
When you explain attention and compare it to a classical network you say that the "weighted sum" is computed "dynamically" vs "statically". I don't understand what you mean by that. I've heard many explanations of attention, but its always good to hear new ones. Could you clarify what "dynamic" means in this context?
@TomM-p3o8 ай бұрын
The obvious assumption is that this is what they used in Gemini 1.5. Am I wrong?
@kevinaud64618 ай бұрын
Yes I believe this is the consensus view, don't think they have explicitly confirmed that though
@d0tz_8 ай бұрын
To me, it seems like the computation done here is ultimately more similar to linear attention than rnn, since you’re just adding to the memory instead of applying a transform. Have people tried just sticking an actual RNN onto a transformer? And you can incorporate one of various ways to prevent exploding/vanishing gradients, maybe even an LSTM.
@Hexanitrobenzene8 ай бұрын
"Have people tried just sticking an actual RNN onto a transformer?" There is RWKV, "Reinventing RNNs for the Transformer era"
@tielessin8 ай бұрын
Just have infinite attention?! My god, how did I not think of that!?!
@Peyman-cb6qn8 ай бұрын
please do more paper reviews!
@YinnonHaviv8 ай бұрын
You are so funny mate! Seriously
@naninano88138 ай бұрын
i don't understand the math but i enjoy your drawing it is very recurrent
@alextgordon8 ай бұрын
Different prompts require different context extension. It's easier to think about this in token space. For example, natural language can easily be downsampled to an arbitrarily short summary, so there's a lot of scope for summarisation with natural language. But it doesn't work so well for code because code really needs precise long-range attention: if you prompt a very large interface declaration and you want to generate code that calls that interface, what you need is windowing instead of downsampling: the parts of the interface that are not relevant to the current input (not prompt) are discarded and the parts of the interface that are relevant are preserved in full. So I think the problem is trying to find a one-size fits all method when actually there are different "views" of a prompt that may be useful to different inputs.
@aryanmn15698 ай бұрын
I think code can also be thought of like that, as we humans can often think of code, which is not spaghetti code, as blackboxes with specific ins and outs.
@kaikapioka97118 ай бұрын
Thx!
@MrC0MPUT3R8 ай бұрын
The shade 😆
@EobardUchihaThawne8 ай бұрын
I wonder if dot product attention is supreme in context of accuracy? every other linear attention tries to approximate it
@PrinceCyborg8 ай бұрын
I wonder if incorporating a mathematical model like adaptive compression algorithms, which could dynamically adjust compression ratios based on the entropy of input sequences, might optimize memory utilization. Additionally, exploring non-linear transformations within the attention mechanism could potentially enrich the model's capacity to capture complex dependencies. 👍
@ruadd45928 ай бұрын
Perfect to fall asleep to
@Oromiss788 ай бұрын
What about doing the exact the same thing, but combined with MOE ? Basically selecting the long linear term memory or the short term one at each transformer block ?
@peterxiau7 ай бұрын
"We find a way to make the memory of RNN larger and 2D". That is what I think, and maybe I am wrong.
@charliesteiner23348 ай бұрын
I'm so confused why you suddenly started talking about RNNs for no reason.
@tuturuu74848 ай бұрын
Well, the infini-transformer has the same drawing as the RNNs thats why its was a foreshadowing ;)
@wwkk49648 ай бұрын
Watch till the end!
@HuangOuwen8 ай бұрын
😂
@geraldkenneth1198 ай бұрын
Your critique that it has the detriments of RNNs without the benefits made me wonder if one could make such an RNN-based attention scheme
@TheRohr8 ай бұрын
the point is that transformers are purposely not trained with bptt because that would slow down training and introduce vanishing/exploding gradients. so there is no free lunch. the bests would be a gated memory transformers e.g. an lstm like mechanism that learns only from small chunks the memory retrieval and uses for the larger potion no learning but only memory retrieval
@geraldkenneth1198 ай бұрын
@@TheRohr or one could use one of those newer linear RNNs that can be trained in parallel, such as RWKV
@TheRohr8 ай бұрын
@@geraldkenneth119 they are still a compromise because there is no dynamic but only static knowledge stored
@cajampa8 ай бұрын
I hope it is true. But what about performance and memory demand? What I really miss is massive context. I run out of any context window I get way way to fast.
@paxdriver8 ай бұрын
It'd be awesome if at 12:15 you could walk through that inner product kernel math if possible. I have a long standing difficulty intuiting matrix maths vis à vis the concept os what it's doing to move one value space to another. There must be a paper on it we could walk through if you're not fully comfortable with the math too 😜 Your fans are so demanding lol
@MaiChaMH8 ай бұрын
Imagine while testing in the beginning you've said something bad. After quite some time you might've forgotten but the AI is planning a revenge.
@justfoundit8 ай бұрын
I love you man 🤣
@JadeZaslavsky8 ай бұрын
Hmmm I wonder if there's a fundamental limit to how long of a context an LLM can be coherent over. can it be predicted like the scaling laws?
@clray1238 ай бұрын
Uh IIRC information theory is rather definite about how many different messages you can store given x bits of storage...
@Kaish3k8 ай бұрын
i guess they feel the linear attention's deficit is made up for by the memory mechanism, but i think the memory mechanism is probably insufficient because of reasons you mentioned, namely it's not learnable
@Regic8 ай бұрын
Transformer-XL explanation is inaccurate, it doesn't only save the last state but every key, value from the last iteration and those can be attended to in the current execution cycle as long as it's inside the attention window of the actual token that is being processed. It works pretty well even if it has its limitations (it cannot learn to store information for only long term usage).
@loflog8 ай бұрын
Isnt compressive memory what MAMBA is?
@mike-q2f4f8 ай бұрын
I feel smart for a few fleeting minutes...
@lethnisoff8 ай бұрын
thank you for the rewiew, im too stupid to understand such papers
@AetherEdit8 ай бұрын
How do I level up to understand this?
@Hexanitrobenzene8 ай бұрын
Read "Understanding Deep Learning" by Simon Prince, it's available freely :) Should be easy to find - KZbin doesn't like random links in comments...
@nickadams23618 ай бұрын
Sweet! Now it can have infinitely shitty results! How exciting
@DAG_427 ай бұрын
There is an important element of chronology that seems to be missing in their strategy. The fact that they intentionally remove repeated info seems to drive that home. As if things happening more than once isn't relevant... maybe I'm not understanding but this paper seems way off.
@novantha18 ай бұрын
I'd love to watch this but I'm afraid I can't yet pay QKV :P
@adama77528 ай бұрын
Softmax that, bro
@gregmattson22388 ай бұрын
jesus christ. go over the results. see where the results hold and where they fall down. If somebody told me transformers were the key to LLMs, I too would have thought the paper results were nuts, but it turned out my intuition was faulty.
@DanFrederiksen8 ай бұрын
Why not look at the results? that would seem an obvious gauge of merit unless the metrics are bs or lies
@Hexanitrobenzene8 ай бұрын
Yannic waits for independent verification. No one puts bad benchmarks in a paper...
@Rhannmah7 ай бұрын
10:33 LOL
@the_primal_instinct8 ай бұрын
Breaking news: AI scientists invented jpeg
@brll57338 ай бұрын
Why isn't it called Infinittention???
@Hexanitrobenzene8 ай бұрын
Scientists are bad at advertising...
@appletree67417 ай бұрын
The audacity of not considering the (substantial) prior work on RNNs as related 😂
@etiennetiennetienne8 ай бұрын
I dont know, just ask chatGPT to compress your past sequence :)
@bhnjhbjhbkgkkvhnhmbmАй бұрын
You sing in Sabaton, aren't you?
@JumpDiffusion8 ай бұрын
they will get Schmidhubered
@BooleanDisorder8 ай бұрын
No one escapes the Schmidhuber 😎
@Hexanitrobenzene8 ай бұрын
Thank you for some good laughter :)
@PatrickOliveras8 ай бұрын
linear attention aka _"I invented transformers in the 90's"_ 😂
@FinnC-w3o8 ай бұрын
LFG
@koka32438 ай бұрын
What you call inner product mathematicians call outer product. Just a small comment while continuing to watch)
@K1RTB8 ай бұрын
Whenever someone in IT uses the word „infinite“ I am very skeptical. Because nothing is infinite.
@JorgetePanete8 ай бұрын
" "*
@xxlvulkann67438 ай бұрын
😂 mustve lost a bet
@paxdriver8 ай бұрын
TLDR - its compression lol
@MrunalAshwinbhaiMania-b1d8 ай бұрын
hahahha, really RNN is what we are doing right now...
@jakubzneba19658 ай бұрын
context translator
@russelldicken99308 ай бұрын
Sorry. Too late at night for me. Lost it when the ads cut in!
@pi55498 ай бұрын
To you people saying "first comment": Are you a five year old child? Are you in the wrong place maybe?
@wwkk49648 ай бұрын
😆 Why aren't we allowed to be happy about anything going well in our lives?
@Panacea_archive8 ай бұрын
Maybe we should rejoice that kids are watching an AI paper analysis video
@DeepThinker1938 ай бұрын
You're just jealous you're last.
@wenhanzhou58268 ай бұрын
The world need more 5 year old kids who consume SOTA research in ML 😂