Skip to main content
QUICK REVIEW

[Paper Review] Co-Occuring Directions Sketching for Approximate Matrix Multiply

Youssef Mroueh, Etienne Marcheret|arXiv (Cornell University)|Oct 25, 2016
Stochastic Gradient Optimization TechniquesComputer Science12 references5 citations
TL;DR

This paper introduces co-occurring directions sketching, a deterministic algorithm for approximate matrix multiplication (AMM) in the streaming model. It achieves a $(1+\varepsilon)$-approximation of the optimal low-rank matrix product with a sketch size $\ell = O(\sqrt{sr(X)sr(Y)}/\varepsilon)$, outperforming both randomized and deterministic baselines in error bounds and empirical performance for small sketch sizes.

ABSTRACT

We introduce co-occurring directions sketching, a deterministic algorithm for approximate matrix product (AMM), in the streaming model. We show that co-occuring directions achieves a better error bound for AMM than other randomized and deterministic approaches for AMM. Co-occurring directions gives a $1 + ε$ -approximation of the optimal low rank approximation of a matrix product. Empirically our algorithm outperforms competing methods for AMM, for a small sketch size. We validate empirically our theoretical findings and algorithms

Motivation & Objective

  • To address the challenge of efficiently computing approximate matrix products in the streaming model with limited memory and single-pass access.
  • To develop a deterministic algorithm that improves upon existing randomized and deterministic AMM methods in terms of error bounds and sketch size dependency on $\varepsilon$.
  • To achieve tighter spectral norm error guarantees for AMM and low-rank approximation of $XY^\top$ by exploiting co-occurring directional structures in the input matrices.
  • To validate empirically that the proposed method outperforms randomized and deterministic baselines in both synthetic and real-world multimodal datasets.

Proposed method

  • The algorithm uses a deterministic sketching strategy inspired by frequent directions, focusing on preserving dominant directions that co-occur in the matrix product $XY^\top$.
  • It maintains sketches $B_X$ and $B_Y$ of matrices $X$ and $Y$ by iteratively updating them using a rank-1 update rule that captures the most significant correlated components.
  • The method applies a shrinkage operation to the singular values of the product $B_X B_Y^\top$ to minimize spectral norm error, ensuring stability and accuracy.
  • The sketch size $\ell$ is derived from the stable ranks of $X$ and $Y$, resulting in $\ell = O(\sqrt{sr(X)sr(Y)}/\varepsilon)$, which improves over the $O(1/\varepsilon^2)$ dependence in randomized methods.
  • The algorithm operates in a single pass over the data, making it suitable for streaming applications with small memory footprint.
  • It generalizes the frequent directions approach to the AMM setting by jointly tracking co-occurring directions in $X$ and $Y$ rather than just one matrix.

Experimental results

Research questions

  • RQ1Can a deterministic AMM algorithm achieve better error bounds than existing randomized and deterministic methods in the spectral norm?
  • RQ2Does the co-occurrence of dominant directions in $X$ and $Y$ enable a more efficient sketch size dependency on $\varepsilon$ than current approaches?
  • RQ3How does the algorithm perform in comparison to randomized methods (e.g., sampling, random projection, hashing) and deterministic baselines (e.g., FD-AMM) on synthetic and real-world multimodal data?
  • RQ4Can the algorithm maintain strong performance under noisy low-rank matrix settings where singular values decay slowly?
  • RQ5Is there a phase transition in error behavior that aligns with the theoretical sketch size $\ell$ relative to the rank of $X$ and $Y$?

Key findings

  • Co-occurring directions achieves a spectral norm error bound of $\left\|XY^\top - B_X B_Y^\top\right\| \leq \varepsilon \cdot \text{tr}(X^\top X) \cdot \text{tr}(Y^\top Y)$, with $\ell = O(\sqrt{sr(X)sr(Y)}/\varepsilon)$, improving over randomized methods' $O(1/\varepsilon^2)$ dependence.
  • Empirically, co-occurring directions outperforms both randomized baselines (sampling, random projection, hashing) and the deterministic FD-AMM baseline in error, especially for small sketch sizes.
  • A phase transition in error occurs when $\ell$ exceeds $O(\min(rank(X), rank(Y)))$, which happens earlier than for FD-AMM, which requires $\ell > O(rank(X) + rank(Y))$ to show similar improvement.
  • On the MS-COCO dataset, co-occurring directions achieves lower AMM error than FD-AMM, demonstrating strong performance on real-world multimodal data with $m_x=2048$, $m_y=3000$, and $n=113,287$.
  • In noisy low-rank settings, co-occurring directions still outperforms FD-AMM, though the gap narrows, suggesting sensitivity to noise in singular value shrinkage.
  • The algorithm’s runtime is comparable to sampling and slightly better than FD-AMM, while being significantly faster than random projection, making it practical for streaming applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.