betaFeedback

WorksPhysics and Astronomy

MadNIS, Ready for Production at LO

Abstract

We extend neural multi-channel importance sampling in MadNIS to full proton-proton processes in a production-ready event-generation setup. We benchmark a wide range of LHC processes, including multi-jet, vector-boson, top-quark, and Higgs production, and obtain event-generation speed-ups of up to a factor of 250 without process-specific hyperparameter tuning. We quantify how the speed-up scales with training time and final-state multiplicity, and when the training cost amortizes. MadNIS will become the default for phase-space integration and event generation at leading order in MadGraph.

Introduction

Event generators such as PYTHIA [1], Sherpa [2], Herwig [3], and MadGraph [4, 5, 6, 7, 8] turn a Lagrangian into simulated scattering events and provide the backbone of the LHC analysis chain [9, 10]. Their first step, the integration over parton-level phase space and the generation of unweighted events, already dominates the cost for high final-state multiplicities [11, 12]. For the HL-LHC, the required samples and process complexity will grow faster than the available computing budget, so this step risks becoming the bottleneck of the entire simulation pipeline.

Modern machine learning [13, 14] offers a way out, and by now accelerates essentially every step of the simulation chain [15, 16, 17]. For the evaluation of scattering amplitudes, neural surrogates [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31] replace the expensive exact evaluation, including a calibrated uncertainty estimate [32, 33, 34, 35, 36]. For phase-space integration, neural importance sampling [37, 38, 39, 40, 41, 42, 43, 44, 45] replaces or refines the classic adaptive mappings of VEGAS [46, 47, 48] with normalizing flows. For MadGraph, this is realized by the MadNIS framework [49, 50, 51], which refines the channel weights of the single-diagram-enhanced multi-channel decomposition [4, 52], and improves the phase-space sampling, while a first NLO version combines neural importance sampling with fast surrogates [53]. Neural control variates provide a complementary handle on the variance, reducing the spread of event weights and avoiding negative weights at LO and NLO [54].

Hardware acceleration is the second lever. GPU-based amplitude evaluation [55] has matured into full parton-level event generation with Pepper [56]. Within MadGraph, the CUDACPP plugin, now dubbed MadMatrix, provides substantial speed-ups for the matrix-element evaluation [57, 58, 59, 60, 61], and MadSpace [62] provides the corresponding GPU-native phase-space generation. Both levers combine naturally, because we train and evaluate the sampler on exactly the hardware that accelerates the matrix elements. For Pepper, an end-to-end GPU workflow with normalizing-flow proposals recently achieved speed-ups of up to two orders of magnitude for high-multiplicity processes, including the training cost [63].

So far, however, MadNIS has delivered these gains only for single partonic subprocesses of selected benchmark processes. In this paper, we extend MadNIS to generic proton-proton processes, and make neural importance sampling the default in MadGraph at leading order. All developments are publicly available in the alpha release of MadGraph7 [64]. We generalize MadNIS to include discrete degrees of freedom, allowing importance sampling of symmetry permutations and parton-flavor configurations. We merge matrix-element implementations, integration channels of similar topology, and entire subprocesses, which reduces the number of independent trainings. We extend buffered training to unweighted samples, which stabilizes the training and allows faster convergence, while a decoupling of training and event generation further improves the throughput of the overall pipeline. On top of these technical improvements, we define automated defaults, which set the hyperparameters from a short VEGAS survey of each process. Because every change of process, cuts, or model parameters requires a new training, the training time adds directly to the cost of event generation. We therefore quantify how the gain scales with training time and process multiplicity, and when the training cost amortizes against the faster event generation. Finally, we benchmark a broad range of LHC processes, from multi-jet and vector-boson production to top-quark and Higgs processes, vector-boson scattering, and decay chains, and we confirm that the automated setup still reproduces the correct reference cross sections and distributions.

This paper is organized as follows. In § 2 we briefly review multi-channel importance sampling and the MadNIS method. § 3 introduces the improvements that make MadNIS robust and scalable. In § 4 we study the training time and its amortization, validate the automated setup, and benchmark a broad range of LHC processes. We end with a conclusion and outlook in § 5.

Neural importance sampling with MadNIS

To be self-contained, we briefly review multi-channel Monte Carlo integration and the MadNIS method [49, 50, 51]. Readers already familiar with both topics can proceed directly to § 3. We start by considering the integral of a function f(Φn)∼∣M∣2f(\Phi_n) \sim|\mathcal{M}|^2 over the DD-dimensional nn-body phase space,

I[f]=∫dΦnf(Φn)withΦn⊆RDD=3n−4.(1)I[f] = \int\mathrm{d}\Phi_n f(\Phi_n) \qquad\text{with} \qquad\Phi_n \subseteq\mathbb{R}^{D} \qquad D = 3n - 4 . \tag*{(1)}

Following the single-diagram-enhanced decomposition of MadGraph [4, 52], we split the integrand into NcN_c channels with local channel weights αi(Φn)\alpha_i(\Phi_n),

f(Φn)=∑i=1Ncαi(Φn)f(Φn)with∑i=1Ncαi(Φn)=1andαi(Φn)≥0,(2)f(\Phi_n) = \sum_{i=1}^{N_c} \alpha_i(\Phi_n) f(\Phi_n) \qquad\text{with} \qquad\sum_{i=1}^{N_c} \alpha_i(\Phi_n) = 1 \qquad\text{and} \qquad\alpha_i(\Phi_n) \geq0 , \tag*{(2)}

so each channel focuses on different integrand structures. Similar decompositions [65, 66] relying on global, i.e. non phase-space dependent, channel weights αi\alpha_i are used within Sherpa [2] and WHIZARD [67]. For details on the global- versus local-weight variants and their algorithmic differences, we refer to Ref. [62]. Within each channel, we introduce an invertible mapping between the physical phase space and the unit hypercube,

Φn⟷Gi(Φn)→←Gi(x)x∈[0,1]D,(3)\Phi_n \underset{\leftarrow G_i(x)}{\overset{G_i(\Phi_n)\to}{\longleftrightarrow}} x \in[0,1]^D , \tag*{(3)}

which defines a normalized channel density

gi(Φn)=∣∂Gi(Φn)∂Φn∣with∫dΦn gi(Φn)=1.(4)g_i(\Phi_n) = \left|\frac{\partial G_i(\Phi_n)}{\partial\Phi_n}\right| \qquad\text{with} \qquad\int\mathrm{d}\Phi_n\,g_i(\Phi_n) = 1 . \tag*{(4)}

The mappings GiG_i are constructed from the analytic structure of the amplitude, for instance resonant propagators and soft or collinear limits, and implemented in MadSpace [62]. Evaluating each channel with its own sampling density turns Eq. (1) into the multi-channel importance-sampling estimator

I[f]=∑i=1Nc∫dΦn gi(Φn)αi(Φn)f(Φn)gi(Φn)=∑i=1Nc⟨αi(Φn)f(Φn)gi(Φn)⟩Φn∼gi(Φn).(5)I[f] = \sum_{i=1}^{N_c} \int\mathrm{d}\Phi_n\,g_i(\Phi_n)\frac{\alpha_i(\Phi_n)f(\Phi_n)}{g_i(\Phi_n)} = \sum_{i=1}^{N_c}\left\langle\frac{\alpha_i(\Phi_n)f(\Phi_n)}{g_i(\Phi_n)}\right\rangle_{\Phi_n\sim g_i(\Phi_n)} . \tag*{(5)}

Sampling from gig_i amounts to drawing xx uniformly and mapping onto phase space. It is therefore convenient to work directly on the unit hypercube and to absorb the analytic channel density into a reweighted channel integrand,

fˉi(x)=f(Φn)gi(Φn)∣Φn=Gi(x),(6)\bar{f}_i(x) = \left.\frac{f(\Phi_n)}{g_i(\Phi_n)}\right|_{\Phi_n=G_i(x)} , \tag*{(6)}

so that Eq. (5) becomes a plain integral over the unit hypercube,

I[f]=∑i=1Nc∫dx αi(Gi(x)‾) fˉi(x)=∑i=1Nc⟨αi(Gi(x)‾) fˉi(x)⟩x∼U.(7)I[f] = \sum_{i=1}^{N_c} \int\mathrm{d}x\,\alpha_i(\overline{G_i(x)})\,\bar{f}_i(x) = \sum_{i=1}^{N_c}\left\langle\alpha_i(\overline{G_i(x)})\,\bar{f}_i(x)\right\rangle_{x\sim\mathcal{U}} . \tag*{(7)}

Only the generation direction Gi‾\overline{G_i} enters, so the analytic mappings never have to be inverted. MadNIS improves both ingredients of Eq. (7) with neural networks. It learns a correction to the channel weights αi(Φn)\alpha_i(\Phi_n), and it refines the analytic mappings Gi‾(x)\overline{G_i}(x) by composing them with an additional learned transformation.

Neural channel weights

The channel-weight network (CWnet) encodes the local weights, αi(Φn)→αi,ξ(Φn)\alpha_i(\Phi_n) \to\alpha_{i,\xi}(\Phi_n) with parameters ξ\xi. The normalization and positivity constraint of Eq. (2) is built into the architecture through a softmax, i.e. exponential normalization, over the unnormalized network output Ai,ξ(Φn)A_{i,\xi}(\Phi_n) [49],

αi,ξ(Φn)=exp⁡Ai,ξ(Φn)∑jexp⁡Aj,ξ(Φn).(8)\alpha_{i,\xi}(\Phi_n) = \frac{\exp A_{i,\xi}(\Phi_n)}{\sum_j \exp A_{j,\xi}(\Phi_n)} . \tag*{(8)}

Because the weights vary strongly across phase space, we do not learn them from scratch but as a correction to a physics-motivated prior. Two well-motivated, normalized priors define the single-diagram-enhanced method of MadGraph [4, 52],

SDE-1:αiMG(Φn)=∣Mi(Φn)∣2∑j∣Mj(Φn)∣2SDE-2:αiMG(Φn)=Pi(Φn)∑jPj(Φn)withPi(Φn)=∏k∈prop1∣pk2−mk2−imkΓk∣2,(9)\begin{aligned} \mathrm{SDE\text{-}1:}\quad\alpha_i^{\mathrm{MG}}(\Phi_n) &= \frac{|\mathcal{M}_i(\Phi_n)|^2}{\sum_j |\mathcal{M}_j(\Phi_n)|^2} \\ \mathrm{SDE\text{-}2:}\quad\alpha_i^{\mathrm{MG}}(\Phi_n) &= \frac{P_i(\Phi_n)}{\sum_j P_j(\Phi_n)} \qquad\text{with}\qquad P_i(\Phi_n) = \prod_{k\in\mathrm{prop}} \frac{1}{|p_k^2-m_k^2-i m_k\Gamma_k|^2} , \tag*{(9)} \end{aligned}

built either from single-diagram matrix elements or from products of propagator denominators. Relative to either prior we learn only a correction, i.e.

