Live data from Hacker News

Mathematical exploration and discovery at scale

terrytao.wordpress.com

61–70 of 135 posts

Re: Mathematical exploration and discovery at scale

#61
post #18

Hopefully this will finally stop the continuing claims[1] that LLMs can only solve problems they have seen before! If you listen carefully to the people who build LLMs it is clear that post-training RL forces them to develop a world-model that goes well beyond a "fancy Markov chain" that some seem to believe. Next step is building similar capabilities on top of models like Genie 3[2] [1] eg https://news.ycombinator.c…

AlphaEvolve isn't an LLM - it's an evolutionary coding agent that uses an LLM for code generation.

https://deepmind.google/blog/alphaevolve-a-gemini-powered-co...

This is part of Google/DeepMind's "Alpha" branding (AlphaGo, AlphaZero, AlphaFold) of bespoke machine learning solutions to tough problems.

It sounds like AlphaEvolve might do well on Chollet's ARC-AGI test, where this sort of program synthesis seems to be the most successful approach.

I find Tao's use of "extremize" vs "maximize" a bit jarring - maybe this is a more normal term in mathematics?

Re: Mathematical exploration and discovery at scale

#62
post #18

Hopefully this will finally stop the continuing claims[1] that LLMs can only solve problems they have seen before! If you listen carefully to the people who build LLMs it is clear that post-training RL forces them to develop a world-model that goes well beyond a "fancy Markov chain" that some seem to believe. Next step is building similar capabilities on top of models like Genie 3[2] [1] eg https://news.ycombinator.c…

AlphaEvolve isn't an LLM - it's an evolutionary coding agent that uses an LLM for code generation. https://deepmind.google/blog/alphaevolve-a-gemini-powered-co... This is part of Google/DeepMind's "Alpha" branding (AlphaGo, AlphaZero, AlphaFold) of bespoke machine learning solutions to tough problems. It sounds like AlphaEvolve might do well on Chollet's ARC-AGI test, where this sort of program synthesis seems to be…

Sometimes you want to minimize

Re: Mathematical exploration and discovery at scale

#63

Earlier quoted context omitted.

Existence problems are not optimisation problems and can't, AIUI, be tackled by AlphaEvolve. It needs an optimisation function that can be incrementally improved in order to work towards an optimal result, not a binary yes/no. More importantly, a research mathematician is not trapped in a loop, mutating candidates for an evolutionary optimiser loop like the LLM is in AlphaEvolve. They have the agency to decide what q…

> Existence problems are not optimisation problems Several of the problems were existence problems, such as finding geometric constructions. > It needs an optimisation function that can be incrementally improved in order to work towards an optimal result, not a binary yes/no. This is not correct. The evaluation function is arbitrary. To quote the AlphaEvolve paper: > or example, when wishing to find largest possible…

> finding geometric constructions

Finding optimal geometric constructions. Every problem is an optimisation because AlphaEvolve is an optimiser.

> This is not correct. The evaluation function is arbitrary.

You say this and then show details of how the score is calculated. AlphaEvolve needs a number to optimise, because it is optimiser. It can't optimise true/false.

> The feedback that you've constructed a graph of size K with some property does not tell you what you need to do to construct a graph of size K + M with the same property.

The feedback that you've constructed a graph of size K tell you that you've constructed a bigger graph than a competing solution that only constructed a graph of size K-1 and are therefore a more promising starting point for the next round of mutation

If you're trying to solve a "does there exist an X" problem, the information that none of your candidates found (or was) an X doesn't give you any information about which of them you should retain for mutation in the next step. You need a problem of the form "find the best X" (or, rather "find a good X") and for that you need a score of how well you've done. If you can find a score that actually improves steadily until you find the thing you're trying to prove the existence of then great, but generally these problems are "find the best X" where it's easy to come up with a load of competing Xs.

> The novelty here is that the LLM replaces the human expert.

That's not the claim at all. Tao said the benefits are scaling, robustness and interpretability, not that it can be operated by someone who doesn't know what they're doing.

Re: Mathematical exploration and discovery at scale

#64
post #8
post #6

Earlier quoted context omitted.

I'm not claiming to be an expert, but more or less what the article says is this: - Context: Terence Tao is one of the best mathematician alive. - Context: AlphaEvolve is an optimization tool from Google. It differs from traditional tools because the search is guided by an LLM, whose job is to mutate a program written in a normal programming language (they used Python). Hallucinations are not a problem because the LL…

>> If the LLM fucks up, that branch is cut. Can you explain more on this? How on earth are we supposed to know LLM is hallucinating?

The LLM basically just produces some code that either runs and produces good results or it doesn't. If it produces garbage, that is the end of the line for that branch.

Re: Mathematical exploration and discovery at scale

#65
post #18

