Manuscript Offprint
arXiv:2609.09504Inductive Biases in Field-Level Cosmological Inference from Galaxy Catalogs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
We perform field-level likelihood-free inference of the matter density parameter from simulated galaxy catalogs using machine learning models with differing inductive biases. Using hydrodynamic simulations from CAMELS, we examine how observable choice and architecture govern cosmological information extraction. We consider galaxy positions and line-of-sight peculiar velocities, separately and jointly, and compare permutation-invariant Deep Sets, implemented with either multilayer perceptrons (MLPs) or Kolmogorov-Arnold Networks (KANs), to graph neural networks (GNNs), which explicitly encode spatial relations. We test in-distribution and out-of-distribution (OOD) performance across simulations with different subgrid galaxy-formation prescriptions. Deep Sets infer from velocities alone with mean relative errors of approximately 18% in-distribution and OOD, with KANs and MLPs achieving comparable performance. In contrast, the same set-based approach does not yield useful predictions in either in-distribution or cross-suite tests. Adding positions does not improve Deep Sets, while GNNs infer with mean relative errors of about 10% in-distribution and 10–17% OOD. These results indicate that peculiar velocities provide the dominant source of information for set-based models in this setting, while spatial information is most effectively used by architectures that explicitly encode galaxy-galaxy relations. Because the velocity inputs are exact simulated peculiar velocities, applications to survey data will require validation under realistic velocity-measurement noise, selection effects, and survey geometry.
Keywords: Cosmological parameters (339) — Galaxy kinematics (602) — Large-scale structure of the universe (902) — Machine learning (1900) — Statistical methods (1904) — Velocity fields (1918)
1. INTRODUCTION
The standard model of cosmology accurately describes a wide set of cosmological observations. As such, it is currently the most accepted theory for describing the evolution of our universe over the past 14 billion years. In this framework, dark matter (DM), baryonic matter, and dark energy (DE) fill the universe. The mysterious nature of DM and DE represents one of the greatest challenges currently facing cosmology, and understanding and constraining the parameters of the standard model allows for insights into the fundamental physics which governs them.
The spatial distribution of galaxies in the universe depends directly on the cosmological parameters that cos-
mologists hope to constrain, with the clustering of these objects containing important information about the specific values of these parameters. Accurate inference of cosmological parameters from galaxy surveys is therefore a central goal of modern cosmology. Existing and upcoming experiments will deliver galaxy catalogs of unprecedented size and complexity, motivating the development of inference methods capable of extracting maximal cosmological information from high-dimensional, heterogeneous data: DESI (B. Flaugher & C. Bebek 2014; D. Eisenstein & DESI Collaboration 2015; D. Collaboration et al. 2016; DESI Collaboration et al. 2024; D. Collaboration et al. 2026), Euclid (R. Laureijs et al. 2011; L. Amendola et al. 2018; G. D. Racca et al. 2016; Euclid Collaboration et al. 2025), Prime Focus Spectrograph (PFS) (M. Takada et al. 2014), J-PAS (N. Benítez et al. 2014), Square Kilometer Array (SKA) (A. R. Tay-
Email: jbaldwin@gradcenter.cuny.edu lor & R. Braun 1999), Roman (D. Spergel et al. 2015; R. Akeson et al. 2019), JWST (J. P. Gardner et al. 2006, 2023). Traditionally, cosmological inference has relied on carefully constructed summary statistics, which compress the data into lower-dimensional representations. A wide variety of summary statistics have been explored, including correlation functions and higher momenta (F. Villaescusa-Navarro et al. 2020; M. Gatti et al. 2025), peak counts (Z. Li et al. 2019; J. Harnois-Deraps et al. 2024), wavelets (G. Valogiannis & C. Dvorkin 2022; M. Eickenberg et al. 2022), and others (A. Banerjee et al. 2020; A. E. Bayer et al. 2021; K. Naidoo et al. 2022). While effective, this compression can lead to information loss and may lead to suboptimal inference of cosmological parameters, particularly in the presence of complex baryonic effects and survey systematics.
Machine learning methods provide an alternative approach by enabling field-level inference directly from simulated or observed data, without the need for manually constructed summaries. Recent work has demonstrated that neural-network-based models can successfully infer cosmological parameters from large-scale structure data using, for example, convolutional neural networks (S. Pan et al. 2020; P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; J. H. T. Yip et al. 2025), Bayesian neural networks (H. J. Hortúa et al. 2023), physics-informed neural networks (T. Charnock et al. 2020; Ding, Simon et al. 2024), and neural-network surrogate models (J. DeRose et al. 2022). However, the performance and robustness of such methods depend not only on the training data but also on the choice of observables and the inductive biases encoded in the model architecture (P. W. Battaglia et al. 2018). Understanding how these factors interact is essential for machine learning-based inference to be reliably deployed in survey analysis pipelines.
The term field-level inference is used in the literature to describe several related but methodologically distinct approaches. In explicit Bayesian field-level analyses, one typically specifies a forward model and likelihood for the density or tracer field, often with the goal of sampling a posterior over cosmological parameters, initial conditions, density fields, and nuisance parameters (e.g., J. Jasche & B. D. Wandelt 2013; J. Jasche & G. Lavaux 2019; G. Cabass et al. 2020). In simulation-based inference, neural posterior, likelihood, or ratio estimators are trained on simulations to approximate the corresponding Bayesian objects without requiring an analytic likelihood (e.g., G. Papamakarios & I. Murray 2018; D. S. Greenberg et al. 2019; K. Cranmer et al. 2020). The approach taken here is different from both of these cases. We use supervised neural estimators
trained directly on simulated galaxy catalogs to predict cosmological parameters, together with an auxiliary heteroscedastic variance estimate, without constructing an explicit likelihood or posterior sampler. We therefore use “field-level” to indicate that the models operate directly on the galaxy catalog rather than on handcrafted summary statistics, and “likelihood-free” to indicate that the mapping is learned from simulations without evaluating an analytic likelihood, consistent with usage in closely related galaxy-catalog inference studies (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; N. S. M. de Santi et al. 2023; P. Lemos et al. 2024; J.-Y. Lee et al. 2024; F. Leclercq 2025). Recent explicit field-level analyses have also quantified the information content of galaxy clustering using perturbative forward models and likelihood-based inference, including comparisons to two- and three-point statistics and applications to biased tracers, BAO reconstruction, stochasticity modeling, and primordial non-Gaussianity (F. Schmidt et al. 2019, 2020; N.-M. Nguyen et al. 2024; K. Akitsu et al. 2025; I. Babió et al. 2026; H. Rubira & F. Schmidt 2026; A. E. Bayer et al. 2026; A. Andrews et al. 2026). Our analysis does not attempt to measure the total information available to an optimal field-level likelihood or to benchmark against those likelihood-based information-content bounds. Instead, the information-content claims made here are conditional on the catalog observables, finite CAMELS volumes, and neural architectures tested in this work.
In this work, we focus on the inference of the matter density parameter, , from simulated galaxy catalogs. With the inference problem as our control, we probe the information content carried by different galaxy observables by using several machine learning architectures. Specifically, we investigate which features encode a cosmological signal that is accessible to permutation-invariant and graph-based models and which architectural assumptions are required to extract that signal effectively.
We primarily consider galaxy positions and line-of-sight peculiar velocities, both individually and in combination. Peculiar velocities are of particular interest because they are directly sourced by the large-scale gravitational potential and are therefore sensitive to cosmology, while being less directly tied to uncertain subgrid galaxy formation physics (J. Koda et al. 2014; F. Qin 2021; A. Abate et al. 2008; R. J. Turner et al. 2021; R. J. Turner et al. 2022; R. J. Turner 2025; C. G. Tsagas et al. 2026). At the same time, positional information is inherently relational, raising questions about whether certain models can fully exploit it without explicit spatial structure.
The IEEE defines robustness in its standard glossary of software engineering terminology as “the degree to which a system or component can function correctly in the presence of invalid inputs or stressful environmental conditions” ( IEEE 1990). In machine learning, robustness specifically characterizes a model's ability to maintain predictive performance under a range of conditions and environmental changes (H. Ben Braiek & F. Khomh 2024). A central criterion in this work is cross-suite out-of-distribution (OOD) performance, defined here as generalization from one hydrodynamic simulation suite to galaxy catalogs generated with different hydrodynamic solvers and subgrid galaxy-formation prescriptions. This definition is restricted to cross-suite simulation transfer: we do not test distribution shifts in cosmological parameter ranges relative to those sampled by CAMELS, initial-condition statistics, redshift, simulation volume, survey geometry, selection functions beyond the adopted mass-cut marginalization, redshift-space distortions, or velocity-measurement errors. To assess this, we train each model on a single simulation suite and first evaluate performance on held-out data drawn from the same simulation. We then test the trained models on galaxy catalogs generated by independent simulations which share the same underlying cosmology but differ substantially in their implementations of baryonic feedback. Cross-simulation performance provides a controlled probe of which galaxy observables encode cosmological information that is stable under changes in subgrid physics, and which model architectures are able to extract that information without relying on simulation-specific patterns.
To explore these questions, we compare architectures that differ in how they handle the structure of galaxy catalogs. Deep Sets (M. Zaheer et al. 2018) enforce permutation invariance over variable-length inputs and can be instantiated with either multilayer perceptrons (MLPs) or Kolmogorov–Arnold Networks (KANs) (Z. Liu et al. 2025) as their universal function approximators. Graph neural networks (GNNs), which treat galaxies as nodes and connect them based on a linking radius, explicitly encode the relational structure through local proximity (M. Gori et al. 2005; J. Gilmer et al. 2017). KANs have been proposed as an interpretable alternative to MLPs with favorable theoretical properties; we assess whether these advantages carry over to cosmological inference. GNNs have already been shown to perform well at inference of when the input combines spatial information with informative galaxy features (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; N. S. M. de Santi et al. 2023). The main new contributions of this work are the comparison between
KAN- and MLP-based Deep Set models, the systematic cross-suite evaluation across multiple CAMELS hydrodynamic models, and the identification of a velocity-only signal in set-based architectures. The GNN experiments serve as a relational-architecture benchmark that confirms and contextualizes previous graph-based results.
Our aim is not to introduce a new inference method, but to clarify where cosmological information resides in galaxy catalogs and how different inductive biases govern a model's ability to access it. By holding the inference task fixed and systematically varying both the feature set and the architecture, we identify which combinations are sufficient for robust inference and which require more structured models. The results have direct implications for the design of machine learning pipelines for upcoming galaxy surveys, as well as for the interpretation of machine learning-based cosmological constraints, provided realistic velocity-measurement noise, selection effects, and survey geometry are all accounted for.
CAMELS simulations are organized into different simulation suites, each run with different hydrodynamic solvers, and various simulation sets, which employ a range of schemes to sample different cosmological and astrophysical parameters (F. Villaescusa-Navarro et al. 2021).
2.1. Simulation Suites
We draw on four galaxy-formation models, each with a different hydrodynamics solver and subgrid physics implementation:
Astrid: Run with MP-GADGET (Y. Feng et al. 2018) and implementing a modified version of the subgrid physics used in the Astrid simulations (S. Bird et al. 2022; Y. Ni et al. 2022, 2023). We use the LH set (1,000 simulations).
IllustrisTNG: Run with AREPO (V. Springel 2010; R. Weinberger et al. 2020) and utilizing the same subgrid physics as the IllustrisTNG simulations (R. Weinberger et al. 2016; A. Pillepich et al. 2017). We use both the LH (1,000 simulations) and SB28 (2,048 simulations) sets.
Simba: Run with GIZMO (P. F. Hopkins 2015) and a modified version of the subgrid physics used in the original Simba simulations (R. Davé et al. 2019; F. Villaescusa-Navarro et al. 2021). We use the LH set (1,000 simulations).
Swift-EAGLE: A CAMELS adaptation of the EAGLE model (J. Schaye et al. 2015) implemented in the SWIFT code (M. Schaller et al. 2016, 2018, 2024) with the SPHENIX scheme (J. Borrow et al. 2021), calibrated at CAMELS resolution (Lovell et al. in prep). We use the LH set (1,000 simulations).
We emphasize that although the four astrophysical parameters share the same labels across suites, they encode physically distinct processes in each model and should not be compared directly (F. Villaescusa-Navarro et al. 2021). Table 1 summarizes the simulation sets used in this work.
2.2. Simulation Sets
CAMELS organizes simulations into sets that differ in how parameter space is sampled. We use two sets in this work:
Latin Hypercube (LH): Contains 1,000 simulations per suite, each with a unique combination of all six free parameters arranged in a Latin hypercube, with a different initial random seed per simulation (F. Villaescusa-Navarro et al. 2022). The parameter ranges are , , , , and , (F. Villaescusa-Navarro et al. 2021).
Across hydrodynamic suites, the LH sets sample the same parameter ranges but are independently generated, so catalogs with the same LH index do not correspond to matched cosmological/astrophysical parameter vectors or shared initial conditions.
Sobol Sequence (SB28): Contains 2,048 simulations sampling a 28-dimensional parameter space
via a Sobol quasi-random sequence (I. Sobol' 1967), offering superior space-filling properties in high dimensions (Y. Ni et al. 2023). This set is unique to the ILLUSTRIS TNG suite. Note that for SB28, is sampled linearly over [0.029, 0.069], so both the dark matter particle mass and initial gas mass resolution vary across the set.
2.3. Galaxy Catalogs
All galaxy catalogs used in this work employ the SUB-FIND method to identify halos and subhalos within the simulations at each snapshot (V. Springel et al. 2001; K. Dolag et al. 2009). The definition of a galaxy in the context of our simulations is any subhalo containing at least one star particle. In this work, following the procedure laid out in N. S. M. de Santi et al. (2023), we only consider galaxies with stellar masses above , corresponding to star particles in the LH simulations, and star particles across the SB set due to the variation in . For each simulation, we produce several galaxy catalogs by varying the stellar mass threshold and keeping only those galaxies exceeding that threshold. A more detailed overview of this process follows in Section 4.
2.4. Input Features
For this work, we consider two galaxy features that have been shown in previous work to contain robust cosmological information (N. S. M. de Santi et al. 2023; S. Yuan et al. 2023; Euclid Collaboration 2020): galaxy positions and the z-component of the peculiar velocities ( ). In observational settings, peculiar velocities are not measured directly, but are inferred from spectroscopic redshifts together with redshift-independent distance indicators such as Tully–Fisher (R. B. Tully & J. R. Fisher 1977), the Fundamental Plane (S. Djorgovski & M. Davis 1987), Faber–Jackson (S. M. Faber & R. E. Jackson 1976), or Type Ia supernovae (D. Branch & D. L. Miller 1993). Here we use the corresponding simulated quantity, though it should be noted that no corrections for observational or instrumentation error have been implemented.
To ensure the stability of the model during training, the peculiar velocities are transformed according to
For all experiments that include positional information, both Deep Sets and GNNs receive scalar position features rather than raw Cartesian coordinates. We construct these features relative to the fixed center of the simulation box, , with
| Suite | Code | Hydro solver | Set | ||
|---|---|---|---|---|---|
| ILLUSTRISTNG | AREPO | Voronoi moving mesh | LH | 1000 | 6 |
| ILLUSTRISTNG | AREPO | Voronoi moving mesh | SB28 | 2048 | 28 |
| ASTRID | MP-GADGET | SPH | LH | 1000 | 6 |
| SIMBA | GIZMO | Meshless finite mass | LH | 1000 | 6 |
| SWIFT-EAGLE | SWIFT | SPH (SPHENIX) | LH | 1000 | 6 |
Table 1. Summary of CAMELS simulation sets used in this work. All runs have a box size of and dark-matter and gas particles. “LH” denotes the Latin Hypercube set; “SB28” denotes the 28-dimensional Sobol sequence set. is the number of hydrodynamic simulations used from each set.
. For each galaxy position , we transform
where
Thus, the position-only input associated with each galaxy is the three-dimensional scalar feature vector . When additional galaxy properties are used, such as , they are concatenated to this same pointwise feature vector. This parameterization removes the raw Cartesian coordinates from the network input and provides a fixed-dimensional scalar representation of each galaxy's position within the simulation box.
We also consider a global feature, the logarithm of the total number of galaxies in the simulation: .
3. ARCHITECTURES
3.1. Deep Sets
Deep Sets provide a neural architecture tailored to inputs that are unordered sets, making them particularly suited for modeling data where permutation invariance is essential (M. Zaheer et al. 2018). In cosmological applications, each galaxy within a group contributes to the inference of global properties like the matter density parameter , but the order in which the galaxies are presented to the model is irrelevant. Traditional neural networks fail to respect this symmetry, whereas Deep Sets are explicitly constructed to do so.
The core theoretical result underpinning Deep Sets is that any permutation-invariant function f operating on
a set can be decomposed in the form:
where is a learned function that maps each element to a latent space, the summation acts as a permutation-invariant aggregation operator, and maps the aggregated latent representation to the final output. This result is analogous to the universal approximation theorem but extended to functions on sets (M. Zaheer et al. 2018).
In practice, both and are typically implemented as multilayer perceptrons (MLPs). Given a set of galaxies, where each element represents the features, we compute an embedding , aggregate these embeddings across the set, and then process the result through to predict a global scalar like , along with uncertainties. This approach has multiple desirable properties in the context of cosmological inference: it allows for variable-length inputs, preserves invariance under permutations, and provides a natural architecture for parallelization across individual objects in a set.
3.2. The Multilayer Perceptron (MLP) as the Standard Function Approximator
The multilayer perceptron (MLP) originated as a layered extension of the perceptron introduced by F. Rosenblatt (1958) and further elaborated in F. Rosenblatt (1962). However, the limitations of single-layer perceptrons, most prominently highlighted by M. Minsky & S. Papert (1969), implicitly motivated architectures incorporating hidden units. Early gradient-based learning rules emerged through the delta rule for adaptive linear neurons (B. Widrow & M. E. Hoff 1960), while more general theoretical developments in gradient-based learning and reverse-mode differentiation established in principle how multilayer networks could be trained by gradient descent (S. Amari (1967): early treatments of adaptive gradient methods for pattern classifiers, S. Linnainmaa (1976): formal development of reverse-mode automatic differentiation and P. J. Werbos (1974): its explicit application to neural network training). D. E. Rumelhart
The option to include this feature was made a hyperparameter during optimization, and was found to slightly improve results.
et al. (1986) subsequently demonstrated that backpropagation could efficiently train multilayer networks in practice, establishing the modern multilayer perceptron as a viable learning architecture.
In its modern form, an MLP consists of a sequence of fully connected layers that transform a fixed-dimensional input vector through learnable affine mappings followed by nonlinear activation functions (e.g. ReLU, SiLU, or tanh). The network parameters are optimized via gradient descent using the backpropagation algorithm. Owing to the universal approximation theorem (G. Cybenko 1989; K. Hornik et al. 1989), MLPs serve as general-purpose function approximators and remain a foundational building block of many neural network architectures.
3.3. Kolmogorov-Arnold Networks (KANs) and DeepKANs
Kolmogorov–Arnold Networks (KANs) (Z. Liu et al. 2024, 2025) are neural architectures motivated by the Kolmogorov–Arnold representation theorem (KART), which states that any continuous multivariate function defined on a bounded domain can be expressed as a finite composition of continuous univariate functions and addition (A. N. Kolmogorov 1957). In a standard multilayer perceptron (MLP), each node applies a fixed nonlinear activation function after a linear transformation along the edges, whereas in a KAN the nonlinear transformations are learned functions on the edges rather than at the nodes. Each edge carries a learnable one-dimensional function, while nodes perform summation. This structural inversion fundamentally alters how function approximation is realized within the network.
A depth- KAN is specified by a width array , where denotes the number of neurons in layer . A KAN layer maps to through a matrix of univariate functions , where each acts on a single scalar input. The output of neuron in layer is given by
The full network is the composition of such layers, , producing a global multivariate function assembled from learned univariate transformations and summation.
Each edge function is parameterized as a residual expansion of a B-spline. Specifically,
where is a fixed residual basis function (typically SiLU), are -th order B-spline basis functions defined on a grid with intervals, are trainable spline coefficients, and and are learnable scaling parameters. The spline basis is constructed over a knot vector containing interior knots augmented by additional boundary knots, yielding basis functions. The grid parameter controls the resolution at which the univariate transformation is represented, providing a direct and interpretable knob for adjusting functional expressivity.
The KAN 2.0 framework extends this architecture by introducing multiplicative structure through Multiplicative KANs (MultKANs) (Z. Liu et al. 2024). While standard KAN layers rely exclusively on addition at nodes, MultKAN layers incorporate explicit multiplication operators following the univariate transformation stage. Formally, a MultKAN layer can be written as , where is a standard KAN layer and applies designated element-wise products to selected outputs. The architecture is specified by additive and multiplicative width arrays, allowing controlled introduction of product interactions. When multiplicative nodes are absent, the MultKAN reduces to a standard KAN. This extension is motivated by the observation that many scientific relationships contain explicit multiplicative structure, and incorporating such operations directly can improve both interpretability and symbolic recoverability (Z. Liu et al. 2024).
In the present work, KANs are embedded within a permutation-invariant Deep Set framework to form what we refer to as a DeepKAN. Recall that a Deep Set has the general form of Eq 7. In DeepKAN, both and are implemented as Kolmogorov-Arnold (or multiplicative Kolmogorov-Arnold) networks. The aggregation operation preserves permutation invariance over galaxies, while the spline-based edge parameterization provides flexible and interpretable functional transformations. The grid size G thus controls the resolution of the learned univariate mappings applied at both the pointwise and post-aggregation stages. When multiplicative nodes are enabled, the architecture can explicitly represent product structures that may arise in relationships among galaxy observables.
From a scientific standpoint, DeepKANs provide a structured means of increasing local functional expressivity while preserving exchangeability with MLPs. The spline parameterization allows inspection of learned one-dimensional transformations and, in favorable cases, symbolic simplification of the resulting mappings. As shown in Section 5, however, increased local expressivity does not by itself lead to improved cosmological pa-rameter inference relative to MLP-based Deep Sets in the case of inference from peculiar velocities. This suggests that, in this setting, architectural inductive bias and information content play a more decisive role than the specific form of univariate function approximation.
3.4. Graph Neural Networks (GNNs) for Cosmological Inference
Graph neural networks (GNNs) are a class of machine learning architectures designed for data that can be represented as graphs, consisting of nodes, which contain information on associated features, and edges that encode relationships between nodes (M. Gori et al. 2005; F. Scarselli et al. 2009; C. Gallicchio & A. Micheli 2010; J. Zhou et al. 2020; Z. Wu et al. 2021). Unlike set-based models, which treat elements independently prior to global aggregation, GNNs explicitly model interactions between neighboring elements through iterative message passing.
In a typical message-passing framework, each node updates its representation by aggregating information from its connected neighbors, allowing the network to learn relational structure (J. Gilmer et al. 2017). After several such updates, node embeddings encode not only local features but also information about the surrounding environment. A global pooling operation can then be applied to obtain a graph-level representation useful for parameter inference. Explicitly,
where and are learnable functions, and represents a permutation-invariant aggregation. For the GNNs used in this work, both and are parameterized as MLPs. We forgo testing a GNN implementation using KANs based on their lack of improvement over MLPs in the set-based framework.
For cosmological galaxy catalogs, nodes correspond to galaxies and edges are typically constructed based on spatial proximity. This structure enables the model to learn correlations induced by gravitational clustering, tidal environments, and large-scale structure formation (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; Y. Jagvaral et al. 2022; N. S. M. De Santi et al. 2026). By incorporating relational inductive bias, GNNs are particularly well-suited for extracting information encoded in spatial configurations that may not be accessible to permutation-invariant architectures.
We adopt the GNN architecture used in P. Villanueva-Domingo & F. Villaescusa-Navarro (2022) in which the nodes contain galaxy feature information and the edges between galaxies are said to be connected if the radial distance between them is smaller than some parameter .
3.5. Performance Metrics
To evaluate model performance, we employ a set of standard regression metrics that quantify both accuracy and statistical consistency between predicted and true values. We denote the true values as , the model predictions as , and the predicted uncertainties as .
• Root Mean Squared Error (RMSE):
This metric provides an absolute measure of prediction error in the same units as the target. Lower values indicate higher precision.
• Coefficient of Determination :
where . This metric quantifies the fraction of variance explained by the model, with values approaching unity indicating high accuracy.
• Pearson Correlation Coefficient (PCC):
This statistic measures the strength of the linear relationship between predictions and true values. Values close to indicate strong correlation, while values near 0 indicate weak correlation.
Bias:
This metric captures systematic offsets between predictions and ground truth. Values close to zero indicate minimal bias.
• Mean Relative Error :
We report this quantity as a percentage. It provides a scale-independent measure of predictive accuracy.
• Reduced Chi-Squared ( ):
This statistic evaluates the consistency between prediction errors and the model-predicted uncertainties. To avoid numerical instabilities, extreme outliers with are excluded prior to averaging.
To assess the calibration of the heteroscedastic uncertainty estimates, we compute empirical coverage as a function of the predicted uncertainty. Test catalogs are binned by predicted , and within each bin we measure the fraction of true values lying within and . We also report aggregate coverage fractions over the full test set,
where and are the predicted mean and uncertainty for catalog . For a calibrated Gaussian predictive distribution, and should approach the nominal values of 0.683 and 0.954, respectively. We show this diagnostic for representative in-distribution and cross-suite tests in Figure 2. Because averages squared standardized residuals, it is sensitive to the high- tail of the per-catalog residual distribution, even when aggregate coverage is close to nominal. We therefore interpret together with the empirical coverage fractions rather than as a stand-alone calibration diagnostic.
4. EXPERIMENTAL DESIGN
For our training data, we begin with galaxy catalogs corresponding to the snapshot from the LH set. These simulations are separated into an 80/10/10 split between training, validation, and test sets. From the raw simulations, a marginalization over mass cuts is applied in which only galaxies above a specific mass cut are kept. Specifically, we apply cuts based on the prescription
where R is a uniformly distributed random value between 1 and 2. For each simulation in the set, we apply 10 mass cuts using this formula, resulting in 10,000 total simulations split among the training, validation, and test sets. This marginalization follows the procedure from N. S. M. de Santi et al. (2023), representing a response to the results from P. Villanueva-Domingo & F.
Villaescusa-Navarro (2022) whose models failed to generalize due to uniform mass cuts being unable to account for the variable galaxy populations resulting from different subgrid physics used in different simulations. For the test sets, the same procedure is followed for Simba, Swift-EAGLE, and the SB28 set of IllustrisTNG. We use Astrid as the primary training suite for two related reasons. First, this choice follows the velocity-based experiments of N. S. M. de Santi et al. (2023), enabling a direct comparison with previous work and with the reproduction test presented in Appendix B. Second, Astrid spans a broad range of galaxy catalog sizes across the LH set, broader than the corresponding ranges in the main IllustrisTNG and Simba LH suites, and therefore provides training support over much of the galaxy-count variation encountered in cross-suite tests (N. S. M. de Santi et al. 2023, Figure 8). This consideration is particularly relevant because the total number of galaxies is included as a global feature, . Training on Astrid therefore reduces the possibility that cross-suite performance is dominated by a catalog-cardinality mismatch between the training and test sets, rather than by cosmological information carried by the input features.
All models are trained using a modified two-moment loss function adapted from N. Jeffrey & B. D. Wandelt (2020), designed to jointly learn parameter estimates and associated uncertainties. Specifically, the network predicts both a mean and variance , and is optimized using
where denotes the true value of parameter for sample . The first term enforces accurate mean predictions, while the second term encourages the predicted variance to match the squared residuals, enabling the model to learn heteroscedastic uncertainties. Following F. Villaescusa-Navarro et al. (2022), we replace the arithmetic sum used in the original formulation with a sum of logarithms, which empirically stabilizes training and yields more reliable estimates of both and . This modification prevents the loss from being dominated by parameters that are more easily constrained, allowing the network to balance contributions across parameters (F. Villaescusa-Navarro et al. 2022).
The models are optimized using Optuna (Y. Ozaki et al. 2025), with hyperparameters set depending on the particular configuration. For the Deep Set with MLPs, the hyperparameters include the number and size of the hidden layer/s, whether to use residual layers, and whether to use the global parameter . For Deep Sets with KANs, the hyperparameter list includes the number of addition and multiplication nodes, the intermediate KAN width (which sets the dimensionality of the hidden representation passed from KAN layer to layer ), the sizes of the two grids, whether to use a residual layer, and whether to use the global parameter . The GNN from P. Villanueva-Domingo & F. Villaescusa-Navarro (2022), similarly to the MLP configuration, optimizes the number and size of the hidden layers while additionally optimizing the length of . All models optimize the learning rate and weight decay.
5. RESULTS
We first present the results of training Deep Sets with both MLPs and KANs using only the peculiar velocity information as input. We discuss the performance of these models and also present the results when including positional information along with peculiar velocities in the input. We then show how GNNs perform on our inference task, using both positional and peculiar velocity information as input.
Table 2 reports two simple baselines: predicting the Astrid training-set mean of , and linearly regressing on the global catalog-size feature . The baseline performs slightly better than the training-mean baseline, indicating that catalog abundance carries some cosmological information. However, both baselines remain substantially worse than the trained velocity-based models, whose RMSE values are typically – with mean relative errors of . Thus, the Deep Set models are not simply exploiting the training prior or the global number-count feature.
5.1. Deep Sets: MLPs vs KANs using Peculiar Velocities
Figure 1 shows the performance of DeepKANs trained using only line-of-sight peculiar velocities and the analogous Deep Set model using standard MLPs. We find no substantial performance gain from replacing MLP-based function approximators with KANs in this setting. Both architectures perform comparably with respect to RMSE and on in-distribution data, and exhibit similar levels of cross-suite degradation when eval-
| Test suite | Mean | log N | ||
|---|---|---|---|---|
| RMSE | ε (%) | RMSE | ε (%) | |
| ASTRID | 0.107 | 45.0 | 0.105 | 43.3 |
| TNG (LH) | 0.117 | 42.9 | 0.111 | 39.7 |
| TNG (SB) | 0.121 | 48.1 | 0.117 | 44.3 |
| SIMBA | 0.113 | 44.2 | 0.106 | 42.4 |
| Swift-EAGLE | 0.117 | 41.5 | 0.099 | 36.1 |
Table 2. Simple baselines for inferring . The mean baseline predicts the mean value of in the ASTRID training split, , for every catalog. The baseline fits a linear model, , using only the global catalog-size feature from the ASTRID training split, giving and . Both baselines are evaluated on the same test suites as the trained models.
uated on TNG (both LH and SB sets), SIMBA, and Swift-EAGLE.
Figure 2 shows that the Astrid-trained DeepKAN model using has aggregate coverage close to the nominal Gaussian values on held-out Astrid catalogs, with aggregate coverage fractions and . The binned curves show some variation with predicted uncertainty, so we interpret the figure primarily as an aggregate coverage diagnostic rather than as evidence for perfect conditional calibration. In the cross-suite TNG(SB) test, aggregate coverage decreases to and , indicating that the predicted uncertainties become overconfident under distribution shift. No catalogs in either case satisfy , so the observed undercoverage is not driven by the catastrophic outliers excluded from the clipped statistic. The elevated mean reported for the same model in Table 3 should therefore be interpreted together with the aggregate coverage fractions: the former is a squared-residual diagnostic that is sensitive to the high- tail, while the latter measures the fraction of catalogs contained within the predicted intervals.
Notably, despite variations in baryonic modeling across simulation suites, the correlation between predicted and true remains strong, with PCC values of – and relative errors of in cross-suite evaluation. This shows that peculiar velocities contain robust cosmological information and motivates the addition of positional information as input features to assess whether they provide additional constraining power for inferring . The lack of improvement with an increase in functional expressivity suggests that inference performance in this regime is primarily limited by information content rather than model capacity.
This result contrasts with previous work using Deep Sets with MLPs, trained on Astrid, to infer from
For all reported Deep Set and GNN results, the selected Optuna configurations used the global feature .
| Suite | UFA (features) | RMSE | PCC | Bias | (%) | |||
|---|---|---|---|---|---|---|---|---|
| ASTRID | KAN () | 0.055 | 0.73 | 0.86 | 17.8 | 6.15 | 0 | |
| MLP () | 0.054 | 0.74 | 0.86 | 17.2 | 0.77 | 0 | ||
| KAN (pos+) | 0.062 | 0.66 | 0.82 | 19.4 | 1.76 | 0 | ||
| MLP (pos+) | 0.054 | 0.74 | 0.86 | 16.3 | 1.50 | 0 | ||
| KAN (pos) | 0.105 | 0.01 | 0.27 | 43.6 | 1.21 | 0 | ||
| TNG (LH) | KAN () | 0.075 | 0.59 | 0.78 | 23.9 | 2.07 | 0 | |
| MLP () | 0.075 | 0.58 | 0.78 | 25.3 | 1.25 | 0 | ||
| KAN (pos+) | 0.067 | 0.67 | 0.82 | 20.2 | 1.37 | 0 | ||
| MLP (pos+) | 0.072 | 0.62 | 0.79 | 22.9 | 2.06 | 0 | ||
| KAN (pos) | 0.114 | 0.03 | 0.20 | 42.3 | 1.09 | 0 | ||
| TNG (SB) | KAN () | 0.080 | 0.56 | 0.76 | 24.1 | 9.64 | 0 | |
| MLP () | 0.081 | 0.55 | 0.75 | 26.4 | 1.65 | 0 | ||
| KAN (pos+) | 0.068 | 0.68 | 0.83 | 20.9 | 1.55 | 0 | ||
| MLP (pos+) | 0.080 | 0.56 | 0.75 | 24.3 | 2.71 | 0 | ||
| KAN (pos) | 0.117 | 0.06 | 0.27 | 46.8 | 1.15 | 0 | ||
| SIMBA | KAN () | 0.074 | 0.57 | 0.77 | 24.2 | 1.79 | 1 | |
| MLP () | 0.074 | 0.57 | 0.78 | 24.5 | 1.13 | 0 | ||
| KAN (pos+) | 0.077 | 0.53 | 0.74 | 23.8 | 1.70 | 0 | ||
| MLP (pos+) | 0.071 | 0.60 | 0.78 | 21.8 | 1.89 | 0 | ||
| KAN (pos) | 0.109 | 0.07 | 0.35 | 43.4 | 1.03 | 0 | ||
| Swift-EAGLE | KAN () | 0.074 | 0.58 | 0.78 | 23.5 | 2.99 | 0 | |
| MLP () | 0.081 | 0.51 | 0.72 | 25.7 | 1.32 | 0 | ||
| KAN (pos+) | 0.070 | 0.63 | 0.80 | 20.3 | 1.42 | 0 | ||
| MLP (pos+) | 0.079 | 0.53 | 0.73 | 24.4 | 2.25 | 0 | ||
| KAN (pos) | 0.100 | 0.24 | 0.51 | 36.8 | 0.95 | 0 |
Table 3. Comparison of Deep Set models using different universal function approximators (UFAs) and different input features for inferring . All models are trained on ASTRID and evaluated on multiple simulation suites. We compare line-of-sight velocities () alone and in combination with positional information (). Here is computed after excluding catalogs with , and gives the number of excluded catalogs. The global feature is included in all training and test samples.
line-of-sight peculiar velocities (N. S. M. de Santi et al. 2023). In their experiments, the authors found that line-of-sight velocities on their own were insufficient to extract a signal for (see Figure 8). Full details of the comparison with their work can be found in Appendix B.
5.2. Deep Sets with Spatial Information
To assess whether additional spatial information improves inference within a permutation-invariant architecture, we trained both a DeepKAN and an MLP-based Deep Set model using transformed galaxy positions (see 2.4) together with line-of-sight peculiar velocities. Figure 3 shows the corresponding results.
Across both architectures, adding positional information does not lead to consistent improvements in performance. In the DeepKAN case, positional information degrades in-distribution performance and yields mixed changes out-of-distribution, while MLP results remain similarly inconsistent. Overall, performance remains broadly comparable across feature sets. Correlation coefficients remain at the level PCC –0.86, with relative errors of –24% on OOD data, consistent with the results obtained using peculiar velocities alone.
As an additional check on the information content of these models, we test them using only our transformed positions as input. Figure 4 shows that positions by themselves carry no cosmological signal when evaluated using a permutation-invariant, set-based architecture. This indicates that, within a Deep Set framework, the dominant cosmological signal accessible to the network is already contained in the kinematic information. The addition of spatial coordinates does not significantly en-
This comparison depends on the specific layer architecture used to implement the set-based model. The contrast with N. S. M. de Santi et al. (2023) should therefore be regarded as provisional.
Training set: Astrid, Input features: , Target:

Figure 1. Comparing inference using a DeepKAN model (top) and a Deep Set model implemented with multilayer perceptrons (MLPs) (bottom), trained on the LH set of the Astrid simulation suite, using only the line-of-sight peculiar velocities as input. Performance on the training suite is comparable between the two models, as is the degradation in performance when tested on out-of-distribution data. This suggests that, in the velocity-only regime, performance is primarily limited by the information content of the input rather than by the choice of function approximator.

Figure 2. Empirical coverage of the predicted uncertainty estimates for the Astrid-trained DeepKAN model using line-of-sight peculiar velocities, . Catalogs are binned by predicted uncertainty , and points show the fraction of true values falling within and in each bin. Dashed and dotted horizontal lines indicate the nominal Gaussian coverages of 68.3% and 95.4%, respectively. The quoted and values are the aggregate coverage fractions over the full test set. The model has aggregate coverage close to the nominal values on held-out Astrid catalogs, with and , while the cross-suite TNG(SB) catalogs show lower aggregate coverage, with and
. In both cases, .
hance performance, suggesting that positional information is not used effectively under global permutation-invariant aggregation. This result implies that the primary limitation of Deep Sets in this setting is not necessarily the absence of positional inputs, but the lack of an architectural mechanism to model relational structure between galaxies. This interpretation is also supported by the simple log baseline in Table 2. The positions-only Deep Set achieves performance compara-
ble to a model using only galaxy counts, indicating that this position parameterization provides little additional usable information to the set-based architecture beyond abundance information. Table 3 summarizes the results from all of our Deep Set experiments.
5.3. GNNs and Spatial Information
To test whether spatial information can be more effectively exploited by explicitly encoding relations be-
Training set: Astrid, Input features: , Target:

Figure 3. Comparing inference using a DeepKAN model (top) and a Deep Set model implemented with multilayer perceptrons (MLPs) (bottom), using positions (transformed to be invariant to rotations and translations) and line-of-sight peculiar velocities () as input features. While performance on the training set degrades slightly, overall performance is comparable to the velocity-only model, highlighting the limitation of these set-based architectures to utilize relational structure to extract cosmological information.
Training set: Astrid, Input features: , Target:

Figure 4. inference using a DeepKAN model trained on the LH set of the Astrid simulation suite. Positions-only models show no recoverable cosmological signal (MLPs were also tested, with similar results), while the strong performance of the velocity-only and velocity+positions models indicates that, within permutation-invariant architectures, the dominant accessible signal arises from the velocity field. This suggests that Deep Sets can extract kinematic information effectively, but are unable to exploit spatial information without explicit relational structure.
tween nearby galaxies, we trained graph neural networks (GNNs) on galaxy catalogs including both positions and line-of-sight peculiar velocities. In this framework, as laid out in subsection 3.4, galaxies are represented as nodes and edges are constructed based on spatial proximity, enabling iterative message passing between neighboring systems. As mentioned in Section 1, the use of GNNs for inferring from a combination of simulated galaxy positions and other physical or kinematic features is well established and shown to be effective (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; N. S. M. de Santi et al. 2023). We present these results to explicitly highlight the differences between set-based and graph-based approaches in order to more clearly expose the effect of their respective inductive biases.
Figure 5 shows the performance of the GNN models when trained on ASTRID and evaluated both in-distribution and across alternative simulation suites. Relative to permutation-invariant Deep Set architectures, we observe systematically improved predictive performance when positional information is included. In particular, cross-suite values increase and relative errors decrease, while the regression slope more closely follows the one-to-one relation.
This contrast with Section 5.2 is significant. While raw spatial coordinates did not enhance inference within a Deep Set framework, they become informative when incorporated through local graph structure. This indicates that positional information contributes to cosmological inference primarily through relational patterns,
Training set: Astrid, Input features: , Target:

Figure 5. inference using a GNN trained on the LH set of the Astrid simulation suite, using positions (transformed to be invariant to rotations and translations) and line-of-sight peculiar velocities () as input features. The model is tested on the LH sets of the IllustrisTNG, Simba, and Swift-EAGLE suites, as well as the SB28 set of IllustrisTNG. Graph-based architectures are able to take advantage of explicitly encoding relational information between nearby galaxies, resulting in improved inference on both in- and out-of-distribution suites.
such as clustering, rather than through individual galaxy coordinates treated independently.
The improved performance of GNNs therefore suggests that a substantial fraction of cosmological signal is encoded in the geometry of large-scale structure. Deep Sets, which aggregate over independent pointwise embeddings, cannot capture these relational dependencies. In contrast, GNNs introduce an architectural mechanism for modeling spatial relationships between galaxies, allowing positional information to be leveraged in a physically meaningful way.
Taken together, these results demonstrate that inference performance in this regime is limited not by function approximation capacity, but by the inductive biases imposed by the model architecture. When relational structure is incorporated, positional information becomes cosmologically informative.
5.4. Failure of Inference
We also train the same DeepKAN architecture to infer using only line-of-sight peculiar velocities. Figure 6 shows the results. In contrast to the case, the model fails to recover a reliable signal for on both the Astrid test set and the cross-suite test sets. The predictions remain weakly correlated with the true values and do not provide useful parameter recovery.
This negative result is important for interpreting the cosmological information extracted by the model. The success of the velocity-only models for does not imply that they extract all cosmological information present in the velocity field, nor that they break the usual amplitude-growth degeneracies associated with velocity statistics. Instead, the learned summaries appear to capture features of the line-of-sight velocity field that are informative about , while failing to isolate the fluctuation-amplitude information needed to constrain .
This behavior is consistent with previous field-level studies using galaxy catalogs. P. Villanueva-Domingo & F. Villaescusa-Navarro (2022) found that GNNs trained on galaxy positions and galaxy properties were unable to recover , and N. S. M. de Santi et al. (2023) similarly found that models using galaxy phase-space information did not robustly constrain . One plausible explanation is the limited volume of the CAMELS boxes. Since describes the amplitude of matter fluctuations on scales, each catalog samples only a small number of independent regions on the relevant scale and lacks longer-wavelength modes that contribute to coherent velocity flows. The failure to recover should therefore be understood as evidence that, in this small-volume setting, the learned velocity summaries retain useful information about but do not provide a recoverable constraint on the fluctuation amplitude. We return to this point in Section 6.1 in light of the linear-theory dependence of the velocity power spectrum on .
6. DISCUSSION
6.1. Peculiar Velocities, , and
Peculiar velocities provide a direct probe of the growth of cosmic structure and therefore of the underlying matter density parameter (M. J. Hudson & S. J. Turnbull 2012; R. J. Turner 2025; F. Qin 2021). While galaxy positions trace the spatial distribution of matter, peculiar velocities respond directly to gradients in the gravitational potential and consequently to the clustering of matter itself. Because gravitational instability governs the growth of large-scale structure, the magnitudes and spatial coherence of peculiar velocities encode information about the matter density that drives structure formation (R. J. Turner 2025). The relevant question is therefore not whether peculiar velocities contain cosmological information in principle, but which parameter
Training set: Astrid, Input features: , Target:

Figure 6. inference using a DeepKAN model trained on the LH set of the Astrid simulation suite, using only line-of-sight peculiar velocities as input. The model is tested on the LH sets of the Astrid, SIMBA, and Swift-EAGLE suites, as well as the SB28 set of IllustrisTNG. Unlike the corresponding inference task, the model fails to recover a reliable signal for , consistent with previous field-level studies using galaxy catalogs (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; N. S. M. de Santi et al. 2023).
dependencies remain recoverable from the finite, nonlinear galaxy catalogs used here.
This connection originates in the Newtonian fluid description of structure formation. In comoving coordinates, the Poisson equation,
where is the scale factor, is the Hubble parameter, and is the density contrast, relates the gravitational potential to the matter overdensity at all scales, with controlling the strength of the gravitational source term. Peculiar velocities arise from the gradient of this potential via the Euler equation,
so sets the normalization of the velocity field regardless of whether the density field is in the linear or non-linear regime. The continuity equation,
further links the velocity divergence to the time evolution of the density field. Together, these equations form a closed dynamical system (see, e.g., P. J. E. Peebles (1980); F. Bernardeau et al. (2002); R. J. Turner (2025)) in which governs how efficiently density perturbations generate coherent motions.
In the linear regime, these equations simplify, yielding a direct relation between the velocity divergence and the matter overdensity,
where is the linear growth rate. In CDM, this is well approximated by with (E. V. Linder 2005), providing the leading-order sensitivity of peculiar velocities to .
This linear relation implies that the velocity field is Gaussian and fully characterized by its power spectrum (P. J. E. Peebles 1993),
which depends on the combination , since the normalization of .
Equation 24 also shows why the failure to recover in Section 5.4 is informative. Since enters the linear velocity power spectrum through the amplitude of , the null result should not be interpreted as evidence that the velocity field is independent of . Instead, it indicates that the fluctuation-amplitude information is not recoverable by the learned summaries in this particular setup. This is plausibly dominated by the small simulation volume: a box contains only a limited sampling of the scale associated with and omits longer-wavelength modes that contribute to coherent velocities. In contrast, the successful recovery of indicates that some information tied to the gravitational sourcing and growth of the velocity field remains accessible even on the nonlinear scales probed by these catalogs.
The side of this contrast can be understood from the dynamical connection that persists beyond the linear regime. On the non-linear scales probed by the simulations used in this work, gravitational evolution departs from linear theory, inducing mode coupling and generating non-Gaussian features in the velocity field (F. Bernardeau et al. 2002). For the velocity-only Deep Set models considered here, this motivates asking whether the empirical distribution of line-of-sight velocities contains cosmological information beyond simple hand-crafted one-point summaries. The fundamental connection between peculiar velocities and persists via the Poisson equation (Eq 20), which ensures that
controls the gravitational sourcing of velocities in the Newtonian regime. Moreover, linear theory implies that velocity fields are more strongly weighted toward large scales than density fields. This helps explain why velocity statistics are often less affected by small-scale nonlinear structure, and can therefore remain closer to linear-theory expectations than density statistics, even though the exact linear relations break down once the field becomes fully nonlinear (E. Jennings et al. 2011; J. Koda et al. 2014). The results show, then, that the learned summaries capture useful information in the empirical distribution of line-of-sight velocities beyond simple hand-crafted one-point summaries, while the failure shows that this information is not sufficient to recover all parameter dependencies present in principle in the velocity field. This statement is narrower than the information-content comparisons made in explicit likelihood-based field-level analyses, which can test the gain over optimized two- and three-point clustering statistics using controlled forward models (N.-M. Nguyen et al. 2024; K. Akitsu et al. 2025).
Although simulations provide the full three-dimensional velocity field, this work uses only one projected component, , motivated by the line-of-sight nature of observed peculiar velocities. Under statistical isotropy, this projected component is governed by the same gravitational dynamics as the full velocity field and therefore retains information about the amplitude and coherence of cosmic velocity flows. The successful recovery of from simulated demonstrates that this projected velocity information is sufficient for the specific inference task considered here, while the failure to recover shows that it is not sufficient for all growth-related parameters in this finite-volume setting.
6.2. Information Content and Architectural Inductive Bias
The results of the Deep Set experiments presented in Section 5 demonstrate that adding positional information does not substantially improve inference when using a permutation-invariant architecture. This does not imply that positions lack cosmological information. Rather, it indicates that spatial information is not effectively utilized when treated as independent pointwise features aggregated globally.
Clustering information is inherently relational, arising from correlations between the positions of galaxies rather than from their individual properties. In particular, cosmological information encoded in spatial structure depends on pairwise and higher-order relationships, such as separations and local environments (X. Yang
et al. 2005; A. J. S. Hamilton 1998), which cannot be reduced to independent pointwise features. Architectures that explicitly model the spatial relationships between galaxies, such as GNNs, are therefore naturally suited to extracting this information. In contrast, Deep Set architectures operate on individual galaxy embeddings and aggregate them globally, without representing explicit relationships between galaxies. As a result, positional information is not efficiently utilized in a set-based framework, and the dominant cosmological signal captured by such models is instead contained in the kinematic information of peculiar velocities.
The improved performance of GNNs when positional information is included is therefore not unexpected. GNNs introduce relational inductive bias through message passing along edges defined by spatial proximity (J. Gilmer et al. 2017). This mechanism allows the model to capture pairwise and higher-order correlations analogous to those encoded in traditional clustering statistics. The enhancement in performance observed with GNNs suggests that positional information becomes cosmologically informative when relational structure is explicitly modeled. At the same time, these architectural comparisons should be interpreted conditional on the specific implementations and hyperparameter searches used in this work. The layer architecture discrepancy discussed in Appendix B shows that nominally similar set-based implementations can differ in practice, so the cross-suite degradation pattern, the GNN improvement over Deep Sets, and the KAN-MLP equivalence should be understood as empirical results for the models tested here rather than implementation-independent guarantees.
Taken together, the results indicate that inference performance in this regime is constrained not by function approximation capacity, but by architectural inductive bias. Increasing expressivity within a permutation-invariant framework, such as replacing MLP-based Deep Sets with DeepKANs, does not lead to substantial improvement, indicating that the limiting factor is not the flexibility of the learned functions. In contrast, incorporating relational structure does improve performance, but only when paired with an architecture capable of exploiting it. Graph neural networks, which explicitly model spatial structure between galaxies, are able to extract additional geometric information from the galaxy distribution, whereas set-based architectures are not. The empirical coverage test further indicates that the predicted heteroscedastic uncertainties are informative but become overconfident under cross-suite distribution shift, so robustness should be interpreted in terms of both point-prediction accuracy and uncertainty calibration.
An important caveat in interpreting our results is that the present analysis uses exact simulated line-of-sight peculiar velocities, whereas in real surveys peculiar velocities are not directly observed. Instead, they are inferred by combining spectroscopic redshifts with redshift-independent distance indicators such as the Fundamental Plane (S. Djorgovski & M. Davis 1987), Tully–Fisher relation (R. B. Tully & J. R. Fisher 1977), Faber–Jackson relation (S. M. Faber & R. E. Jackson 1976), or Type Ia supernovae (D. Branch & D. L. Miller 1993). As a result, observational peculiar-velocity catalogs are affected by distance uncertainties, calibration systematics, selection effects, and incomplete sky coverage (M. Scrimgeour et al. 2014; R. B. Tully et al. 2023). The results presented here should therefore be understood as demonstrating the cosmological information content available in an idealized peculiar-velocity observable, rather than as a direct forecast for any specific survey.
7. CONCLUSION
In this work, we investigated how architectural inductive bias and functional expressivity affect cosmological parameter inference from simulated galaxy catalogs. Focusing on as a representative growth-sensitive parameter, we compared permutation-invariant Deep Set models, implemented with both standard MLPs and a relatively new functional approximator called Kolmogorov–Arnold Networks (KANs), as well as relational graph neural networks (GNNs), using peculiar velocities and spatial information as input features.
Our results suggest that field-level machine learning provides a flexible alternative to traditional summary-statistic pipelines. Rather than explicitly constructing correlation functions or multipoles, the models learn mappings directly from galaxy catalogs to cosmological parameters. We also demonstrate that line-of-sight peculiar velocities alone contain substantial cosmological information. Velocity-only Deep Set models recover with competitive performance both in-distribution and across simulation suites with differing baryonic prescriptions. This finding is consistent with the theoretical expectation that peculiar velocities directly trace the growth of structure through large-scale gravitational flows (H. A. Feldman 2003; A. Nusser & M. Davis 2011). However, this success does not extend to all cosmological parameters. In the same setting, the models do not recover a robust signal for , indicating that the velocity-based information extracted here is more effective for constraining than the fluctuation-amplitude parameter.
Despite their alternative finite-size parameterization, KAN-based components do not yield significant improvement in inference accuracy in this regime. This suggests that performance is not limited by the flexibility of univariate function approximation, but rather by the information content of the input features and the inductive biases imposed by the architecture.
In contrast, when positional information is incorporated within a relational framework, GNNs exhibit improved performance relative to Deep Set models. This enhancement reflects the geometric nature of clustering statistics, which depend on spatial relationships and anisotropic correlations that are not explicitly modeled by permutation-invariant architectures. The results therefore highlight the importance of aligning architectural design with the physical structure of the underlying cosmological fields.
Taken together, these findings suggest a hierarchy of considerations for field-level cosmological inference. First, peculiar velocities provide a physically motivated and growth-sensitive probe that can be effectively exploited within set-based models. Second, architectural inductive bias is more consequential than the choice of pointwise function approximator when extracting cosmological information from structured data. Finally, relational modeling becomes essential when spatial geometry is expected to carry additional signal.
An important limitation of this analysis is that it uses exact simulated line-of-sight peculiar velocities, whereas real peculiar-velocity catalogs require distances inferred from noisy, heterogeneous observational indicators and are affected by calibration systematics, selection effects, and survey geometry. As forthcoming surveys substantially expand the volume and precision of peculiar velocity measurements, inference frameworks that respect both the dynamical and geometric structure of large-scale structure will play an increasingly important role. The implications of these results for survey pipelines are therefore contingent on validation under realistic velocity-measurement noise, selection effects, and survey geometry. By interpreting machine learning architectures through the lens of cosmological theory, we can better understand not only how well models perform, but why they succeed or fail in capturing the information encoded in the cosmic web.
ACKNOWLEDGMENTS
We are grateful to Natalí de Santi for discussions and insight into previous work and for sharing her code so that accurate and reliable comparisons could be carried out. The CAMELS project is supported by the Simons Foundation and NSF grant AST 2108078. The work of
S.G. and F.V.N. is supported by the Simons Foundation. The training of the Deep Sets and GNNs has been carried out using graphics processing units (GPUs) from
Simons Foundation, Flatiron Institute, Center for Computational Astrophysics.
REFERENCES
Abate, A., Bridle, S., Teodoro, L. F. A., Warren, M. S., & Hendry, M. 2008, Monthly Notices of the Royal Astronomical Society, 389, 1739, doi: 10.1111/j.1365-2966.2008.13637.x
Akeson, R., Armus, L., Bachelet, E., et al. 2019, arXiv e-prints, arXiv:1902.05569, doi: 10.48550/arXiv.1902.05569
Akitsu, K., Simonović, M., Chen, S.-F., Cabass, G., & Zaldarriaga, M. 2025, https://arxiv.org/abs/2509.09673
Amari, S. 1967, IEEE Trans. Electron. Comput., 16, 299. https://api.semanticscholar.org/CorpusID:31220579
Amendola, L., Appleby, S., Bacon, D., et al. 2018, Living Reviews in Relativity, 21, doi: 10.1007/s41114-017-0010-3
Andrews, A., Jasche, J., Lavaux, G., et al. 2026, https://arxiv.org/abs/2603.20855
Babić, I., Schmidt, F., & Tucci, B. 2026, Physical Review D, 113, doi: 10.1103/rkzj-q18k
Banerjee, A., Castorina, E., Villaescusa-Navarro, F., Court, T., & Viel, M. 2020, Journal of Cosmology and Astroparticle Physics, 2020, 032, doi: 10.1088/1475-7516/2020/06/032
Battaglia, P. W., Hamrick, J. B., Bapst, V., et al. 2018, https://arxiv.org/abs/1806.01261
Bayer, A. E., Parker, L., Valcin, D., et al. 2026, https://arxiv.org/abs/2603.15732
Bayer, A. E., Villaescusa-Navarro, F., Massara, E., et al. 2021, The Astrophysical Journal, 919, 24, doi: 10.3847/1538-4357/ac0e91
Ben Braiek, H., & Khomh, F. 2024, in Machine Learning Robustness (arXiv). https://arxiv.org/abs/2404.00897
Benítez, N., Dupke, R., Moles, M., et al. 2014, arXiv e-prints. https://arxiv.org/abs/1403.5237
Bernardeau, F., Colombi, S., Gaztañaga, E., & Scoccimarro, R. 2002, Physics Reports, 367, 1–248, doi: 10.1016/s0370-1573(02)00135-7
Bird, S., Ni, Y., Di Matteo, T., et al. 2022, Monthly Notices of the Royal Astronomical Society, 512, 3703–3716, doi: 10.1093/mnras/stac648
Borrow, J., Schaller, M., Bower, R. G., & Schaye, J. 2021, Monthly Notices of the Royal Astronomical Society, 511, 2367–2389, doi: 10.1093/mnras/stab3166
Branch, D., & Miller, D. L. 1993, ApJL, 405, L5, doi: 10.1086/186752
Cabass, G., Ivanov, M. M., Lewandowski, M., Mirbabayi, M., & Simonović, M. 2020, Journal of Cosmology and Astroparticle Physics, 2020, 009, doi: 10.1088/1475-7516/2020/04/042
Charnock, T., Lavaux, G., Wandelt, B. D., et al. 2020, Monthly Notices of the Royal Astronomical Society, 494, 50, doi: 10.1093/mnras/staa682
Collaboration, D., Aghamousa, A., Aguilar, J., et al. 2016, https://arxiv.org/abs/1611.00036
Collaboration, D., Karim, M. A., Adame, A. G., et al. 2026, https://arxiv.org/abs/2503.14745
Cranmer, K., Brehmer, J., & Louppe, G. 2020, Proceedings of the National Academy of Sciences, 117, 30055–30062, doi: 10.1073/pnas.1912789117
Cybenko, G. 1989, Mathematics of Control, Signals and Systems, 2, 303, doi: 10.1007/BF02551274
Davé, R., et al. 2019, MNRAS, 486, 2827, doi: 10.1093/mnras/stz937
de Santi, N. S. M., Shao, H., Villaescusa-Navarro, F., et al. 2023, The Astrophysical Journal, 952, 69, doi: 10.3847/1538-4357/acd1e2
De Santi, N. S. M., et al. 2026, Astronomy and Computing, XX, YY, doi: 10.1016/j.ascom.2026.100XXX
DeRose, J., Chen, S.-F., White, M., & Kokron, N. 2022, Journal of Cosmology and Astroparticle Physics, 2022, 056, doi: 10.1088/1475-7516/2022/04/056
DESI Collaboration, Adame, A. G., Aguilar, J., et al. 2024, AJ, 168, 58, doi: 10.3847/1538-3881/ad3217
Ding, Simon, Lavaux, Guilhem, & Jasche, Jens. 2024, A&A, 690, A236, doi: 10.1051/0004-6361/202451343
Djorgovski, S., & Davis, M. 1987, ApJ, 313, 59, doi: 10.1086/164948
Dolag, K., Borgani, S., Murante, G., & Springel, V. 2009, Monthly Notices of the Royal Astronomical Society, 399, 497, doi: 10.1111/j.1365-2966.2009.15034.x
Eickenberg, M., Allys, E., Dizgah, A. M., et al. 2022, https://arxiv.org/abs/2204.07646
Eisenstein, D., & DESI Collaboration. 2015, in American Astronomical Society Meeting Abstracts, Vol. 225, American Astronomical Society Meeting Abstracts #225, 336.05
Euclid Collaboration. 2020, Euclid mission science overview page https://euclid.caltech.edu/page/galaxy-clustering
Euclid Collaboration, Castro, T., et al. 2025, arXiv e-prints. https://arxiv.org/abs/2501.16555
Faber, S. M., & Jackson, R. E. 1976, ApJ, 204, 668, doi: 10.1086/154215
Feldman, H. A. 2003, https://arxiv.org/abs/astro-ph/0310424
Feng, Y., Bird, S., Anderson, L., Font-Ribera, A., & Pedersen, C. 2018., FirstDOI Zenodo, doi: 10.5281/zenodo.1451799
Fey, M., & Lenssen, J. E. 2019, https://arxiv.org/abs/1903.02428
Flaugher, B., & Bebek, C. 2014, in Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series, Vol. 9147, Ground-based and Airborne Instrumentation for Astronomy V, ed. S. K. Ramsay, I. S. McLean, & H. Takami, 91470S, doi: 10.1117/12.2057105
Gallicchio, C., & Micheli, A. 2010, in The 2010 International Joint Conference on Neural Networks (IJCNN), 1–8, doi: 10.1109/IJCNN.2010.5596796
Gardner, J. P., Mather, J. C., Clampin, M., et al. 2006, SSRv, 123, 485, doi: 10.1007/s11214-006-8315-7
Gardner, J. P., Mather, J. C., Abbott, R., et al. 2023, PASP, 135, 068001, doi: 10.1088/1538-3873/acd1b5
Gatti, M., Campailla, G., Jeffrey, N., et al. 2025, Phys. Rev. D, 111, 063504, doi: 10.1103/PhysRevD.111.063504
Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., & Dahl, G. E. 2017, https://arxiv.org/abs/1704.01212
Gori, M., Monfardini, G., & Scarselli, F. 2005, in Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., Vol. 2, 729–734 vol. 2, doi: 10.1109/IJCNN.2005.1555942
Greenberg, D. S., Nonnenmacher, M., & Macke, J. H. 2019, https://arxiv.org/abs/1905.07488
Hamilton, A. J. S. 1998, Linear Redshift Distortions: A Review (Springer Netherlands), 185–275, doi: 10.1007/978-94-011-4960-0_17
Harnois-Deraps, J., Heydenreich, S., Giblin, B., et al. 2024, https://arxiv.org/abs/2405.10312
Hopkins, P. F. 2015, MNRAS, 450, 53, doi: 10.1093/mnras/stv195
Hornik, K., Stinchcombe, M., & White, H. 1989, Neural Networks, 2, 359, doi: https://doi.org/10.1016/0893-6080(89)90020-8
Hortúa, H. J., García, L. Á., & Castañeda C., L. 2023, Frontiers in Astronomy and Space Sciences, Volume 10 - 2023, doi: 10.3389/fspas.2023.1139120
Hudson, M. J., & Turnbull, S. J. 2012, The Astrophysical Journal, 751, L30, doi: 10.1088/2041-8205/751/2/130
IEEE. 1990., IEEE Std 610.12-1990, Institute of Electrical and Electronics Engineers, New York, NY, USA, doi: 10.1109/IEEESTD.1990.101064
Jagvaral, Y., et al. 2022, Monthly Notices of the Royal Astronomical Society, 516, 2406, doi: 10.1093/mnras/stac2359
Jasche, J., & Lavaux, G. 2019, Astronomy & Astrophysics, 625, A64, doi: 10.1051/0004-6361/201833710
Jasche, J., & Wandelt, B. D. 2013, Monthly Notices of the Royal Astronomical Society, 432, 894, doi: 10.1093/mnras/stt449
Jeffrey, N., & Wandelt, B. D. 2020, https://arxiv.org/abs/2011.05991
Jennings, E., Baugh, C. M., & Pascoli, S. 2011, Monthly Notices of the Royal Astronomical Society, 410, 2081, doi: 10.1111/j.1365-2966.2010.17608.x
Koda, J., Blake, C., Davis, T., et al. 2014, MNRAS, 445, 4267, doi: 10.1093/mnras/stu1610
Koda, J., et al. 2014, Monthly Notices of the Royal Astronomical Society, 445, 4267, doi: 10.1093/mnras/stu2073
Kolmogorov, A. N. 1957, Doklady Akademii Nauk SSSR, 114, 953
Laureijs, R., Amiaux, J., Arduini, S., et al. 2011, Tech. Rep. ESA/SRE(2011)12, European Space Agency. https://arxiv.org/abs/1110.3193
Leclercq, F. 2025, https://arxiv.org/abs/2509.13435
Lee, J.-Y., Kim, J.-h., Jung, M., et al. 2024, The Astrophysical Journal, 975, 38, doi: 10.3847/1538-4357/ad73d4
Lemos, P., Parker, L., Hahn, C., et al. 2024, Phys. Rev. D, 109, 083536, doi: 10.1103/PhysRevD.109.083536
Li, Z., Liu, J., Matilla, J. M. Z., & Coulton, W. R. 2019, Phys. Rev. D, 99, 063527, doi: 10.1103/PhysRevD.99.063527
Linder, E. V. 2005, Phys. Rev. D, 72, 043529, doi: 10.1103/PhysRevD.72.043529
Linnainmaa, S. 1976, BIT, 16, 146–160, doi: 10.1007/BF01931367
Liu, Z., Ma, P., Wang, Y., Matusik, W., & Tegmark, M. 2024, https://arxiv.org/abs/2408.10205
Liu, Z., Wang, Y., Vaidya, S., et al. 2025, https://arxiv.org/abs/2404.19756
Minsky, M., & Papert, S. 1969, Perceptrons: An Introduction to Computational Geometry (Cambridge, MA, USA: MIT Press)
Naidoo, K., Massara, E., & Lahav, O. 2022, Monthly Notices of the Royal Astronomical Society, 513, 3596–3609, doi: 10.1093/mnras/stac1138
Nguyen, N.-M., Schmidt, F., Tucci, B., Reinecke, M., & Kostić, A. 2024, Physical Review Letters, 133, doi: 10.1103/physrevlett.133.221006
Ni, Y., Di Matteo, T., Bird, S., et al. 2022, Monthly Notices of the Royal Astronomical Society, 513, 670, doi: 10.1093/mnras/stac351
Ni, Y., Genel, S., Anglés-Alcázar, D., et al. 2023, ApJ, 959, 136, doi: 10.3847/1538-4357/ad022a
Ni, Y., Genel, S., Anglés-Alcázar, D., et al. 2023, https://arxiv.org/abs/2304.02096
Nusser, A., & Davis, M. 2011, The Astrophysical Journal, 736, 93, doi: 10.1088/0004-637x/736/2/93
Ozaki, Y., Watanabe, S., & Yanase, T. 2025, arXiv preprint arXiv:2510.02798
Pan, S., Liu, M., Forero-Romero, J., et al. 2020, https://arxiv.org/abs/1908.10590
Papamakarios, G., & Murray, I. 2018, https://arxiv.org/abs/1605.06376
Paszke, A., Gross, S., Massa, F., et al. 2019, in Advances in Neural Information Processing Systems 32 (Curran Associates, Inc.), 8024–8035. https://arxiv.org/abs/1912.01703
Peebles, P. J. E. 1980, The Large-Scale Structure of the Universe, Princeton Series in Physics (Princeton, NJ: Princeton University Press)
Peebles, P. J. E. 1993, Principles of physical cosmology (Princeton University Press)
Pillepich, A., Nelson, D., Hernquist, L., et al. 2017, Monthly Notices of the Royal Astronomical Society, 475, 648, doi: 10.1093/mnras/stx3112
Qin, F. 2021, Research in Astronomy and Astrophysics, 21, 242, doi: 10.1088/1674-4527/21/10/242
Racca, G. D., Laureijs, R., Stagnaro, L., et al. 2016, in Proceedings of the SPIE, Vol. 9904, 99040O, doi: 10.1117/12.2230762
Rosenblatt, F. 1958, Psychological Review, 65, 386, doi: 10.1037/h0042519
Rosenblatt, F. 1962, Principles of Neurodynamics: Perceptrons and the Theory of Brain Mechanisms, Cornell Aeronautical Laboratory. Report no. VG-1196-G-8 (Spartan Books). https://books.google.com/books?id=7FhRAAAAMAAJ
Rubira, H., & Schmidt, F. 2026, https://arxiv.org/abs/2511.05484
Rumelhart, D. E., Hinton, G. E., & Williams, R. J. 1986, Nature, 323, 533
Scarselli, F., Gori, M., Tsoi, A. C., Hagenbuchner, M., & Monfardini, G. 2009, IEEE Transactions on Neural Networks, 20, 61, doi: 10.1109/TNN.2008.2005605
Schaller, M., Gonnet, P., Chalk, A. B. G., & Draper, P. W. 2016, in Proceedings of the Platform for Advanced Scientific Computing Conference, PASC '16 (New York, NY, USA: Association for Computing Machinery), doi: 10.1145/2929908.2929916
Schaller, M., Gonnet, P., Draper, P. W., et al. 2018., Astrophysics Source Code Library, record ascl:1805.020 http://ascl.net/1805.020
Schaller, M., Borrow, J., Draper, P. W., et al. 2024, Monthly Notices of the Royal Astronomical Society, 530, 2378–2419, doi: 10.1093/mnras/stae922
Schaye, J., et al. 2015, MNRAS, 446, 521, doi: 10.1093/mnras/stu2058
Schmidt, F., Cabass, G., Jasche, J., & Lavaux, G. 2020, Journal of Cosmology and Astroparticle Physics, 2020, 008–008, doi: 10.1088/1475-7516/2020/11/008
Schmidt, F., Elsner, F., Jasche, J., Nguyen, N. M., & Lavaux, G. 2019, Journal of Cosmology and Astroparticle Physics, 2019, 042-042, doi: 10.1088/1475-7516/2019/01/042
Scrimgeour, M., et al. 2014, Monthly Notices of the Royal Astronomical Society, 445, 2677, doi: 10.1093/mnras/stu1925
Sobol', I. 1967, USSR Computational Mathematics and Mathematical Physics, 7, 86, doi: https://doi.org/10.1016/0041-5553(67)90144-9
Spergel, D., Gehrels, N., Breckinridge, J., et al. 2015, arXiv e-prints. https://arxiv.org/abs/1503.03757
Springel, V. 2010, Monthly Notices of the Royal Astronomical Society, 401, 791, doi: 10.1111/j.1365-2966.2009.15715.x
Springel, V., White, S. D. M., Tormen, G., & Kauffmann, G. 2001, Monthly Notices of the Royal Astronomical Society, 328, 726, doi: 10.1046/j.1365-8711.2001.04912.x
Takada, M., Ellis, R. S., Chiba, M., et al. 2014, Publications of the Astronomical Society of Japan, 66, R1, doi: 10.1093/pasj/pst019
Taylor, A. R., & Braun, R. 1999, in Science with the Square Kilometre Array. https://www.tandfonline.com/doi/pdf/10.1080/10556790008238587
Tsagas, C. G., Perivolaropoulos, L., & Asvesta, K. 2026, https://arxiv.org/abs/2510.05340
Tully, R. B., & Fisher, J. R. 1977, A&A, 54, 661
Tully, R. B., et al. 2023, Astrophysical Journal, 944, 95, doi: 10.3847/1538-4357/acaddd
Turner, R. J. 2025, https://arxiv.org/abs/2411.19484
Turner, R. J., Blake, C., & Ruggeri, R. 2021, MNRAS, 502, 2087, doi: 10.1093/mnras/stab212
Turner, R. J., Blake, C., & Ruggeri, R. 2022, Monthly Notices of the Royal Astronomical Society, 518, 2436–2452, doi: 10.1093/mnras/stac3256
Valogiannis, G., & Dvorkin, C. 2022, Physical Review D, 105, doi: 10.1103/physrevd.105.103534
Villaescusa-Navarro, F., Hahn, C., Massara, E., et al. 2020, The Astrophysical Journal Supplement Series, 250, 2, doi: 10.3847/1538-4365/ab9d82
Villaescusa-Navarro, F., Anglés-Alcázar, D., Genel, S., et al. 2021, ApJ, 915, 71, doi: 10.3847/1538-4357/abf7ba
Villaescusa-Navarro, F., Genel, S., Anglés-Alcázar, D., et al. 2022, The Astrophysical Journal Supplement Series, 259, 61, doi: 10.3847/1538-4365/ac5ab0
Villaescusa-Navarro, F., Genel, S., Anglés-Alcázar, D., et al. 2023, ApJS, 265, 54, doi: 10.3847/1538-4365/acbf47
Villanueva-Domingo, P. 2022., v1.0 Zenodo, doi: 10.5281/zenodo.6485804
Villanueva-Domingo, P., & Villaescusa-Navarro, F. 2022, The Astrophysical Journal, 937, 115, doi: 10.3847/1538-4357/ac8930
Weinberger, R., Springel, V., & Pakmor, R. 2020, The Astrophysical Journal Supplement Series, 248, 32, doi: 10.3847/1538-4365/ab908c
Weinberger, R., Springel, V., Hernquist, L., et al. 2016, Monthly Notices of the Royal Astronomical Society, 465, 3291, doi: 10.1093/mnras/stw2944
Werbos, P. J. 1974, PhD thesis, Harvard University
Widrow, B., & Hoff, M. E. 1960, in 1960 IRE WESCON Convention Record, Part 4, Institute of Radio Engineers (New York: Institute of Radio Engineers), 96–104. http://www-isl.stanford.edu/~widrow/papers/c1960adaptiveswitching.pdf
Wu, Z., Pan, S., Chen, F., et al. 2021, IEEE Transactions on Neural Networks and Learning Systems, 32, 4, doi: 10.1109/TNNLS.2020.2978386
Yang, X., Mo, H. J., van den Bosch, F. C., & Jing, Y. P. 2005, MNRAS, 357, 608, doi: 10.1111/j.1365-2966.2005.08667.x
Yip, J. H. T., Rouhiainen, A., & Shiu, G. 2025, Machine Learning: Science and Technology, 6, 025063, doi: 10.1088/2632-2153/ade114
Yuan, S., et al. 2023, Proceedings of the National Academy of Sciences, 120, e2306999120, doi: 10.1073/pnas.2306999120
Zaheer, M., Kottur, S., Ravanbakhsh, S., et al. 2018, https://arxiv.org/abs/1703.06114
Zhou, J., Cui, G., Hu, S., et al. 2020, AI Open, 1, 57, doi: 10.1016/j.aiopen.2021.01.001
Training set: TNG (LH), Input features: (), Target:

Figure 7. Comparing inference between a DeepKAN model (top) and a Deep Set implemented with multilayer perceptrons (MLPs) (bottom), trained on the LH set of the IllustrisTNG simulation suite, using only the line-of-sight peculiar velocities as an input feature. The comparable performance between the two models, and the comparable performance with models trained on Astrid, suggests that the cosmological information accessible through the velocity field is relatively robust for the LH sets of the Astrid and TNG simulations.
APPENDIX
A. TRAINED ON TNG
We train our Deep Set with MLPs and our DeepKAN using only the line-of-sight peculiar velocities on the LH set of IllustrisTNG, and test the model on Astrid, Simba, Swift-EAGLE, and the SB set of IllustrisTNG. The model is optimized using the same Optuna framework as the model trained on Astrid, and trained over 300 epochs using the best performing hyperparameters. The results are shown in Figure 7 and summarized in Table 4. While the in-distribution performance of models trained on TNG (LH) is somewhat degraded relative to models trained on Astrid, the overall behavior is broadly consistent across both training suites and across both Deep Sets with MLPs and Deep KANs. This suggests that for at least these two simulation suites, the velocity field retains cosmological information that can be learned by permutation-invariant, set-based architectures. At the same time, these results indicate that the successful recovery of this information depends on the training data provided and therefore should not be interpreted as evidence of suite-independent robustness, in general.
B. COMPARISON WITH PREVIOUS WORK
In order to draw a comparison between DeepKANs and a Deep Set with MLPs, we sought to reproduce the results from N. S. M. de Santi et al. (2023). In that work, the authors build on experiments carried out in P. Villanueva-Domingo & F. Villaescusa-Navarro (2022), where simulated galaxy catalogs from the IllustrisTNG and SIMBA suites are analyzed using a GNN. All experiments are implemented within the COSMOGRAPHNET framework (P. Villanueva-Domingo & F. Villaescusa-Navarro 2022; P. Villanueva-Domingo 2022), which provides a pipeline for cosmological inference using GNN architectures. To isolate the information content of peculiar velocities, N. S. M. de Santi et al. (2023) remove all edge connections from the graphs, eliminating message passing between nodes. In this configuration, each galaxy is processed independently by a shared neural network, followed by a permutation-invariant aggregation over nodes. This architecture is therefore functionally equivalent to a Deep Set model, with the implementation carried out using the MetaLayer class from the PyTorch Geometric (PyG) library (M. Fey & J. E. Lenssen 2019) to construct stacks of MLPs. In contrast, our implementation of Deep Sets is built directly using standard PyTorch modules, with
The GitHub repository is available at this link.
| Test Suite | Model | RMSE | PCC | Bias | (%) | |||
|---|---|---|---|---|---|---|---|---|
| TNG (LH) | Deep Set (MLP) | 0.068 | 0.66 | 0.82 | 20.4 | 1.45 | 0 | |
| DeepKAN | 0.070 | 0.64 | 0.80 | 19.8 | 5.35 | 0 | ||
| ASTRID | Deep Set (MLP) | 0.068 | 0.59 | 0.78 | 20.3 | 3.14 | 0 | |
| DeepKAN | 0.063 | 0.65 | 0.82 | 17.9 | 7.11 | 0 | ||
| SIMBA | Deep Set (MLP) | 0.065 | 0.67 | 0.82 | 20.2 | 1.42 | 0 | |
| DeepKAN | 0.064 | 0.67 | 0.82 | 20.2 | 1.69 | 0 | ||
| Swift-EAGLE | Deep Set (MLP) | 0.074 | 0.58 | 0.77 | 23.5 | 2.43 | 0 | |
| DeepKAN | 0.078 | 0.54 | 0.76 | 23.6 | 27.19 | 2 | ||
| TNG (SB) | Deep Set (MLP) | 0.084 | 0.51 | 0.73 | 23.8 | 2.83 | 0 | |
| DeepKAN | 0.084 | 0.52 | 0.73 | 23.4 | 3.01 | 0 |
Table 4. Comparison of Deep Set models for inferring using only line-of-sight peculiar velocities (). All models are trained on the LH set of IllustrisTNG and evaluated on multiple simulation suites. Metrics reported are RMSE, , PCC, relative error , and reduced clipped . Here is computed after excluding catalogs with , and gives the number of excluded catalogs. The global feature is included in all training and test samples.
Training set: Astrid, Input features: (), Target:

Figure 8. Model trained using the MetaLayer class from the PyG library, in keeping with the approach of N. S. M. de Santi et al. (2023). Comparing this to Figure 1, we see that the model fails to recover a significant cosmological signal. The specific reasons that the MetaLayer architecture underperforms when compared to PyTorch's Linear class are not clear.
fully connected layers implemented via the Linear class for MLP-based models (A. Paszke et al. 2019), and replaced by KAN layers in the DeepKAN variant.
Results from performing inference using the PyG implementation, and a table summarizing those results in contrast to our own, can be found in Figure 8 and Table 5, respectively. It is evident that the MetaLayer architecture struggles to extract the underlying signal. The discrepancy is therefore localized to the layer architecture rather than to the input features or training suite. However, the mechanism by which the Linear-based and MetaLayer-based implementations lead to different optimization behavior and predictive performance is not yet fully understood. The comparison with N. S. M. de Santi et al. (2023) should therefore be regarded as provisional pending a more detailed diagnostic study of this implementation dependence.
Additionally, the MetaLayer results reported here differ from those of N. S. M. de Santi et al. (2023). For the model trained and tested on Astrid, N. S. M. de Santi et al. (2023) report , with OOD values averaging . In contrast, we find in distribution and an average OOD value of . This difference likely reflects the hyperparameter optimization strategy. N. S. M. de Santi et al. (2023) used 20 Optuna trials of 300 epochs each, whereas we used 100 trials of 20 epochs each. In our experiments, 20 epochs were sufficient to identify promising configurations, and the larger number of trials allowed Optuna to explore the hyperparameter space more broadly and select a more effective model.
| Test Suite | Model | RMSE | PCC | Bias | (%) | ||
|---|---|---|---|---|---|---|---|
| ASTRID | Deep Set (KAN) | 0.057 | 0.71 | 0.85 | 18.6 | 1.98 | |
| Deep Set (MLP, Linear) | 0.052 | 0.76 | 0.87 | 17.1 | 0.87 | ||
| Deep Set (MLP, MetaLayer) | 0.080 | 0.47 | 0.69 | 23.4 | 7.05 | ||
| TNG (LH) | Deep Set (KAN) | 0.076 | 0.58 | 0.77 | 25.3 | 1.64 | |
| Deep Set (MLP, Linear) | 0.073 | 0.61 | 0.79 | 24.3 | 1.27 | ||
| Deep Set (MLP, MetaLayer) | 0.081 | 0.51 | 0.72 | 24.0 | 3.11 | ||
| TNG (SB) | Deep Set (KAN) | 0.080 | 0.56 | 0.76 | 25.6 | 5.79 | |
| Deep Set (MLP, Linear) | 0.080 | 0.56 | 0.75 | 26.2 | 1.65 | ||
| Deep Set (MLP, MetaLayer) | 0.085 | 0.42 | 0.67 | 26.8 | 5.30 | ||
| SIMBA | Deep Set (KAN) | 0.074 | 0.57 | 0.77 | 24.8 | 2.54 | |
| Deep Set (MLP, Linear) | 0.073 | 0.58 | 0.78 | 24.5 | 1.18 | ||
| Deep Set (MLP, MetaLayer) | 0.080 | 0.56 | 0.75 | 24.2 | 2.89 | ||
| Swift-EAGLE | Deep Set (KAN) | 0.077 | 0.55 | 0.77 | 25.4 | 15.76 | |
| Deep Set (MLP, Linear) | 0.081 | 0.51 | 0.72 | 25.8 | 1.38 | ||
| Deep Set (MLP, MetaLayer) | 0.080 | 0.40 | 0.67 | 24.5 | 3.09 |
Table 5. Comparison of Deep Set models for inferring from peculiar velocities. All models are trained on ASTRID, utilizing the COSMOGRAPHNET framework presented in P. Villanueva-Domingo & F. Villaescusa-Navarro (2022), and evaluated on multiple simulation suites. Metrics reported are RMSE, , PCC, relative error , and reduced .