Mixed-Precision Paterson--Stockmeyer Method for Evaluating Polynomials of Matrices
Xiaobo Liu
TL;DR
This work introduces a mixed-precision Paterson–Stockmeyer framework for evaluating matrix polynomials with decaying scalar coefficients, enabling lower-precision computations for small-magnitude terms while maintaining high-precision accuracy. It provides a formal rounding-error analysis and practical algorithms (for Taylor, Padé, and cosine-type polynomials) that integrate with scaling-and-squaring strategies for the matrix exponential. The authors demonstrate that, under reasonable decay and norm conditions, the mixed-precision PS method achieves comparable accuracy to fixed-precision PS but with substantial speed-ups, especially for large, high-precision problems. They validate the approach through extensive numerical experiments and profiling, highlighting how precision scheduling and reduced inner multiplications yield notable performance gains in arbitrary-precision contexts. The framework is broadly applicable to other matrix polynomials and paves the way for further refinements, such as extending mixed-precision techniques to the computation of the first $s$ powers of $X$ and exploring more aggressive precision hierarchies.
Abstract
The Paterson--Stockmeyer method is an evaluation scheme for matrix polynomials with scalar coefficients that arise in many state-of-the-art algorithms based on polynomial or rational approximation, for example, those for computing transcendental matrix functions. We derive a mixed-precision version of the Paterson--Stockmeyer method that is particularly useful for evaluating matrix polynomials with scalar coefficients of decaying magnitude. The new method is mainly of interest in the arbitrary precision arithmetic, and it is attractive for high-precision computations. The key idea is to perform computations on data of small magnitude in low precision, and rounding error analysis is provided for the use of lower-than-the-working precisions. We focus on the evaluation of the Taylor approximants of the matrix exponential and show the applicability of our method to the existing scaling and squaring algorithms. We also demonstrate through experiments the general applicability of our method to other problems, such as computing the polynomials from the Padé approximant of the matrix exponential and the Taylor approximant of the matrix cosine. Numerical experiments show our mixed-precision Paterson--Stockmeyer algorithms can be more efficient than its fixed-precision counterpart while delivering the same level of accuracy.
