Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The previous sections describe algorithms for obtaining a low-rank approximation to a matrix A\vec{A}. In some settings (e.g. trace estimation), we instead want a low-rank approximation to a matrix function f(A)f(\vec{A}) of a symmetric matrix A\vec{A}, which we can access only through matrix-vector products. Products with f(A)f(\vec{A}) can be approximated using black-box methods like the Lanczos method for matrix functions, but each such product requires a number of products with A\vec{A}. In this section, we describe two approaches for making more efficient use of the products with A\vec{A}: Krylov-aware methods, which reuse the information generated by the underlying Krylov subspace methods, and, for operator monotone functions, approximations obtained by sketching A\vec{A} directly.

Krylov-aware methods

Krylov-aware methods make use of the interaction between Krylov subspace methods and randomized low-rank approximation techniques to more efficiently produce low-rank approximations to matrix functions Chen & Hallman, 2023Persson et al., 2025.

Let’s consider a Randomized-SVD type approach to obtaining a low-rank approximation to f(A)f(\vec{A}), where products with f(A)f(\vec{A}) are approximated via Krylov subspace methods.

The first key observation is that Y\vec{Y} is contained in some block Krylov subspace

Ks(A,Ω)=span{Ω,AΩ,A2Ω,,As1Ω},\mathcal{K}_s(\vec{A},\vec{\Omega}) = \text{span}\{\vec{\Omega}, \vec{A}\vec{\Omega}, \vec{A}^2\vec{\Omega}, \ldots, \vec{A}^{s-1}\vec{\Omega}\},

where ss is the number of steps taken by the KSM.

Let Qs\vec{Q}_{s} be an orthonormal basis for Ks(A,Ω)\mathcal{K}_s(\vec{A},\vec{\Omega}). We can compute Qs\vec{Q}_{s} using the same number of matrix-vector products with A\vec{A} as were used to compute Y\vec{Y}. However, range(Q)range(Qs)\range(\vec{Q})\subseteq \range(\vec{Q}_{s}), so we may expect that QsQsTf(A)\vec{Q}_{s}\vec{Q}_{s}^\T f(\vec{A}) is a better approximation to f(A)f(\vec{A}) than QQTf(A)\vec{Q}\vec{Q}^\T f(\vec{A}).

However, since Qs\vec{Q}_{s} has many more columns than Q\vec{Q}, at first glance computing an approximation to f(A)Qsf(\vec{A})\vec{Q}_{s} seems to require many more products than computing an approximation to f(A)Qf(\vec{A})\vec{Q}.

The second key observation is that because Qs\vec{Q}_{s} is a basis for a Krylov subspace, we can efficiently compute an approximation to f(A)Qsf(\vec{A}) \vec{Q}_{s}. In particular, we have the following:

Proof
Kr+1(A,Qs)=range([QsAQsArQs])=range([ΩAΩArΩAΩA2ΩAr+1ΩArΩAr+1ΩAs+r1Ω])=Ks+r(A,Ω).\begin{aligned} \mathcal{K}_{r+1}(\vec{A},\vec{Q}_s) &= \range\big( \big[ \vec{Q}_s \,\vec{A}\vec{Q}_s \, \cdots \, \vec{A}^r\vec{Q}_s \big]\big)\\ &= \range\big( \big[\vec{\Omega} \,\hspace{5pt}\vec{A}\vec{\Omega} \, \hspace{5pt}\cdots\hspace{5pt} \, \vec{A}^r\vec{\Omega}\\% First line &\hspace{2.2cm} \vec{A} \vec{\Omega} \,\hspace{5pt} \vec{A}^2\vec{\Omega} \, \cdots \, \vec{A}^{r+1} \vec{\Omega}\\ & \hspace{3.5cm} \ddots\\ & \hspace{3.5cm} \vec{A}^r \vec{\Omega} \,\hspace{5pt}\vec{A}^{r+1} \vec{\Omega} \,\hspace{5pt} \cdots \, \vec{A}^{s+r-1} \vec{\Omega} \big] \big) \\&= \mathcal{K}_{s+r}(\vec{A},\vec{\Omega}). \end{aligned}

