Live data from Hacker News

How do transformers work?

nintyzeros.substack.com

21–30 of 41 posts

Re: How do transformers work?

#21
post #15

Is it only me, or after reading this article with a lot of high-level, vague phrases and anecdotes - skipping the actual essence of many smart tricks making transformers computationally efficient - it is actually harder to grasp how transformers “really work”. I recommend videos from Andrej Karpathy on this topic. Well delivered, clearly explaining main techniques and providing python implementation

Agreed, I have made my own shakespeare babbler following Karpathy's videos. I have a decent understanding of the structure and process but I don't really grasp how they work.

It's obvious how the error reduces, but I feel like there's something semanticly going on that isn't directly expressed in the code.

Re: How do transformers work?

#23
post #17
post #15

Is it only me, or after reading this article with a lot of high-level, vague phrases and anecdotes - skipping the actual essence of many smart tricks making transformers computationally efficient - it is actually harder to grasp how transformers “really work”. I recommend videos from Andrej Karpathy on this topic. Well delivered, clearly explaining main techniques and providing python implementation

There's also this type of articles where the first half of the article is easily understandable by a layman but then they suddenly drop a lot of jargon and math formulas and you get completely lost.

A friend once described these kin of descriptions by analogy with a recipie that went;

Recipie for buns, First you need flour, this is a white fined grained powder that is produced from ground wheat that can be acquired by exchanging for money (a standardised convention for storing value) at a store which contains many such products. When mixed with the raising agent and other ingredients you should remove the buns from the oven when golden brown.

Re: How do transformers work?

#24
post #19

Is it normal not to come away from these with any kind of intuition like “ah, that’s why transformers work so well” Instead I just come away feeling like it’s a Frankenstein of different matrices and statistics.

The reason they're good is that they're not recurrent: you can do attention over all of the sequence at once.

Recurrent models had two flaws: (1) vanishing gradient problem (2) not parallelizable

Re: How do transformers work?

#27
Articles like this pop up often on HN but I don't think they can lead to genuine comprehension. Doubtful that people outside ML circles will dive into Mamba or analogous architectures if they supplant transformers. They're just harder to understand.

Re: How do transformers work?

#30
post #19

Is it normal not to come away from these with any kind of intuition like “ah, that’s why transformers work so well” Instead I just come away feeling like it’s a Frankenstein of different matrices and statistics.

If it looks like Frankenstein, and it often acts like Frankenstein...

These things can and are and will be useful, but its not a magic ticket to knowing things. I booted up lamma2 at home, first question "how do I make you smarter?", all it returned were responses like "tell me a book or field to research". Obviously, that doesnt work, and it never suggested importing libraries or running training cycles.

Hey, I search a linux problem on brave, and the ai gives me the right answer 75% of the time, nice, but the other 25% it is just regurgiating outdated reddit threads. It has no cognition, it has no bearing on what consequences are, it just pronounces the result of a statistical model, it doesnt know what any of it means.

Post reply on HN