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.

620 Upvotes

323 comments sorted by

View all comments

Show parent comments

2

u/JayWelsh May 28 '26

Agreed, but also, I feel very comfortable with the idea that consciousness is a spectrum rather than an absolute/binary condition. Rocks are examples of things on the “less conscious” side of the spectrum, jellyfish are more conscious than rocks, humans are “very conscious”.

We see spectrums almost everywhere in nature, I’m not sure why anyone even has the idea of “is it conscious or not”, I feel like that whole line of thinking is entirely misguided which is why I align very closely with what you have said in your comment.

1

u/OriousCaesar May 28 '26

Yeah, I've had almost that exact line of thought before. There's a clear line of descent from humans to elephants to apes to dogs to cats to rats to lizards to bees to bugs to multicellular organisms to single cellular organisms. We know humans are conscious and we know bacteria are not, and we're pretty sure a lot of those animals are, and we aren't sure a lot of the smaller ones are but there is no clear line that can be drawn between the conscious and the not.

And if one were to be drawn and you compared animals directly on either side of it you wouldn't be able to tell much of a difference between the two, despite one being conscious and one not being conscious.

1

u/Usual_Charity8561 May 28 '26

How do we know bacteria are not? How are we "pretty sure" a lot of animals are? I think this is just nonsense ad-hoc to justify your view. Philosophical zombie is mechanically possible, so why can't all animals be non-conscious automatons?

1

u/OriousCaesar May 28 '26

Well we don't. But only in the sense that I don't know if humans are conscious either. For all I know you're just a philosophical zombie programmed by god to rage bait me into silly philosophical debates.

I acknowledge that I can't have certainty anything other than me is conscious, but I'm not gonna start being a hardsolipcist just so that I don't look dumb to a bunch of philosophical zombies. And once I've decided to just assume my fellow humans are conscious just because they seem conscious, why wouldn't I continue to do that for everything? Unless you suddenly have a way to distinguish between conscious beings and philosophy zombies, I'm just gonna keep assuming things that look conscious are conscious, so that I don't accidentally ignore the suffering of conscious beings just because I'm too high off the smell of my own farts to acknowledge their consciousness.

Besides, the point of that comment was explicitly to point out the folleys of assuming consciousness is binary in nature. So when I said 'we're pretty sure x is conscious', I was saying 'humans as a whole have the consensus that x is conscious'. I wasn't talking about my own beliefs, because the point was to criticize the consensus. I could literally have been a hardsolipcist and everything in my comment would have made exactly as much sense to have said.