Machine Learning & AI

The simulation suites I lead, such as Quijote, CAMELS and DREAMS, produce extremely large, complex, multimodal and high-dimensional datasets. Machine learning is one of the best tools to maximize their scientific return. My work in this area has two main goals: extracting cosmological information from non-linear scales, where traditional methods fail, and solving problems for which no analytic theory exists. More recently, I have been developing AI agents designed to act as research partners across scientific disciplines.

Simulation-based inference with baryonic effects

Since 2021, my collaborators and I have been applying simulation-based inference to data from hydrodynamic simulations, with the goal of extracting cosmological information from the smallest possible scales while marginalizing over uncertain astrophysical processes such as supernova and AGN feedback. In this work, we showed that neural networks can infer cosmological parameters directly from simulated fields, at the field level, while marginalizing over baryonic effects (Multifield Cosmology with AI, the CAMELS Multifield Dataset, robust marginalization at the field level).

Answering one question often leads to deeper ones. We found that models trained on simulations run with one code can perform poorly on data from a different code, a critical problem for robust cosmological inference. This led us to develop domain adaptation techniques (2311.01588) and to identify inputs, such as phase-space information, that make models robust across simulation codes (2302.14101).

Geometric and topological deep learning

Cosmological data, such as galaxy catalogs and halo distributions, are naturally irregular point clouds and graphs, not the regular grids assumed by convolutional networks. Since 2021, my collaborators and I have been developing geometric deep learning methods for cosmology: graph neural networks, and more recently topological neural networks, that respect the symmetries of the data, such as rotational and translational invariance. These models can extract cosmological information directly from raw catalogs, marginalize over baryonic uncertainties, and work without artificial scale cuts, something traditional summary statistics cannot do.

Other machine learning applications

Machine learning often gives better results than traditional approaches, or works where no traditional approach exists. My collaborators and I have applied a wide range of techniques to problems in cosmology and astrophysics:

I also enjoy exploring unconventional ideas. For example, we found that, in simulations, the properties of a single galaxy carry information about the value of cosmological parameters (Cosmology with one galaxy?). Results from simulations cannot be directly translated to the real Universe, but surprising results like this help us understand the physics in the simulations, and may point to mechanisms in the real Universe not considered before.

AI agents for scientific discovery

Together with Boris Bolliet and Pablo Villanueva-Domingo, I lead the development of Denario, an open-source AI research assistant (paper, documentation). Denario is made of multiple AI agents that collaborate and compete to carry out specific tasks or end-to-end research: generating ideas, searching the literature, developing research plans, writing and executing code, making plots, and drafting and reviewing papers. Given a dataset, a Denario run typically takes hours, so researchers can explore many more hypotheses, including unconventional ones that might otherwise be considered too risky. Denario cannot yet produce publication-ready papers without significant human guidance, and it is designed to help scientists, not to replace them.

Denario is a large interdisciplinary effort, with domain experts from twelve fields, from astrophysics, biology, chemistry and medicine to quantum physics, neuroscience, mathematics and philosophy. One of the papers it generated was accepted at Agents4Science, the first conference where AI is both the main author and the reviewer. Denario works with both commercial and open-source language models: as AI becomes central to research, scientists need transparent, openly developed tools, and should play a leading role in shaping how AI is used in science.

Current directions include a human-in-the-loop interface where researchers approve, reject or iterate over every step; a fully autonomous mode; and automatic validation of AI-generated results, building on tools such as Skepthical. We are also studying how to measure the ability of AI agents to make genuine discoveries (EurekaBench).

See also: selected publications · code & data