Likelihood approximation with hierarchical matrices for large spatial datasets

Alexander Litvinenko, Ying Sun, Marc G. Genton, David E. Keyes

TL;DR

This paper introduces a novel method for efficiently estimating parameters of spatial random fields using hierarchical matrices (H-matrices). By approximating the covariance matrix and its inverse with H-matrices, the authors drastically reduce computational costs, enabling the analysis of much larger datasets than previously feasible. This opens doors for more accurate and scalable statistical modeling in environmental and other spatial applications.

What Problem Does This Paper Address?

Analyzing large spatial datasets, common in fields like environmental science, often involves fitting complex statistical models, such as Gaussian random fields. A core computational bottleneck in these models is the calculation of the covariance matrix and its inverse, which typically scales cubically with the number of data points ($O(n^3)$). This prohibitive cost limits the size of datasets that can be analyzed, forcing researchers to either reduce data resolution or use approximations that may sacrifice accuracy. This paper tackles this challenge by developing a method to approximate these computationally intensive operations using hierarchical matrices, which offer a near-linear scaling ($O(kn \log n)$).

Methods

The paper's core contribution lies in applying hierarchical matrix (H-matrix) techniques to approximate the Gaussian log-likelihood function used for parameter estimation in spatial statistics.

  • Hierarchical Matrices (H-matrices): The authors leverage H-matrices, a data structure that approximates dense matrices by recursively partitioning them into blocks. Many of these blocks are then approximated by low-rank matrices. This structure allows for significant reductions in storage and computational complexity.
  • H-matrix Approximation of Covariance Matrices: They demonstrate how to represent Matérn covariance matrices, a popular choice for spatial modeling, in the H-matrix format. This includes approximating the covariance matrix itself, its Cholesky decomposition, and its inverse.
  • Hierarchical Approximation of Gaussian Likelihood: The log-likelihood function, which involves the inverse and determinant of the covariance matrix, is approximated using H-matrices. This allows for efficient computation of the log-likelihood and its derivatives.
  • Parameter Estimation: The authors adapt a standard maximum likelihood estimation (MLE) procedure to work with the H-matrix approximated log-likelihood. They use Brent's method for optimization, which is robust and efficient.
  • Accuracy Control: The H-matrix approximation's accuracy is controllable by a rank parameter ($k$) or an error tolerance ($\epsilon$), allowing a trade-off between computational cost and precision.

Datasets

  • Simulated Data: The authors generated simulated data from a Matérn covariance model with known true parameters. This was used to evaluate the accuracy of their parameter estimation method across various sample sizes and H-matrix accuracies.
  • Soil Moisture Data: A real-world dataset of daily soil moisture measurements from the Mississippi River basin was used to demonstrate the method's application to a large, irregularly spaced spatial dataset with unknown parameters. This dataset is described as having approximately 2 million observations and over 400,000 missing values.

Key Insights and Ideas

  • Scalability Breakthrough: The most significant insight is that H-matrices provide a viable path to scale Gaussian process modeling to datasets with millions of locations, overcoming the $O(n^3)$ barrier of traditional methods.
  • Accuracy vs. Efficiency Trade-off: The H-matrix framework allows for a controllable trade-off between computational efficiency and the accuracy of the parameter estimates. The paper shows that even with moderate H-matrix accuracy, good parameter estimates can be obtained.
  • Robustness to Irregular Grids: The H-matrix approach is shown to be effective for irregularly spaced data, a common scenario in real-world applications, without requiring data resampling or complex grid transformations.
  • Parameter Identification: The study demonstrates that while some parameters (like $\nu$) might be identified more accurately than others (like $l$ or $\sigma^2$), the overall estimation is reliable, especially for larger datasets.

Key Results

  • Computational Speedup: The H-matrix approximation reduces the computational cost of evaluating the Gaussian log-likelihood from $O(n^3)$ to $O(kn \log n)$, enabling analysis of datasets with up to 2 million locations on a standard workstation.
  • Storage Reduction: H-matrices also significantly reduce memory requirements compared to dense matrices.
  • Accurate Parameter Estimation: Through Monte Carlo simulations, the authors show that their method can accurately recover known parameters of a Matérn covariance model. For example, with $n=128,000$ locations and $\epsilon=10^{-7}$ accuracy, the estimated parameters were close to the true values.
  • Real-world Application: The method was successfully applied to a large soil moisture dataset, estimating the Matérn covariance parameters for 2 million locations.

Limitations and Future Work

  • Pessimistic Error Bounds: The theoretical error bounds derived for the log-likelihood approximation are noted as potentially pessimistic and may not reflect the actual performance observed in simulations.
  • Optimization Challenges: The optimization procedure for finding the maximum likelihood estimates can be sensitive to the initial guess and may require many iterations, especially for large datasets or flat likelihood surfaces.
  • Future Work Suggestions:
    • Reducing the number of optimization iterations by implementing first and second derivatives of the likelihood.
  • Extending the framework to include a "nugget" effect as an unknown parameter.
  • Combining the current approach with domain decomposition methods for even larger-scale problems.

Summary updated

BibTeX
@article{litvinenko2019likelihood,
  author = {Alexander Litvinenko and Ying Sun and Marc G. Genton and David E. Keyes},
  title = {{Likelihood approximation with hierarchical matrices for large spatial datasets}},
  journal = {Comput. Stat. Data Anal.},
  year = {2019},
  doi = {10.1016/j.csda.2019.02.002},
}
Figure