Hacker News new | ask | show | jobs
by ks2048 2 days ago
Amazing to reflect (for those old enough to remember) on "The Unreasonable Effectiveness of Recurrent Neural Networks" (2015). https://karpathy.github.io/2015/05/21/rnn-effectiveness/

The RNN model could output source that "almost compiles" as valid LaTeX, and looks reasonable. Now, it outputs a 283 page novel proof of a significant result in quantum algorithms.

4 comments

While reflecting that we should also be crediting human effort that went into Lean and its libraries. Without that we will probably be now where close.

So far no model has one shotted a proof that passes Lean without a large number of back and forth with a human and/or Lean.

> While reflecting that we should also be crediting human effort that went into Lean and its libraries

Human effort went into everything that LLMs do. They are literally nothing except some interesting math without thousands of years of human endeavor.

People talk about how AI companies are stealing human effort and selling it back but I don't think most of us reflect on that deeply enough. Without thousands of years of human effort, AI companies are nothing except math + expensive hardware. We, collectively as a species own and have the right to this knowledge, and it's derivatives, not the AI companies.

Sabotaging people who distill or work on other LLMs is deeply problematic and should be illegal.

This is different though. The LLMs aren't output pure proof. They iterate a bazillion times using Lean.
> We, collectively as a species own and have the right to this knowledge, and it's derivatives, not the AI companies.

Indeed this, we can't allow corporations to privatize our collective human knowledge (even shredding original unique books, etc) by pretending it is their "IP" because they put a thin sliver of 'natural language search' on top of it.

When a system is 99.9999999% build from the commons, it belongs to the commons.

That's not how the Internet worked and it will probably follow a similar path. The Internet absorbed all of the physical world and digitized it and resold it to each other.

Economic constructs exist for resource allocation scheduling.

No, the LLM companies own the proprietary techniques and algorithms to turn that collective human knowledge into something useful instead of just a collection of documents.

You don't get to demand it for feel good vibes. You can start your own company though that produces fully open source models!

crazy that in the early 2000s i learned about both neural networks and formal verification projects for mathematics and came away with the impression that both were "ratholes down which valuable mathematical effort is being poured". but now the combination of the two is upending mathematics.

first, even the most complex of research-level mathematical questions are relatively easy to formalize. second, if the proof is written in a formal language, then you essentially get testing "for free" via the proof checker. and finally, llms seem really, really good at searching the space of proofs.

My introduction to formal methods was writing Z notation in pencil and paper so I also envy those brought up today with such rich, powerful tools.
Envy notwithstanding, wouldn't you also say you have a leg up on them in, for instance, knowing all the pitfalls of Z notation that one obtains by writing it out by hand?

Speed has a way of inducing blindness.

Extrapolating trends has its downsides, but I am willing to bet that we'll see some incredible zero-human-in-the-loop scientific research papers and Lean proofs in the next year or so.
Yes but Lean has had tremendous amount of human effort that we are glazing over.
I have to say I'm a little surprised at the emphasis on zero-human-in-the-loop one-shot stuff from the labs. I didn't realize the frontier labs viewed needing an expert to guide the model as such a thing to be avoided. I guess I was naive, I thought the goal was solving the tough problems, but it appears to be more cynical than that.
I reckon it's got a lot to do with training. You can train a model to solve hard problems on its own, it's difficult to scale training with a human.
>> So far no model has one shotted a proof that passes Lean without a large number of back and forth with a human and/or Lean.

Not only that but no LLM-Generated proof will ever be trusted without it being formalized in, and verified by, either Lean or another proof assistant. None of the recent breakthroughs in mathematics by AI would be possible if it wasn't for Lean.

So what I'm waiting for is a broad admission that Good, Old-Fashioned AI did not fail, contrary to the dominant narrative and that it is instead indispensable to modern AI. Lean is a symbolic, logic-based system, exactly the kind of GOFAI that everyone keeps saying failed [1].

