[Paper Review] Fast computation of temperature and polarization coupling matrices
Proposes a fast and exact method (threej_cosmo) to compute CMB mode–coupling matrices by optimized evaluation of Wigner–3j symbols, achieving large speedups over Schulten–Gordon recursions and enabling parallel GPU/CPU execution.
We present a fast and exact method for computing CMB mode-coupling matrices based on an optimised evaluation of Wigner-3j symbols. The method exploits analytic structure in the relevant Wigner-3j symbol configurations appearing in temperature and polarization coupling matrices, expressing all required quantities in terms of a small set of recurrence-generated values which are precomputed and stored in lookup tables. This approach reduces the computational cost of constructing the full coupling matrices whilst maintaining numerical accuracy. We demonstrate the performance of the threej_cosmo implementation using realistic survey masks from current CMB experiments. Relative to standard recursion-based approaches used in existing pseudo-C_l pipelines, the method achieves speedups of 6-25x in practical coupling-matrix constructions, with the largest gains occurring at high multipoles. The algorithm admits efficient parallelisation on both CPUs and GPUs, the latter providing additional acceleration, up to a further order of 50 on modern hardware, without altering the underlying formalism. Beyond full matrix construction, the approach is naturally suited to applications in which only a restricted set of l3 modes is required for each (l1,l2) pair, such as in the computation of band-limited coupling matrices and analytic covariance terms. These features make threej_cosmo a practical backend for pseudo-C_l estimation and related calculations in next-generation CMB analysis pipelines.
Motivation & Objective
- Improve the efficiency of computing temperature and polarization mode-coupling matrices in pseudo-C_l estimations.
- Leverage analytic structure and recurrence relations to avoid redundant Wigner–3j symbol calculations.
- Provide a fast, exact, and parallelizable backend suitable for band-limited coupling and covariance terms.
- Demonstrate performance gains against standard recursion-based methods on realistic survey masks.
Proposed method
- Express all required Wigner–3j symbols in terms of a small set of recurrence-generated, precomputed quantities.
- Precompute and store tables for functions like g(p) and (J+1)^{-1} to avoid runtime factorials.
- Derive optimized recurrence relations to compute the (0,0,0) and (-2,2,0) symbol configurations.
- Use permutation symmetry to obtain all needed configurations from base symbols and exploit even/odd J selection rules.
- Benchmark threej_cosmo against Schulten–Gordon recursion on ACT DR6 masks, including CPU and GPU implementations.
Experimental results
Research questions
- RQ1Can the temperature and polarization Wigner–3j symbol calculations be reformulated to reduce redundant computations without loss of accuracy?
- RQ2What are the performance gains when replacing standard recursion with an optimized recurrence-based approach across a range of multipoles?
- RQ3How well does the method scale on CPUs and GPUs, and does it support band-limited/partial coupling computations?
- RQ4Is it feasible to extend the approach to other Wigner–3j configurations appearing in CMB and LSS analyses?
Key findings
- Threej_cosmo achieves speedups of ~20–25x for TT and ~6–7x for EE at high ell (e.g., ell_max ≈ 4722) compared to Schulten–Gordon on CPU.
- GPU acceleration yields up to ~54x speedup for TT and ~35x for EE relative to the CPU threej_cosmo, and over 1000x vs the S-G baseline for TT.
- The algorithm preserves cubic scaling with ell_max (O(ell_max^3)) but with a smaller prefactor, maintaining numerical accuracy (∼1e-12) relative to reference.
- Band-limited/counted coupling scenarios benefit substantially, with speedups growing with ell_max and reducing with smaller L_cut (e.g., TT up to ~115x for L_cut=64 at ell_max=5000).
- The method directly applies to approximate pseudo-C_l covariance terms and is compatible with parallelization on CPUs/GPUs, enabling efficient backends for pipelines.
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.