Google DeepMind says a language model has, for the first time, produced a new discovery on a hard open problem in mathematics. The system is called FunSearch, and DeepMind published the work in Nature.
The problem was the cap set problem, a long-standing question in combinatorics. Science site ZME Science reported that FunSearch found new, larger cap sets, the biggest jump in cap set size in two decades.
Two parts, one loop
FunSearch pairs a pre-trained language model, here Google’s PaLM 2, with an automated evaluator. The model writes computer code. The evaluator runs it and scores it, which guards against the invented answers language models are known for.
A user starts by describing the problem as code: a procedure that scores programs, plus a seed program to start a pool. At each round the system picks some programs from the pool and hands them to the model. The model writes new versions, each is scored automatically, and the best go back into the pool. DeepMind describes the result as a self-improving loop.
The name comes from what the system searches for: functions written in code.
Beyond the cap set
DeepMind also pointed FunSearch at bin packing, the problem of fitting objects of different sizes into as few containers as possible. The company says the system found more effective algorithms for it, with uses such as making data centers more efficient.
One feature separates FunSearch from a tool that just returns answers. It outputs programs, so researchers can see how a solution is built, not only what it is. “This show-your-working approach is how scientists generally operate,” the DeepMind researchers wrote.
They also said the results “demonstrate that the FunSearch technique can take us beyond established results on hard combinatorial problems, where intuition can be difficult to build.” They expect it to help with similar theoretical problems in combinatorics and, later, possibly in fields such as communication theory.
In December 2024, DeepMind posted a report on arXiv showing the method can also improve human performance in combinatorial competitive programming.
Sources
- FunSearch: Making new discoveries in mathematical sciences using Large Language Models
- From hallucinations to discovery: For the first time a large language model finds new solutions to math problems





