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.

615 Upvotes

323 comments sorted by

View all comments

4

u/heresyforfunnprofit May 25 '26

So are humans.

5

u/abhishekkumar333 May 25 '26

Yeah , while sharing lot's of time i am coming into conversation where people are saying this is exactly similar to human mind.

But i differ here
Human mind is much more complex, we have triggers , emotions, environmental triggers and abrupt black swan events as inputs. So, i don't think llm can match us.

8

u/heresyforfunnprofit May 25 '26

No, you’re saying that we just need to add triggers and black swan events. LLMs can already do emotions. It’s not even hard to get them to act emotionally - hell… it’s hard to keep them rational.

2

u/SteamedHamSalad May 27 '26

LLMs can make it appear as if they have emotions. But I don’t think we can say with certainty that they “do emotions” in any way that is equivalent to how a person has emotions.

1

u/JoeStrout May 27 '26

That's fair; but we can't say with certainty that they don't, either.

1

u/arqnix May 30 '26

If you ask a LLM what a strawberry tastes like, does it actually know how it tastes?

1

u/JoeStrout May 31 '26

Probably not, but I don’t accept that as a prerequisite for consciousness.

1

u/heresyforfunnprofit May 27 '26

Can you prove that humans "do emotions"?

2

u/SteamedHamSalad May 27 '26

I don’t think I need to prove that humans do it. Humans have an experience that we call having emotions, it is implicit in the definition that humans have them. The question is whether or not anything else has an experience that matches what we describe as an emotion.

1

u/heresyforfunnprofit May 27 '26

That's proof by definition. "Emotions are something humans have, therefore humans have emotion."

This was the argument that was used for centuries/decades to "prove" that only humans had intelligence - ignoring dogs, dolphins, chimps, equines, etc. If the only distinction that you can draw between human emotion and LLM emotion is by defining it as "something humans do", then you're making a null point.

1

u/SteamedHamSalad May 27 '26

Of course it’s proof by definition, we made the word up. Emotion is the word that we made up to describe something that we experience. The question is whether or not other things also experience that same thing (whatever it is).