Bandit Principal Component Analysis

Wojciech Kotlowski, Gergely Neu

Abstract

We consider a partial-feedback variant of the well-studied online PCA problem where a learner attempts to predict a sequence of $d$-dimensional vectors in terms of a quadratic loss, while only having limited feedback about the environment’s choices. We focus on a natural notion of bandit feedback where the learner only observes the loss associated with its own prediction. Based on the classical observation that this decision-making problem can be lifted to the space of density matrices, we propose an algorithm that is shown to achieve a regret of $O(d^{3/2}\sqrt{T})$ after $T$ rounds in the worst case. We also prove data-dependent bounds that improve on the basic result when the loss matrices of the environment have bounded rank or the loss of the best action is bounded. One version of our algorithm runs in $O(d)$ time per trial which massively improves over every previously known online PCA method. We complement these results by a lower bound of $\Omega(d\sqrt{T})$.

Introduction

Principal Component Analysis (PCA) is a cornerstone of data science, traditionally used to identify the most significant directions in high-dimensional data. In the online version of PCA, a learner sequentially projects incoming vectors onto a one-dimensional subspace to maximize captured variance. Standard online PCA assumes "full information": at the end of every round, the environment reveals the entire data vector $x_t$.

However, many real-world scenarios—such as phase retrieval in physics or adaptive sensing—provide only "bandit feedback." In these cases, the learner only observes a single scalar value: the loss associated with their specific prediction. This presents two major challenges: an information gap regarding the data not seen, and computational complexity, as the space of possible projections is $O(d^2)$. This paper addresses these by proposing a novel algorithm that achieves near-optimal regret bounds while operating with unprecedented efficiency.

Methodology

The authors frame the problem as Online Linear Optimization over the space of density matrices (positive semidefinite matrices with unit trace). They utilize the Online Mirror Descent (OMD) framework with several critical innovations:

The Log-Determinant Regularizer

While standard matrix problems often use "Quantum Negative Entropy," the authors demonstrate that this fails in the bandit setting because it cannot control the variance of loss estimates. Instead, they employ the negative log-determinant ($-\log \det(W)$), also known as the Burg entropy or log-barrier. This choice ensures the learner's exploration remains well-conditioned by aggressively penalizing small eigenvalues.

Novel Sampling Schemes

To obtain an unbiased estimate of the hidden loss matrix, the learner must sample directions carefully. The paper proposes two primary methods:

  1. Dense Sampling: Uses a mix of eigenvectors and random signs to sense the entire matrix.
  2. Sparse Sampling: Picks just two eigenvectors at a time. This is the key to their computational breakthrough.
Dense and Sparse sampling algorithms for Bandit PCA.

Sublinear Runtime

By using sparse sampling, the algorithm only needs to update a small portion of the matrix's eigendecomposition each round. This results in an $O(d)$ per-iteration complexity, which is "sublinear" relative to the $d^2$ entries in a full-rank loss matrix.

Key Insights

  • The Importance of Geometry: The choice of regularizer is critical in the bandit setting. While the standard Matrix Hedge works for full information, it fails in the bandit setting because it doesn't penalize small eigenvalues enough. The log-barrier keeps the learner's exploration well-conditioned.
  • Efficiency Paradox: In a counterintuitive twist, the bandit version of the algorithm is computationally more efficient than the best-known full-information algorithms. In full-info PCA, one must at least read the $d^2$ entries of the loss matrix. In the bandit setup, the environment effectively does that work, allowing for the $O(d)$ sparse update.
  • Phase Retrieval Connection: The paper formally links Bandit PCA to the classical problem of phase retrieval (reconstructing a signal from magnitude-only measurements), providing a framework for solving it adaptively against an adversary.

Results

  • Regret Bounds: The algorithm achieves a worst-case regret of $\tilde{O}(d^{3/2}\sqrt{T})$. For cases where the environment's data is low-rank (rank $r$), the "sparse" version improves this to $\tilde{O}(d\sqrt{rT})$.
  • Lower Bound: The authors prove a fundamental limit of $\Omega(d\sqrt{T})$, showing that their algorithm is at most a $\sqrt{d}$ factor away from being perfectly optimal.
  • Efficiency: The sparse sampling version runs in $\tilde{O}(d)$ time per trial, a massive improvement over the $O(d^2)$ or $O(d^\omega)$ required by previous methods.

Conclusion and Future Work

While the algorithm represents a significant advance, a $\sqrt{d}$ gap remains between the upper bound and the lower bound. Future work may focus on tightening this bound, which might require a radically different approach. Additionally, proving high-probability bounds remains difficult due to the high variance of unbiased loss estimators. Finally, extending this framework to complex-valued vectors is essential for many physics applications, such as X-ray crystallography.

Summary updated

BibTeX
@inproceedings{kotlowski2019bandit,
  author = {Wojciech Kotlowski and Gergely Neu},
  title = {{Bandit Principal Component Analysis}},
  booktitle = {Conference on Learning Theory},
  year = {2019},
  url = {https://openreview.net/forum?id=cM5n8TNifn},
}
Figure