ABAB Pedia

Miles Cranmer

Miles Cranmer is an astrophysics-trained researcher working on artificial intelligence for scientific discovery, the creator of the open-source symbolic regression framework PySR and a co-investigator of the Polymathic AI initiative.

Contents17 sections
Key facts

Early Life: Growing Up in Southern Ontario

Miles Cranmer was fascinated by physics from an early age. His grandfather, a physics professor at the University of Toronto, gave him physics books, and his parents took him to open houses at universities near their home in southern Ontario, CanadaCanadaCanada is a federal state in North America, a parliamentary democracy and constitutional monarchy made up of 10 provinces and 3 territories; it is the second-largest country in the world by area, and its capital is Ottawa. The Dominion of Canada came into being on July 1, 1867, under the British North America Act passed by the British Parliament, and since the patriation of the Constitution on April 17, 1982, amending the Constitution no longer requires the British Parliament. The 2021 census (May 11, 2021) counted a population of 36,991,981.Open the full entry; the Perimeter Institute for Theoretical Physics was one of his favorites. He recalled: “I remember someone talking about infinity when I was super young, and it was so cool to me.”⁠[1]

Studies: Physics at McGill University and the Turn to AI

In his second year, at age 19, he read a Scientific American interview with the physicist Lee SmolinLee SmolinLee Smolin is an American-born theoretical physicist and one of the founding faculty members of the Perimeter Institute for Theoretical Physics who works mainly on quantum gravity; he is a co-inventor of loop quantum gravity and deformed special relativity and proposed the hypothesis of cosmological natural selection. He has written several books on physics for the public, including The Trouble with Physics and Time Reborn.Open the full entry, who said that reconciling quantum theory and relativity would take generations. His reaction: “I can't have that — it needs to go faster.” He said he decided then that artificial intelligence was the way to speed up science.⁠[1]

Lagrangian Neural Networks and Symbolic Models from Deep Learning

In 2020 the paper “Lagrangian Neural Networks,” of which he is an author, appeared at the ICLR 2020 Deep Differential Equations Workshop. The same year, the paper “Discovering Symbolic Models from Deep Learning with Inductive Biases,” with him as first author and Alvaro Sanchez-Gonzalez, Peter Battaglia, Rui Xu, Kyle Cranmer, David Spergel and Shirley HoShirley HoShirley Ho is an American astrophysicist and machine learning researcher working on cosmology and machine learning methods for scientific data; she leads the Cosmology X Data Science group at the Flatiron Institute of the Simons Foundation and founded Polymathic AI, a research collaboration building foundation models for science.Open the full entry as co-authors, appeared at NeurIPS 2020.⁠[3]

The code for the two papers is public in his GitHub repositories lagrangian_nns and symbolic_deep_learning; as of November 2026 they had 576 and 786 stars respectively.⁠[4]

Ph.D. in Astrophysical Sciences from Princeton University

Presenting SymbolicRegression.jl at JuliaCon 2023

On July 26, 2023 he gave a 30-minute talk at JuliaCon 2023 titled “Interpretable Machine Learning with SymbolicRegression.jl,” presenting SymbolicRegression.jl, a symbolic regression library written in Julia. It uses a custom evolutionary algorithm, emphasizes high-performance distributed computing, and finds symbolic expressions that optimize a user-defined objective. By then the library and its Python frontend, PySR, had been used in more than 30 research papers in fields including astrophysics and economics.⁠[6]

Co-Launching Polymathic AI

In October 2023 he and more than two dozen other scientists launched the Polymathic AI initiative, which aims to use the technology behind ChatGPTChatGPTChatGPT is a generative AI assistant launched by OpenAI on November 30, 2022. Through websites and applications, it provides conversation, writing, coding, search, file analysis, and image and voice interaction. It evolved from a free research preview into personal, enterprise and education plans, gradually adding deep research, Study mode and cross-application task execution. Its use has prompted continuing discussions about factual accuracy, personal privacy, copyright, education and teen safety.Open the full entry to build scientific “foundation models” that learn from numerical data and physics simulations across scientific fields. The institutions involved include the Simons Foundation and its Flatiron Institute, New York UniversityNew York UniversityNew York University is a private university in New York City, founded in 1831, and one of the largest private universities in the United States.Open the full entry, the University of CambridgeUniversity of CambridgeThe University of Cambridge is a university in Cambridge, England, United Kingdom. It gives 1209 as its founding date, is made up of Schools, Faculties, Departments and autonomous Colleges, and is a member of the Russell Group.Open the full entry, Princeton University and Lawrence Berkeley National Laboratory. Shirley Ho is principal investigator, and he, Siavash Golkar and Francois Lanusse are co-investigators. He was by then at the University of Cambridge’s Department of Applied Mathematics and Theoretical Physics and Institute of Astronomy.⁠[7][1]

