A New Method for Computing $\varphi$-functions and Their Condition Numbers of Large Sparse Matrices

Gang Wu, Lu Zhang

Abstract

We propose a new method for computing the $\varphi$-functions of large sparse matrices with low rank or fast decaying singular values. The key is to reduce the computation of $\varphi_{\ell}$-functions of a large matrix to $\varphi_{\ell+1}$-functions of some $r$-by-$r$ matrices, where $r$ is the numerical rank of the large matrix in question. Some error analysis on the new method is given. Furthermore, we propose two novel strategies for estimating 2-norm condition numbers of the $\varphi$-functions. Numerical experiments illustrate the numerical behavior of the new algorithms and show the effectiveness of our theoretical results.

Introduction

In computational science, matrix functions—specifically the matrix exponential and its associated $\varphi$-functions—serve as the mathematical foundation for exponential integrators used to solve stiff differential equations. These functions are also critical in fields such as network analysis and data dimensionality reduction.

However, researchers face a significant hurdle known as the "curse of density." Even when the input matrix $A$ is sparse, the resulting matrix function $f(A)$ is almost invariably dense. For large-scale matrices, storing and computing these dense results becomes computationally prohibitive. While Krylov subspace methods are effective for computing the action of a matrix function on a vector ($f(A)v$), they are less efficient when the full matrix function or its condition number is required. This paper introduces a high-speed method to compute $\varphi$-functions for large sparse matrices by leveraging their numerical rank.

Methodology

Dimension Reduction via SCR Approximation

The proposed approach centers on the Sparse Column-Row (SCR) approximation. Many real-world sparse matrices exhibit a "low numerical rank," meaning their singular values decay rapidly. The authors approximate a large $n \times n$ matrix $A$ as a product of three smaller matrices: $$A \approx XTY^T$$ where $X$ and $Y$ are $n \times r$ matrices and $T$ is an $r \times r$ matrix. Here, $r$ represents the numerical rank, which is often significantly smaller than $n$.

The $\varphi$-Function Reduction Theorem

The core theoretical contribution (Theorem 2.1) establishes a recursive shortcut. It proves that the $\varphi_\ell$ function of the large matrix $A$ can be computed using the $\ell+1$ function of the small $r \times r$ matrix $T$: $$\varphi_\ell(A) \approx \frac{1}{\ell!} I_n + X T \varphi_{\ell+1}(T) Y^T$$ By shifting the heavy lifting to the $r \times r$ core, the algorithm avoids the explicit formation of the dense $n \times n$ matrix, drastically reducing memory and CPU requirements.

Condition Number Estimation

To ensure the reliability of these computations, the authors developed two novel strategies (Strategy I and Strategy II) to estimate 2-norm condition numbers. Unlike the standard 1-norm estimates typically found in software, the 2-norm provides unitary invariance, making it more theoretically robust for sensitivity analysis in various coordinate systems.

Experimental Results

The method was validated using image databases (ORL, Yale, and Extended YaleB) for Exponential Discriminant Analysis (EDA) and eight large-scale matrices from the University of Florida Sparse Matrix Collection.

Computational Speed

The performance gains observed were substantial:

  • Facial Recognition (EDA): In processing image datasets, the new method completed tasks in 1.2 seconds, compared to 240 seconds using the standard MATLAB expm function.
  • Structural Engineering: For the man5976 matrix, the new method reduced computation time from 10,314 seconds (nearly 3 hours) to just 205 seconds.

Numerical Stability and Conditioning

Despite the speed, the method maintains high precision, with errors remaining near machine precision ($10^{-15}$). In condition number estimation, the new strategies outperformed standard tools like funm_condest1. For the California network matrix, where standard methods often failed to converge within a 3-hour window, the new strategies provided estimates in approximately 12 minutes.

Conclusion and Future Work

This research demonstrates that for matrices with fast-decaying singular values, it is possible to bypass the "curse of density" by reducing large-scale problems to their numerical rank dimensions. This results in speedups of over 100x without sacrificing numerical stability.

The primary limitation of this method is its dependence on low numerical rank; it is less effective for full-rank matrices with slow-decaying singular values. Future research may explore the integration of randomized Singular Value Decomposition (SVD) algorithms to further accelerate the initial approximation phase, potentially extending this method's utility to exascale datasets.

Summary updated

BibTeX
@misc{wu2016new,
  author = {Gang Wu and Lu Zhang},
  title = {{A New Method for Computing $\textbackslash\{\}varphi$-functions and Their Condition Numbers of Large Sparse Matrices}},
  year = {2016},
  eprint = {1608.00419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.00419},
}
Figure