Live data from Hacker News

Understand how transformers work by demystifying the math behind them

osanseviero.github.io

11–20 of 139 posts

Re: Understand how transformers work by demystifying the math behind them

#12
post #8

Earlier quoted context omitted.

This is basically this - it can learn ignore some paths, and amplify something more important, then you can just cut this paths without sensible loss of quality. The problem is that you are not going to win anything from this - non-matrix multiplication would be slower or the same.

The issue is that you are thinking of this in terms of information compression, which is what LLMs are. Im more concerned with an LLM having the ability to be trained to the point where a subset of the graph represents all the nand gates necessary for a cpu and ram, so when you ask it questions it can actually run code to compute them accurately instead of offering a statistical best guess, i.e decompression after lo…

Just give it a computer? Even a virtual machine. It can output assembly code or high level code that gets compiled.

Re: Understand how transformers work by demystifying the math behind them

#13
post #5

There I was all excited to show off some of my electrical chops on HN. Not today.

Does mystified math lie beyond behind how the ratio of input and output voltages is equal to the ratio of the primary and secondary windings? Can it be derived from Maxwell's equations?

Off to a search...

Re: Understand how transformers work by demystifying the math behind them

#17
post #13
post #5

There I was all excited to show off some of my electrical chops on HN. Not today.

Does mystified math lie beyond behind how the ratio of input and output voltages is equal to the ratio of the primary and secondary windings? Can it be derived from Maxwell's equations? Off to a search...

I bet that an LLM (which uses transformers) can explain those aspects of a transformer to you.

Re: Understand how transformers work by demystifying the math behind them

#19

Transformer tutorials might be the new monad tutorial. A hard concept to get, but one you need to struggle with (and practice some examples) to understand. So a bit like much of computer science :-).

Waiting for a blogpost titled "You could have invented transformers".

Re: Understand how transformers work by demystifying the math behind them

#20

Do LLMs use neural nets? If so, what makes up the "neuron"? i.e. Is there a code structure that underlies the neuron, or is it "just" fancy math?

Yes to both, the "neuron" would basically be a weighted parameter. A parameter is an expression, it's a mathematical representation of a token and it's probabilistic weighting (theyre translated from input or to output token lists entering and exiting the model). Usually tokens are pre-set small groups of character combinations like "if " or "cha" that make up a word/sentence. The recorded path your value takes down the chain of probabilities would be the "neural pathway" within the wider "neural network".

Someone please correct me if I'm wrong or my terminology is wrong.

Post reply on HN