He said the computing power required had made it “difficult to carry out academic research on full-scale foundation models,” and that the collaboration with the Simons Foundation provided “unique resources” to start prototyping such models. He likened current machine learning in science to “teaching a toddler to do a highly-specialised task” and wanted to move toward training a generalist that already understands the world well and can pick up new tasks faster, giving the example of how ChatGPT, though not designed for translation, can outperform Google Translate because its large training data gives it a grasp of grammatical structure.⁠[7][8]

Among the Polymathic AI papers released alongside the launch, he is a co-author of “xVal: A Continuous Numerical Tokenization for Scientific Language Models,” “Multiple Physics Pretraining for Physical Surrogate Models” and “AstroCLIP: A Cross-Modal Foundation Model for Galaxies”; the AstroCLIP paper was accepted in the Monthly Notices of the Royal Astronomical Society.⁠[3]

Presenting Polymathic AI at an A3D3 Seminar

On November 13, 2023 he gave a talk titled “Polymathic AI: Foundation Models for Science” at an A3D3 seminar, covering the shift in machine learning from networks trained from random initialization to fine-tuned pre-trained foundation models, and three Polymathic AI studies on numerical encodings for large language models, contrastive embeddings for multimodal scientific data and models that learn from multiple types of physics.⁠[9]

Lecture at the Simons Foundation

On April 3, 2024 he gave a lecture titled “The Next Great Scientific Theory is Hiding Inside a Neural Network” at the Simons Foundation’s Gerald D. Fischbach Auditorium in New York City. He proposed analyzing a neural network trained on the data instead of modeling the data directly, and extracting the physics the network has learned to refine theories; the lecture also covered Polymathic AI. He was then a Flatiron Research Fellow at the Flatiron Institute’s Center for Computational Astrophysics and an assistant professor in Data Intensive Science at the University of Cambridge.⁠[10][11]

Presenting New Polymathic AI Datasets as Cambridge Team Lead

On December 2, 2024 the University of Cambridge announced new Polymathic AI datasets for training scientific AI models; he was the project’s University of Cambridge team lead, based at the Institute of Astronomy. He said the datasets “are opening the door to true generalist scientific foundation models for the first time” and suggested that scientific foundation models might reveal deep connections across disciplines.⁠[12]

Quanta Magazine Interview on Science and AI

On February 28, 2025 Quanta Magazine published John Pavlus’s interview with him; by then he had spent four years developing PySR. He said he is nowhere near as smart as Albert EinsteinAlbert EinsteinAlbert Einstein (1879–1955) was a German-born physicist who formulated the special theory of relativity in 1905 and the general theory in 1915 and received the 1921 Nobel Prize in Physics for his discovery of the law of the photoelectric effect. From 1933 until his death he was a professor at the Institute for Advanced Study in Princeton, New Jersey, United States.Open the full entry or other great scientists (his words: “nowhere near as smart as Einstein or other great scientists”) and that his contribution is pushing machine learning forward. He said he is not worried about any kind of AI replacing scientists: AI lets people do more in the same amount of time and might change the definition of what a scientist is. He drew a comparison with language models, which are not replacing programmers but changing the definition of what programming is.⁠[1]

Schmidt Sciences AI2050 Early Career Fellowship

In November 2025 he was named to Schmidt Sciences’ fourth cohort of AI2050 Fellows, as a 2025 Early Career Fellow. The cohort of 28 researchers worldwide, 21 early-career and 7 senior fellows, receives $18 million over three years; the program now has 99 fellows across eight countries and 42 institutions. Schmidt Sciences was co-founded by Eric SchmidtEric SchmidtEric Schmidt is a technologist, entrepreneur and philanthropist who was Google’s chief executive officer from 2001 to 2011 and later executive chairman of Alphabet; he chaired the U.S. National Security Commission on Artificial Intelligence and has led the rocket company Relativity Space since 2025.Open the full entry.⁠[13][14][2][15]

