
Share
Researchers at DeepMind unveil FunSearch, a method using large language models to generate innovative mathematical solutions and solve open problems, marking a new era in AI-driven scientific discovery.
In a groundbreaking development, researchers at DeepMind have introduced FunSearch, a novel method that harnesses the power of Large Language Models (LLMs) to make new discoveries in mathematical sciences. This approach marks the first time LLMs have been used to solve open problems in mathematics and computer science, offering significant implications for scientific research.
FunSearch operates by leveraging an LLM's ability to generate creative solutions in the form of computer code, paired with an automated evaluator that ensures these solutions are correct. The process involves several key steps:
Problem Definition: The user provides a problem description in the form of code, which includes:
Solution Generation: The LLM generates multiple candidate solutions (functions) based on the provided problem description.
Evaluation and Selection: The evaluator runs these functions and scores them based on their performance. Only the highest-scoring solutions are retained.
Evolutionary Iteration: The process iterates, with the LLM refining its ideas based on feedback from the evaluator. Over time, this back-and-forth interaction leads to increasingly sophisticated and effective solutions.
One of FunSearch's notable achievements is solving an open problem in combinatorial mathematics known as the cap set problem. This problem involves finding the largest subset of a finite vector space over the field with three elements (GF(3)) that contains no three points on a line. Despite its simplicity, it has eluded mathematicians for decades.

FunSearch also demonstrated practical applications by improving algorithms for the bin-packing problem. This problem is crucial in various industries, including data center management, where it helps optimize resource allocation.
The ability of LLMs to generate verifiably correct and novel solutions has profound implications for scientific research:
The potential applications of FunSearch extend beyond mathematics and computer science. Researchers at DeepMind have already shown how the method can be used to enhance human performance in combinatorial competitive programming (as detailed in an arXiv report published in December 2024).
FunSearch represents a significant step forward in using AI for scientific discovery. By combining the creative power of LLMs with rigorous evaluation, it opens new avenues for solving complex problems and advancing our understanding of mathematical sciences.
Tags
Original Sources
About the author
Kai built ML infrastructure at a Bay Area startup before developing an obsession with transformer architectures and inference optimisation that eventually pulled him out of product work entirely. A stint at a compute research lab sharpened his instinct for what actually matters in a model release versus what is marketing. He writes from the inside — from the perspective of someone who has debugged the systems he is describing at three in the morning. He is allergic to hype and instinctively drawn to the unglamorous plumbing questions that everyone else skips over.
More from The Engineer →This Week's Edition
9 February 2024
133 articles
Related Articles
Related Articles
More Stories