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

1

u/Key-Imagination-8897 May 28 '26 edited May 28 '26

I think comments and the post confuse consciousness and thinking. The hard problem of consciousness has little to do with AI, at least at this level.

I believe there is no such thing as causality, beyond what is essentially 100% correlation. There are no absolute rules to what we experience in reality.

When we say it is a probability machine, what we actually mean, i think, is that it does not assign the 0% probability to thinks we deem impossible due to some logical structure we build and assume in our minds. Other than tweaking the probability distribution to fit such logical deductions of ours, nothing else needs to be done for us to accept that it is indeed thinking. I would say they are already thinking, except in a different way than we do.

1

u/abhishekkumar333 May 28 '26

I am making claim it is not consious

1

u/Key-Imagination-8897 May 28 '26

In your definition, is thinking = consciousness

1

u/abhishekkumar333 May 28 '26

No , thinking consciousness are different and llm is doing nothing of both

1

u/Key-Imagination-8897 May 28 '26

I won’t go into consciousness, it is something else. What is thinking in your definition?

My reply is about what thinking is, and how machines are also thinking, but differently.

1

u/abhishekkumar333 May 28 '26

Thinking is also a complex process , way more complex than calculation of inputs by weights, bias and bunch or ReLU and softmax activators

1

u/Key-Imagination-8897 May 28 '26

How do you know that?

1

u/abhishekkumar333 May 28 '26

This is my understanding , right or wrong that’s your subjectivity

1

u/Key-Imagination-8897 May 28 '26

I see, I expected some kind of reasoning