Multitask Online Mirror Descent

Nicolò Cesa-Bianchi, Pierre Laforgue, Andrea Paudice, Massimiliano Pontil

Abstract

We introduce and analyze MT-OMD, a multitask generalization of Online Mirror Descent (OMD) which operates by sharing updates between tasks. We prove that the regret of MT-OMD is of order $\sqrt{1 + \sigma^2(N-1)}\sqrt{T}$, where $\sigma^2$ is the task variance according to the geometry induced by the regularizer, $N$ is the number of tasks, and $T$ is the time horizon. Whenever tasks are similar, that is $\sigma^2 \le 1$, our method improves upon the $\sqrt{NT}$ bound obtained by running independent OMDs on each task. We further provide a matching lower bound, and show that our multitask extensions of Online Gradient Descent and Exponentiated Gradient, two major instances of OMD, enjoy closed-form updates, making them easy to use in practice. Finally, we present experiments which support our theoretical findings.

Introduction

In many real-world machine learning applications, we encounter the "cold start" problem: learning a new task efficiently with minimal initial data. Multitask Learning (MTL) addresses this by sharing knowledge across related tasks. While MTL is well-established in batch settings, its application to online learning—where data arrives sequentially and requires immediate prediction—remains a significant challenge.

Traditional online learning algorithms, such as Online Mirror Descent (OMD), typically treat tasks independently. For $N$ tasks, one would run $N$ separate instances of OMD. However, this approach fails to exploit task correlations, such as those found in personalized recommendation systems or sensor networks. This paper introduces MT-OMD, a framework that generalizes OMD to the multitask setting by leveraging non-Euclidean geometries to share updates effectively.

Methodology: MT-OMD

The core innovation of MT-OMD is the use of a compound regularizer that incorporates task relationships.

The Interaction Matrix

The relationship between tasks is encoded in a symmetric positive definite matrix $A$. This matrix is often derived from a graph Laplacian, where edges represent similarities between tasks.

Shared Updates and Geometry

In standard OMD, a gradient update for one task only affects that task's model. In MT-OMD, a portion of the update is shared across all tasks. The degree of sharing is governed by the inverse of the interaction matrix, $A^{-1}$. Crucially, by applying $A$ to the regularizer function $\psi(A^{1/2} \cdot)$, the algorithm ensures that sharing respects the specific geometry of the problem (e.g., the KL-divergence for probability simplices).

Adaptive Sharing

The authors also propose Hedge-MT-OMD, an extension that adaptively learns the optimal level of sharing when task similarities are not known precisely in advance.

Theoretical Contributions

The primary theoretical result is a new regret bound. The error scales with: $$R_T \approx \sqrt{1 + \sigma^2(N-1)}\sqrt{T}$$ where $\sigma^2$ represents the task variance.

  • If tasks are identical ($\sigma=0$), the regret matches that of a single-task learner.
  • If tasks are highly dissimilar ($\sigma \ge 1$), the algorithm's performance gracefully degrades to that of $N$ independent learners.

This framework is particularly powerful for high-dimensional sparse problems, as it allows for logarithmic dependence on the dimension $d$ by utilizing entropic regularizers (e.g., in the Exponentiated Gradient version, MT-EG).

Empirical Evaluation

The researchers validated MT-OMD across three diverse scenarios:

  1. Marketing Analytics (Lenk Dataset): Testing MT-OGD (Online Gradient Descent) on computer ratings from 180 individuals. The multitask approach significantly outperformed independent and single-task baselines.
  2. Character Recognition (EMNIST): Testing MT-EG (Exponentiated Gradient) on 61 binary classification tasks. MT-EG demonstrated robustness, outperforming baselines even when task variance was high.
  3. Synthetic Benchmarks: Controlled experiments confirmed that performance scales as predicted by the task variance $\sigma^2$.

Conclusion and Future Work

MT-OMD provides a mathematically rigorous foundation for multitask online learning across various geometries. It is especially effective in asynchronous settings where tasks are active at different times. Future research directions include adaptively learning the interaction matrix $A$ from scratch and extending the analysis to strongly convex loss functions to achieve logarithmic regret.

Summary updated

BibTeX
@article{cesabianchi2022multitask,
  author = {Nicolò Cesa-Bianchi and Pierre Laforgue and Andrea Paudice and Massimiliano Pontil},
  title = {{Multitask Online Mirror Descent}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=zwRX9kkKzj},
}
Figure