Matteo Biagetti

Matteo Biagetti

AREA Science Park
5 previous affiliations
42Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Matteo Biagetti focuses on the geometric and topological analysis of high-dimensional data, with a trajectory spanning theoretical cosmology, large-scale structure (LSS) surveys, and the interpretability of deep neural networks. His work has transitioned from investigating the primordial conditions of the early universe through inflationary models to characterizing the The Expansion and Compression of Neural Representation Geometry in modern artificial intelligence. Currently, his research emphasizes the discovery of Low-Dimensional Manifolds in High-Dimensional Language Models, applying geometric metrics such as intrinsic dimension to understand how information is structured and processed within transformer architectures.

Research Trajectory

The early phase of Biagetti’s research, spanning approximately 2012 to 2017, was primarily concerned with the physics of the very early universe, specifically the era of cosmic inflation. During this period, he focused on developing theoretical frameworks to distinguish between different inflationary scenarios using observational data from the Cosmic Microwave Background (CMB) and the distribution of galaxies. A central theme was the search for primordial non-Gaussianity, which serves as a signature of the interactions and fields present during inflation. His work investigated how multifield models of inflation—which involve more than one scalar field—could be tested through the scale-dependent bias of dark matter halos. He also explored alternative probes of inflation, such as the "running" of the spectral index, demonstrating that even in the absence of primordial gravitational wave detections, precise measurements of density fluctuations could reveal the presence of multiple fields.

In the late 2010s and early 2020s, Biagetti’s focus shifted toward the large-scale structure of the universe and the development of sophisticated statistical tools to analyze the "cosmic web." This period was characterized by a move from purely theoretical modeling to the use of cosmological N-body simulations to test the abundance of local density extrema (peaks and dips) in mass and halo fields. A significant methodological evolution occurred during this time as he began incorporating topological data analysis (TDA) into cosmological pipelines. By using persistent homology, he sought to extract "topological echoes" of primordial physics from the distribution of dark matter halos, providing a more robust way to constrain initial conditions and non-Gaussianities than traditional two-point correlation functions.

During this middle period, Biagetti also participated in large-scale international collaborations, most notably the Euclid mission. His contributions involved modeling the effects of massive neutrinos on the growth of structure and investigating the accuracy of perturbative galaxy bias expansions. This work was essential for benchmarking the theoretical models against high-resolution simulations, ensuring that forthcoming spectroscopic galaxy samples could be used to precisely constrain cosmological parameters.

Starting around 2024, Biagetti’s research underwent a significant domain shift toward machine learning and the geometric interpretability of Large Language Models (LLMs). This transition leverages his previous expertise in analyzing high-dimensional manifolds and complex spatial structures. His current work treats transformers as mean-field particle systems, using intrinsic dimension (ID) estimators to track how neural representations evolve across different layers of a model. This research aims to link the geometric properties of these representations—such as their dimensionality and compression—to practical outcomes like model uncertainty, surprisal, and safety.

Current Directions

Biagetti’s current research program is centered on the geometric logic of deep neural networks. He investigates the "intrinsic dimensionality" of hidden representations, which refers to the minimum number of variables required to describe the data manifold within the high-dimensional embedding space of a model. His work suggests that while LLMs operate in spaces with thousands of dimensions, the actual computation and "thinking" occur within much lower-dimensional, structured subspaces.

A primary focus of this work is understanding the temporal and structural evolution of these representations during a model's forward pass. By estimating the ID at each layer, Biagetti has observed that representation geometry typically expands in early layers before compressing in later stages. This geometric behavior appears to correlate strongly with the model's internal uncertainty and the semantic coherence of the input. For instance, his recent work demonstrates that semantic disruptions, such as token shuffling, lead to measurable changes in the intrinsic dimension of the representations, providing a potential tool for model interpretability and the detection of anomalous or unsafe inputs.

Representative Work

Testing multifield inflation with halo bias (2012) In this first-author paper, Biagetti examines the potential for future measurements of halo bias to distinguish between single-field and multifield inflationary models. The research focuses on the relationship between the four-point and three-point correlators of primordial curvature perturbations. By analyzing the scale dependence of halo bias, the study provides a framework for testing the validity of multifield scenarios, which predict specific inequalities that single-field models do not.

What we can learn from the running of the spectral index if no tensors are detected in the cosmic microwave background anisotropy (2015) As the lead author, Biagetti explores the diagnostic power of the spectral index's "running" (how the tilt of density fluctuations changes across scales). The paper argues that if primordial gravitational waves (tensor modes) remain undetected by CMB experiments, the running of the spectral index becomes a critical alternative probe. The study demonstrates that a sizable running would specifically signal the presence of multiple scalar fields during the inflationary era, providing a path forward for inflationary cosmology in the absence of B-mode polarization signals.

Abundance of peaks and dips in 3D mass and halo density fields: a test for cosmology (2018) In this second-author study, Biagetti utilizes cosmological N-body simulations to analyze the distribution of local maxima and minima in smoothed density fields. The research compares Gaussian and non-Gaussian initial conditions, finding that the abundance of these topological features is a sensitive probe of cosmological parameters and the nature of primordial perturbations. The work confirms the accuracy of existing theoretical expressions for peak abundance in evolved fields and identifies the lognormal distribution as a strong fit for height distributions on quasi-linear scales.

Topological Echoes of Primordial Physics in the Universe at Large Scales (2020) This second-author paper introduces a pipeline for characterizing primordial non-Gaussianities using persistent homology. By computing persistence diagrams for simulations of dark matter halos, the research demonstrates that topological statistics can successfully distinguish between different initial conditions of the universe. This work represents a significant methodological shift toward using TDA to capture information in the cosmic web that is often missed by standard power spectrum analyses.

Euclid preparation (2024) As part of the Euclid Collaboration, Biagetti participated in this large-scale study investigating the accuracy of perturbative galaxy bias expansions. The work benchmarks different theoretical prescriptions, including those from the effective field theory of large-scale structure (EFTofLSS), against high-resolution N-body simulations. This collaborative effort was crucial for preparing the analysis pipelines required for the Euclid spectroscopic sample, focusing on the precision needed to interpret millions of galaxy observations.

The Intrinsic Dimension of Prompts in Internal Representations of Large Language Models (2026) In this senior-author (PI) paper, Biagetti applies geometric analysis to the internal states of Large Language Models. The study treats transformers as mean-field systems and estimates the intrinsic dimension of token representations across layers. The findings reveal that ID peaks in the middle layers and correlates with next-token uncertainty and surprisal. This work establishes a link between the geometry of the logit space and the entropy of the model's output, offering new methods for practical interpretability and AI safety.

Profile updated

See something wrong? Report a mistake