The low-rank approximation algorithms in Chapter 4 produce approximations whose factors are linear combinations of all of the columns and rows of . Such factors can be hard to interpret, and they do not inherit structure (e.g. sparsity or non-negativity) that the columns and rows of may have. A CUR decomposition instead builds a low-rank approximation directly out of a small number of actual columns and rows of .
Since and are columns and rows of itself, they are often meaningful in terms of the underlying data; e.g. if the columns of correspond to features and the rows to samples, then a CUR decomposition identifies a small set of representative features and samples Mahoney & Drineas, 2009. Moreover, and can be formed by reading only columns and rows of , so CUR decompositions are natural in settings where we cannot afford to observe all of .
Choosing the mixing matrix¶
Suppose the indices and have been fixed. Two common choices for are:
Skeleton approximation: . This choice requires observing only the entries of and (note is a submatrix of both). If and , then exactly.
Optimal mixing: . This choice minimizes over all possible , but requires a full pass over .
The submatrix can be very ill-conditioned, so computing the skeleton approximation stably requires some care; e.g. regularizing the pseudoinverse. See Dong & Martinsson, 2023 for a discussion.
Choosing the columns and rows¶
The quality of a CUR decomposition is determined by the chosen indices and ; ideally the resulting approximation is competitive with the best rank- approximation to . Uniformly random columns and rows can easily miss important directions, so we must sample with better-chosen probabilities or use a pivoting strategy.
Leverage score sampling¶
A natural importance measure for the columns of is given by the leverage scores of the dominant rank- right singular subspace of (and analogously, for the rows, the dominant left singular subspace). Sampling columns and rows proportional to these (approximate) leverage scores yields relative-error guarantees.
Exact leverage scores require computing the dominant singular subspaces of , which is as hard as computing a low-rank approximation directly. However, as with approximate leverage score sampling for subspace embeddings, approximate leverage scores (e.g. obtained via sketching) suffice.
Pivoting¶
An alternative to randomized sampling is to choose the indices with a deterministic pivoting scheme such as column-pivoted QR. Applying such schemes to directly is expensive, but they can instead be applied to a small sketch of .
Despite its simplicity, this approach is remarkably effective in practice, and often outperforms more sophisticated sampling-based schemes Dong & Martinsson, 2023.
- Mahoney, M. W., & Drineas, P. (2009). CUR matrix decompositions for improved data analysis. Proceedings of the National Academy of Sciences, 106(3), 697–702. 10.1073/pnas.0803205106
- Dong, Y., & Martinsson, P.-G. (2023). Simpler is better: a comparative study of randomized pivoting algorithms for CUR and interpolative decompositions. Advances in Computational Mathematics, 49(4). 10.1007/s10444-023-10061-z
- Drineas, P., Mahoney, M. W., & Muthukrishnan, S. (2008). Relative-Error CUR Matrix Decompositions. SIAM Journal on Matrix Analysis and Applications, 30(2), 844–881. 10.1137/07070471x