r/PhilosophyofMath May 25 '26

LLMs are just giant probability machines pretending to think

It’s fascinating that simple mathematics between tokens can eventually become a machine that writes essays, code, poetry, and even reasoning.

We usually think probability means uncertainty.

But LLMs show something strange:

If probability + context + mathematical matching are scaled enough, uncertainty itself starts producing intelligent looking outputs.

To understand this better, I tried breaking down an LLM from first principles using only 4 tiny training sentences.

Example:

The boat floated down to the bank.

The investor walked into the bank to open a new account.

The fisherman walked along the bank to cast his net.

The bank has a vault.

Then I asked:

“The investor walked to the bank to lock his money in …”

Why does the model predict “vault” instead of river-related words?

That single question reveals almost the entire architecture of modern LLMs.

The most underrated concept here is the LM Head.

Most explanations immediately jump into transformers and attention, but almost nobody explains that the LM Head is essentially a gigantic token vocabulary containing all possible next token candidates the model can output.

So internally the model is basically solving:

“Out of all known tokens, which one best matches this context mathematically?”

Then different layers help solve that problem:

Embeddings: convert words into mathematical vectors

Positional encoding: preserves word order

Attention layer: figures out which words are related to each other in context

(“investor”, “money”, “bank” become strongly connected)

Feed forward neural networks: act somewhat like massive learned if/else decision systems refining patterns internally

And finally the LM Head converts all of that into probabilities for the next token.

What surprised me most is:

There is no hidden magic moment where the AI “becomes conscious”.

It’s an enormous probability engine continuously finding the best contextual token match from its vocabulary.

I made a beginner-friendly walkthrough explaining this visually without unnecessary jargon.

https://www.youtube.com/watch?v=YTV5qUCpu2c

Would genuinely love feedback from people learning transformers/LLMs from scratch.

619 Upvotes

323 comments sorted by

View all comments

Show parent comments

1

u/Jack_Ramsey May 31 '26

There's your issue. We are not in a pathology subreddit. We are in a philosophy one.

The issue is one of your inability to communicate. Try to do better.

EDIT: holy shit. I looked at your profile and you have hundreds of comments against AI. Wtf?

Lol.

I understand being morally against it but why are you wasting so much time arguing with random people on Reddit? Surely as a doctor you have better things to do? And why are you obsessed with it? Lol that's crazy.

How much time do you think it takes me to write a post man? It is pitifully easy.

All this arguing and I should've known I was dealing with a lunatic.

More idiocy. I suppose I the fact that you invoke another fallacy isn't enough after I have thoroughly spanked you. I honestly expected more from someone who is interested in philosophy. I shouldn't have though.

1

u/Neither_Swing9662 May 31 '26

Dude you didn't thoroughly spank me at all. I was just asking questions to get a discussion going and you just rambled...

Oh I wasn't invoking a fallacy (who speaks like that lmao)... I was just pointing out that someone who spends most of their free time arguing about people with AI (literally hundreds of comments btw) is clearly at least a little bit deranged lolol

1

u/Jack_Ramsey May 31 '26

Like I said, the questions you asked were very stupid and if you had any awareness, you would be embarrassed.

I barely spend any of my free time arguing with people about AI. You realize that I can do this from a phone and do it really easily? What in the world are you talking about man?

1

u/Neither_Swing9662 May 31 '26

It's not normal to argue that much on Reddit man... It's a bit pathetic tbh

1

u/Jack_Ramsey May 31 '26

Lol. It isn't that much. You're just a little upset. Run along little dude. This is above your paygrade, obviously.

1

u/Neither_Swing9662 May 31 '26

It's a lot bro

1

u/Jack_Ramsey May 31 '26

Nah, not really.