IDEAS home Printed from https://ideas.repec.org/a/nat/nature/v625y2024i7995d10.1038_s41586-023-06924-6.html
   My bibliography  Save this article

Mathematical discoveries from program search with large language models

Author

Listed:
  • Bernardino Romera-Paredes

    (Google DeepMind)

  • Mohammadamin Barekatain

    (Google DeepMind)

  • Alexander Novikov

    (Google DeepMind)

  • Matej Balog

    (Google DeepMind)

  • M. Pawan Kumar

    (Google DeepMind)

  • Emilien Dupont

    (Google DeepMind)

  • Francisco J. R. Ruiz

    (Google DeepMind)

  • Jordan S. Ellenberg

    (University of Wisconsin-Madison)

  • Pengming Wang

    (Google DeepMind)

  • Omar Fawzi

    (University of Lyon (Inria, ENS Lyon, UCBL, LIP))

  • Pushmeet Kohli

    (Google DeepMind)

  • Alhussein Fawzi

    (Google DeepMind)

Abstract

Large language models (LLMs) have demonstrated tremendous capabilities in solving complex tasks, from quantitative reasoning to understanding natural language. However, LLMs sometimes suffer from confabulations (or hallucinations), which can result in them making plausible but incorrect statements1,2. This hinders the use of current large models in scientific discovery. Here we introduce FunSearch (short for searching in the function space), an evolutionary procedure based on pairing a pretrained LLM with a systematic evaluator. We demonstrate the effectiveness of this approach to surpass the best-known results in important problems, pushing the boundary of existing LLM-based approaches3. Applying FunSearch to a central problem in extremal combinatorics—the cap set problem—we discover new constructions of large cap sets going beyond the best-known ones, both in finite dimensional and asymptotic cases. This shows that it is possible to make discoveries for established open problems using LLMs. We showcase the generality of FunSearch by applying it to an algorithmic problem, online bin packing, finding new heuristics that improve on widely used baselines. In contrast to most computer search approaches, FunSearch searches for programs that describe how to solve a problem, rather than what the solution is. Beyond being an effective and scalable strategy, discovered programs tend to be more interpretable than raw solutions, enabling feedback loops between domain experts and FunSearch, and the deployment of such programs in real-world applications.

Suggested Citation

  • Bernardino Romera-Paredes & Mohammadamin Barekatain & Alexander Novikov & Matej Balog & M. Pawan Kumar & Emilien Dupont & Francisco J. R. Ruiz & Jordan S. Ellenberg & Pengming Wang & Omar Fawzi & Push, 2024. "Mathematical discoveries from program search with large language models," Nature, Nature, vol. 625(7995), pages 468-475, January.
  • Handle: RePEc:nat:nature:v:625:y:2024:i:7995:d:10.1038_s41586-023-06924-6
    DOI: 10.1038/s41586-023-06924-6
    as

    Download full text from publisher

    File URL: https://www.nature.com/articles/s41586-023-06924-6
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1038/s41586-023-06924-6?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:nat:nature:v:625:y:2024:i:7995:d:10.1038_s41586-023-06924-6. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.nature.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.