Earthquakes, volcanoes, storms, energy, mining and space

Home » By the Numbers: The Cap Set Records Broken by FunSearch

FunSearch Cap Set Discovery: How DeepMind’s Language Model Beat Known Records

By

–

By the Numbers: The Cap Set Records Broken by FunSearch

“It’s not in the training data. It wasn’t even known.” That is how Pushmeet Kohli, a coauthor and vice president of research at Google DeepMind, described what a language model had just produced. On December 14, 2023, DeepMind’s team published a paper in Nature saying a large language model had helped crack a famous open problem in pure mathematics, the cap set problem.

The tool is called FunSearch. MIT Technology Review reported that it was the first time a language model had been used to find a solution to a long-standing scientific puzzle, one that gave verifiable and new information. The Guardian relayed the team’s claim of the first genuine scientific discovery made by such a model. Kohli himself added a qualifier: “as far as we know.”

The puzzle

Picture dots on graph paper. The cap set problem asks how many you can place before any three fall on a straight line. In its real form it lives in high-dimensional space, and it is niche but important. Mathematicians do not agree on how to solve it. Terence Tao of the University of California, Los Angeles, a Fields Medal winner, called it “perhaps my favorite open question” in a 2007 blog post.

FunSearch produced programs that generate cap sets larger than the best ones mathematicians had come up with, according to the Guardian. Neither report lists the new sizes by dimension, so the exact margins sit in the Nature paper.

How the system works

FunSearch pairs a model called Codey, a version of Google’s PaLM 2 fine-tuned on code, with checkers that throw out wrong or nonsensical answers. Researchers first write the problem as a Python program but leave out the lines that say how to solve it. Codey fills the gap. A second algorithm scores the result, and the best attempts, even those not yet correct, go back to Codey for another try.

“Many will be nonsensical, some will be sensible, and a few will be truly inspired,” Kohli said. After a couple of million suggestions and a few dozen repetitions, which took a few days, the system produced code that gave a correct and previously unknown answer.

The team was candid about the limits of its understanding. “To be very honest with you, we have hypotheses, but we don’t know exactly why this works,” said Alhussein Fawzi, a DeepMind research scientist. “In the beginning of the project, we didn’t know whether this would work at all.”

Beyond cap sets

FunSearch writes code, a recipe for the answer, not the answer alone. That makes its output easier to read and, in theory, reusable on other problems. The team tried bin packing, which asks how to fit items into as few containers as possible and matters for data-center management and e-commerce. FunSearch found a method faster than human-designed ones, one that avoids leaving small gaps unlikely to be filled.

Sir Tim Gowers, a Cambridge mathematician who was not involved in the research, said it gives mathematicians another interesting tool for working with AI and that the constructions are humanly interpretable. Tao called it “a promising paradigm.” A big limit, the Guardian noted, is that the problems must have answers that can be checked automatically, which rules out many biology questions that need lab tests.

Sources

Get breaking stories first on our Telegram channel.

More stories by

Most read

Natural Disasters

Energy & Mining

Space

Science Discoveries