---
title: 'GokuNEmu: 10D Neural-Network Emulator'
url: https://www.emergentmind.com/topics/gokunemu
type: topic
---

# GokuNEmu: 10D Neural-Network Emulator

Searching arXiv for GokuNEmu and closely related cosmology papers to ground the article.
GokuNEmu is a ten-dimensional neural-network emulator for the nonlinear matter power spectrum \(P(k,z)\), built on the Goku \(N\)-body simulation suite and the T2N-MusE multifidelity emulation framework to support next-generation cosmological inference. It predicts \(P(k,z)\) over \(0.006 \le k/(h\,\mathrm{Mpc}^{-1}) \le 10\) and \(0 \le z \le 3\) with \(\sim 0.5\%\) average accuracy, while evaluating a single cosmology in \(\sim 2\) milliseconds on a laptop. Its parameter domain extends beyond flat \(\Lambda\)CDM to include dynamical dark energy, massive neutrinos, the effective number of neutrinos, and running of the scalar spectral index, with prior coverage explicitly described as broad enough to test recent DESI dynamical dark energy constraints [2507.07177].

## 1. Scientific target and formal definition

GokuNEmu addresses a standard bottleneck in precision large-scale-structure analysis: surveys such as DESI, LSST, Euclid, the Roman Space Telescope, and CSST require repeated, high-precision evaluations of the nonlinear matter power spectrum across extended cosmological parameter spaces, whereas a new high-resolution \(N\)-body simulation at each likelihood point is computationally infeasible. In the GokuNEmu formulation, the emulator replaces those simulations with a trained surrogate that operates inside the prior box and returns \(P(k,z)\) in \(\mathcal{O}(10^{-3})\) seconds rather than thousands of CPU hours [2507.07177].

