SearcharxivSearch

arXiv subjects

Guangbao Sun

Publications and source records attributed to Guangbao Sun.

2 recordsLinked to original sources

An eightfold equivalence-preserving speedup of the JUNO OMILREC vertex and energy reconstruction

The Jiangmen Underground Neutrino Observatory (JUNO) reconstructs each event's vertex and energy with OMILREC, a maximum-likelihood fit that scans all $17{,}612$ large photomultiplier tubes (LPMTs) in every Minuit function evaluation, about $470$ times per event. This inner loop dominates the reconstruction CPU cost. Profiling shows that the production algorithm is latency-bound, sustaining only $9.9%$ of scalar floating-point peak because of virtual-function dispatch, ROOT-histogram pointer chasing, and repeated computation. We apply staged \emph{equivalence-preserving} optimizations: flattened data layouts, vectorizable geometry, hoisting of Minuit-invariant work, per-event precomputation, fit-phase loop splitting and indexing, and reduced-precision fast paths. Each stage is checked against a frozen reference from the unmodified code. The optimized implementation achieves single-thread speedups of $8.06\times$ ($1524.8 \rightarrow 189.2$~ms/event) on an Intel Xeon Platinum~8358P and $5.22\times$ ($705.1 \rightarrow 134.9$~ms/event) on an AMD~EPYC~9654, increasing to $8.6\times$ ($177.7$~ms/event) after further optimization. The likelihood remains bit-identical through the first seven releases and later agrees within a relative drift of $1.3\times10^{-14}$, below the $10^{-13}$ contract. For typical events, reconstructed vertex and energy agree with the baseline within $4$~mm and $7$~keV; a few boundary cases reach different valid minima owing to an improved minimizer seed. An eight-metric physics-acceptance test also passes on about $861{,}000$ $^{68}$Ge calibration events. Developed with assistance from an AI coding agent operating under these verification gates, this workflow offers a transferable template for accelerating likelihood-based reconstruction in large neutrino and collider detectors without changing physics output.

physics.ins-det

GPU-accelerated spectrum reweighting for new-physics searches in solar neutrino--electron scattering

Precision measurements of neutrino--electron elastic scattering provide low-energy tests of weak interactions and beyond-the-Standard-Model effects. Non-standard interactions (NSIs) and an anomalous neutrino magnetic moment modify the differential cross section through different kinematic terms, but both can alter the normalization and shape of the recoil-electron spectrum. Likelihood tests are computationally costly when each parameter point requires the recoil spectrum to be propagated through a detector response obtained from Monte Carlo (MC) simulation. We present a GPU-accelerated spectrum-reweighting framework that avoids regenerating detector MC samples for each new-physics parameter point. Bin-to-bin weights are applied at the recoil-spectrum level and folded with a fixed two-dimensional response model in recoil and reconstructed energy. This keeps the detector response inside the likelihood calculation while reducing each parameter update to operations on precomputed spectra and response kernels. The implementation uses NVIDIA Thrust transformation--reduction primitives and is compiled from a common source for CUDA and OpenMP back ends. In the benchmarks considered here, one likelihood evaluation takes ${\sim}87$ ms on an NVIDIA RTX 3080Ti and ${\sim}52$ ms on an NVIDIA A30X; the latter gives a $58\times$ speedup over a single CPU thread and ${\sim}2.5\times$ over a fully loaded 64-thread CPU. The consumer-GPU result demonstrates that interactive parameter scans are feasible on a single workstation. The main acceleration, however, comes from avoiding detector-MC regeneration at each parameter point rather than from GPU execution alone. The framework applies to neutrino--electron scattering analyses in which the new-physics dependence can be represented by reweighting an existing recoil spectrum, including flavor NSI and magnetic-moment cases studied here.

hep-ex