Re:LeanDojo: Theorem Proving in Lean Using LLMs
by ijustlovemath on Sunday July 28, 2024 @10:32PM
(#41097540)
I think that in order for it to truly find deep insights, it would need to do more than just generate training data. I'm also a believer that the current AI approaches are approaching their limits as the human feed dries up and we start using old models to train new ones.
Of course, what that really means and how you'd go about adapting your CUDA code / hardware, would have to be researched.
Re:LeanDojo: Theorem Proving in Lean Using LLMs
by magicalhippo on Sunday July 28, 2024 @10:10PM
(#41097461)
It could perhaps also be used to guide the sampling step at the end, or? Similar to those syntax-constrained samplers to ensure the LLM spits out eg valid JSON.
Re:LeanDojo: Theorem Proving in Lean Using LLMs
by ijustlovemath on Sunday July 28, 2024 @10:29PM
(#41097527)
Syntax constraints are usually expressible as grammars, but the language of math is often very unique and domain specific, which makes this kind of approach tricky to get right
Re:LeanDojo: Theorem Proving in Lean Using LLMs
by Vecr on Monday July 29, 2024 @01:40AM
(#41098158)
Thankfully Lean exists, so the LLM can write that instead of the math syntax used in papers.
Re:LeanDojo: Theorem Proving in Lean Using LLMs
by magicalhippo on Monday July 29, 2024 @03:06AM
(#41098452)
So yea that was my thought. Use it to spit out valid Lean syntax, and potentially also to backtrack if it outputs inconsistent or erroneous proofs.
Re:LeanDojo: Theorem Proving in Lean Using LLMs
by namibj on Monday July 29, 2024 @09:12AM
(#41100194)
It's fairly good at valid syntax already, and did the backtracking for a long time due to it doing tree search guided by it's predictions for how likely that tactic will end up finishing the tree leaf it's applied to.
Not sure of the feasibility of implementing lean as a GPU kernel, if you meant that. Also I'm not sure it makes sense to run Lean inside the (mostly matmul) training process. Now to use it to prepare some training data, it seems more realistic. But that seems to be what AlphaProof tries to do in the reinforcement step, if I'm not mistaken.