αi,ξ(Φn)=αiMG(Φn)exp⁡Ai,ξ(Φn)∑j[αjMG(Φn)exp⁡Aj,ξ(Φn)],(10)\alpha_{i,\xi}(\Phi_n) = \frac{\alpha_i^{\mathrm{MG}}(\Phi_n)\exp A_{i,\xi}(\Phi_n)}{\sum_j \left[\alpha_j^{\mathrm{MG}}(\Phi_n)\exp A_{j,\xi}(\Phi_n)\right]} , \tag*{(10)}

and initialize the parameters such that Ai,ξ0(Φn)=0A_{i,\xi_0}(\Phi_n)=0, so training starts exactly from the MadGraph prior. Note that Aj,ξA_{j,\xi} is a proper function of the phase-space point Φn=Gˉi(x)\Phi_n=\bar{G}_i(x), and not of the latent variable xx of channel ii to ensure correct normalization. Because the CWnet often concentrates the channel weights in a small number of channels, we drop the smallest integration channels when their cumulative contribution falls below a given threshold.

Neural importance sampling

The second step in the chain, from the unit hypercube xx to the latent space zz, is an additional trainable transformation that further flattens the integrand. Classically it is performed by VEGAS [46, 47, 48], which adapts a factorized grid and therefore cannot capture correlations between the integration variables. MadNIS instead uses a more expressive normalizing flow [68, 69]

Φn←analyticx∈[0,1]D⇄ Hˉi,θ(z)  Hi,θ(x) z∈[0,1]D,(11)\Phi_n \xleftarrow{\mathrm{analytic}} x\in[0,1]^D \xrightleftarrows[\,\bar{H}_{i,\theta}(z)\,]{\,H_{i,\theta}(x)\,} z\in[0,1]^D , \tag*{(11)}

with parameters θ\theta and associated normalized Jacobian density

hi,θ(x)=∣∂Hi,θ(x)∂x∣with∫dx hi,θ(x)=1.(12)h_{i,\theta}(x)=\left|\frac{\partial H_{i,\theta}(x)}{\partial x}\right| \qquad\text{with}\qquad \int\mathrm{d}x\,h_{i,\theta}(x)=1 . \tag*{(12)}

Events are generated by drawing zz uniformly and inverting the chain, x=Hˉi,θ(z)x=\bar{H}_{i,\theta}(z) followed by Φn=Gˉi(x)\Phi_n=\bar{G}_i(x), so that xx now follows hi,θh_{i,\theta} rather than the uniform distribution of Eq. (7). In terms of the physical phase space this corresponds to refining the analytic channel density of Eq. (4) into the trained density

gi(Φn)⟶gi,θ(Φn)=hi,θ(Gi(Φn))gi(Φn),(13)g_i(\Phi_n)\longrightarrow g_{i,\theta}(\Phi_n)=h_{i,\theta}\bigl(G_i(\Phi_n)\bigr)g_i(\Phi_n) , \tag*{(13)}

which makes the importance-sampling interpretation explicit, but is never evaluated in this form. Instead, we only need the ratio following directly from Eq. (6),

f(Φn)gi,θ(Φn)=fˉi(x)hi,θ(x),(14)\frac{f(\Phi_n)}{g_{i,\theta}(\Phi_n)}=\frac{\bar{f}_i(x)}{h_{i,\theta}(x)}, \tag*{(14)}

i.e. we handle all densities on the hypercube. Since VEGAS converges quickly for factorizing integrands, we employ a VEGAS pre-training as a fast and stable starting point for the flow [50].

Variance loss

With both networks in place, Eq. (7) becomes

I[f]=∑i=1Nc⟨αi,ξ(Gˉi(x))fˉi(x)hi,θ(x)⟩x∼hi,θ(x),(15)I[f]=\sum_{i=1}^{N_c}\left\langle\frac{\alpha_{i,\xi}(\bar{G}_i(x))\bar{f}_i(x)}{h_{i,\theta}(x)}\right\rangle_{x\sim h_{i,\theta}(x)}, \tag*{(15)}

and we train MadNIS by minimizing the total variance. Encoding the optimal, stratified distribution of points across channels [66, 70] gives the multi-channel loss

LMadNIS=[∑i=1Nc(⟨αi,ξ(Gˉi(x))fˉi(x)2hi,θ(x)qi(x)⟩x∼qi(x)−⟨αi,ξ(Gˉi(x))fˉi(x)qi(x)⟩x∼qi(x)2)1/2]2,(16)\mathcal{L}_{\mathrm{MadNIS}}=\left[\sum_{i=1}^{N_c}\left(\left\langle\frac{\alpha_{i,\xi}(\bar{G}_i(x))\bar{f}_i(x)^2}{h_{i,\theta}(x)q_i(x)}\right\rangle_{x\sim q_i(x)}-\left\langle\frac{\alpha_{i,\xi}(\bar{G}_i(x))\bar{f}_i(x)}{q_i(x)}\right\rangle_{x\sim q_i(x)}^2\right)^{1/2}\right]^2, \tag*{(16)}

where qi(x)q_i(x) is the sampling density of the training sample. Its relation to the trained density hi,θ(x)h_{i,\theta}(x) depends on the training mode and is specified below.

Online and buffered training

The loss of Eq. (16) is evaluated on points drawn from a proposal qiq_i which is deliberately kept distinct from the trained density hi,θh_{i,\theta}. Since qiq_i appears explicitly in the loss, any density that is non-zero wherever the integrand contributes gives an unbiased estimate of the same variance, and a mixture of several densities can for instance stabilize the training [54]. We use two choices, which define two training modes [49, 50],

