Skip to main content
QUICK REVIEW

[Paper Review] The Sparse Grids Matlab kit -- a Matlab implementation of sparse grids for high-dimensional function approximation and uncertainty quantification

Chiara Piazzola, Lorenzo Tamellini|arXiv (Cornell University)|Mar 17, 2022
Probabilistic and Robust Engineering DesignDecision Sciences11 citations
TL;DR

The Sparse Grids Matlab Kit (SGMK) is a lightweight, high-level Matlab package for high-dimensional function approximation and uncertainty quantification (UQ), implementing the combination technique form of sparse grids. It enables efficient surrogate modeling via adaptive grids, supports generalized Polynomial Chaos expansions and Sobol sensitivity indices, and integrates with external simulators via the UM-Bridge protocol, making it suitable for both prototyping and realistic UQ applications with hundreds of random variables.

ABSTRACT

The Sparse Grids Matlab Kit provides a Matlab implementation of sparse grids, and can be used for approximating high-dimensional functions and, in particular, for surrogate-model-based uncertainty quantification. It is lightweight, high-level and easy to use, good for quick prototyping and teaching; however, it is equipped with some features that allow its use also in realistic applications. The goal of this paper is to provide an overview of the data structure and of the mathematical aspects forming the basis of the software, as well as comparing the current release of our package to similar available software.

Motivation & Objective

  • To provide a user-friendly, high-level Matlab implementation of sparse grids for high-dimensional function approximation and uncertainty quantification (UQ).
  • To support rapid prototyping and educational use while maintaining capabilities for real-world UQ applications involving hundreds of random variables.
  • To implement key UQ-specific features such as generalized Polynomial Chaos expansions (PCE), Sobol sensitivity indices, and gradient/Hessian computation for Bayesian inference and sensitivity analysis.
  • To enable efficient evaluation of expensive simulation models through evaluation recycling, parallelization, and integration with external solvers via the UM-Bridge protocol.
  • To compare and position the SGMK against existing sparse grid and UQ software in terms of functionality, maintainability, and usability.

Proposed method

  • The SGMK implements the combination technique form of sparse grids, using hierarchical basis functions and nested or non-nested knots for high-dimensional interpolation.
  • It supports adaptive refinement via dimension-adaptive algorithms, including a novel buffering strategy to improve work allocation in high-dimensional problems.
  • The package provides built-in collocation points for common probability distributions (uniform, normal, gamma, beta, etc.) to enable PCE-based UQ.
  • It computes gradients and Hessians of the surrogate model, supporting local sensitivity analysis and optimization tasks such as Maximum-A-Posteriori estimation.
  • The software integrates with Matlab’s Parallel Toolbox and supports evaluation recycling and external simulation calls via the UM-Bridge protocol for interfacing with C++/Python solvers.
  • It includes a comprehensive testing suite, tutorials, and full documentation, with over 5,300 lines of comments in the 2023 release.

Experimental results

Research questions

  • RQ1How can sparse grids be efficiently implemented in a high-level language like Matlab to support both educational use and production-level UQ workflows?
  • RQ2What unique features does the SGMK offer compared to existing sparse grid and UQ software in terms of UQ functionality and adaptivity?
  • RQ3To what extent can evaluation recycling, parallelization, and external simulation integration improve the performance of surrogate modeling in high-dimensional problems?
  • RQ4How does the buffering strategy in the SGMK enhance computational efficiency in dimensionally adaptive sparse grid construction?
  • RQ5In what ways does the SGMK outperform or complement other software such as Tasmanian, SG++, Spinterp, and Dakota in UQ tasks?

Key findings

  • The SGMK is the most feature-rich Matlab-based tool for UQ, offering unique support for dimension buffering, generalized Polynomial Chaos expansions, and Sobol sensitivity indices.
  • The package enables efficient computation of gradients and Hessians, which are critical for Bayesian inversion and sensitivity analysis.
  • Evaluation recycling and parallelization capabilities significantly reduce computational overhead when evaluating expensive simulation models.
  • The integration with the UM-Bridge protocol allows seamless interfacing with external simulators, enhancing usability in complex UQ pipelines.
  • The SGMK outperforms Spinterp in functionality and maintainability, and provides more UQ-specific tools than SG++ and Tasmanian, despite Tasmanian offering broader basis function support.
  • The software has been successfully used in multiple research projects, including those involving hundreds of random variables, and has been adopted in academic publications and textbooks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.