The target observable is the fully nonlinear matter power spectrum measured directly from \(N\)-body simulations rather than a linear-theory spectrum. The underlying matter density contrast is
\[
\delta(\mathbf{x},z) \equiv \frac{\rho(\mathbf{x},z)-\bar{\rho}(z)}{\bar{\rho}(z)},
\]
with power spectrum defined by
\[
\langle \delta(\mathbf{k},z)\,\delta^*(\mathbf{k}',z)\rangle
= (2\pi)^3\delta_D(\mathbf{k}-\mathbf{k}')\,P(k,z).
\]
GokuNEmu therefore belongs to the class of simulation-based nonlinear emulators rather than fitting-function models such as Halofit or HMcode [2507.07177].

A central distinction from earlier cosmological emulators is dimensionality coupled to broad prior coverage. The emulator spans a 10D space with explicit dark-energy and neutrino-sector extensions, and its evaluation speed is substantially faster than earlier Gaussian-process-based approaches, including its predecessor GokuEmu [2507.07177].

## 2. Cosmological parameterization and validity domain

GokuNEmu assumes a spatially flat universe and emulates \(P(k,z)\) as a function of ten cosmological parameters. The parameterization combines five flat \(\Lambda\)CDM-like parameters with five extensions.

| Group | Parameters |
|---|---|
| Base flat \(\Lambda\)CDM-like | \(\Omega_\mathrm{m}, \Omega_\mathrm{b}, h, A_\mathrm{s}, n_\mathrm{s}\) |
| Extensions | \(w_0, w_a, \sum m_\nu, N_\mathrm{eff}, \alpha_\mathrm{s}\) |

The dark-energy sector uses the CPL form
\[
w(z)=w_0+w_a\frac{z}{1+z},
\]
while the running parameter is defined as \(\alpha_\mathrm{s}\equiv \mathrm{d}n_s/\mathrm{d}\ln k\). The wide simulation box Goku-W covers \(\Omega_\mathrm{m}=0.22\) to \(0.40\), \(\Omega_\mathrm{b}=0.040\) to \(0.055\), \(h=0.60\) to \(0.76\), \(A_\mathrm{s}=1.0\times10^{-9}\) to \(3.0\times10^{-9}\), \(n_\mathrm{s}=0.80\) to \(1.10\), \(w_0=-1.30\) to \(0.25\), \(w_a=-3.0\) to \(0.5\), \(\sum m_\nu=0.00\) to \(0.60\,\mathrm{eV}\), \(N_\mathrm{eff}=2.2\) to \(4.5\), and \(\alpha_\mathrm{s}=-0.05\) to \(0.05\). The nested narrow box Goku-N concentrates on a higher-likelihood region with correspondingly tighter intervals [2507.07177].

The extensions are motivated by distinct physical imprints on \(P(k,z)\). Dynamical dark energy alters the expansion history and structure-growth rate; massive neutrinos suppress small-scale power through free-streaming; \(N_\mathrm{eff}\) modifies the early expansion rate and thus the transfer function; and \(\alpha_\mathrm{s}\) changes the detailed scale dependence inherited from primordial fluctuations. The broad prior coverage is specifically described as safely enclosing the full \(3\sigma\) regions from DESI and DES dynamical dark-energy analyses in the \(w_0\)–\(w_a\) plane, while the \(\sum m_\nu\) prior up to \(0.6\,\mathrm{eV}\) is stated to cover cosmological limits and the KATRIN bound \(\sum m_\nu<0.45\) eV at 90% C.L. [2507.07177].

The modeled regime extends over \(0 \le z \le 3\) and \(0.006 \le k/(h\,\mathrm{Mpc}^{-1}) \le 10\). The low-\(k\) end is mostly linear or weakly nonlinear, \(k\sim 0.1\)–\(1\,h\,\mathrm{Mpc}^{-1}\) is quasi-linear to nonlinear, and \(k\gtrsim 1\,h\,\mathrm{Mpc}^{-1}\) reaches the deeply nonlinear regime, which is particularly relevant for galaxy clustering and weak lensing in upcoming surveys [2507.07177].

## 3. Simulation basis and multifidelity data model

The emulator is trained on the Goku simulation suite, a 10-dimensional cosmological \(N\)-body design constructed with MP-Gadget and organized through nested wide and narrow hypercubes sampled by a Sliced Latin Hypercube Design. The suite combines a small set of expensive high-fidelity simulations with a much larger set of cheaper low-fidelity runs, an arrangement originally developed in the MF-Box framework and publicized with the Gaussian-process predecessor GokuEmu [2501.06296].

The high-fidelity component consists of 36 simulations in total: 21 in Goku-W and 15 in Goku-N. Each has box size \(L=1000\,\mathrm{Mpc}/h\) and \(3000^3\) dark-matter particles. The low-fidelity component comprises 1128 paired simulations. The L1 node uses the same box size as HF, \(L=1000\,\mathrm{Mpc}/h\), but only \(750^3\) particles, so it captures large scales economically but loses high-\(k\) convergence. The L2 node uses \(L=250\,\mathrm{Mpc}/h\) with \(750^3\) particles, providing better effective resolution at high \(k\) while missing the largest modes. The low-fidelity runs densely sample parameter space and the high-fidelity simulations supply the correction needed for accurate emulation [2507.07177].

The original Goku simulation paper further specifies that the simulations use MP-Gadget, begin from CLASS-based initial conditions, and implement massive neutrinos through the linear response method of Ali-Haimoud & Bird rather than neutrino particles. In that setup, neutrinos contribute to the long-range gravitational potential while short-range neutrino forces are neglected because free-streaming suppresses them below the PM-cell scale [2501.06296].

Power spectra are measured from each simulation at six original snapshots, \(z=0, 0.2, 0.5, 1, 2, 3\), plus more than one hundred intermediate outputs that are interpolated down to 28 additional redshift bins, yielding 34 emulated redshift bins in total. The authors report that linear interpolation in \(\ln a\) between raw outputs reproduces the simulation spectra to better than \(10^{-3}\) in \(P(k,z)\) [2507.07177].

Because L1 and L2 converge in different \(k\)-ranges, GokuNEmu is assembled from two component emulators. Emu1 uses L1 and HF data for \(0.006<k/(h\,\mathrm{Mpc}^{-1})<1.5\), while Emu2 uses L2 and HF data for \(0.025<k/(h\,\mathrm{Mpc}^{-1})<10\). The final prediction is blended in the overlap region through
\[
P(k,z)=[1-w(k)]\,P_{\mathrm{Emu1}}(k,z)+w(k)\,P_{\mathrm{Emu2}}(k,z),
\]
with \(w(k)\) a sigmoid weight function. A further pairing-and-fixing correction, following Angulo and Pontzen, is applied as a universal correction to reduce residual cosmic variance [2507.07177].

## 4. Neural-network construction and T2N-MusE methodology

GokuNEmu is implemented within T2N-MusE, a multifidelity framework based on fully connected neural networks. At the conceptual level, the emulator takes as input the ten cosmological parameters together with redshift \(z\) and returns the nonlinear power spectrum values on a fixed \(k\)-grid. Its core design is a two-step multifidelity architecture in which one network learns the low-fidelity spectrum and a second network learns the high-fidelity correction as a ratio [2507.07177].

The two-step mapping is
\[
R(k,z)\equiv \frac{P_\mathrm{HF}(k,z)}{P_\mathrm{LF}(k,z)},
\qquad
P_\mathrm{emu}(k,z)=P_{\mathrm{LF,NN}}(k,z)\times R_{\mathrm{NN}}(k,z).
\]
This preserves the multifidelity logic of earlier Gaussian-process constructions while replacing GP regression with neural networks. The short GokuNEmu paper emphasizes the ratio-based correction and the use of separate low-\(k\) and high-\(k\) emulators, whereas the dedicated T2N-MusE methodology paper characterizes the framework more generally by four ingredients: a 2-step multifidelity architecture, a 2-stage Bayesian hyperparameter optimization, a 2-phase \(k\)-fold training strategy, and a per-\(z\) principal component analysis strategy [2507.07177; 2507.07184].

Hyperparameter selection is carried out by two-stage Bayesian optimization over the number of layers, the number of neurons per layer, and the \(L_2\) regularization strength. Training of the low-fidelity network uses a two-phase procedure: multiple random seeds are first explored to identify favorable minima, and \(k\)-fold cross-validation is then run from the best initial weights to improve generalization and reduce overfitting. The T2N-MusE paper reports that these architectural and optimization choices reduce validation error by more than a factor of five relative to previous work on the same Goku data, and that the resulting production emulator is GokuNEmu [2507.07184].

The networks are implemented in PyTorch and use standard modern FCNN components, including the Adam optimizer, weight decay expressed as decoupled \(L_2\) regularization, and advanced activation functions in the Swish/SiLU family. The short letter does not state the exact layer counts or neuron widths, and it does not dwell on preprocessing beyond the multifidelity construction itself [2507.07177].

## 5. Validation, inference speed, and comparison with other emulators

Accuracy is quantified through a relative mean absolute error between emulator predictions and held-out high-fidelity simulation outputs, averaged over \(k\) and \(z\). Validation uses leave-one-out cross-validation on the HF set: for each held-out HF cosmology, the corresponding simulation is removed, the multifidelity networks are retrained on the remaining HF and LF data, and predictions are compared with the withheld HF spectrum [2507.07177].

On the wide box Goku-W, the mean error over all test HF cosmologies, 34 redshifts, and 137 \(k\)-bins is reported as \(0.45\%\). On the narrow box Goku-N, the mean error is \(0.18\%\). Error is typically below \(1\%\) for almost all \(k\) and \(z\), with the largest deviations appearing at the lowest redshift and highest \(k\), where nonlinearity and resolution demands are most severe. At \(k\gtrsim 2\,h\,\mathrm{Mpc}^{-1}\) and \(z=0\), some cosmologies rise slightly above \(1\%\) but remain at the percent level [2507.07177].

These results represent a substantial improvement over the Gaussian-process predecessor GokuEmu. For the same wide-box training data, GokuEmu had mean error \(\sim 2.9\%\), whereas GokuNEmu reaches \(0.45\%\). In the narrow box, GokuEmu was already very accurate, but GokuNEmu is reported to reduce errors at high \(k\) and low \(z\) further [2507.07177]. The original GokuEmu paper had described the earlier emulator as achieving percent-level accuracy in high-likelihood regions and \(\sim 5\%\) accuracy across broader parameter ranges, while reducing simulation cost by 94% relative to single-fidelity strategies [2501.06296].

Inference latency is another defining feature. GokuNEmu requires \(\sim 2\) ms per cosmology on a standard laptop CPU for the full \(P(k,z)\) at one redshift. The same source compares this with \(\sim 300\) ms for EuclidEmulator2, \(\sim 15\) ms for the CSST emulator, “a few seconds” for GP-based GokuEmu, and \(\gtrsim 10^5\)–\(10^6\) CPU-seconds for a full high-fidelity \(N\)-body simulation [2507.07177].

Relative to competing tools, the defining combination is dimensionality, prior width, speed, and low error. The emulator includes \(w_0\), \(w_a\), \(\sum m_\nu\), \(N_\mathrm{eff}\), and \(\alpha_s\) simultaneously; its \(w_0\)–\(w_a\) box is described as safely enclosing the full \(3\sigma\) DESI and DES regions; and its neutrino prior extends to \(0.6\,\mathrm{eV}\), wider than EuclidEmulator2. On that basis, the GokuNEmu paper describes it as the only matter power spectrum emulator capable of testing recent dynamical dark energy constraints from DESI [2507.07177].

## 6. Applications, limitations, and terminological context

The intended use cases are fast forward modeling in MCMC, nested sampling, Fisher forecasting, and broader sensitivity analysis for joint cosmological inference. Because the emulator returns nonlinear \(P(k,z)\) across a 10D extended parameter space, it is suited to joint fits involving combinations such as CMB, BAO, supernovae, and large-scale structure, as well as survey-specific analyses for LSST, Euclid, Roman, and CSST [2507.07177].

A parameter-sensitivity study in the GokuNEmu paper underscores why the nonlinear regime matters for extension models. Using a reference cosmology
\[
\theta_\mathrm{ref}=(0.31,0.048,0.68,2.1\times10^{-9},0.96,-1,0,0.06\,\mathrm{eV},3.044,0)
\]
and a DESI-like cosmology with \((w_0,w_a)=(-0.76,-0.82)\), the study finds that at \(z\lesssim 1\) the most sensitive scale to changes in \(w_0\), \(w_a\), and \(\sum m_\nu\) lies near \(k\sim 1\,h\,\mathrm{Mpc}^{-1}\), i.e. deep in the nonlinear regime. It also shows that changes in \(w_0\) and \(w_a\) can mimic lowering \(\sum m_\nu\) below the oscillation-experiment minimum, suggesting that fixing \(w_0=-1\) and \(w_a=0\) can artificially push inferred neutrino masses downward [2507.07177].

The validity domain is explicitly bounded. The emulator is trained strictly within the Goku-W and Goku-N parameter boxes and extrapolation beyond them is not recommended. It is validated only for \(0\le z\le 3\). The underlying simulations are gravity-only dark-matter \(N\)-body runs with no baryonic feedback, so real-data analyses at \(k\gtrsim 1\)–\(3\,h\,\mathrm{Mpc}^{-1}\) require an additional treatment of baryons, such as baryonification or baryonic correction schemes. Dark-energy clustering and modified-gravity effects beyond the CPL \(w_0\)–\(w_a\) model are not included, and nonstandard models such as warm dark matter or early dark energy are outside scope [2507.07177].

The software is publicly available in PyTorch at the repository listed by the authors, and the intended workflow is straightforward: specify the cosmological parameter vector, provide a redshift, obtain \(P(k,z)\) on the internal \(k\)-grid, and interpolate in \(k\) if needed [2507.07177].

A recurring source of confusion is nomenclature. Within cosmological emulation, GokuNEmu denotes the 2025 neural-network emulator for the nonlinear matter power spectrum, whereas GokuEmu denotes the earlier Gaussian-process emulator built on the same Goku simulation suite [2501.06296; 2507.07177]. The name should also not be conflated with unrelated arXiv projects titled “Goku” in flow-based image/video generation or instruction-based video editing [2502.04896; 2606.30599].

Source: https://www.emergentmind.com/topics/gokunemu