Sparse Harmonic Transforms: A New Class of Sublinear-Time Algorithms for Learning Functions of Many Variables

Bosu Choi, Mark A. Iwen, Felix KrahmerFound. Comput. Math 2021

Abstract

In this paper, we develop fast and memory-efficient numerical methods for learning functions of many variables that admit sparse representations in terms of general bounded orthonormal tensor product bases (BOPB). Such functions appear in many applications, including various Uncertainty Quantification (UQ) problems involving the solution of parametric PDEs that are approximately sparse in Chebyshev or Legendre product bases. We present a new class of sublinear-time algorithms that provide a starting point for scaling UQ applications to significantly higher-dimensional problems than what are currently computationally feasible. Specifically, for a finite BOPB of cardinality $N$, we develop methods that rapidly approximate any sparse function $f$ with a runtime and memory complexity that depends only on the sparsity $s$ and the dimension $D$, rather than the total basis size $N$.

Introduction

In fields such as mathematical finance and Uncertainty Quantification (UQ), researchers frequently encounter the challenge of approximating functions of many variables ($D$). Traditional numerical methods suffer from the "curse of dimensionality," where the required number of samples and computational resources grow exponentially as $D$ increases.

While compressive sensing has offered a path forward for functions that are "sparse"—meaning they can be represented by a small number of basis functions—standard tools often require memory and runtime proportional to the total size of the basis ($N$). In high-dimensional settings, $N$ can reach astronomical proportions (e.g., $10^{97}$), rendering standard compressive sensing techniques computationally impossible. This research introduces a sublinear-time approach that decouples the computational cost from the total basis size, focusing instead on the sparsity of the function.

Methodology: Sublinearized CoSaMP

The core contribution of this work is the Sublinearized CoSaMP algorithm. This method is a greedy pursuit framework that builds upon the established Compressive Sampling Matching Pursuit (CoSaMP) algorithm but replaces the computationally expensive support identification step with a novel, faster alternative.

Structured Random Grids and Energy Hashing

Rather than relying on arbitrary sampling, the algorithm utilizes carefully constructed structured random grids. These grids facilitate "energy-based hashing," allowing the algorithm to project the energy of high-dimensional coefficients into lower-dimensional spaces. This makes it possible to locate the "needle in the haystack"—the few significant coefficients—without searching the entire basis.

Two-Step Support Identification

The support identification process is divided into two primary phases:

  1. Entry Identification: The algorithm identifies which indices are active within each individual dimension.
  2. Pairing: The identified indices are iteratively paired across dimensions to reconstruct the full multi-indices of the dominant basis functions.

This dimension-incremental approach ensures that the algorithm never needs to enumerate the full, massive basis, keeping the runtime complexity at $(s \log N)^{O(1)}$.

Universality and Scope

Unlike previous Sparse Fourier Transforms that are restricted to periodic functions, this framework is designed for any Bounded Orthonormal Product Basis (BOPB). This includes:

  • Fourier Tensor Product Bases for periodic functions.
  • Chebyshev and Legendre Tensor Product Bases for non-periodic functions commonly found in engineering and physics.

Experimental Results

The algorithm was evaluated using synthetic functions designed to be sparse in high-dimensional settings. Key findings include:

  • Extreme Dimensionality: The algorithm successfully recovered functions with up to $D=75$ variables. In such a configuration, the total basis size $N$ is approximately $10^{97}$, a number exceeding the estimated atoms in the observable universe.
  • Computational Efficiency: Sublinearized CoSaMP outperformed standard CoSaMP by several orders of magnitude. In scenarios where standard methods would require terabytes of memory, this approach functioned within a few gigabytes.
  • Robustness: The method demonstrated stability even when function evaluations were subjected to Gaussian noise, proving its viability for real-world applications where data may be imperfect.

Conclusion and Future Work

This research provides a scalable framework for high-dimensional function approximation. While the current "Pairing" step scales polynomially with sparsity ($s^3$ to $s^5$), it remains a potential bottleneck for less sparse functions. Future work will focus on improving this scaling and fully exploiting the "embarrassingly parallel" nature of the entry identification phase. Additionally, while experimental results show success with "nearly sparse" functions, formalizing theoretical guarantees for best $s$-term approximations remains a priority.

Summary updated

Abstract

In this paper we develop fast and memory efficient numerical methods for learning functions of many variables that admit sparse representations in terms of general bounded orthonormal tensor product bases. Such functions appear in many applications including, e.g., various Uncertainty Quantification (UQ) problems involving the solution of parametric PDE that are approximately sparse in Chebyshev or Legendre product bases (Chkifa et al. in Polynomial approximation via compressed sensing of high-dimensional functions on lower sets. arXiv:1602.05823, 2016; Rauhut and Schwab in Math Comput 86(304):661–700, 2017). We expect that our results provide a starting point for a new line of research on sublinear-time solution techniques for UQ applications of the type above which will eventually be able to scale to significantly higher-dimensional problems than what are currently computationally feasible. More concretely, let \({\mathcal {B}}\) be a finite Bounded Orthonormal Product Basis (BOPB) of cardinality \(|{\mathcal {B}}| = N\). Herein we will develop methods that rapidly approximate any function f that is sparse in the BOPB, that is, \(f: {\mathcal {D}} \subset {\mathbb {R}}^D \rightarrow {\mathbb {C}}\) of the form
BibTeX
@inproceedings{choi2021sparse,
  author = {Bosu Choi and Mark A. Iwen and Felix Krahmer},
  title = {{Sparse Harmonic Transforms: A New Class of Sublinear-Time Algorithms for Learning Functions of Many Variables}},
  booktitle = {Found. Comput. Math},
  year = {2021},
  url = {https://openreview.net/forum?id=23GawCpHiJ},
}
Figure