Abstract
Multiresolution Matrix Factorization (MMF) was recently introduced as a method for finding multiscale structure and defining wavelets on graphs/matrices. In this paper, we derive pMMF, a parallel algorithm for computing the MMF factorization. Empirically, the running time of pMMF scales linearly in the dimension for sparse matrices. We argue that this makes pMMF a valuable new computational primitive in its own right, and present experiments on using pMMF for two distinct purposes: compressing matrices and preconditioning large sparse linear systems.
Introduction
As machine learning datasets grow exponentially, the "clock speed" of hardware has plateaued, making parallelism the only viable path forward. However, standard parallelization strategies often fall into two traps. Data Parallelism assumes data is independent and identically distributed (i.i.d.), which fails to capture complex interactions between parameters. Conversely, Parameter Parallelism often uses coarse-grained partitioning that misses fine-grained, localized interactions.
The authors address the need for a multiresolution approach to parallelism. They focus on Multiresolution Matrix Factorization (MMF), a technique that finds multiscale structures (like wavelets) in matrices. While MMF is powerful, its original serial implementation was computationally expensive—specifically, the search for optimal "rotations" to factor the matrix was a combinatorial challenge. pMMF aims to make this process fast enough for real-world, million-dimensional problems.
The pMMF Framework
The paper introduces several key innovations to transform MMF into a parallel powerhouse. The core objective is to factor a matrix $A$ into a sequence of sparse orthogonal matrices (rotations) $Q_i$ and a core matrix $H$ that captures the multiscale structure.
Key innovations include:
- Clustering-Based Decoupling: The rows and columns of the matrix are partitioned into $m$ clusters. The algorithm only considers rotations between elements within the same cluster. This reduces the search complexity from $O(n^k)$ to $O(c^k)$, where $c$ is the cluster size.
- Soft Clustering (Stages): To ensure the algorithm can still capture global, "low-frequency" features, the data is repeatedly re-clustered after a set number of rotations. This allows information to flow between shards over time.
- Randomized Greedy Search: Instead of an exhaustive search for the best pairs to rotate, pMMF picks one index at random and then finds its best "partner" based on a normalized inner product. This aggressive strategy drastically speeds up the process with minimal loss in accuracy.
- Symmetrically Blocked Data Structure: The matrix is stored as $m^2$ separate blocks. This allows for "matrix-free" arithmetic, where operations are applied in a block-parallel fashion across multiple cores or machines without needing a central parameter server.
Experimental Evaluation
The authors evaluated pMMF on several benchmark datasets representing different types of structure, including Sparse Network Graphs (HEPph, AstroPh, CondMat) and Feature Matrices (Gisette).
Key Results
- Linear Scaling: Experiments showed that the wall-clock time of pMMF scales linearly with the number of non-zeros in the matrix. For matrices with $10^4$ to $10^5$ dimensions, factorization took only about one minute on a 32-core machine.
- Superior Compression: On graph-based datasets, pMMF significantly outperformed Nyström and other sketching methods in terms of Frobenius norm error. This suggests that for many real-world datasets—especially graphs—the hierarchical assumption is more faithful to the actual data structure than a simple low-rank assumption.
- Effective Preconditioning: When used as a preconditioner for Conjugate Gradient solvers, pMMF was 2–10 times faster per iteration than standard methods like SSOR or Incomplete Cholesky, leading to much faster convergence for large sparse linear systems.
Discussion and Future Work
A core insight of this work is that "high-frequency" information in a matrix is usually local. By processing these local shards independently, the algorithm avoids massive communication overhead. Furthermore, because pMMF factors the matrix into a sequence of sparse rotations and a core-diagonal matrix, inverting the approximation is trivial: one simply inverts the diagonal elements and applies the rotations in reverse order.
However, pMMF is not a silver bullet. It performed worse than standard methods on the Gisette dataset, which is purely low-rank without hierarchical structure. Additionally, to reach its theoretical peak efficiency, the algorithm ideally requires $m^2$-fold parallelism, which may be a high bar for some hardware setups. Future work involves "folding" entire machine learning optimization pipelines into this multiresolution framework, rather than just using it as a pre-processing step.
Summary updated