Skip to main content
QUICK REVIEW

[Paper Review] Accelerating HEP simulations with Neural Importance Sampling

Nicolas Deutschmann, Niklas Götz|arXiv (Cornell University)|Jan 17, 2024
Nuclear reactor physics and engineeringEngineering6 citations
TL;DR

The paper introduces ZüNIS, a PyTorch-based neural importance sampling library that reuses samples across gradient steps to inprove data efficiency, and benchmarks it against VEGAS showing substantial variance reduction and unweighting gains in several HEP-like integrals, albeit with higher training cost.

ABSTRACT

Many high-energy-physics (HEP) simulations for the LHC rely on Monte Carlo using importance sampling by means of the VEGAS algorithm. However, complex high-precision calculations have become a challenge for the standard toolbox, as this approach suffers from poor performance in complex cases. As a result, there has been keen interest in HEP for modern machine learning to power adaptive sampling. While previous studies have shown the potential of normalizing-flow-powered neural importance sampling (NIS) over VEGAS, there remains a gap in accessible tools tailored for non-experts. In response, we introduce ZüNIS, a fully automated NIS library designed to bridge this divide, while at the same time providing the infrastructure to customise the algorithm for dealing with challenging tasks. After a general introduction on NIS, we first show how to extend the original formulation of NIS to reuse samples over multiple gradient steps while guaranteeing a stable training, yielding a significant improvement for slow functions. Next, we introduce the structure of the library, which can be used by non-experts with minimal effort and is extensivly documented, which is crucial to become a mature tool for the wider HEP public. We present systematic benchmark results on both toy and physics examples, and stress the benefit of providing different survey strategies, which allows higher performance in challenging cases. We show that ZüNIS shows high performance on a range of problems with limited fine-tuning.

Motivation & Objective

  • Motivate reducing reliance on hand-tuned VEGAS in complex HEP simulations.
  • Propose a data-efficient training scheme for neural importance sampling (NIS) that reuses samples across gradient steps.
  • Provide an end-to-end, user-friendly PyTorch-based library (ZüNIS) for non-experts to apply NIS.

Proposed method

  • Extend Neural Importance Sampling with a data-efficient training approach that uses an auxiliary distribution q(x) to estimate the loss while sampling from q and evaluating p(x, θ) for training.
  • Derive and implement a training algorithm (buffered/forward sampling) that reuses samples across multiple gradient steps.
  • Introduce three q-sampling strategies: uniform (flat), frozen model, and adaptive_variance, enabling flexible training.
  • Provide a PyTorch-based library (ZüNIS) with modular components: Flows, Trainers, Integrators.
  • Compare NIS (with ZüNIS) to VEGAS and uniform sampling on low- and high-dimensional integrals, including MadGraph cross-section-like problems.
(a)
(a)

Experimental results

Research questions

  • RQ1Can Neural Importance Sampling with sample reuse outperform VEGAS on challenging HEP integrals?
  • RQ2How does the data-efficient training scheme impact convergence speed and data usage for NIS?
  • RQ3What is the practical performance of ZüNIS across different dimensionalities and problem types (low-D functions and MadGraph-like integrals)?

Key findings

  • ZüNIS achieves up to 1000x variance reduction compared to uniform sampling and VEGAS for certain 2D–35D functions (camel, slashed circle, sinusoidal).
  • Reusing samples across multiple gradient steps with a q-distribution substantially speeds up training, giving a 2–10x improvement in convergence with forward sampling.
  • ZüNIS can outperform VEGAS in integral convergence and unweighting efficiency for some problems, particularly high-cost evaluation scenarios, though training and sampling are slower overall.
  • In MadGraph cross-section tests, ZüNIS shows variable improvements across processes; smoother functions favor KL losses, while peaked functions benefit from variance loss, suggesting adaptive loss choices are advisable.
  • ZüNIS is slower than VEGAS in training and sampling but leverages GPU acceleration to provide practical benefits when function evaluations are costly.
(b)
(b)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.