His research addresses a puzzle: AI models trained on physics data sometimes predict better than our best theories, yet scientists cannot easily see what the models have learned. His group develops techniques to turn that learned knowledge into interpretable theories; under the fellowship he plans to apply them to large, general models trained on scientific data rather than text, to find new mathematical concepts and physical laws that explain the models’ advantage. He said: “AI models trained on physics are finding patterns our theories miss,” and “the larger AI models get, the better they seem to do this!” He also said: “We can see that these models work, but it's not always clear what they're learning.”⁠[15][14]

As of November 2026: Assistant Professor in Data Intensive Science at the University of Cambridge

As of November 2026 he is an Assistant Professor in Data Intensive Science at the University of Cambridge, in the Department of Applied Mathematics and Theoretical Physics and the Institute of Astronomy, working on AI for scientific discovery; his research group is Relativity and Gravitation. His GitHub profile gives his location as Cambridge, UKUnited KingdomThe United Kingdom of Great Britain and Northern Ireland is a constitutional monarchy in north-western Europe. Its four constituent countries are England, Scotland, Wales and Northern Ireland. London is its capital. The union of England and Scotland in 1707, the union with Ireland in 1801 and the establishment of the Irish Free State in 1922 shaped its present territory. The Office for National Statistics put the UK’s resident population at 69,483,900 in mid-2025.Open the full entry.⁠[16][4]

PySR and SymbolicRegression.jl

He created PySR, an open-source symbolic regression framework that learns equations matching a dataset; it is the Python frontend of SymbolicRegression.jl, written in Julia. His symbolic regression libraries are widely used.⁠[2][1][6][11]

His sole-authored paper “Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl” (24 pages) lists Princeton University and the Flatiron Institute as his affiliations.⁠[3]

As of November 2026 the PySR repository on GitHub (astroautomata/PySR) had about 4,300 stars and 397 forks, and the SymbolicRegression.jl repository (astroautomata/SymbolicRegression.jl) had 817 stars and 137 forks.⁠[4]

Other Open-Source Software

His pinned GitHub projects also include rip2 and DispatchDoctor.jl. rip2, written in Rust and forked from nivekuil/rip, is a safe and ergonomic alternative to the rm command and had 682 stars as of November 2026; DispatchDoctor.jl, a Julia tool for type stability, had 212 stars.⁠[4]

Research Focus

His research aims to speed up scientific discovery with machine learning, focusing on interpretable methods such as symbolic regression and their application to multi-scale dynamical systems, and on out-of-distribution generalization in machine learning for science; his deep learning work includes physics-motivated architectures such as Lagrangian neural networks.⁠[6][2][11]

Related Organizations, Websites, and Public Accounts

University of Cambridge: Official website: https://www.cam.ac.uk/ (opens in a new window).⁠[7]

Sources16 sources

  1. The Physicist Working to Build Science-Literate AI (opens in a new window)quantamagazine.org↑
  2. Miles Cranmer (opens in a new window)ai2050.schmidtsciences.org↑
  3. Miles Cranmer's articles on arXiv (opens in a new window)arxiv.org↑
  4. MilesCranmer (Miles Cranmer) · GitHub (opens in a new window)github.com↑
  5. Miles Cranmer - The Mathematics Genealogy Project (opens in a new window)mathgenealogy.org↑
  6. Miles Cranmer :: JuliaCon 2023 :: pretalx (opens in a new window)pretalx.com↑
  7. Scientists begin building AI for scientific discovery using tech behind ChatGPT (opens in a new window)cam.ac.uk↑
  8. Teaching AI the language of science (opens in a new window)maths.cam.ac.uk↑
  9. A3D3 Seminar: Miles Cranmer (opens in a new window)indico.cern.ch↑
  10. The Next Great Scientific Theory is Hiding Inside a Neural Network (opens in a new window)simonsfoundation.org↑
  11. Miles Cranmer (opens in a new window)simonsfoundation.org↑
  12. New datasets will train AI models to think like scientists (opens in a new window)cam.ac.uk↑
  13. Cambridge researcher awarded Schmidt Sciences fellowship to ensure AI benefits society (opens in a new window)ats.cam.ac.uk↑
  14. KICC researcher Dr Miles Cranmer receives an AI2050 fellowship from Schmidt Sciences. (opens in a new window)kicc.cam.ac.uk↑
  15. Dr Miles Cranmer awarded Schmidt Sciences AI2050 Early Career Fellowship (opens in a new window)maths.cam.ac.uk↑
  16. Dr Miles Cranmer (opens in a new window)damtp.cam.ac.uk↑