Robust Matrix Sensing in the Semi-Random Model

Xing Gao, Yu ChengNeurIPS 2023

In the world of machine learning, recovering a low-rank matrix from a few linear measurements—a task known as matrix sensing—is a fundamental problem. It powers applications ranging from collaborative filtering to medical imaging.

Under ideal conditions, where measurement matrices satisfy the Restricted Isometry Property (RIP), non-convex optimization works flawlessly: every local minimum is a global minimum. But what happens when the data is messy, or worse, intentionally sabotaged?

In their NeurIPS 2023 paper, Xing Gao and Yu Cheng introduce a new algorithmic framework to handle semi-random matrix sensing, providing a provably robust way to recover matrices even when an adversary injects malicious data.

The Challenge of Semi-Random Matrix Sensing

Standard matrix sensing assumes all sensing matrices $\{A_i\}$ are "good" (satisfying RIP). In reality, data is often contaminated. The semi-random model bridges average-case and worst-case analysis:

  1. There exists a hidden subset of good, random sensing matrices.
  2. An adversary adds an arbitrary number of "bad" matrices.
  3. The adversary can observe the good matrices before adding the bad ones, but the measurements $b_i = \langle A_i, X^* \rangle$ must remain consistent with the ground truth $X^*$.

In this semi-random setting, standard approaches falter:

  • Non-convex methods fail: The optimization landscape becomes distorted, creating bad local optima where gradient descent gets stuck.
  • Convex methods are slow: While nuclear norm minimization (a convex approach) still works, it becomes computationally prohibitive for large matrices.
  • Pre-processing is NP-hard: Reweighting the data upfront to satisfy RIP across the board is an NP-hard problem.

A Descent-Style Reweighting Algorithm

To overcome these hurdles, the authors propose a descent-style algorithm that avoids trying to fix the entire dataset globally. Instead, it corrects the data locally for the current estimate.

Algorithm 1: Semi-Random Matrix Sensing

Iterative Reweighting and the Weight Oracle

Instead of a standard gradient descent step, the algorithm takes a weighted gradient step. In each iteration $t$, it evaluates the current estimate $X_t$ and determines which measurements are pushing toward the truth and which are adversarial noise.

This is powered by a Weight Oracle. Given the current error, the oracle finds a set of weights that satisfy two critical properties:

  • Progress Guarantee: The weighted gradient remains large in the direction of the ground truth $X^*$.
  • Decomposition Guarantee: The gradient can be decomposed into a component with a small Frobenius norm and another with a small operator norm. This prevents the adversary from pulling the solution too far in a harmful direction.

wRIP and dRIP

The theoretical backbone of this approach relies on two new conditions:

  • wRIP (Weighted RIP): A relaxation of RIP where only a weighted combination of the matrices needs to be well-behaved.
  • dRIP (Decomposable wRIP): A technical extension ensuring the gradient decomposition is mathematically possible.

Key Insights

  • Bypassing NP-Hardness: The authors realized that weights do not need to satisfy RIP for all low-rank matrices simultaneously. They only need to work for the current estimate $X_t$, making the weight-finding problem computationally tractable.
  • Vector-Matrix Duality: The paper draws a clever parallel between sparse vector recovery and low-rank matrix recovery, adapting the "short-flat decomposition" used in sparse regression to create a "norm-decomposition" for matrices.
  • Numerical Rank as a Proxy: Because the algorithm may traverse matrices that aren't strictly rank-$r$ during optimization, it uses numerical rank (the ratio of nuclear norm squared to Frobenius norm squared) to maintain mathematical rigor.

Results and Limitations

The algorithm is mathematically proven to achieve global convergence, outputting an estimate $X$ that is $\epsilon$-close to the ground truth with high probability. Furthermore, it operates with a runtime of $\tilde{O}(nd^{\omega+1}r \log(1/\epsilon))$ (where $\omega$ is the matrix multiplication exponent), making it significantly more efficient than high-dimensional convex solvers. Remarkably, the method succeeds even if the adversary provides the vast majority of the sensing matrices, as long as the hidden good set is sufficiently large (roughly $\Omega(dr)$ matrices).

However, there are limitations. While faster than convex solvers, the algorithm still requires multiple Singular Value Decompositions (SVDs) and an inner loop for the weight oracle in every iteration, which can be expensive for massive matrices. Additionally, it relies on knowing certain constants related to RIP parameters, which might be difficult to estimate in a true black-box adversarial setting. Ultimately, this reweighting framework opens the door to solving other robust problems, such as Matrix Completion or Robust PCA, where the semi-random model remains an open challenge.

Summary updated

BibTeX
@inproceedings{gao2023robust,
  author = {Xing Gao and Yu Cheng},
  title = {{Robust Matrix Sensing in the Semi-Random Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nSr2epejn2},
}
Figure