In many scientific domains—from spatial statistics and seismic imaging to quantum chemistry—researchers must solve linear systems involving massive, dense matrices. Traditionally, these matrices require $O(N^2)$ storage and $O(N^3)$ time to factorize, costs that become prohibitive as $N$ climbs into the millions.
However, these matrices are rarely "random." Whether they represent gravitational forces, electromagnetic scattering, or covariance in a spatial field, they usually encode physical interactions that decay with distance. This physical property translates into a mathematical one: while the matrix is globally full-rank, its off-diagonal blocks are often numerically low-rank. Hierarchical matrix ($\mathcal{H}$-matrix) representations exploit this structure to compress dense operators into near-linear storage and computational complexity.
The Intuition of Near-Field and Far-Field
The core idea behind hierarchical matrices is a "divide and conquer" strategy based on spatial or logical proximity. As Alexander Litvinenko, Ying Sun, and Marc G. Genton demonstrate in Likelihood Approximation With Hierarchical Matrices For Large Spatial Datasets, a matrix can be recursively partitioned into a tree of blocks.
Blocks on the diagonal represent "near-field" interactions—points that are close to each other and thus highly correlated. These remain dense. However, off-diagonal blocks represent "far-field" interactions between distant clusters of points. Because the influence of distant points is "smooth," these blocks can be approximated by low-rank factorizations ($UV^T$).
By replacing a large $m \times n$ block with two skinny matrices of size $m \times k$ and $k \times n$ (where $k \ll m, n$), we drastically reduce the memory footprint. Hossein Mosallaei and colleagues show in Parametric hierarchical matrix approach for the wideband optical response of large-scale molecular aggregates that this allows modeling systems with over 100,000 molecules on standard hardware that would otherwise require hundreds of gigabytes of RAM.
From Log-Linear to Linear Complexity with Nested Bases
While basic $\mathcal{H}$-matrices achieve $O(N \log N)$ complexity, a more advanced format known as $\mathcal{H}^2$-matrices pushes this to true $O(N)$ linear complexity. The secret lies in the nested basis property.
In a standard hierarchical decomposition, each low-rank block is compressed independently. In an $\mathcal{H}^2$ representation, the basis functions used to represent a parent node in the hierarchy are constructed from the bases of its children. Hua Huang 0011, Edmond Chow, and colleagues describe this in Data-driven Construction of Hierarchical Matrices with Nested Bases. By sharing information across levels, the algorithm ensures that every step of the matrix-vector product or factorization operates on a constant amount of data relative to the total size.
This nested structure is so powerful that it can even be used to build "algebraic multigrid" solvers. Daria Sushnikova and Edmond Chow demonstrate in H2-MG: A multigrid method for hierarchical rank structured matrices that the transfer matrices within the $\mathcal{H}^2$ hierarchy can function as restriction and prolongation operators, allowing for rapid convergence in solving dense systems without needing an underlying physical mesh.
Algebraic Construction and Robustness
A major challenge in this field is constructing these matrices without first forming the full $N \times N$ dense matrix—which would defeat the purpose of compression.
Early methods relied on geometric "proxy surfaces" or analytic expansions (like the Fast Multipole Method). However, modern research favors purely algebraic approaches that work even when the underlying geometry is unknown or high-dimensional. Aleksandr Mikhalev introduced an iterative method in Adaptive nested cross approximation of non-local operators that uses "nested cross-approximation" to identify representative rows and columns, achieving linear complexity without problem-specific heuristics.
Similarly, Chenhan D. Yu and George Biros developed INV-ASKIT, a parallel solver that can factorize kernel matrices with 32 million points in high-dimensional spaces. Their work highlights that hierarchical structures are not just for 2D or 3D physical problems but are essential for modern high-dimensional machine learning.
Expanding the Frontier: Quantum and Inverse Problems
The utility of hierarchical matrices is now extending into quantum computing and complex inverse problems.
In Quantum algorithm for dense kernel matrices using hierarchical splitting, Bobak Kiani and Seth Lloyd show how to "block-encode" dense matrices for quantum algorithms. By splitting a matrix into sparse and low-rank components, they achieve polylogarithmic runtime, overcoming the traditional requirement that quantum speedups only apply to sparse matrices.
In the realm of Earth sciences, Daria Sushnikova and Matteo Ravasi apply these concepts to seismic data processing. They use $\mathcal{H}^2$ shared bases to manage the massive wavefield interactions in 3D seismic imaging, preventing memory explosion while maintaining the fidelity of the underlying physics.
By treating large-scale operators as a hierarchy of scales rather than a flat array of numbers, this research direction provides the mathematical machinery to make "impossible" computations routine.