I'm really interested in this because I've argued against the dominant narrative constantly, particularly here on HN. I've posted many comments on the success of classical AI in Automated Theorem Proving [2], Planning & Scheduling, Program Verification and Model Checking, and Program Synthesis. Of those, only the latter's lunch has been eaten by LLMs and only with considerable effort to guide LLM generation by a symbolic harness [3] so again that is not a clear fail for symbolic AI.

Agentic harnesses basically implement a generate-and-test loop with the LLM as a generator and the harness as a tester. This is also an archetypal GOFAI technique, albeit one that nobody seriously considered after ca. 1956, since it's extremely inefficient and terminally dumb. Only with the billions spent to create the most powerful text generators the world has ever seen and even more millions to run it, has this "technique" now come back to haunt us all like a necromantic joke rising from the grave.

Even without harnesses, LLMs are only capable of a semblance of the reasoning ability of systems we already had in the 1970's because they are RL'd to replicate a form of search. Search! The signature technique of classical AI.

I want the world -the tech world- to finally realise and acknowledge the fact that GOFAI was not a failure. What happened in the first 30 years of AI is that we [4] got reasoning with a computer down pat, and there has been no improvement in reasoning ability ever since.

And so if we're going to move forward in this brave new world of AI and humans working together, modern AI, be it LLM-based or not (I hope not, because those things are really dumb) progress must mean more investment and more interest in logic-based AI.

___________

[1] For example, Geoff Hinton, for example in the Romane Lecture below. The lecture is about the success of neural nets and yet he can't stop talking about the failure of logic-based AI:

https://www.youtube.com/watch?v=N1TEjTeQeg0&t=588s&pp=ygUbZ2...

[2] Lean is a proof assistant, which is a particular kind of Automated Theorem Prover.

[3] Something that Gary Marcus has bigged up as "neurosymbolic AI". I don't exactly agree with that.

[4] Figuratively speaking; I wasn't there.

Many (most?) of these recent proof efforts are first fully done informally/non-mechanized and then formalized to ensure their correctness (possibly fixing some smaller parts). Lean here only plays the role of proof checker instead of proof search (and in general I'd call it odd to call Lean an ATP instead of an ITP with some basic automation. Even something like Isabelle would normally not be called an ATP).

In general I think it's a huge stretch to attribute this win to GOFAI/ATP. To me a LLM running in a loop reasoning non-mechanized is about as much GOFAI as a mathematician exploring different proof avenues. If that's already GOFAI then the term is pretty meaningless. Essentially none of the classical ATP techniques are actually used as part of these recent endeavors.

This is just nitpicking on terminology. Without the advances in formal reasoning produced during the 30-40 years when GOFAI was the dominant paradigm in AI there would be no Lean, and there would be no AI proofs that anyone can trust. See the first paragraph in my comment. As to an LLM running in a loop, that's search, and see the third paragraph from last in my comment.

I could even go further and point out that LLMs are nothing but gigantic Expert Systems created with machine learning rather than hand-crafted production rules, which of course was the major motivation of early machine learning research (in the late '80s and early '90s) as you can find for example in Tom Mitchell's seminal textbook (https://www.cs.cmu.edu/afs/cs.cmu.edu/user/mitchell/ftp/mlbo...).

There are no new ideas in AI, this is why everyone is spamming the same old stuff over and over again: reasoning, learning, scaling, RL, reasoning, learning, scaling, RL, except every new generation is too lazy to open the textbooks of the earlier generation and has to rediscover it all on their own, and fail in the same way every time.

Modern LLMs aren't really RNNs. They're fully feedforward, at least from what we know

(except in an annoyingly pedantic way where you consider thinking tokens fed back into the input a recurrent edge, but by that logic every next token predictor is an RNN)

While the developments have indeed been amazing, this is not the example that proves it -- an almost compiling Latex code is more useful than a quantum algorithm.
Would applying modern RLVR techniques would let this old RNN output actually valid Latex??
Re/ modern techniques: Maybe?

Cf. https://karpathy.github.io/2022/03/14/lecun1989/