BACCO Emulator for Cosmological Analysis
- The BACCO emulator is a neural-network framework that accurately predicts two-point clustering statistics of matter and galaxies using hybrid Lagrangian bias expansions.
- It combines high-resolution N-body simulations with cosmology rescaling and machine learning to achieve sub-percent precision across an 8-dimensional cosmological parameter space.
- The emulator integrates theoretical models with rapid neural predictions to support full-shape power spectrum analyses in modern galaxy surveys, including baryonic and redshift-space effects.
The BACCO emulator is a neural-network-based framework for rapidly predicting two-point clustering statistics—most notably the power spectrum—of matter and biased tracers (e.g., galaxies) in both real and redshift space, as a function of cosmology, redshift, galaxy bias, and astrophysical parameters. Designed by the BACCO Simulation Project, it combines the flexibility of perturbative Lagrangian bias expansions with the accuracy of high-resolution N-body dynamics, utilizing cosmology-rescaling, machine learning, and hybridization of theory and simulation. BACCO achieves high-precision predictions across an extended cosmological parameter space, including massive neutrinos and evolving dark energy, and is validated for scales extending well into the quasi-linear and mildly nonlinear regime relevant to modern galaxy surveys (Ibáñez et al., 2024, Pellejero-Ibanez et al., 2022, Zennaro et al., 2021).
1. Theoretical Foundations: Hybrid Lagrangian Bias Expansion
The BACCO emulator models the galaxy-matter connection via a second-order Lagrangian bias expansion, including a higher-derivative term, up to five basis fields:
- (linear overdensity)
- (local quadratic)
- (tidal shear, )
- (higher-derivative)
- $1$ (trivial)
The tracer overdensity in Lagrangian space is given by
This expansion is then advected to Eulerian space using the non-linear displacement field measured in N-body simulations:
Redshift-space distortions (RSD), including the effects of peculiar velocities, are incorporated by shifting the line-of-sight coordinate of each element by its velocity component:
A phenomenological Fingers-of-God (FoG) model convolves the redshift-space density along the line of sight with a mixture of a Dirac delta (centrals) and an exponential (satellites), parameterized by the satellite fraction 0 and velocity dispersion scale 1 (Ibáñez et al., 2024, Pellejero-Ibanez et al., 2022, Collaboration et al., 28 Jan 2026).
2. Simulation Suite and Cosmology-Rescaling
The emulator is trained on a simulation suite consisting of high-resolution, large-volume gravity-only N-body runs (e.g., 2 particles in 3Mpc boxes, 4), employing fixed-and-paired initial conditions to minimize sample variance (Angulo et al., 2020, Pellejero-Ibanez et al., 2022). Rather than rerunning simulations for every cosmological model, BACCO utilizes the Angulo & White cosmology-rescaling algorithm, extended to massive neutrinos and time-varying dark energy, to remap particle positions, velocities, and halo properties to thousands of target cosmologies. This results in coverage of an 8-dimensional cosmological parameter space:
5
spanning 6 the 68% Planck uncertainties (Ibáñez et al., 2024, Angulo et al., 2020). Cross-spectra of Lagrangian basis fields—including all relevant bias and RSD terms—are measured in real and redshift space at each rescaled cosmology.
3. Neural-Network Emulator Design and Workflow
Emulation is performed by feed-forward neural networks. The general structure is:
- Input: 8 cosmological parameters (optionally 7 baryonic parameters for baryonification).
- Architecture: 2 hidden layers (200–400 neurons with ReLU activation), 1 output layer (principal-component amplitudes or cross-spectra).
- Output: Principal component (PC) amplitudes that reconstruct the desired power spectra (monopole 7, quadrupole 8, hexadecapole 9, and cross-spectra 0).
The emulator predicts the nonlinear galaxy power spectrum multipoles in redshift space as:
- Neural network predicts the set of 15 cross-spectra 1 as functions of cosmology.
- These templates are linearly combined with Lagrangian bias weights to yield 2.
- Legendre expansion obtains multipoles 3 (4).
- FoG convolution and shot-noise corrections are applied.
- Alcock–Paczynski scaling is performed, and the model is evaluated in likelihood analyses (e.g., MultiNest, emcee) with typical evaluation times 5 s (BOSS) or 610 ms (Euclid-like applications) (Ibáñez et al., 2024, Pellejero-Ibanez et al., 2022, Collaboration et al., 28 Jan 2026).
Emulator accuracy is at the sub-percent level for the monopole (70.5%), percent for the quadrupole, and at the 10% level for the hexadecapole, all below current BOSS data errors (Ibáñez et al., 2024).
4. Extensions: Baryonic Effects, Real-Space Tracers, Linear/Nonlinear Matter, and Modular Stacking
BACCO provides emulators for a variety of related observables:
- Baryonic suppression: A dedicated "baryonification" emulator, trained on gravity-only N-body runs augmented with a baryonic algorithm, delivers 8–9 precision on the ratio 0 across 1–2 and 3–4, with a 15-dimensional parameter input (8 cosmological, 7 baryonic) (Aricò et al., 2020).
- Real-space biased tracers: A similar emulator predicts 5 and 6 for galaxies and matter using 15 cross-spectra and Lagrangian bias parameters, achieving 7 accuracy up to 8 at 9 (Zennaro et al., 2021).
- Linear/nonlinear matter spectra: Additional neural network emulators for 0 and nonlinear boost factors are included, covering identical parameter volumes, with 1 accuracy for 2 and sub-100 ms evaluation times (Angulo et al., 2020, Aricò et al., 2021).
- Modular stacking: All BACCO emulators share conventions, interface structure, and k-grid, permitting seamless stacking (e.g., 3 add nonlinear 4 boost 5 add baryon correction 6 model galaxy bias) (Aricò et al., 2021).
5. Validation, Performance Metrics, and Applications
Validation employs mock catalogs (e.g., Nseries, BOSS-like HOD, SHAMe mocks, Euclid Flagship) and comparisons to analytic or other emulator-based predictions:
- Accuracy: Guaranteed for 7 in BOSS analyses, 8 for high-density and mildly nonlinear tests, errors below the data statistical errors in all relevant regimes (Ibáñez et al., 2024, Pellejero-Ibanez et al., 2022).
- Parameter recovery: Posteriors for 9 and nuisance parameters are unbiased, with stable errors across tested $1$0; $1$1 constraints from BOSS alone exhibit a $1$2–$1$3 tension with Planck, consistent with lower $1$4 from lensing analyses, but within overall compatibility (Ibáñez et al., 2024).
- Comparison to PT models: Outperforms Effective Field Theory (EFT) at small scales ($1$5) and matches or surpasses alternatives such as VDG$1$6 up to $1$7 for unbiasedness, although VDG$1$8 provides marginally tighter constraints at higher $1$9 in some configurations (Collaboration et al., 28 Jan 2026).
6. Limitations and Future Development
Several limitations are noted in the literature:
- Parameter volume: Performance degrades near the edges of training coverage; extension to new physics (e.g., non-flat cosmologies, exotic dark sectors) requires retraining with new simulation anchors (Pellejero-Ibanez et al., 2022).
- Small-scale reliability: The Lagrangian hybrid expansion may break at 0 or for highly sparse samples where shot-noise or unmodeled physics dominate (Pellejero-Ibanez et al., 2022).
- Residual systematics: At high redshift and in the highest-precision hexadecapole, interpolation artifacts may appear; active work focuses on increasing k-bin resolution, anchor simulation density, or modifying neural architectures (Collaboration et al., 28 Jan 2026).
- Stochastic terms: Shot noise is treated phenomenologically; further modeling of stochasticity or higher-order bias fields may be needed for next-generation data (Pellejero-Ibanez et al., 2022).
7. Software Distribution and Community Usage
The BACCO emulator suite is public and documented, with Python modules, Jupyter notebook examples, command-line interfaces, and support for embedding in standard inference workflows (emcee, MultiNest). Installation is via pip (pip install baccoemu or pip install bacco_emulator for the original version), with code repositories at http://www.dipc.org/bacco (Angulo et al., 2020, Aricò et al., 2021, Aricò et al., 2020, Pellejero-Ibanez et al., 2022). All necessary neural network weights, principal component bases, and reference cosmologies are included. Users are advised to respect the emulator's validated parameter bounds and to combine modules as needed for nonlinear, baryonic, and tracer-specific effects.
The BACCO emulator is used as a workhorse in full-shape power spectrum analyses of state-of-the-art galaxy surveys (e.g., BOSS, Euclid), providing a robust, rapid, and extensible solution for extracting precision cosmology from large-scale structure data (Ibáñez et al., 2024, Collaboration et al., 28 Jan 2026).