NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast and Sample Efficient Multi-Task Representation Learning in Stochastic Contextual Bandits

Jiabin Lin, Shana Moothedath, Namrata Vaswani

Introduction

Contextual Bandits (CB) are the backbone of modern recommendation systems and personalized medicine, where an agent chooses actions based on "contexts" (like user history) to maximize rewards. However, when the feature dimension ($d$) is large, learning the optimal policy requires a massive amount of data.

In many real-world scenarios, we aren't just solving one task; we are solving $T$ related tasks simultaneously (e.g., recommending movies to thousands of different users). This paper tackles the challenge of Multi-Task Representation Learning, where all $T$ tasks are assumed to share a common, hidden, low-dimensional representation of rank $r$ (where $r \ll d$). The goal is to leverage data across all tasks to learn this shared structure quickly, thereby improving the learning efficiency for every individual task.

To address this, the authors introduce LRRL-AltGDMin, a fast and sample-efficient algorithm for multi-task contextual bandits. By using alternating gradient descent and a clever truncated spectral initialization, the algorithm achieves exponential convergence to the optimal representation, significantly reducing cumulative regret and sample requirements compared to learning tasks in isolation or using traditional convex relaxation methods.

Methodology: LRRL-AltGDMin

The authors propose LRRL-AltGDMin (Low-Rank Representation Learning via Alternating Gradient Descent and Minimization). The approach consists of three main phases:

  1. Truncated Spectral Initialization: To handle noisy bandit feedback, the algorithm starts by estimating the representation using a "truncated" spectral method. This filters out high-magnitude noise outliers that would otherwise skew the initial estimate of the shared subspace. Simply taking the top singular vectors is insufficient due to sub-exponential noise; truncation is a critical step that allows the algorithm to find a reliable starting point.
  2. Alternating Optimization:
  3. Min-W Step: For a fixed representation, the algorithm solves a simple least-squares problem to find the best linear coefficients for each task.
  4. ProjGD-B Step: It then performs a single step of Gradient Descent (GD) to update the shared representation matrix, followed by a projection to keep the matrix orthonormal.
  5. Doubling Epoch Schedule: The algorithm operates in epochs of increasing length. It uses a greedy strategy within each epoch to collect data and only updates its estimate of the shared representation at the end of the epoch.

Unlike previous "Method-of-Moments" (MoM) estimators that are non-iterative, or convex relaxation methods (like trace-norm regularization) which are computationally expensive, this GD-based approach is both faster and provides stronger provable guarantees on sample complexity.

Key Insights and Theoretical Guarantees

  • The Power of $r^3$: The paper shows that with their low-rank assumption, you only need roughly $O(r^3)$ samples per epoch to learn effectively, whereas a naive approach would require $O(d)$ samples. When $r$ is much smaller than $d$, this represents a massive reduction in the data needed to start making good decisions.
  • Exponential Convergence: The authors prove that the estimation error of the shared representation decays exponentially with the number of iterations, eventually saturating only at the level of the noise in the system.
  • Collaborative Learning: The regret analysis demonstrates that as the number of tasks $T$ increases, the "shared" knowledge makes the representation learning more robust, leading to a regret bound that scales much better than solving $T$ independent bandit problems.

Experimental Results

The algorithm was evaluated on both synthetic data (controlled environments with varying dimensions, tasks, and ranks) and the MNIST dataset (transformed into a bandit problem where tasks involved distinguishing between specific pairs of digits in a 784-dimensional feature space).

Cumulative regret on synthetic data (d=20, r=4)
Cumulative regret on MNIST data (d=784, r=4)
  • Superior Regret Performance: In both synthetic and MNIST experiments, LRRL-AltGDMin consistently achieved lower cumulative regret than MoM-based approaches, trace-norm relaxation, and naive Thompson Sampling.
  • Efficiency: The algorithm is significantly faster than convex relaxation methods. While trace-norm approaches struggle to improve error significantly over iterations, LRRL-AltGDMin hits the noise floor rapidly.
  • Scalability: The advantage of the proposed method grows as the number of tasks ($T$) increases, confirming that the algorithm effectively "pools" information across tasks.

Limitations and Future Work

  • Gaussian Assumption: The current theoretical proofs rely on the assumption that feature vectors follow an i.i.d. standard Gaussian distribution. Real-world data is rarely perfectly Gaussian.
  • Greedy Exploration: The current version uses a greedy strategy within epochs. Extending this to an Upper Confidence Bound (UCB) approach—which explicitly manages the exploration-exploitation trade-off—could further improve performance.
  • Few-Shot Learning: A promising future direction is fixing the representation after the first epoch and only updating the task-specific weights, which would align the work with "few-shot" learning scenarios.

Summary updated

BibTeX
@inproceedings{lin2024fast,
  author = {Jiabin Lin and Shana Moothedath and Namrata Vaswani},
  title = {{Fast and Sample Efficient Multi-Task Representation Learning in Stochastic Contextual Bandits}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=uog14iBFLA},
}
Figure