Multi-Task Learning for Contextual Bandits

Aniket Anand Deshmukh, Ürün Dogan, Clayton Scott

Overview

This paper introduces a framework that allows contextual bandit algorithms to "share" knowledge between similar arms using Multi-Task Learning (MTL). By leveraging task similarities, the proposed KMTL-UCB algorithm achieves significantly lower regret than traditional methods that either treat every arm as a total stranger or assume all arms are identical.

The Contextual Bandit Dilemma

In a contextual bandit problem, an agent must choose an "arm" (like a news article to recommend) based on "context" (like a user's reading history). The goal is to maximize rewards over time.

Traditionally, researchers have taken two extreme paths:

  1. Independent Learning: Treat every arm as a separate task. This is safe but slow, especially if you have thousands of arms (the "cold start" problem).
  2. Pooled Learning: Treat all arms as if they are the same. This is fast but inaccurate because it ignores the unique characteristics of different arms.

The authors address the gap in the middle: How can we share information between similar arms without losing their individual identities? If two news articles are both about "Technology," data gathered from one should help us predict the reward for the other.

The KMTL-UCB Approach

The authors propose KMTL-UCB (Kernelized Multi-Task Learning Upper Confidence Bound). The core innovation lies in how they define the "context" and the "kernel" used to predict rewards.

  • Augmented Context: Instead of just looking at the user context ($x$), they create an augmented context $\tilde{x} = (z, x)$, where $z$ is a descriptor of the arm itself.
  • Product Kernels: They use a kernel function that is the product of two others: one that measures similarity between arm descriptors ($k_Z$) and one that measures similarity between user contexts ($k_X$).
  • Similarity Estimation: Perhaps the most practical contribution is a method to estimate arm similarity on the fly. If you don't know which arms are similar, the algorithm uses "kernel mean embeddings" to compare the distributions of contexts each arm has encountered, effectively learning the relationship between tasks as it goes.
  • The UCB Strategy: Like many bandit algorithms, it calculates an "Upper Confidence Bound"—a "best-guess" reward plus a "bonus" for uncertainty—to balance exploring new arms versus exploiting known good ones.

Key Insights and Ideas

  • The "Sweet Spot" of Learning: The paper mathematically proves that MTL is a generalization of both independent and pooled learning. By tuning the similarity matrix, you can slide between these two extremes.
  • Regret and Rank: A major theoretical "aha" moment is the link between the rank of the task similarity matrix and the regret bound. If the tasks are highly similar (low rank), the algorithm's "regret" (the gap between its performance and the theoretical optimum) grows much more slowly.
  • Context as a Proxy for Similarity: The idea that we can determine if two tasks are similar just by looking at the types of users they attract (the context distribution) is a powerful heuristic for real-world systems where explicit metadata about arms might be missing.

Experimental Results

The researchers evaluated their approach on two fronts: synthetic environments and real-world classification datasets transformed into bandit problems.

Superior Efficiency on Synthetic Data

In a simulated environment where user contexts are rotated based on article "angles," creating a clear structure of similarity between arms, KMTL-UCB significantly outperformed "Pooled" learning (which was too blunt) and "Independent" learning (which was too slow to adapt).

Synthetic data distributions and empirical mean regrets

Real-World Performance and Visualizing Discovery

The authors also tested on multi-class classification datasets (like Digits, MNIST, and USPS) converted into bandit tasks. The version of the algorithm that estimates similarity (KMTL-UCB-Est) was the top performer or tied for the lead across all datasets.

Furthermore, the algorithm successfully "discovered" the relationships between different classes (arms) during the learning process. The generated heatmaps show that it recovers the natural block structures of the data, effectively learning which tasks are related without prior knowledge.

Heatmaps showing estimated task similarities across different datasets

Limitations and Future Work

  • Computational Scaling: Like most kernel-based methods, the algorithm's complexity grows with the number of trials ($T$). For massive-scale systems (millions of interactions), approximations or "sparse" kernel methods would be necessary.
  • Reward-Based Similarity: Currently, the similarity estimation is based primarily on context distributions. The authors suggest that incorporating observed rewards into the similarity metric could make the transfer of knowledge even more accurate.
  • Deep Learning Integration: While this paper focuses on the elegant math of Reproducing Kernel Hilbert Spaces (RKHS), a natural next step would be integrating these multi-task principles into Deep Reinforcement Learning architectures.

Summary updated

BibTeX
@inproceedings{deshmukh2017multi,
  author = {Aniket Anand Deshmukh and Ürün Dogan and Clayton Scott},
  title = {{Multi-Task Learning for Contextual Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=Hy-otL-dWH},
}
Figure