This means that quantities such as QsTf(A)Qs\vec{Q}_s^\T f(\vec{A}) \vec{Q}_s can be approximated from Ks+r(A,Ω)\mathcal{K}_{s+r}(\vec{A},\vec{\Omega}). This requires just brbr additional matrix-vector products with A\vec{A} (to extend Ks(A,Ω)\mathcal{K}_s(\vec{A},\vec{\Omega}) to Ks+r(A,Ω)\mathcal{K}_{s+r}(\vec{A},\vec{\Omega})), rather than the roughly sbrsbr products required to build Kr+1(A,Qs)\mathcal{K}_{r+1}(\vec{A},\vec{Q}_s) by treating the sbsb columns of Qs\vec{Q}_s as a fresh starting block.

While this idea is simple, our algorithm can often perform much better than if matrix-vector products with f(A)f(\vec{A}) are treated as a black box. This is particularly true for functions like f(x)=xf(x) = \sqrt{x}, where we may require ss to be quite large to obtain a good approximation to f(A)Ωf(\vec{A}) \vec{\Omega}, but even the basis obtained with s=1s=1 (which is basically like sketching A\vec{A}) works well.

Operator monotone functions

The methods above still approximate products with f(A)f(\vec{A}) using Krylov subspace methods. For an important class of functions, we can avoid approximating products with f(A)f(\vec{A}) altogether: it suffices to compute a good low-rank approximation to A\vec{A} itself Persson & Kressner, 2023Persson et al., 2025.

Common examples of operator monotone functions include f(x)=xαf(x) = x^{\alpha} for α[0,1]\alpha\in[0,1], f(x)=log(1+x)f(x) = \log(1+x), and f(x)=x/(x+λ)f(x) = x/(x+\lambda) for λ0\lambda \geq 0.

Suppose A\vec{A} is positive semi-definite, and let A^\widehat{\vec{A}} be a rank-kk approximation to A\vec{A} satisfying 0A^A\vec{0} \preceq \widehat{\vec{A}} \preceq \vec{A}; e.g. the Nyström approximation, which always satisfies this condition. If f(0)=0f(0) = 0, then f(A^)f(\widehat{\vec{A}}) also has rank at most kk, and can be computed directly from the eigendecomposition of A^\widehat{\vec{A}} — no products with f(A)f(\vec{A}) are required. Remarkably, if A^\widehat{\vec{A}} is a near-optimal low-rank approximation to A\vec{A}, then f(A^)f(\widehat{\vec{A}}) is a near-optimal low-rank approximation to f(A)f(\vec{A}). The following version of this result is from Persson et al., 2025, which generalizes the analysis of the funNyström method of Persson & Kressner, 2023.

Note that since AA^0\vec{A} - \widehat{\vec{A}} \succeq \vec{0} (and, by operator monotonicity, f(A)f(A^)0f(\vec{A}) - f(\widehat{\vec{A}}) \succeq \vec{0}), the traces above are exactly the nuclear norm errors; analogous guarantees hold in the Frobenius and operator norms Persson et al., 2025.

References
  1. Chen, T., & Hallman, E. (2023). Krylov-Aware Stochastic Trace Estimation. SIAM Journal on Matrix Analysis and Applications, 44(3), 1218–1244. 10.1137/22m1494257
  2. Persson, D., Chen, T., & Musco, C. (2025). Randomized block-Krylov subspace methods for low-rank approximation of matrix functions. https://arxiv.org/abs/2502.01888
  3. Persson, D., & Kressner, D. (2023). Randomized Low-Rank Approximation of Monotone Matrix Functions. SIAM Journal on Matrix Analysis and Applications, 44(2), 894–918. 10.1137/22m1523923
  4. Persson, D., Meyer, R. A., & Musco, C. (2025). Algorithm-Agnostic Low-Rank Approximation of Operator Monotone Matrix Functions. SIAM Journal on Matrix Analysis and Applications, 46(1), 1–21. 10.1137/23m1619435