Hopefully this will finally stop the continuing claims[1] that LLMs can only solve problems they have seen before! If you listen carefully to the people who build LLMs it is clear that post-training RL forces them to develop a world-model that goes well beyond a "fancy Markov chain" that some seem to believe. Next step is building similar capabilities on top of models like Genie 3[2] [1] eg https://news.ycombinator.c…

Read https://www.argmin.net/p/lore-laundering-machines

Given time, we may find out that the solutions in this paper were also in the literature, as was the case in the anecdotes from the linked article :)

Re: Mathematical exploration and discovery at scale

#66
post #3

That was dense but seemed nuanced. Anyone care to summarize for those of us who lack the mathematics nomenclature and context?

They put an LLM in a loop that mimics how people do real math, and it did research-level math. Like humans, it wasn't equally capable across all mathematical domains. The experiment was set up to mimic mathematicians who are excellent at proving inequalities, bounds, finding optimal solutions, etc. So more like Ramanujan and Erdős in their focus on a computationally-driven and problem-focused approach.

> that mimics how people do real math

Real people do not do math like AlphaEvolve...

Re: Mathematical exploration and discovery at scale

#67

Earlier quoted context omitted.

A random walk can do mathematics, with this kind of infrastructure. Isabelle/HOL has a tool called Sledgehammer, which is the hackiest hack that ever hacked[0], basically amounting to "run a load of provers in parallel, with as much munging as it takes". (Plumbing them together is a serious research contribution, which I'm not at all belittling.) I've yet to see ChatGPT achieve anything like what it's capable of. [0]…

yeah but random walks can't improve upon the state of the art on many-dimensional numerical optimisation problems of the nature discussed here, on account of they're easy enough to to implement to have been tried already and had their usefulness exhausted; this does present a meaningful improvement over them in its domain.

When I see announcements that say "we used a language model for X, and got novel results!", I play a little game where I identify the actual function of the language model in the system, and then replace it with something actually suited for that task. Here, the language model is used as the mutation / crossover component of a search through the space of computer programs.

What you really want here is represent the programs using an information-dense scheme, endowed with a pseudoquasimetric such that semantically-similar programs are nearby (and vice versa); then explore the vicinity of successful candidates. Ordinary compression algorithms satisfy "information-dense", but the metrics they admit aren't that great. Something that does work pretty well is embedding the programs into the kind of high-dimensional vector space you get out of a predictive text model: there may be lots of non-programs in the space, but (for a high-quality model) those are mostly far away from the programs, so exploring the neighbourhood of programs won't encounter them often. Because I'm well aware of the flaws of such embeddings, I'd add some kind of token-level fuzzing to the output, biased to avoid obvious syntax errors: that usually won't move the embedding much, but will occasionally jump further (in vector space) than the system would otherwise search.

So, an appropriate replacement for this generative language model would be some kind of… generative language model. Which is why I'm impressed by this paper.

There are enough other contributions in this paper that slotting a bog-standard genetic algorithm over program source in place of the language model could achieve comparable results; but I wouldn't expect it to be nearly as effective in each generation. If the language model is a particularly expensive part of the runtime (as the paper suggests might be the case), then I expect it's worth trying to replace it with a cruder-but-cheaper bias function; but otherwise, you'd need something more sophisticated to beat it.

(P.S.: props for trying to bring this back on-topic, but this subthread was merely about AI hype, not actually about the paper.)

Edit: Just read §3.2 of the paper. The empirical observations match the theory I've described here.

Re: Mathematical exploration and discovery at scale

#68
post #65
post #18

Hopefully this will finally stop the continuing claims[1] that LLMs can only solve problems they have seen before! If you listen carefully to the people who build LLMs it is clear that post-training RL forces them to develop a world-model that goes well beyond a "fancy Markov chain" that some seem to believe. Next step is building similar capabilities on top of models like Genie 3[2] [1] eg https://news.ycombinator.c…

Read https://www.argmin.net/p/lore-laundering-machines Given time, we may find out that the solutions in this paper were also in the literature, as was the case in the anecdotes from the linked article :)

Then its utility as a best search agent is even more. It proves the statement, LLM will find the needle in the haystack if the needle exists.

Re: Mathematical exploration and discovery at scale

#69

Earlier quoted context omitted.

> Existence problems are not optimisation problems Several of the problems were existence problems, such as finding geometric constructions. > It needs an optimisation function that can be incrementally improved in order to work towards an optimal result, not a binary yes/no. This is not correct. The evaluation function is arbitrary. To quote the AlphaEvolve paper: > or example, when wishing to find largest possible…

> finding geometric constructions Finding optimal geometric constructions. Every problem is an optimisation because AlphaEvolve is an optimiser. > This is not correct. The evaluation function is arbitrary. You say this and then show details of how the score is calculated. AlphaEvolve needs a number to optimise, because it is optimiser. It can't optimise true/false. > The feedback that you've constructed a graph of si…

> not that it can be operated by someone who doesn't know what they're doing.

It's operated by an LLM, not a human. There is no human in the loop.

Post reply on HN