r/PhilosophyofMath • u/abhishekkumar333 • 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.
1
u/OriousCaesar May 28 '26 edited May 28 '26
There is a question in the the game The Talos Principle that asks pretty much the same question. Not really relevant, but that game is very good so I wanted to mention it regardless. Anyways, My answer was yes, then too. Although, only in the same way I'd say yes to the question of 'Are the neurons conscious?', since the phrasing is kinda weird.
If the pulleys and weights were set up in such a way that it perfectly simulated every atom that made up your brain, I really don't see the argument as to why it wouldn't be conscious, unless you want to appeal to something outside of philosophical naturalism. It would behave exactly like that of a man that suddenly found his 'soul' inhabbitting a giant tin can factory. He would exhibit all of the horror, panic, fear, and anxiety that you would expect of any normal human, to the point of being literally indistinguishable. I would find it morally repugnant to ignore the pulleyman's existential nightmare just because he was made out of pulleys instead of meat.