qi(x)=hi,θ∗(x)∣no−grad,withθ∗={θonlineθgenbuffered.(17)q_i(x)=\left.h_{i,\theta^*}(x)\right|_{\mathrm{no-grad}},\qquad\text{with}\qquad \theta^*=\begin{cases} \theta& \text{online}\\ \theta_{\mathrm{gen}} & \text{buffered}. \end{cases} \tag*{(17)}

In online training, the proposal qiq_i is evaluated with the current parameters θ\theta and is therefore numerically identical to hi,θh_{i,\theta}, but detached from the gradient computation. In buffered training, θgen\theta_{\mathrm{gen}} denotes the network parameters at the time the point was generated. Both modes therefore estimate the same variance and can be interleaved freely. The two branches are illustrated in Figure 1 and described below:

Online and buffered training in MadNIS

Figure 1. Online and buffered training in MadNIS. Both branches minimize the same loss, Eq. (16), evaluated with the proposal qiq_i of Eq. (17). The break in the sampling arrow marks where the gradient is detached, as the generation pass z→xz \to x carries no gradients, so the flow is evaluated a second time in the forward direction to provide hi,θh_{i,\theta} as a proper function of xx. Both networks are evaluated in either branch, so only the online branch calls MadSpace and MadMatrix.

Online training: We draw zz uniformly and invert the flow, x=Hˉi,θ(z)x=\bar{H}_{i,\theta}(z), then call MadSpace and MadMatrix once to obtain the phase-space point Φn=Gˉi(x)\Phi_n=\bar{G}_i(x), the integrand fˉi(x)\bar{f}_i(x), and the channel-weight priors αjMG(Φn)\alpha_j^{\mathrm{MG}}(\Phi_n). This sampling pass has to run without gradients, as differentiating through it would require ∇xfˉi(x)\nabla_x\bar{f}_i(x), which is not available for a generic matrix element [51]. We therefore evaluate the density in a second, forward pass z=Hi,θ(x)z=H_{i,\theta}(x), so that hi,θh_{i,\theta} enters the loss as a proper function of xx [49], and the channel weights in a pass of the CWnet over Φn\Phi_n. An online update thus costs one integrand evaluation and two flow passes.

Buffered training: We reuse points generated during earlier online steps and only perform the weight update. Of the ingredients of Eq. (16), we read fˉi(x)\bar{f}_i(x) and qi(x)q_i(x) from the buffer, while we recompute hi,θ(x)h_{i,\theta}(x) and αi,ξ(Φn)\alpha_{i,\xi}(\Phi_n) with the current parameters. We therefore store the hypercube point xx for the flow, the phase-space point Φn\Phi_n for the CWnet, the integrand fˉi(x)\bar{f}_i(x), the sampling density qi(x)q_i(x), the generating channel index ii, and the priors αjMG\alpha_j^{\mathrm{MG}}. A buffered update thus costs a single flow pass and no integrand evaluation, saving the MadSpace call and the costly matrix-element evaluation in MadMatrix.

The multi-channel weight priors dominate the memory footprint of the buffer and therefore limit the number of points it can hold. The softmax normalization of Eq. (8) couples all NcN_c channels, so in principle the complete set {αjMG}\{\alpha_j^{\mathrm{MG}}\} is required for every buffered point, which amounts to several gigabytes for O(106)\mathcal{O}(10^6) points and O(103)\mathcal{O}(10^3) channels. In practice only a few channels contribute significantly to any given point, so we store the index-weight pairs (j,αjMG)(j,\alpha_j^{\mathrm{MG}}) of the m≪Ncm \ll N_c largest contributions, always including the channel the point was generated in, and set the remaining weights to zero. We adjust the normalization accordingly to leave the result unbiased.

Improving robustness and scalability

Previous MadNIS studies [50] focused on the achievable gain in unweighting efficiency for single partonic subprocesses. There, a common set of hyperparameters was sufficient, and it did not matter if a network was larger or a training longer than necessary. As the default in MadGraph, MadNIS instead has to handle full proton-proton processes with many partonic subprocesses, run unattended across a wide range of processes and multiplicities, and stay efficient for the moderate event counts users typically request, where the training cost directly adds to the total cost. We therefore extend the method to discrete degrees of freedom, reduce the number of independent trainings, make buffered training more robust, and speed up the training itself, before we choose the hyperparameters through automated defaults that balance expressivity against throughput and training time. Most of these improvements also pay off when an expert tunes the setup. Combined with MadSpace and MadMatrix, MadNIS now provides complete event generation, which unweights the events and writes them out with their flavors, helicities, and color flows in addition to their four-momenta. The whole chain from random-number generation to unweighted events thereby runs on the GPU.

Sampling discrete degrees of freedom

The parton-level integrand generally depends on both the four-momenta Φn\Phi_n and on discrete degrees of freedom, such as the helicity, color, and flavor configuration. On top of these physical quantum numbers, the phase-space construction introduces a further discrete label, which picks one of several equivalent orderings of the final-state momenta inside an integration channel. Whenever the integrand depends on such a label, an efficient sampler has to account for it, so in general we condition the sampling on all of them.

In default MadGraph, however, we sum over helicities and colors, so this dependence drops out of the cross section. We only assign a specific helicity and color configuration when we write out events, but this assignment leaves the integral unchanged. Other generators do sample these quantum numbers, for instance through the color-sampled recursion of Comix in Sherpa [71], the leading-color event generation with subsequent full-color reweighting of AmpliCol [72, 73], or the helicity-conditioned normalizing flows combined with Pepper [63]. Our setup can accommodate these cases, as we discuss at the end of this section. For MadGraph, we are therefore left with the symmetry and flavor configurations:

  • Symmetry configuration. It arises from the phase-space construction with single-diagram enhancement, in which Feynman diagrams with the same phase-space topology but different momentum orderings of the final-state particles are grouped into a single integration channel with the same phase-space mapping. After evaluating the mapping, we have to pick one specific permutation and apply it to the momenta. If only diagrams with the same physical structure, including propagator types and masses, are grouped, this is an exact symmetry and uniform sampling of the permutation is sufficient. More flexible channel grouping, as introduced in § 3.2, or the trainable channel weights from MadNIS break this symmetry, so adaptive importance sampling of the momentum permutations reduces the variance of the phase-space integral.

  • Flavor configuration. MadGraph merges multiple partonic processes into a single cross-section integral when they share similar physics, and determines the specific flavor configuration via importance sampling. The main difference among flavor configurations comes from the parton-density functions (PDFs), which depend only on the initial-state flavors. Matrix elements, in contrast, may depend on all flavors. They differ either through flavor-dependent couplings within a given diagram, for instance for the WW boson in electroweak processes, or

through the number of contributing diagrams. For example, uuˉ→uuˉu\bar{u} \to u\bar{u} receives both ss- and tt-channel contributions, whereas udˉ→udˉu\bar{d} \to u\bar{d} has only tt-channel diagrams and therefore fewer of them.

We combine continuous and discrete degrees of freedom using an autoregressive decomposition of the full sampling probability, hθ(x,r,a)h_\theta(x,r,a), with indices rr and aa enumerating the symmetry and flavor configurations available in a given integration channel, respectively. We construct this sampling for each integration channel separately and omit the channel index ii in the following for readability. For MadNIS, we decompose the probability as

hθ(x,r,a)=hθ(x)hθ(r∣x)hθ(a∣x,r).(18)h_\theta(x,r,a) = h_\theta(x)h_\theta(r|x)h_\theta(a|x,r) . \tag*{(18)}

This results in a more expressive architecture compared to a setup with a flow conditioned on the discrete indices because the spline-coupling-based normalizing flows used for the continuous dimensions have a more restrictive architecture than the simple MLP networks predicting the discrete probabilities. The flows used with Pepper follow this conditional approach for the helicity configuration [63]. For the symmetry configurations, we use a fully connected network Sθ(x)S_\theta(x) that predicts a vector of unnormalized log-probabilities. We then compute the probability hθ(r∣x)h_\theta(r|x) using a softmax function,

hθ(r∣x)=exp⁡Sr,θ(x)∑r′exp⁡Sr′,θ(x).(19)h_\theta(r|x) = \frac{\exp S_{r,\theta}(x)}{\sum_{r'} \exp S_{r',\theta}(x)} . \tag*{(19)}

For the flavor sampling we exploit that the PDFs dominate the flavor dependence of the differential cross section and are cheap to evaluate. Having sampled xx and rr first, we can evaluate the phase-space point Φn≡Φn(x,r)\Phi_n \equiv\Phi_n(x,r) to obtain the momentum fractions x1x_1 and x2x_2, as well as the factorization scale μF\mu_F. Using a1a_1 and a2a_2 to denote the flavors of the two incoming partons for the flavor configuration aa, this defines the unnormalized weight

wPDF(a∣Φn)=PDFa1(x1,μF) PDFa2(x2,μF).(20)w_{\mathrm{PDF}}(a|\Phi_n) = \mathrm{PDF}_{a_1}(x_1,\mu_F)\,\mathrm{PDF}_{a_2}(x_2,\mu_F) . \tag*{(20)}

Not every flavor configuration contributes for a given symmetry configuration, because certain combinations have no physical diagram, so their channel weight vanishes and they never contribute to the integral. We therefore restrict the flavor sampling to the set

Fr={a∣flavor configuration a has a contributing diagram for permutation r},(21)\mathcal{F}_r = \{a \mid\text{flavor configuration } a \text{ has a contributing diagram for permutation } r\} , \tag*{(21)}

and normalize the weights of Eq. (20) over this set,

hPDF(a∣x,r)=wPDF(a∣Φn(x,r))∑a′∈FrwPDF(a′∣Φn(x,r))andhPDF(a∣x,r)=0for a∉Fr.(22)h_{\mathrm{PDF}}(a|x,r) = \frac{w_{\mathrm{PDF}}(a|\Phi_n(x,r))}{\sum_{a'\in\mathcal{F}_r} w_{\mathrm{PDF}}(a'|\Phi_n(x,r))} \qquad\text{and} \qquad h_{\mathrm{PDF}}(a|x,r) = 0 \quad\text{for } a \notin\mathcal{F}_r . \tag*{(22)}

For processes in which the matrix element does not depend on the flavor configuration, this prior distribution already yields the perfect importance-sampling distribution. To also account for the flavor dependence of the matrix element, we apply a learned multiplicative correction, exactly as for the MadGraph channel weights in Eq. (10),

hθ(a∣x,r)=hPDF(a∣x,r)exp⁡Fa,θ(x,r)∑a′∈FrhPDF(a′∣x,r)exp⁡Fa′,θ(x,r),(23)h_\theta(a|x,r) = \frac{h_{\mathrm{PDF}}(a|x,r)\exp F_{a,\theta}(x,r)}{\sum_{a'\in\mathcal{F}_r} h_{\mathrm{PDF}}(a'|x,r)\exp F_{a',\theta}(x,r)} , \tag*{(23)}

where Fθ(x,r)F_\theta(x,r) is a second fully connected network with an output for each flavor configuration. Our discrete sampling setup extends directly to more discrete dimensions, for example to perform helicity sampling instead of summing, or to sample FKS sectors in the NLO extension of MadNIS [53].

Merging matrix elements, channels and subprocesses

MadGraph organizes the phase-space integration and event generation of a full process into a two-level hierarchy.

  • A subprocess groups one or more partonic flavor configurations, where in the latter case flavor sampling as introduced in § 3.1 is applied. In MG5aMC a subprocess could bundle multiple independent matrix-element implementations whereas in MadMatrix there is a one-to-one correspondence between matrix element code and subprocesses.

  • Each subprocess is divided into integration channels using the channel weights introduced in Eq. (9). There is an independent MadNIS network or VEGAS grid for each channel. The integral remains unbiased as long as these channel weights are normalized to one at every phase-space point. Consequently there is a lot of freedom in the way the subprocess is decomposed into channels.

The construction of subprocesses and channels is a trade-off between many factors, including MadNIS and VEGAS training time, complexity of each individual integrand, memory usage and code size. As VEGAS integration grids converge relatively fast while only providing limited expressivity, event generators like MG5aMC or Sherpa use a large number of integration channels. However, even in a VEGAS setup, building a large number of integration channels leads to diminishing returns or even starts to complicate the phase-space integration going towards high-multiplicity processes. Neural importance sampling offers higher expressiveness at the cost of much longer training times. Therefore, it profits less from a large amount of integration channels. Indeed, we find that often a large fraction of the integration channels is dropped during the multi-channel MadNIS training [50]. Even with channel dropping, a large number of channels still leads to considerable computational cost and decreased training stability, especially during the early stages of the training when most channels are still active. Consequently, the MadNIS training can be improved by building fewer channels in the first place.

Orthogonal to these improvements, GPU-based or SIMD-vectorized setups favor processing samples in large batches with as little divergence between code paths as possible. Therefore, they profit from merging the matrix-element implementations for related partonic channels. To tackle these various challenges, we implement the following improvements:

Merging matrix-element implementations: A subprocess can contain several different matrix elements. For instance, the process ud→udud \to ud has fewer Feynman diagrams compared to uu→uuuu \to uu. In MG5aMC, these processes are grouped into the same subprocess, but have independent matrix-element codes that are called depending on the flavor index. However, this is not optimal for a GPU- or SIMD-vectorized implementation as it would require subdividing each batch of points. Instead, we merge all code paths in a subprocess and decide at the level of individual couplings whether they are present or zero for the current flavor configuration.

Merging integration channels of similar topology: In many cases, Feynman diagrams share the same initial- and final-state particles and the same diagram topology but differ in the type of propagator. For instance, as illustrated in Figure 2, gq→gqgq \to gq has a tt-channel diagram with a gluon propagator and a uu-channel diagram with a quark propagator. Although both are massless propagators, their amplitudes differ, and MG5aMC therefore builds independent channels for them. However, because they share the same topology and propagator masses, these channels will have the same analytic phase-space mapping. Instead, we group these diagrams into the same channel and address the differences through the learnable symmetry sampling introduced in § 3.1.

Figure 2. Illustration of symmetry grouping as in MG5aMC, topology grouping and subprocess merging for the Feynman diagrams contributing to pp→jjpp \to jj. Columns correspond to the eight subprocesses with an independent matrix-element implementation. Rows correspond to the ss-, tt-, and uu-channel topologies. We omit the diagram for gg→gggg \to gg with a quartic gluon coupling because it is not explicitly mapped out by a phase-space mapping.

Merging subprocesses: By default, we group partonic processes according to whether each external parton is a quark, an antiquark, or a gluon. This is similar to the grouping in the Pepper event generator that was studied in Ref. [63]. Going one step further, we can also merge diagrams of the same topology across subprocesses. For the example of pp→jjpp \to jj, this results in only two integration channels, denoted as green boxes in Figure 2: one for the ss-channel and one for the tt- and uu-channel diagrams. The subprocess for a given event is then chosen at the learnable flavor-sampling level. While there can be a large variation in physics distributions for different subprocesses because of the large differences between the quark and gluon PDFs, most of this is addressed using the PDF prior imposed during the flavor sampling, see § 3.1, so it does not have to be learned by a neural network. However, the training task after merging subprocesses is still more complicated than per-subprocess training, and evaluating the matrix element requires subdividing the batch, which results in smaller batch sizes and potentially lower GPU throughput. For this reason, we make subprocess merging optional, and finding smart heuristics to decide when to enable it remains a challenge to be investigated in the future.

Further reduction of channel count: Even with all the improvements discussed above, the channel count can still be excessive for some processes. For example, some subprocesses of pp→ttˉ+3jpp \to t\bar{t} + 3j have 120 integration channels. We find that for massless QCD interactions, tt-channel mappings combined with expressive MadNIS sampling are usually sufficient to model the integrand features precisely. Consequently, we discard channels with ss-channel propagators if the number of channels would otherwise exceed a threshold of 16, and adjust the channel-weight normalization to keep the result unbiased. For ttˉ+3jt\bar{t} + 3j, this reduces the number of channels to twelve, resulting in significantly faster and more stable MadNIS training. Additionally, MadSpace offers several alternative mappings, such as RamboOnDiet or Chili, that can be used as a single integration channel instead of the classic multi-channel approach.

Buffered training on unweighted events

Buffered training makes MadNIS training more efficient by reusing samples multiple times for optimization before replacing them with newly generated samples. In our previous work [50], we implemented this by storing all weighted events generated during online training that pass phase-space cuts. While this works well for simple processes, we find that for more complex tasks, it can lead to training instability and overfitting compared to pure online training. Moreover, as the effective sample size decreases with process complexity, less effective statistics can be stored with the same amount of memory. Ref. [74] proposes a prioritized replay buffer as a solution to the first problem. Training batches are sampled from the buffer with probabilities proportional to their event weights. While this improves training stability by increasing the effective sample size per batch, it does not solve the issue of reduced statistics across the entire buffer. A related sample replay supplements the online training of the Pepper flows [63].

We address both problems by performing a partial unweighting step before storing events into the buffer. To this end, for a batch of KK points xkx_k generated in channel ii during online training, we compute the event weights

wk=αi,ξ(Φn,k)fˉi(xk)qi(xk)withΦn,k=Gˉi(xk),(24)w_k = \frac{\alpha_{i,\xi}(\Phi_{n,k})\bar{f}_i(x_k)}{q_i(x_k)} \qquad\text{with}\qquad \Phi_{n,k} = \bar{G}_i(x_k), \tag*{(24)}

and use them to determine a batch-wise unweighting threshold wmax⁡w_{\max} as a quantile of the wkw_k. Next, we draw uniformly distributed uk∈[0,1]u_k \in[0,1] and perform a standard accept-reject step,

w~k={max⁡(wk,wmax⁡)if wk≥ukwmax⁡0otherwise(25)\widetilde{w}_k = \begin{cases} \max(w_k,w_{\max}) & \text{if } w_k \ge u_k w_{\max} \\ 0 & \text{otherwise} \end{cases} \tag*{(25)}

For a quantile of 0.95, this means that between 5% and 100% of the points are accepted, depending on how narrow the weight distribution is. Points failing the phase-space cuts have wk=0w_k = 0 and are therefore always rejected.

Both training modes only use a subset of the KK generated points. Online training uses the KcutK_{\mathrm{cut}} points that pass the phase-space cuts, while buffered training only stores the KaccK_{\mathrm{acc}} points accepted by Eq. (25). To preserve the property that ⟨wk⟩\langle w_k\rangle yields the integral of the integration channel, we rescale the sampling densities of the remaining points as

q~i(xk)=qi(xk)×{KKcutonlinewkw~kKKaccbuffered(26)\widetilde{q}_i(x_k) = q_i(x_k) \times \begin{cases} \frac{K}{K_{\mathrm{cut}}} & \text{online} \\ \frac{w_k}{\widetilde{w}_k}\frac{K}{K_{\mathrm{acc}}} & \text{buffered} \end{cases} \tag*{(26)}

and use q~i(xk)\widetilde{q}_i(x_k) in place of qi(xk)q_i(x_k) in the loss. Online and buffered training batches then remain compatible with the multi-channel variance loss of Eq. (16), and their loss values stay consistent.

Even with partially unweighted points, buffered training can still overfit and reduce the training performance. We prevent this by choosing the buffered-training hyperparameters such that all points in the buffer are replaced frequently, and the weight distribution of the buffered points is stable enough not to destabilize the training. We do not store points from the first 1000 training iterations, as both the flow and the channel weights change too quickly in this initial phase. We start training on buffered batches only once the buffer holds 10410^4 points, and ramp up the fraction of buffered iterations, linearly as the buffer fills. We limit the buffer to 6×1046 \times10^4 points per channel and set the quantile for wmax⁡w_{\max} to 0.95, so the buffer content is replaced often enough to prevent overfitting.

Concurrent training and generation

In event generation with neural importance sampling, the trade-off between training time and unweighting efficiency is a key consideration for achieving overall speed-up. It is therefore crucial not only to optimize neural network architecture and training hyperparameters, but also to minimize the computational cost per training iteration.

Especially when training on GPUs, the optimal batch size to maximize GPU throughput (typically tens of thousands) differs from the batch size that optimizes training performance by ensuring stable gradients while remaining data-efficient (typically hundreds to thousands). Consequently, a naive training loop that generates and optimizes training samples sequentially with the same batch size results in slow training and uses only a fraction of the GPU’s capacity. We solve this problem by decoupling training data generation and optimization, and running them concurrently. To this end, we keep two copies of the neural network in memory. We use one copy to optimize the network by consuming events in small batches, either from a small first-in-first-out (FIFO) buffer during online training or by randomly selecting samples from the larger buffer of unweighted events during buffered training. We use the second copy to independently generate events in large batches, thereby optimizing GPU throughput. The generation becomes active when the FIFO buffer is drained, at which point it copies the latest trainable parameters, generates weighted events, and stores them in the FIFO buffer. This setup preserves the short feedback loop between optimization and generated events in online training while allowing generation and optimization to run in parallel at their optimal batch sizes to maximize GPU or CPU usage. We illustrate our training workflow in Figure 3.

Training workflow showing decoupled generation and optimization, with generation and optimization networks, FIFO and unweighted event buffers, online and buffered training, and concurrent operation

Figure 3. Training workflow with decoupled generation and optimization. Networks denotes the normalizing flow, the channel-weight network, and the networks for the symmetry and flavor probabilities of § 3.1, and θ\theta collectively denotes all their trainable parameters.

Moreover, we include a fast implementation of RQ-spline flows [75] directly within the MadSpace package that fuses the spline coupling blocks into a small number of compute kernels written in C++ and CUDA/HIP. They enable higher throughput than implementations in generic deep-learning frameworks such as PyTorch while removing overhead from interface and programming-language boundaries. This allows us to tightly interleave components such as normalizing flows, analytic phase-space mappings, and parton densities, making techniques like the PDF prior from § 3.1 computationally efficient.

Automated defaults

Selecting suitable hyperparameters for the MadNIS networks and training is critical to ensure good training and event-generation performance. The best choice of parameters depends strongly on the process of interest: for simple, low-multiplicity processes, small networks suffice, and larger networks do not improve unweighting efficiency while reducing throughput because of the higher computational cost of evaluating the network. Moreover, for very simple processes and low event counts, training a neural importance sampler might not be amortized at all. For a production-ready event generator, it is not feasible to require an expert to tune these parameters for every new process. Instead, we define an automated procedure to make these decisions in a process-dependent way:

  1. Run a short VEGAS survey with three iterations on 1000, 2000, and 4000 weighted events after cuts for each integration channel, similar to the survey in MG5aMC.

  2. Use the relative standard deviation (RSD) after the third survey iteration, i.e., the relative integration error after removing the scaling with sample count, as a metric for the complexity of each subprocess. Determine the values of hyperparameters based on this metric.

  3. Use the VEGAS grid from the survey pass either as a starting point for the full VEGAS optimization, or for VEGAS initialization of the MadNIS flows.

  4. Run the MadNIS or VEGAS optimization.

The most important hyperparameters to determine in a process-specific way are the width and depth of the flow sub-networks and the channel-weight network, to balance expressivity and throughput, and the batch size per integration channel, to balance training speed and convergence. Furthermore, we determine parameters such as the learning rate and the training iteration after which the learnable channel weights are frozen, as a function of the number of training iterations. Finally, choosing the training length is critical to achieve good unweighting efficiency while still amortizing training time, and we study it in detail in § 4.2. We show the full set of fixed and dynamic MadNIS default parameters in Table 2 in the appendix. While these defaults achieve good results across a wide range of physics processes, they still leave room for improvement and are likely to evolve.

Hyperparametervalue
process-dependent
Hidden nodes (flow, discrete flow, channel weights)min⁡{max⁡{32⌊7RSD32⌋+64,64},256}\min\left\{\max\left\{32\left\lfloor\frac{7\mathrm{RSD}}{32}\right\rfloor+64,64\right\},256\right\}
Layers per flow subnet3 if RSD < 32, 4 otherwise
Batch size per channelmin⁡{max⁡{32⌊7RSD32⌋+64,128},512}\min\left\{\max\left\{32\left\lfloor\frac{7\mathrm{RSD}}{32}\right\rfloor+64,128\right\},512\right\}
Learning ratemin⁡{max⁡{3⋅10−4+7⋅10−4104−B8000,3⋅10−4},10−3}\min\left\{\max\left\{3\cdot10^{-4}+7\cdot10^{-4}\frac{10^{4-B}}{8000},3\cdot10^{-4}\right\},10^{-3}\right\}
Fraction of iterations with frozen channel weightsmax⁡{0.33,1−104B}\max\left\{0.33,1-\frac{10^4}{B}\right\}
Coupling blocks⌈log⁡2d⌉\lceil\log_2 d\rceil
Channel dropping threshold10−2⋅min⁡{1000b,1}10^{-2}\cdot\min\left\{\frac{1000}{b},1\right\}
fixed
Lossstratified variance
Activation functionleaky ReLU
RQ spline bins10
Layers (discrete flow, channel weight network)3
Constant batch size offset512
Fraction of points sampled uniformly across channels0.5
OptimizerAdam
Adam (β1,β2,ϵ\beta_1,\beta_2,\epsilon)(0.9, 0.999, 10−810^{-8})
Weight decay10−410^{-4}
LR schedulecosine annealing
Gradient clipping threshold3⋅10−3×3\cdot10^{-3}\times number of parameters
Softclip threshold for variance loss30
Buffer capacity per channel60000
Minimum buffer size before buffered training begins10000
Fraction of buffered iterations0.8
Initial iterations without saving samples to buffer1000
Buffer unweighting quantile0.95

Table 2. Fixed and process-dependent MadNIS hyperparameters. RSD denotes the relative standard deviation determined in the VEGAS survey. BB denotes the number of training iterations, bb the current iteration, and dd the dimension of the phase space.

MadNIS in production

We now run MadNIS as a user of MadGraph7 would, with its default settings and without any process-specific tuning. We first validate the generated distributions against an independent baseline in § 4.1, then quantify the training cost and its amortization in § 4.2, and finally benchmark a broad range of LHC processes in § 4.6.

All results use the default settings of MadGraph7 v0.2.1 [64] for proton-proton collisions at s=13\sqrt{s} = 13 TeV. We use the NNPDF4.0 LO PDF set with αs(MZ)=0.118\alpha_s(M_Z) = 0.118 [76] provided by LHAPDF6 [77], and dynamical factorization and renormalization scales μF=μR=HT/2\mu_F = \mu_R = H_T/2, where HTH_T is the scalar sum of the transverse masses of all final-state particles. The default generation cuts are

pT,j>20 GeV,pT,ℓ>10 GeV,∣ηj∣<5,∣ηℓ∣<2.5,ΔRjj,ΔRℓℓ,ΔRjℓ>0.4,(27)\begin{aligned} p_{T,j} &> 20\ \mathrm{GeV}, \qquad p_{T,\ell} > 10\ \mathrm{GeV}, \\ |\eta_j| &< 5, \qquad|\eta_\ell| < 2.5, \qquad\Delta R_{jj}, \Delta R_{\ell\ell}, \Delta R_{j\ell} > 0.4, \tag*{(27)} \end{aligned}

where jj denotes gluons and the four light quark flavors. For the validation and the amortization study, we consider the processes

pp→ttˉ+njwith n=1,2,3andpp→e+e−+2j,(28)pp \to t\bar{t} + nj \quad\text{with } n = 1, 2, 3 \qquad\text{and} \qquad pp \to e^+e^- + 2j, \tag*{(28)}

including all their allowed partonic subprocesses in the SM.

Validation

A faster sampler is only useful if it leaves the generated distributions unchanged. We therefore compare differential distributions from MadNIS with an independent MG5aMC baseline for pp→ttˉ+2jpp \to t\bar{t} + 2j and pp→e+e−+2jpp \to e^+e^- + 2j from Eq. (28), following the validation of MadSpace in Ref. [62]. We train MadNIS for 10410^4 iterations with otherwise default settings from MadGraph7, both with separate trainings for each subprocess and with a single merged training, as described in § 3.2. For each of them, we generate 10610^6 unweighted events while allowing for 0.1%0.1\% of the cross section to come from overweight events. As baseline, we use MG5aMC 3.8.1 with the same PDF set, scales, and cuts. To ensure sufficient statistics for the baseline, denoted as MG5 sliced, in both the bulk and the tails, we split each observable into ten slices and generate 10610^6 unweighted events in each of them.

As observables, we choose the partonic center-of-mass energy s^\sqrt{\hat{s}} for top-pair production and the invariant mass me+e−m_{e^+e^-} of the lepton pair for Drell-Yan, as well as the transverse momentum pT,j1p_{T,j_1} of the leading jet and the angular separation ΔRj1j2\Delta R_{j_1j_2} between the two leading jets for both processes. To compare the distributions bin by bin, we compute the pull

t=μMadNIS−μMG5aMCδMadNIS2+δMG5aMC2,(29)t = \frac{\mu_{\mathrm{MadNIS}} - \mu_{\mathrm{MG5aMC}}}{\sqrt{\delta_{\mathrm{MadNIS}}^2 + \delta_{\mathrm{MG5aMC}}^2}}, \tag*{(29)}

where μ\mu denotes the cross section in a given bin and δ\delta its statistical uncertainty. For statistically compatible distributions, the pulls follow a standard normal distribution, so about 68% and 95% of the bins should lie within ∣t∣<1|t| < 1 and ∣t∣<2|t| < 2, respectively. Figure 4 shows that the distributions from both the separate and the merged trainings meet this criterion, in the bulk as well as in the tails.

Figure 4. Differential distributions for pp→ttˉ+2jpp \to t\bar{t}+2j (top) and pp→e+e−+2jpp \to e^+e^-+2j (bottom). Shown are the partonic center-of-mass energy or the lepton-pair invariant mass (left), the transverse momentum of the leading jet (middle), and the angular separation of the two leading jets (right). We compare unweighted MadNIS events from separate and merged trainings with a sliced high-statistics MG5aMC run. The lower panels show the pull of Eq. (29).

Training time and amortization

Like a VEGAS grid, a trained MadNIS sampler is specific to one setup, and any change of process, cuts, or model parameters requires a new training. Because neural importance sampling needs much longer training than VEGAS, see § 3.2, its gain in unweighting efficiency only pays off once it amortizes this training time. Here, we measure how the event throughput scales with the training time and the final-state multiplicity, and determine the number of events beyond which MadNIS becomes faster than the VEGAS baseline.

Setup

We study pp→ttˉ+njpp \to t\bar{t}+nj with n=1,2,3n=1,2,3 from Eq. (28), which consist of 4, 8, and 10 subprocesses, respectively. We either train a separate sampler for each subprocess or merge all subprocesses into a single training, as described in § 3.2. Apart from the training length and the merging strategy, we use the default settings of MadGraph7 from § 3.5, which fix the network size, the batch size, the buffered fraction, and the remaining hyperparameters during the VEGAS pre-training and survey. We vary the training length between 100 and 4.7×1054.7 \times10^5 iterations on the GPU and between 100 and 4.7×1044.7 \times10^4 iterations on the CPU, and repeat every run five times.

We run on an Nvidia A100 GPU and on 8 cores of an AMD EPYC 7452 CPU, which matches the core count of a typical LHC grid job. On the CPU, the matrix elements use AVX2 vectorization. Training and event generation run on the same hardware, even though our framework also supports mixed setups such as training on a GPU and generating events on a CPU. As figure of merit, we use the unweighted-event throughput N˙MadNIS\dot{N}_{\mathrm{MadNIS}}, i.e. the number of unweighted events per second of generation while allowing for 0.1% of the cross-section to come from over-weight events. We compare it to the throughput N˙VEGAS\dot{N}_{\mathrm{VEGAS}} of a VEGAS run with MadSpace on the same hardware and with otherwise identical settings. In the limit of a large number of generated events, N→∞N \to\infty, the training time becomes negligible and the speed-up reduces to

κ∞=N˙MadNISN˙VEGAS(30)\kappa_{\infty} = \frac{\dot{N}_{\mathrm{MadNIS}}}{\dot{N}_{\mathrm{VEGAS}}} \tag*{(30)}

which we generalize to finite NN in Eq. (33). For both methods, we neglect the time of the common VEGAS survey, which is small compared to all other contributions.

Scaling with training time

Figure 5 shows the throughput and the speed-up as a function of the training time. For the separate trainings, every subprocess is trained with the full number of iterations, and the training time is the sum over all subprocesses. On the GPU, the throughput first rises steeply and then enters a regime in which it grows only slowly, but does not saturate within the probed range. We describe this behavior by two linear functions in the log-log plane, which are smoothly connected,

Figure 5. Unweighted-event throughput (upper) and speed-up relative to VEGAS on the same hardware (lower) as a function of the training time for pp→ttˉ+njpp \to t\bar{t} + nj with n=1,2,3n = 1, 2, 3 (left to right). We show separate trainings for all subprocesses and a single merged training, each on an A100 GPU and on 8 CPU cores. Points and vertical error bars give the mean and standard deviation over five independent runs, horizontal error bars the spread in wall-clock time. The gray line shows the fit of Eq. (31) to the merged GPU runs.

log⁡NMadNIS(ttrain)=a+blog⁡ttrain−clog⁡[1+exp⁡(−d(log⁡ttrain−log⁡t0))](31)\log N_{\mathrm{MadNIS}}(t_{\mathrm{train}}) = a + b \log t_{\mathrm{train}} - c \log\left[1 + \exp\left(-d\left(\log t_{\mathrm{train}} - \log t_0\right)\right)\right] \tag*{(31)}

and fit it to the merged GPU runs. For ttrain≫t0t_{\mathrm{train}} \gg t_0 the throughput scales as ttrainbt_{\mathrm{train}}^b, and for ttrain≪t0t_{\mathrm{train}} \ll t_0 as ttrainb+cdt_{\mathrm{train}}^{b+cd}. The transition happens after t0≈8t_0 \approx8 s, 17 s, and 2 min of training for n=1,2,3n = 1, 2, 3, and beyond it the throughput grows roughly as ttrain0.1…0.4t_{\mathrm{train}}^{0.1\ldots0.4}. MadNIS reaches the VEGAS throughput after 5 s, 7 s, and 1 min of GPU training for n=1,2,3n = 1, 2, 3. For the longest trainings, the speed-up reaches 4.4, 28, and 130. The speed-up grows with the final-state multiplicity, because the integrand on the unit hypercube becomes increasingly correlated, while the factorized VEGAS grid cannot capture correlations between the integration variables, see § 2. The CPU runs follow the same pattern, but each iteration takes longer, which shifts them to longer training times by more than an order of magnitude. To keep the wall-clock time manageable, we train them for at most a tenth of the GPU iterations, so their longest trainings reach smaller speed-ups of 3, 16, and 70. For the same number of iterations, CPU and GPU trainings reach comparable speed-ups.

For similar total training times, separate and merged trainings perform comparably. For short trainings, merging can help substantially. This is most visible for n=2n=2, where the merged training reaches a speed-up of 9 after 40 s on the GPU, while the separate trainings stay at 2. For n=1n=1, the separate trainings are slightly ahead at intermediate training times. When to use which mode beyond ttˉt\bar{t} production requires further study, in line with discussion in § 3.2.

Training time amortization

From the fit, we compute the speed-up including the training time. Generating NN unweighted events takes

TMadNIS(N,ttrain)=ttrain+NN˙MadNIS(ttrain)andTVEGAS(N)=NN˙VEGAS,(32)T_{\mathrm{MadNIS}}(N,t_{\mathrm{train}})=t_{\mathrm{train}}+\frac{N}{\dot{N}_{\mathrm{MadNIS}}(t_{\mathrm{train}})} \qquad\text{and}\qquad T_{\mathrm{VEGAS}}(N)=\frac{N}{\dot{N}_{\mathrm{VEGAS}}}, \tag*{(32)}

so the speed-up including the training time is

κ(N,ttrain)=TVEGAS(N)TMadNIS(N,ttrain).(33)\kappa(N,t_{\mathrm{train}})=\frac{T_{\mathrm{VEGAS}}(N)}{T_{\mathrm{MadNIS}}(N,t_{\mathrm{train}})}. \tag*{(33)}

For large NN, κ\kappa approaches κ∞\kappa_{\infty} of Eq. (30). For small NN and long trainings, the training dominates and κ≪1\kappa\ll1. MadNIS breaks even at κ=1\kappa=1, i.e. starts gaining for

Ngain(ttrain)=ttrainN˙MadNIS(ttrain)N˙VEGASN˙MadNIS(ttrain)−N˙VEGASandN˙MadNIS(ttrain)>N˙VEGAS.(34)N_{\mathrm{gain}}(t_{\mathrm{train}})=\frac{t_{\mathrm{train}}\dot{N}_{\mathrm{MadNIS}}(t_{\mathrm{train}})\dot{N}_{\mathrm{VEGAS}}}{\dot{N}_{\mathrm{MadNIS}}(t_{\mathrm{train}})-\dot{N}_{\mathrm{VEGAS}}} \qquad\text{and}\qquad \dot{N}_{\mathrm{MadNIS}}(t_{\mathrm{train}})>\dot{N}_{\mathrm{VEGAS}}. \tag*{(34)}

Figure 6 shows κ(N,ttrain)\kappa(N,t_{\mathrm{train}}), and the cross marks the minimum of Ngain(ttrain)N_{\mathrm{gain}}(t_{\mathrm{train}}). MadNIS breaks even at 9×1069\times10^{6}, 1.5×1051.5\times10^{5}, and 6×1036\times10^{3} events for n=1,2,3n=1,2,3, after 8 s, 11 s, and 1.4 min of training. The higher the multiplicity, the earlier MadNIS pays off, and for ttˉ+3jt\bar{t}+3j a few thousand events suffice. For n=1n=1, VEGAS is already efficient, so only large samples benefit from using MadNIS. Beyond the break-even point, the optimal training time grows with NN. The training length therefore has to follow the requested number of events, which motivates the defaults of § 3.5.

Figure 6. Speed-up including the training time, Eq. (33), as a function of the training time and the number of generated events for pp→ttˉ+njpp \to t\bar{t}+nj with n=1,2,3n=1,2,3 (left to right). It is derived from the fit of Eq. (31) to the merged GPU runs of Figure 5. The cross marks the minimal number of events for which MadNIS breaks even with VEGAS, and the dotted line indicates this number of events.

Table 1 summarizes three working points of the merged GPU and CPU trainings together with the VEGAS baseline. Here, ϵuw\epsilon_{\mathrm{uw}} denotes the unweighting efficiency. Already after 10310^{3} iterations,

pp→ttˉ+1jpp \to t\bar{t} + 1jpp→ttˉ+2jpp \to t\bar{t} + 2jpp→ttˉ+3jpp \to t\bar{t} + 3j
ttraint_{\mathrm{train}}unw./sϵuw\epsilon_{\mathrm{uw}}ttraint_{\mathrm{train}}unw./sϵuw\epsilon_{\mathrm{uw}}ttraint_{\mathrm{train}}unw./sϵuw\epsilon_{\mathrm{uw}}
GPU, 1k it.17 s1.3×1061.3 \times10^{6}0.3878 s7.9×1047.9 \times10^{4}0.14200 s8.3×1028.3 \times10^{2}0.021
CPU, 1k it.190 s6.6×1046.6 \times10^{4}0.4218 min5.3×1035.3 \times10^{3}0.141.0 h7.0×1017.0 \times10^{1}0.019
GPU, 47k it.10 min1.7×1061.7 \times10^{6}0.5433 min1.5×1051.5 \times10^{5}0.251.4 h4.2×1034.2 \times10^{3}0.089
CPU, 47k it.1.8 h1.1×1051.1 \times10^{5}0.649.8 h1.2×1041.2 \times10^{4}0.3328 h4.4×1024.4 \times10^{2}0.096
GPU, 470k it.1.7 h1.9×1061.9 \times10^{6}0.645.4 h2.5×1052.5 \times10^{5}0.3812 h6.7×1036.7 \times10^{3}0.160
GPU, VEGAS–4.5×1054.5 \times10^{5}0.095–8.9×1038.9 \times10^{3}0.015–5.2×1015.2 \times10^{1}0.0016
CPU, VEGAS–3.7×1043.7 \times10^{4}0.10–7.5×1027.5 \times10^{2}0.013–6.1×1006.1 \times10^{0}0.0010

caption: Training time ttraint_{\mathrm{train}}, unweighted-event throughput N˙\dot{N}, and unweighting efficiency ϵuw\epsilon_{\mathrm{uw}} for pp→ttˉ+njpp \to t\bar{t} + nj with n=1,2,3n = 1, 2, 3, after 10310^{3}, 4.7×1044.7 \times10^{4}, and 4.7×1054.7 \times10^{5} training iterations on an A100 GPU and on 8 CPU cores. The last two rows show the VEGAS baseline on the same hardware. The unweighting efficiency allows for 0.1% of the cross section to come from overweight events.

:::

which take between 17 s and 200 s on the GPU to train, MadNIS generates unweighted events faster than VEGAS by factors of 2.9, 8.9, and 16 for n=1,2,3n = 1, 2, 3. After 4.7×1054.7 \times10^{5} iterations, the unweighting efficiency improves by factors of 6.7, 25, and 100, and the throughput by factors of 4.2, 28, and 130.

The process zoo

Finally, we run MadNIS with its default settings on a broad set of LHC processes,

multi-jet:pp→3j,pp→4j.Drell-Yan and jets:pp→ℓ−ℓ++2j,pp→ℓ−ℓ++3j.W and jets:pp→W±+2j,pp→W±+3j.top quarks:pp→ttˉ+2j,pp→ttˉ+3j,pp→ttˉttˉ,pp→ttˉ→bbˉℓ+ℓ−ννˉ.Higgs (VBF):pp→Hjj,pp→HHjj.electroweak:pp→W+W−jj,pp→W+W−W+.(35)\begin{aligned} \text{multi-jet:}\quad&pp \to3j,\qquad pp \to4j.\\ \text{Drell-Yan and jets:}\quad&pp \to\ell^{-}\ell^{+} + 2j,\qquad pp \to\ell^{-}\ell^{+} + 3j.\\ \text{W and jets:}\quad&pp \to W^{\pm} + 2j,\qquad pp \to W^{\pm} + 3j.\\ \text{top quarks:}\quad&pp \to t\bar{t} + 2j,\qquad pp \to t\bar{t} + 3j,\\ &pp \to t\bar{t}t\bar{t},\qquad pp \to t\bar{t} \to b\bar{b}\ell^{+}\ell^{-}\nu\bar{\nu}.\\ \text{Higgs (VBF):}\quad&pp \to Hjj,\qquad pp \to HHjj.\\ \text{electroweak:}\quad&pp \to W^{+}W^{-}jj,\qquad pp \to W^{+}W^{-}W^{+}. \tag*{(35)} \end{aligned}

For W+W−jjW^{+}W^{-}jj, HjjHjj, and HHjjHHjj, we only include purely electroweak diagrams, so these processes describe vector-boson scattering and vector-boson fusion, respectively. All particles are generated on-shell without decays unless written otherwise. For every process, we include all partonic subprocesses, use the setup of Eq. (27), and generate 10610^{6} unweighted events. For the high-multiplicity processes pp→ttˉ+3jpp \to t\bar{t} + 3j and pp→W±+3jpp \to W^{\pm} + 3j, we generate 10510^{5} unweighted events to limit the computing time, which does not affect the speed-up κ∞\kappa_{\infty} since it excludes the training. We train MadNIS separately for each subprocess with 2×1052 \times10^{5} iterations and otherwise use the defaults of § 3.5. This is much longer than necessary for the simpler processes, but it shows the speed-ups that are possible after a long training. We run both MadNIS and VEGAS on the same Nvidia H100 GPU, so the speed-up κ∞\kappa_{\infty} of Eq. (30) measures the gain from the sampling method alone and not from the hardware. For each process, we repeat the comparison for two or three pairs of random seeds.

Figure 7 shows the resulting speed-ups. In the median, MadNIS is faster than VEGAS for every process, with speed-ups between 1.27 and 247. The gain grows strongly with the final-state multiplicity. One additional jet increases it from 5.5 to 58 for multi-jet production, from 20 to 50 for ttˉ\mathrm{t\bar{t}} plus jets, from 1.9 to 17 for W±\mathrm{W}^{\pm} plus jets, and from 2.1 to 247 for ℓ+ℓ−\ell^{+}\ell^{-} plus jets. For high multiplicities, the integrand becomes increasingly correlated, and the number of integration channels grows. MadNIS captures the correlations and drops channels that do not contribute, which makes the remaining training and sampling more efficient. Electroweak vector-boson scattering, W+W−jj\mathrm{W}^{+}\mathrm{W}^{-}\mathrm{jj}, gains a factor 44. The smallest gains appear for processes in which the analytic phase-space mappings already describe the integrand well. For top-pair production with leptonic decays in the narrow-width approximation, the Breit-Wigner mappings capture the resonance structure, and VEGAS leaves little to improve, so MadNIS gains only a factor 1.27. The variation between seeds is small for most processes.

Figure 7. Speed-up κ∞\kappa_\infty of MadNIS relative to VEGAS, Eq. (30), for the processes of Eq. (35), with training and survey times excluded. Both methods run on the same Nvidia H100 GPU. Each dot corresponds to one of three pairs of random seeds. The boxes show the interquartile range, the horizontal lines and the numbers above the boxes the median, and the whiskers the full range.

Outlook

We have made neural importance sampling with MadNIS a production-ready default for leading-order event generation in MadGraph, applicable to generic proton-proton processes with all their partonic subprocesses. Importance sampling of symmetry permutations and flavor configurations with a PDF prior covers the discrete degrees of freedom of the integrand, and merging matrix elements, channels, and subprocesses reduces the number of independent trainings. Buffered training on partially unweighted events stabilizes the training, concurrent training and generation keep the hardware busy, and automated defaults derived from a short VEGAS survey remove the need for extensive process-specific tuning. All developments are publicly available in the alpha release of MadGraph7 [64], which will succeed MG5aMC as the production version of MadGraph.

With these defaults, MadNIS is faster than VEGAS by factors between 1.27 and 247 across a broad range of LHC processes, with the largest gains at high final-state multiplicities. The gain grows with the multiplicity, and for ttˉ+3jt\bar{t} + 3j the training cost already amortizes after 6000 unweighted events. At the same time, the generated distributions agree with an independent high-statistics baseline, in the bulk as well as in the tails. Learning the flavor structure on top of the PDF prior gives an additional gain whenever the matrix element depends on the flavor configuration.

These gains are largest for intermediate final-state multiplicities, which is the regime targeted in this paper. For low multiplicities, VEGAS combined with the analytic mappings of MadSpace is already efficient, and the hardware acceleration of phase-space generation and matrix elements in MadSpace and MadMatrix [57, 62] becomes the dominant source of speed-up, which we leave to the full MadGraph7 release. For very high multiplicities, the evaluation of full-color matrix elements becomes the bottleneck, which leading-color event generation with AmpliCol [72, 73] addresses in a complementary way.

For the LHC, faster event generation can be spent in two ways. The same samples can be generated with a smaller computing footprint, which addresses the growing gap between the required simulation and the available budget for the HL-LHC. Alternatively, the same budget yields larger samples, in particular for high-multiplicity final states, which enter many background predictions at LO through multi-jet merging and where limited Monte Carlo statistics in the tails often restrict the sensitivity of an analysis. Because no tuning is required, this gain is available to every MadGraph user, from large production campaigns to smaller phenomenological studies, whenever the requested number of events is large enough to amortize the training.

Acknowledgments

We thank the full MadGraph team for their continuous support and valuable input throughout this work. TH is supported by the PDR-Weave grant FNRS-DFG numéro T019324F (40020485). OM, TH and the madgraph collaboration are supported by FRS-FNRS (Belgian National Scientific Research Fund) IISN projects 4.4503.16 (MaxLHC). The work done by DM is supported by the Eric & Wendy Schmidt Fund for Strategic Innovation through the CERN Next Generation Triggers project (grant agreement SIF-2023-004). Computational resources have been provided by the Consortium des Équipements de Calcul Intensif (CÉCI), funded by the Fonds de la Recherche Scientifique de Belgique (F.R.S.-FNRS) under Grant No. 2.5020.11 and by the Walloon Region. We also acknowledge the usage of computing resources hosted at CERN through the Next Generation Triggers project (grant agreement SIF-2023-004). This article/publication is based upon work from COST Actions MLQC4FC (CA24146) supported by COST (European Cooperation in Science and Technology). This project is partly funded by HADRON-2030 which receives funding from the European Union’s Horizon Europe research and innovation programme under Grant Agreement No. 101292522.

Disclaimer

Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Executive Agency (REA). Neither the European Union nor the granting authority can be held responsible for them.

Hyperparameters

Per-process generation performance

Table 3 shows the generation performance for each selected process. The speed-up is the mean VEGAS generation wall time divided by the mean MadNIS generation wall time, with the two methods treated as independent samples. The throughput is the number of target unweighted events divided by the generation wall time, and the unweighting efficiency is calculated as the target count divided by the unweighted event count after cuts. We report the arithmetic mean of each per-run MadNIS quantity. The timing comparison covers event generation only, with the training time shown separately.

ProcessSpeedupThroughput [unw./s]ϵuw\epsilon_{\mathrm{uw}}ttraint_{\mathrm{train}}
pp→3jpp \to3j5.513.82×1053.82 \times10^{5}0.091.5 h
pp→4jpp \to4j584.53×1034.53 \times10^{3}0.005244.4 h
pp→ℓ+ℓ−+2jpp \to\ell^{+}\ell^{-} + 2j2.144.60×1044.60 \times10^{4}0.01272.9 h
pp→ℓ+ℓ−+3jpp \to\ell^{+}\ell^{-} + 3j2471.69×1041.69 \times10^{4}0.01366.7 h
pp→W±+2jpp \to\mathrm{W}^{\pm} + 2j1.94.08×1054.08 \times10^{5}0.07163.4 h
pp→W±+3jpp \to\mathrm{W}^{\pm} + 3j179.60×1049.60 \times10^{4}0.05248.8 h
pp→ttˉ+2jpp \to t\bar{t} + 2j20.63.70×1053.70 \times10^{5}0.2912.3 h
pp→ttˉ+3jpp \to t\bar{t} + 3j50.67.08×1037.08 \times10^{3}0.04624.1 h
pp→ttˉttˉpp \to t\bar{t}t\bar{t}6.629.32×1059.32 \times10^{5}0.53322 min
pp→ttˉ→bbˉℓ+ℓ−ννˉpp \to t\bar{t} \to b\bar{b}\ell^{+}\ell^{-}\nu\bar{\nu}1.272.04×1062.04 \times10^{6}0.41514 min
pp→Hjjpp \to Hjj5.093.72×1063.72 \times10^{6}0.56550 min
pp→HHjjpp \to HHjj7.681.01×1061.01 \times10^{6}0.24186 min
pp→W+W−jjpp \to\mathrm{W}^{+}\mathrm{W}^{-}jj43.65.74×1045.74 \times10^{4}0.06453.7 h
pp→W+W−W+pp \to\mathrm{W}^{+}\mathrm{W}^{-}\mathrm{W}^{+}8.123.38×1063.38 \times10^{6}0.76.0 min

Table 3. MadNIS performance for each process. Speed-up is the ratio in between the geometric means of VEGAS and MadNIS generation times using all completed runs for each method independently. The remaining columns are arithmetic means over completed MadNIS runs: generation throughput Ntarget/tgenN_{\mathrm{target}}/t_{\mathrm{gen}}, unweighting efficiency ϵuw=Ntarget/Nafter cuts\epsilon_{\mathrm{uw}} = N_{\mathrm{target}}/N_{\mathrm{after\ cuts}}, and training wall time. Throughput excludes training and survey time. Runs use NVIDIA H100 GPU and MadGraph7 v0.2.1.

References

References

References

  1. [1]C. Bierlich et al., A comprehensive guide to the physics and usage of PYTHIA 8.3, SciPost Phys. Codeb. 2022 (2022) 8, arXiv:2203.11601 [hep-ph].arxiv.org/abs/2203.11601
  2. [2]Sherpa, E. Bothmann et al., Event generation with Sherpa 3, JHEP 12 (2024) 156, arXiv:2410.22148 [hep-ph].
  3. [3]J. Bellm et al., The Physics of Herwig 7, arXiv:2512.16645 [hep-ph].arxiv.org/abs/2512.16645
  4. [4]F. Maltoni and T. Stelzer, MadEvent: Automatic event generation with MadGraph, JHEP 02 (2003) 027, arXiv:hep-ph/0208156.DOI
  5. [5]J. Alwall, P. Demin, S. de Visscher, R. Frederix, M. Herquet, F. Maltoni, T. Plehn, D. L. Rainwater, and T. Stelzer, MadGraph/MadEvent v4: The New Web Generation, JHEP 09 (2007) 028, arXiv:0706.2334 [hep-ph].DOI
  6. [6]J. Alwall, M. Herquet, F. Maltoni, O. Mattelaer, and T. Stelzer, MadGraph 5 : Going Beyond, JHEP 06 (2011) 128, arXiv:1106.0522 [hep-ph].DOI
  7. [7]J. Alwall, R. Frederix, S. Frixione, V. Hirschi, F. Maltoni, O. Mattelaer, H. S. Shao, T. Stelzer, P. Torrielli, and M. Zaro, The automated computation of tree-level and next-to-leading order differential cross sections, and their matching to parton shower simulations, JHEP 07 (2014) 079, arXiv:1405.0301 [hep-ph].DOI
  8. [8]R. Frederix, S. Frixione, V. Hirschi, D. Pagani, H. S. Shao, and M. Zaro, The automation of next-to-leading order electroweak calculations, JHEP 07 (2018) 185, arXiv:1804.10017 [hep-ph]. [Erratum: JHEP 11, 085 (2021)].DOI
  9. [9]J. M. Campbell et al., Event Generators for High-Energy Physics Experiments, in Snowmass 2021. 3, 2022. arXiv:2203.11110 [hep-ph].DOI
  10. [10]M. van Beekveld, E. Bothmann, A. Buckley, C. Gütschow, P. Skands, and R. Winterhalder, The Monte Carlo Ecosystem in High-Energy Physics: A Primer, arXiv:2605.16036 [hep-ph].
  11. [11]S. Höche, S. Prestel, and H. Schulz, Simulation of Vector Boson Plus Many Jet Final States at the High Luminosity LHC, Phys. Rev. D 100 (2019) 1, 014024, arXiv:1905.05120 [hep-ph].DOI
  12. [12]ATLAS Collaboration, ATLAS Software and Computing HL-LHC Roadmap, tech. rep., CERN, Geneva, 2022. https://cds.cern.ch/record/2802918.
  13. [13]S. Badger et al., Machine learning and LHC event generation, SciPost Phys. 14 (2023) 4, 079, arXiv:2203.07460 [hep-ph].DOI
  14. [14]T. Plehn, A. Butter, B. Dillon, T. Heimel, C. Krause, and R. Winterhalder, Modern Machine Learning for LHC Physicists, arXiv:2211.01421 [hep-ph].arxiv.org/abs/2211.01421
  15. [15]M. Feickert and B. Nachman, A Living Review of Machine Learning for Particle Physics, arXiv:2102.02770 [hep-ph].arxiv.org/abs/2102.02770
  16. [16]C. Krause, R. Winterhalder, M. Feickert, B. Nachman, J. Raine, and HEP-ML Community, “A living review of machine learning for particle physics.” Zenodo, July, 2026. https://doi.org/10.5281/zenodo.21626667. Version v2026.06.01.
  17. [17]C. Krause, R. Winterhalder, M. Feickert, and B. Nachman, The Living Guide of Machine Learning for Particle Physics, arXiv:2608.09531 [hep-ph].
  18. [18]F. Bishara and M. Montull, Machine learning amplitudes for faster event generation, Phys. Rev. D 107 (2023) 7, L071901, arXiv:1912.11055 [hep-ph].
  19. [19]S. Badger and J. Bullock, Using neural networks for efficient evaluation of high multiplicity scattering amplitudes, JHEP 06 (2020) 114, arXiv:2002.07516 [hep-ph].DOI
  20. [20]J. Aylett-Bullock, S. Badger, and R. Moodie, Optimising simulations for diphoton production at hadron colliders using amplitude neural networks, JHEP 08 (6, 2021) 066, arXiv:2106.09474 [hep-ph].
  21. [21]D. Maître and H. Truong, A factorisation-aware Matrix element emulator, JHEP 11 (2021) 066, arXiv:2107.06625 [hep-ph].DOI
  22. [22]K. Danziger, T. Janßen, S. Schumann, and F. Siegert, Accelerating Monte Carlo event generation – rejection sampling using neural network event-weight estimates, SciPost Phys. 12 (2022) 164, arXiv:2109.11964 [hep-ph].
  23. [23]R. Winterhalder, V. Magerya, E. Villa, S. P. Jones, M. Kerner, A. Butter, G. Heinrich, and T. Plehn, Targeting multi-loop integrals with neural networks, SciPost Phys. 12 (2022) 4, 129, arXiv:2112.09145 [hep-ph].DOI
  24. [24]T. Janßen, D. Maître, S. Schumann, F. Siegert, and H. Truong, Unweighting multijet event generation using factorisation-aware neural networks, SciPost Phys. 15 (2023) 107, arXiv:2301.13562 [hep-ph].
  25. [25]D. Maître and H. Truong, One-loop matrix element emulation with factorisation awareness, JHEP 5 (2023) 159, arXiv:2302.04005 [hep-ph].DOI
  26. [26]J. Brehmer, V. Bresó, P. de Haan, T. Plehn, H. Qu, J. Spinner, and J. Thaler, A Lorentz-Equivariant Transformer for All of the LHC, arXiv:2411.00446 [hep-ph].DOI
  27. [27]V. Bresó-Pla, G. Heinrich, V. Magerya, and A. Olsson, Interpolating amplitudes, SciPost Phys. 19 (2025) 5, 123, arXiv:2412.09534 [hep-ph].
  28. [28]T. Herrmann, T. Janßen, M. Schenker, S. Schumann, and F. Siegert, Accelerating multijet-merged event generation with neural network matrix element surrogates, arXiv:2506.06203 [hep-ph].arxiv.org/abs/2506.06203
  29. [29]L. Favaro, G. Gerhartz, F. A. Hamprecht, P. Lippmann, S. Pitz, T. Plehn, H. Qu, and J. Spinner, Lorentz-Equivariance without Limitations, arXiv:2508.14898 [hep-ph].DOI
  30. [30]J. M. Villadamigo, R. Frederix, T. Plehn, T. Vitos, and R. Winterhalder, FASTColor – Full-color Amplitude Surrogate Toolkit for QCD, SciPost Phys. 21 (2026) 001, arXiv:2509.07068 [hep-ph].DOI
  31. [31]H. Bahl, V. Bresó-Pla, A. Butter, and J. I. Ramirez, Scaling laws for amplitude surrogates, arXiv:2601.13308 [hep-ph].arxiv.org/abs/2601.13308
  32. [32]S. Badger, A. Butter, M. Luchmann, S. Pitz, and T. Plehn, Loop amplitudes from precision networks, SciPost Phys. Core 6 (2023) 034, arXiv:2206.14831 [hep-ph].arxiv.org/abs/2206.14831
  33. [33]H. Bahl, N. Elmer, L. Favaro, M. Haußmann, T. Plehn, and R. Winterhalder, Accurate Surrogate Amplitudes with Calibrated Uncertainties, arXiv:2412.12069 [hep-ph].DOI
  34. [34]H. Bahl, N. Elmer, T. Plehn, and R. Winterhalder, Amplitude Uncertainties Everywhere All at Once, SciPost Phys. 20 (2026) 083, arXiv:2509.00155 [hep-ph].arxiv.org/abs/2509.00155
  35. [35]H. Bahl, J. Braun, G. Heinrich, T. Plehn, and R. Revelli, How to Trust Learned Loop Amplitudes, arXiv:2601.00950 [hep-ph].arxiv.org/abs/2601.00950
  36. [36]L. Beccatini, F. Maltoni, O. Mattelaer, and R. Winterhalder, Amplitude Surrogates for Multi-Jet Processes, SciPost Phys. 20 (2026) 154, arXiv:2512.11036 [hep-ph].DOI
  37. [37]J. Bendavid, Efficient Monte Carlo Integration Using Boosted Decision Trees and Generative Deep Neural Networks, arXiv:1707.00028 [hep-ph].arxiv.org/abs/1707.00028
  38. [38]M. D. Klimek and M. Perelstein, Neural Network-Based Approach to Phase Space Integration, SciPost Phys. 9 (2020) 053, arXiv:1810.11509 [hep-ph].DOI
  39. [39]I.-K. Chen, M. D. Klimek, and M. Perelstein, Improved neural network Monte Carlo simulation, SciPost Phys. 10 (2021) 1, 023, arXiv:2009.07819 [hep-ph].DOI
  40. [40]C. Gao, J. Isaacson, and C. Krause, i-flow: High-dimensional Integration and Sampling with Normalizing Flows, Mach. Learn. Sci. Tech. 1 (2020) 4, 045023, arXiv:2001.05486 [physics.comp-ph].DOI
  41. [41]E. Bothmann, T. Janßen, M. Knobbe, T. Schmale, and S. Schumann, Exploring phase space with Neural Importance Sampling, SciPost Phys. 8 (2020) 4, 069, arXiv:2001.05478 [hep-ph].DOI
  42. [42]C. Gao, S. Höche, J. Isaacson, C. Krause, and H. Schulz, Event Generation with Normalizing Flows, Phys. Rev. D 101 (2020) 7, 076002, arXiv:2001.10028 [hep-ph].DOI
  43. [43]N. Deutschmann and N. Götz, Accelerating HEP simulations with Neural Importance Sampling, JHEP 03 (2024) 083, arXiv:2401.09069 [hep-ph].arxiv.org/abs/2401.09069
  44. [44]T. Janßen, R. Poncelet, and S. Schumann, Sampling NNLO QCD phase space with normalizing flows, arXiv:2505.13608 [hep-ph].
  45. [45]E. Bothmann, T. Janßen, M. Knobbe, B. Schmitzer, and F. Sinz, Efficient many-jet event generation with Flow Matching, arXiv:2506.18987 [hep-ph].arxiv.org/abs/2506.18987
  46. [46]G. P. Lepage, A New Algorithm for Adaptive Multidimensional Integration, J. Comput. Phys. 27 (1978) 192.DOI
  47. [47]G. P. Lepage, VEGAS: AN ADAPTIVE MULTIDIMENSIONAL INTEGRATION PROGRAM, .
  48. [48]G. P. Lepage, Adaptive multidimensional integration: VEGAS enhanced, J. Comput. Phys. 439 (2021) 110386, arXiv:2009.05112 [physics.comp-ph].DOI
  49. [49]T. Heimel, R. Winterhalder, A. Butter, J. Isaacson, C. Krause, F. Maltoni, O. Mattelaer, and T. Plehn, MadNIS - Neural multi-channel importance sampling, SciPost Phys. 15 (2023) 4, 141, arXiv:2212.06172 [hep-ph].DOI
  50. [50]T. Heimel, N. Huetsch, F. Maltoni, O. Mattelaer, T. Plehn, and R. Winterhalder, The MadNIS Reloaded, SciPost Phys. 17 (2024) 023, arXiv:2311.01548 [hep-ph].DOI
  51. [51]T. Heimel, O. Mattelaer, T. Plehn, and R. Winterhalder, Differentiable MadNIS-Lite, SciPost Phys. 18 (2025) 1, 017, arXiv:2408.01486 [hep-ph].DOI
  52. [52]O. Mattelaer and K. Ostrolenk, Speeding up MadGraph5_aMC@NLO, Eur. Phys. J. C 81 (2021) 5, 435, arXiv:2102.00773 [hep-ph].arxiv.org/abs/2102.00773
  53. [53]G. De Crescenzo, J. M. Villadamigo, N. Elmer, T. Heimel, T. Plehn, R. Winterhalder, and M. Zaro, MadNIS at NLO, arXiv:2603.22407 [hep-ph].arxiv.org/abs/2603.22407
  54. [54]T. Heimel, T. Plehn, R. Revelli, S. Vent, and R. Winterhalder, Neural Control Variates at LO and NLO, arXiv:2607.23591 [hep-ph].arxiv.org/abs/2607.23591
  55. [55]E. Bothmann, W. Giele, S. Hoeche, J. Isaacson, and M. Knobbe, Many-gluon tree amplitudes on modern GPUs: A case study for novel event generators, SciPost Phys. Codeb. 2022 (2022) 3, arXiv:2106.06507 [hep-ph].arxiv.org/abs/2106.06507
  56. [56]E. Bothmann, T. Childers, W. Giele, S. Höche, J. Isaacson, and M. Knobbe, A Portable Parton-Level Event Generator for the High-Luminosity LHC, SciPost Phys. 17 (2024) 081, arXiv:2311.06198 [hep-ph].DOI
  57. [57]A. Valassi et al., Speeding up Madgraph5 aMC@NLO through CPU Vectorization and GPU offloading: towards a first alpha release, in 21th International Workshop on Advanced Computing and Analysis Techniques in Physics Research: AI meets Reality. 3, 2023. arXiv:2303.18244 [physics.comp-ph].arxiv.org/abs/2303.18244
  58. [58]S. Hageboeck, T. Childers, W. Hopkins, O. Mattelaer, N. Nichols, S. Roiser, J. Teig, A. Valassi, C. Vuosalo, and Z. Wettersten, Madgraph5_aMC@NLO on GPUs and vector CPUs Experience with the first alpha release, EPJ Web Conf. 295 (2024) 11013, arXiv:2312.02898 [physics.comp-ph].arxiv.org/abs/2312.02898
  59. [59]Z. Wettersten, O. Mattelaer, S. Roiser, A. Valassi, and M. Zaro, Hardware acceleration for next-to-leading order event generation within MadGraph5_aMC@NLO, in 27th International Conference on Computing in High Energy and Nuclear Physics (CHEP 2024). 3, 2025. arXiv:2503.07439 [hep-ph].arxiv.org/abs/2503.07439
  60. [60]A. Valassi, T. Childers, S. Hageböck, D. Massaro, O. Mattelaer, N. Nichols, F. Optolowicz, S. Roiser, J. Teig, and Z. Wettersten, Madgraph on GPUs and vector CPUs: towards production (The 5-year journey to the first LO release CUDACPP v1.00.00), in 27th International Conference on Computing in High Energy and Nuclear Physics. 3, 2025. arXiv:2503.21935 [physics.comp-ph].
  61. [61]S. Hageböck, D. Massaro, O. Mattelaer, S. Roiser, A. Valassi, and Z. Wettersten, Data-parallel leading-order event generation in MadGraph5_aMC@NLO, arXiv:2507.21039 [hep-ph].arxiv.org/abs/2507.21039
  62. [62]T. Heimel, O. Mattelaer, and R. Winterhalder, MadSpace – Event Generation for the Era of GPUs and ML, arXiv:2602.06895 [hep-ph].arxiv.org/abs/2602.06895
  63. [63]E. Bothmann, J. Isaacson, C. Krause, C. J. López-Zurita, M. Spannring, and D. Wang, Efficient Event Generation for High-Multiplicity LHC Processes: An End-to-End GPU Workflow with Normalizing Flows, arXiv:2608.21338 [hep-ph].arxiv.org/abs/2608.21338
  64. [64]MadGraph Team, “MadGraph7, version 0.2.1 (alpha release).” https://github.com/MadGraphTeam/MadGraph7/releases/tag/v0.2.1, 2026.
  65. [65]R. Kleiss and R. Pittau, Weight optimization in multichannel Monte Carlo, Comput. Phys. Commun. 83 (1994) 141, arXiv:hep-ph/9405257.DOI
  66. [66]S. Weinzierl, Introduction to Monte Carlo methods, arXiv:hep-ph/0006269.DOI
  67. [67]W. Kilian, T. Ohl, and J. Reuter, WHIZARD: Simulating Multi-Particle Processes at LHC and ILC, Eur. Phys. J. C 71 (2011) 1742, arXiv:0708.4233 [hep-ph].
  68. [68]L. Ardizzone, J. Kruse, S. Wirkert, D. Rahner, E. W. Pellegrini, R. S. Klessen, L. Maier-Hein, C. Rother, and U. Köthe, Analyzing inverse problems with invertible neural networks, International Conference on Learning Representations (2018) , arXiv:1808.04730 [cs.LG].arxiv.org/abs/1808.04730
  69. [69]I. Kobzyev, S. Prince, and M. Brubaker, Normalizing flows: An introduction and review of current methods, IEEE Transactions on Pattern Analysis and Machine Intelligence (2020) 1–1, arXiv:1908.09257 [stat.ML].
  70. [70]W. H. Press and G. R. Farrar, Recursive stratified sampling for multidimensional monte carlo integration, Computers in Physics 4 (1990) 2, 190.DOI
  71. [71]T. Gleisberg and S. Hoeche, Comix, a new matrix element generator, JHEP 12 (2008) 039, arXiv:0808.3674 [hep-ph].DOI
  72. [72]R. Frederix and T. Vitos, Leading-colour-based unweighted event generation for multi-parton tree-level processes, JHEP 12 (2024) 201, arXiv:2409.12128 [hep-ph].arxiv.org/abs/2409.12128
  73. [73]R. Frederix and T. Vitos, Event generation with exponential scaling in multiplicity using AmpliCol, JHEP 04 (2026) 192, arXiv:2601.19483 [hep-ph].arxiv.org/abs/2601.19483
  74. [74]L. I. Midgley, V. Stimper, G. N. Simm, B. Schölkopf, and J. M. Hernández-Lobato, Flow annealed importance sampling bootstrap, arXiv preprint arXiv:2208.01893 (2022) .arxiv.org/abs/2208.01893
  75. [75]C. Durkan, A. Bekasov, I. Murray, and G. Papamakarios, Neural spline flows, Advances in Neural Information Processing Systems 32 (6, 2019) 7511, arXiv:1906.04032 [stat.ML].arxiv.org/abs/1906.04032
  76. [76]NNPDF, R. D. Ball et al., The path to proton structure at 1% accuracy, Eur. Phys. J. C 82 (2022) 5, 428, arXiv:2109.02653 [hep-ph].
  77. [77]A. Buckley, J. Ferrando, S. Lloyd, K. Nordström, B. Page, M. Rüfenacht, M. Schönherr, and G. Watt, LHAPDF6: parton density access in the LHC precision era, Eur. Phys. J. C 75 (2015) 132, arXiv:1412.7420 [hep-ph].DOI

Paper details

vlnc:W_8y2mdw4e
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents