Accelerating fits in high-energy physics and beyond
Amr Elmarassy, Sebastian Schmitt, Eluned Smith
Key points
From the paper's conclusion- We compare the speed and precision of variants of several well-known optimization algorithms, namely Newton's method, BFGS, and the Migrad algorithm (commonly used in physics fits).
Abstract
Data analysis in particle physics often involves optimizing a loss function that quantifies how well a theoretical model describes the observed data, in order to estimate the parameters of the model. This is referred to as fitting. As datasets grow larger and more expensive analysis methods are used, the time required to perform this parameter estimation can be a limiting factor. This work explores techniques that can significantly accelerate the fitting process, and measures their performance on a set of example models chosen to be representative of a variety of physics fits. We compare the speed and precision of variants of several well-known optimization algorithms, namely Newton's method, BFGS, and the Migrad algorithm (commonly used in physics fits). We observe significant speedups when using some algorithms: most notably, some variants of BFGS are consistently about $10\times$ faster than Migrad across our benchmarks, while achieving the same precision. For quasi-Newtonian algorithms like BFGS and Migrad, we find that the initial value of the Hessian matrix has a large impact on the runtime. We additionally discuss methods for accelerating the evaluation of the loss function and its derivatives, using algebraic simplifications, automatic differentiation, and modern hardware features on the CPU and GPU. We find that basic algebraic simplifications of the loss function can significantly improve speed and precision. On the GPU we explore using mixed precision computation, and show that this achieves much higher throughput on most accelerators without significant precision loss. Lastly we discuss efficient parallelization strategies for both the CPU and the GPU. All of the techniques and algorithms in this paper are implemented in our new FastFit library, which was used for all of our benchmarks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Computational Strategies for Mixed Logit Estimation Automatic Differentiation, GPU Computing, and Floating-Point PrecisionarXiv · 2026
- Learning to Calibrate Jet EnergiesarXiv · 2026
- Track fitting at the full LHC collision rate.The European physical journal. C, Particles and fields · 2026
- Roadmap: Image reconstruction in emission tomography for the era of fast Monte Carlo simulationarXiv · 2026
- Wrap or Rewrite? Reviving the 1989 GlobalMinimum Bayesian Global-Optimization Library for R and PythonarXiv · 2026
- Accelerating massive ensembles of ordinary differential equationsarXiv · 2026