Sample and Expand: Discovering Low-Rank Submatrices With Quality Guarantees

Martino Ciaperoni, Aristides Gionis, Heikki Mannila

Introduction

Low-rank approximation is a cornerstone of modern data science, serving as the mathematical engine for compression, denoising, and recommendation systems. Traditionally, techniques such as Singular Value Decomposition (SVD) or Principal Component Analysis (PCA) are employed to find these structures. However, these methods operate under a significant assumption: that the input matrix is globally low-rank. In practice, real-world datasets are often heterogeneous and noisy, containing local low-rank patterns—such as a specific group of users sharing preferences for a specific subset of movies—hidden within a high-rank background. Identifying these arbitrary submatrices is computationally intractable (NP-hard), and existing heuristics often lack the theoretical guarantees necessary for reliable data analysis.

This paper introduces SampleAndExpand, a novel two-phase algorithm designed to discover submatrices that are locally well-approximated by a low-rank structure. By combining randomized sampling with deterministic expansion, the method provides strict mathematical guarantees on approximation error while significantly outperforming traditional baselines.

Methodology

The SampleAndExpand algorithm approaches the problem of finding near-rank-$k$ submatrices through a distinct two-phase process:

Phase 1: Seed Sampling

The algorithm is built on the observation that a large rank-$k$ matrix contains numerous small rank-$k$ submatrices. To identify a potential "seed," the algorithm randomly samples tiny patches from the dataset. For a rank-1 search, it samples $2 \times 2$ patches and calculates their determinants. A determinant near zero indicates that the patch is nearly rank-1, serving as a promising starting point for expansion. This approach is computationally efficient, as checking a $2 \times 2$ determinant is significantly faster than performing a full SVD.

Phase 2: Expansion and Extraction

Once a seed is identified, the algorithm grows it into a larger submatrix. For a rank-1 approximation, the algorithm selects an "anchor" row and column from the seed and calculates the ratios of all other rows and columns in the dataset relative to these anchors. It seeks the largest subset of rows and columns where these ratios remain nearly constant, within a user-defined tolerance parameter $\delta$.

This expansion phase is framed as a maximum-edge biclique problem in a bipartite graph. To handle the NP-hard nature of finding exact maximum-edge bicliques at scale, the authors utilize advanced pruning algorithms and scalable heuristics, such as spectral biclustering, to extract the final submatrix. The method generalizes to rank-$k$ searches by sampling $(k+1) \times (k+1)$ seeds and utilizing orthogonal projections.

Theoretical and Practical Advantages

Mathematical Guarantees

Unlike many heuristic-based submatrix discovery tools, SampleAndExpand provides rigorous quality guarantees. By bounding the variation in row and column ratios during the expansion phase, the authors prove a maximum entry-wise error (max norm) for the discovered submatrix. This allows practitioners to set a specific tolerance $\delta$ and trust that the resulting output adheres to that error bound.

Interpretability

Standard SVD produces abstract mathematical components that can be difficult to map back to the original data. In contrast, SampleAndExpand yields approximations based on actual rows and columns (e.g., expressing a set of rows as collinear with a specific anchor row). This makes the results highly interpretable for domain-specific applications like genomics or recommender systems.

Experimental Evaluation

Synthetic Robustness

The authors tested the algorithm on $250 \times 250$ matrices with planted near-rank-1 submatrices across six different probability distributions (Normal, Uniform, Exponential, Beta, Gamma, and Poisson). SampleAndExpand consistently achieved an $F_1$ score near 1.0, demonstrating near-perfect recovery of hidden patches regardless of the noise distribution. In contrast, baselines like Sparse PCA and CVX failed to detect ground truth as the size of the hidden submatrices increased.

Real-World Performance

The method was evaluated on 15 benchmark datasets, including image sets (Olivetti, Mandrill), recommender systems (MovieLens), and gene-expression data. SampleAndExpand discovered submatrices with significantly higher "low-rankness" scores than the Singular Value Projection (SVP) method. While the RPSP baseline also found high-quality patches, SampleAndExpand demonstrated a superior balance between the quality of the approximation and the size of the discovered submatrix. Furthermore, SampleAndExpand proved to be drastically faster than RPSP on smaller datasets.

Conclusion

SampleAndExpand represents a significant step forward in local low-rank approximation. By shifting the focus from global decomposition to local discovery with provable error bounds, it offers a robust tool for extracting meaningful patterns from noisy data. Future work remains to address the NP-hard bottleneck of the biclique extraction phase to ensure the algorithm scales seamlessly to massive datasets while maintaining its strict mathematical guarantees.

Summary updated

BibTeX
@inproceedings{ciaperoni2025sample,
  author = {Martino Ciaperoni and Aristides Gionis and Heikki Mannila},
  title = {{Sample and Expand: Discovering Low-Rank Submatrices With Quality Guarantees}},
  booktitle = {ECML/PKDD},
  year = {2025},
  doi = {10.1007/978-3-032-06096-9\_5},
}
Figure