Abstract
We consider multilevel low rank (MLR) matrices, defined as a row and column permutation of a sum of matrices, each one a block diagonal refinement of the previous one, with all blocks low rank given in factored form. MLR matrices extend low rank matrices but share many of their properties, such as the total storage required and complexity of matrix-vector multiplication. We address three problems that arise in fitting a given matrix by an MLR matrix in the Frobenius norm. The first problem is factor fitting, where we adjust the factors of the MLR matrix. The second is rank allocation, where we choose the ranks of the blocks in each level, subject to the total rank having a given value, which preserves the total storage needed for the MLR matrix. The final problem is to choose the hierarchical partition of rows and columns, along with the ranks and factors. This paper is accompanied by an open source package that implements the proposed methods.
Introduction
Low-rank approximations, such as the Singular Value Decomposition (SVD), are fundamental tools in numerical linear algebra, used for data compression, dimensionality reduction, and accelerating computations. However, many real-world matrices—such as kernel matrices in physics or distance matrices in geography—exhibit a hierarchical structure that a global low-rank approximation fails to capture efficiently.
To address this, we introduce the framework of Multilevel Low Rank (MLR) matrices. An MLR matrix is defined as a sum of matrices where each successive term is a block-diagonal refinement of the previous one. This structure allows for capturing local correlations while maintaining the computational efficiency of standard low-rank models.
Multilevel Low Rank Structure
The core idea of MLR is to decompose a matrix into a sum of components $A = \sum_{k=1}^L A^k$, where each $A^k$ is a block-diagonal matrix. As the level $k$ increases, the number of blocks increases, and their size decreases, providing a finer-grained approximation of the original matrix.
By constraining the total rank across all levels, MLR matrices preserve the storage and matrix-vector multiplication complexity of a standard rank-$r$ matrix, making them a powerful "drop-in" replacement for traditional compression techniques.
Methodology
Fitting an MLR matrix to data involves solving three primary optimization problems:
1. Factor Fitting
Given a fixed hierarchy and rank allocation, we must determine the optimal values for the low-rank factors. We propose two coordinate descent approaches:
- Alternating Least Squares (ALS): A standard iterative method that alternates between updating factors.
- Block Coordinate Descent (BCD): This method optimizes one level of the hierarchy at a time by applying SVD to the residuals, often leading to faster convergence.
2. Rank Allocation
A critical challenge is distributing a fixed "rank budget" across the different levels of the hierarchy. We introduce a greedy rank exchange algorithm. This heuristic moves units of rank between levels to maximize the reduction in the Frobenius norm error, ensuring that storage remains constant while accuracy is maximized.
3. Hierarchical Partitioning
The "shape" of the hierarchy—how rows and columns are grouped into blocks—is determined using spectral bi-clustering. By analyzing the eigenvectors of the residual matrix, we identify natural clusters in the data, building the tree structure from the top down.
Experimental Results
We evaluated the MLR framework across several domains, demonstrating its superiority over standard low-rank and other structured matrix formats:
- Physical and Geometric Data: For the Fiedler matrix and the Discrete Gauss Transform (DGT), MLR achieved significantly lower errors. For instance, on the DGT, MLR reduced approximation error to ~16.7% compared to ~41.8% for standard low-rank models.
- Geographic Networks: On a distance matrix representing the street network of Venice, Italy, the MLR approach cut the approximation error in half relative to standard methods.
- Financial Applications: When applied to an asset covariance matrix of 5,000 stocks, the MLR optimization often converged to traditional factor models (low rank + diagonal), validating existing financial practices while providing a flexible framework for more complex structures.
Conclusion
MLR matrices offer a robust and efficient way to approximate matrices with nested hierarchical structures. By optimizing factor values, rank distribution, and partitioning, our framework achieves superior compression for various scientific and engineering datasets. While the current algorithms are heuristic and subject to local optima, they provide a significant step forward in structured matrix approximation. An open-source Python package, mlr_fitting, is available for further research and application.
Summary updated