r/LargeLanguageModels • u/JohnofDundee • Aug 11 '26
Question ELI5 - How do LLMs act with intelligence?
We all know that large language models can statistically predict what should be the next token, but how do we go from there to mathematical proofs? How is intelligence implemented?
3
Upvotes
View all comments
Show parent comment
1
u/CS_70 Aug 14 '26
Feedback cycle. The model produces proofs in a language like Lean 4 (different ones depending on the specific field), that can be interpreted and checked deterministically by an interactive theorem prover.
The TP tests for mistakes and reports its findings to the model. The model uses this feedback to increase its knowledge and update the proof.
The cycle is repeated until either the TP says it checks out, or the model doesn't find a reasonable way to improve the proof and discards it, starting with another idea.
Many different sessions (aka "mathematicians") work in parallel traversing the idea space in different directions.
Not so different from what we do when we do math by hand, only way faster :)