[Paper Review] Rotation method for accelerating multiple-spherical Bessel function integrals against a numerical source function
This paper introduces the 'rotation method'—a novel algorithm that accelerates multiple-spherical Bessel function (sBF) integrals by recasting them via trigonometric product-to-sum identities, enabling 1D FFTs with $N_{\rm g}\log N_{\rm g}$ scaling. It achieves up to 1000–3000× speedup over the naive $N_{\rm g}^{p+1}$ approach, significantly improving efficiency for cosmological correlation function and covariance matrix computations.
A common problem in cosmology is to integrate the product of two or more spherical Bessel functions (sBFs) with different configuration-space arguments against the power spectrum or its square, weighted by powers of wavenumber. Naively computing them scales as $N_{ m g}^{p+1}$ with $p$ the number of configuration space arguments and $N_{ m g}$ the grid size, and they cannot be done with Fast Fourier Transforms (FFTs). Here we show that by rewriting the sBFs as sums of products of sine and cosine and then using the product to sum identities, these integrals can then be performed using 1-D FFTs with $N_{ m g} \log N_{ m g}$ scaling. This "rotation" method has the potential to accelerate significantly a number of calculations in cosmology, such as perturbation theory predictions of loop integrals, higher order correlation functions, and analytic templates for correlation function covariance matrices. We implement this approach numerically both in a free-standing, publicly-available extsc{Python} code and within the larger, publicly-available package exttt{mcfit}. The rotation method evaluated with direct integrations already offers a factor of 6-10$ imes$ speed-up over the naive approach in our test cases. Using FFTs, which the rotation method enables, then further improves this to a speed-up of $\sim$$1000-3000 imes$ over the naive approach. The rotation method should be useful in light of upcoming large datasets such as DESI or LSST. In analysing these datasets recomputation of these integrals a substantial number of times, for instance to update perturbation theory predictions or covariance matrices as the input linear power spectrum is changed, will be one piece in a Monte Carlo Markov Chain cosmological parameter search: thus the overall savings from our method should be significant.
Motivation & Objective
- To address the computational bottleneck in evaluating multiple-spherical Bessel function integrals against numerical source functions in cosmology.
- To overcome the $N_{\rm g}^{p+1}$ scaling of naive integration methods for $p$ configuration-space arguments.
- To enable efficient use of Fast Fourier Transforms (FFTs) for sBF integrals, which are otherwise incompatible with standard FFT acceleration.
- To provide a numerically stable, high-precision method for computing correlation functions and covariance matrices in large-scale structure surveys.
- To support computationally intensive tasks such as Monte Carlo Markov Chain (MCMC) parameter estimation requiring repeated recomputation of integrals.
Proposed method
- Rewrite spherical Bessel functions as sums of sines and cosines using trigonometric identities.
- Apply product-to-sum trigonometric identities to transform integrals over multiple configuration-space arguments into integrals over single differences and sums.
- Reframe the problem as a 45° rotation in the configuration-space plane from $(a,b)$ to $(a-b, a+b)$, enabling 1D FFT application.
- Perform the resulting 1D FFTs on the fly, avoiding large lookup tables and enabling in-RAM computation.
- Use the rotation transformation to convert high-dimensional sBF integrals into a sequence of 1D FFTs with $N_{\rm g}\log N_{\rm g}$ complexity.
- Implement the method in a public Python package and within the mcfit framework for broad usability.
Experimental results
Research questions
- RQ1Can multiple-spherical Bessel function integrals with numerical source functions be accelerated beyond the naive $N_{\rm g}^{p+1}$ scaling?
- RQ2Is it possible to recast sBF integrals into a form amenable to 1D FFTs despite their inherent multidimensional structure?
- RQ3What is the achievable speedup of the rotation method compared to direct numerical integration and existing lookup-based approaches?
- RQ4How does the method perform in high-precision cosmological applications such as covariance matrix estimation for redshift surveys?
- RQ5Can the method be extended to higher sBF indices $\ell$ without loss of numerical precision?
Key findings
- The rotation method reduces the computational scaling of multiple-sBF integrals from $N_{\rm g}^{p+1}$ to $N_{\rm g}\log N_{\rm g}$ by enabling FFT-based evaluation.
- The method achieves a 6–10× speedup over direct integration in test cases, and up to 1000–3000× when combined with FFTs.
- Numerical agreement with the naive method is sufficient to ensure systematic errors are negligible in applications like DESI analysis.
- The method avoids large lookup tables, enabling efficient in-RAM computation and reducing I/O bottlenecks.
- The approach is already effective for $\ell = 0$ and $\ell = 2$ multipoles, covering key components of 2PCF covariance matrices.
- Challenges arise at higher $\ell$ due to large dynamic ranges in integrands, but the method remains viable for current survey-scale applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.