Memory Constraint Online Multitask Classification

Giovanni Cavallanti, Nicolò Cesa-BianchiarXiv 2012

Abstract

We investigate online kernel algorithms which simultaneously process multiple classification tasks while a fixed constraint is imposed on the size of their active sets. We focus in particular on the design of algorithms that can efficiently deal with problems where the number of tasks is extremely high and the task data are large scale. Two new projection-based algorithms are introduced to efficiently tackle those issues while presenting different trade-offs on how the available memory is managed with respect to the prior information about the learning tasks. Theoretically sound budget algorithms are devised by coupling the Randomized Budget Perceptron and the Forgetron algorithms with the multitask kernel. We show how the two seemingly contrasting properties of learning from multiple tasks and keeping a constant memory footprint can be balanced, and how the sharing of the available space among different tasks is automatically taken care of. Experiments show that online kernel multitask algorithms running on a budget can efficiently tackle real-world learning problems involving multiple tasks.

Introduction

In the domain of online kernel learning, algorithms update their decision boundaries by maintaining a subset of past training examples known as the "active set." While effective, this approach suffers from a fundamental scalability flaw: the active set grows unbounded as the algorithm encounters more data and makes mistakes over time. This "memory explosion" is particularly acute in multitask learning (MTL) environments, where a system must simultaneously learn multiple related tasks—such as personalized filters for thousands of users or sensor networks across various locations.

For edge devices and real-time systems with strict hardware limitations, storing an ever-expanding dataset is impossible. This paper addresses the challenge of scaling multitask kernel learning to large-scale data streams by introducing budget-constrained algorithms that cap memory usage without sacrificing the collaborative benefits of MTL.

The Multitask Kernel Framework

The foundation of this work is the multitask kernel, which utilizes a graph Laplacian matrix to encode prior knowledge regarding the relationships between tasks. By representing tasks as nodes in a graph, the kernel allows information to flow between related tasks.

Crucially, the authors demonstrate that the multitask kernel acts as an implicit memory manager. When tasks are highly related, the algorithm pools the memory budget to build a shared model. Conversely, when tasks are distinct, the kernel naturally partitions the available active set space among the tasks, ensuring that memory is allocated where it is most needed to maintain predictive accuracy.

Budgeted Online Algorithms

To maintain a fixed memory footprint, the authors propose four multitask variants of established budget algorithms:

  1. Multitask Budget Projectron (MTBPRJ): This algorithm employs a projection strategy. When the budget is full, instead of simply deleting an old example, it projects the information from the evicted instance onto the remaining active set. This updates the weights of existing support vectors to retain the mathematical influence of the removed data point.
  2. MTBPRJ-2 (Novel): A significant refinement of the Projectron. Standard projection often fails for isolated tasks because their unique task markers do not align with others in the active set. MTBPRJ-2 ignores task markers during the projection step, projecting the underlying data features instead. This allows for much higher information retention and compression efficiency.
  3. Multitask Randomized Budget Perceptron (MTRBP): A simpler, theoretically grounded approach that randomly evicts an example when the budget limit is reached. The authors provide formal mistake bounds for this algorithm in a multitask setting.
  4. Multitask Self-Tuned Forgetron (MTFORG): This variant evicts the oldest example in the active set and applies a systematic decay to the weights of remaining instances, preventing the decision boundary from becoming unstable as the model evolves.

Experimental Evaluation

The algorithms were evaluated on three diverse real-world datasets to test their resilience under varying dimensionality and task counts:

  • PKDD 2006 Spam Task A: 3 tasks with high dimensionality ($d = 106,780$).
  • School Binary Dataset: 139 tasks with low dimensionality ($d = 28$).
  • Sentiment Dataset: 4 tasks with very high dimensionality ($d = 473,856$).

Performance was measured against an unconstrained baseline consisting of independent Perceptrons for each task. The budget constraints were set at aggressive levels: 25%, 10%, and 5% of the unconstrained active set size.

Key Results and Insights

The experiments yielded several critical findings for the deployment of online MTL systems:

  • Efficiency at Scale: At a 25% budget, all four multitask algorithms matched the F-measure of the unconstrained baseline across all datasets, provided the task relationship graph was utilized. This indicates that 75% of the memory used by standard kernel methods is often redundant.
  • The Power of Projection: MTBPRJ-2 proved exceptionally resilient under extreme pressure. On the 139-task School dataset, even with a budget of only 5%, it achieved an F-measure of 39.6%, slightly outperforming the unconstrained baseline (39.1%). This suggests that the budget constraint acts as a form of regularization, preventing the model from overfitting to noise in the data stream.
  • Task-Agnostic Benefits: The success of MTBPRJ-2 highlights that strictly adhering to task boundaries during memory compression is counterproductive. By treating the data features as the primary unit of information during projection, the algorithm maintains a more robust global representation of the feature space.

Limitations and Future Work

While the proposed methods offer significant memory savings, certain challenges remain. The current framework assumes a static task relationship graph is known a priori; it does not yet support the dynamic discovery of task relationships. Additionally, while memory is capped, the computational complexity of matrix operations involving the task interaction matrix scales quadratically ($O(k^2)$) with the number of tasks, which may require further optimization for systems with millions of tasks. Future research will also aim to close the theoretical gap regarding the "shifting" analysis for the Forgetron variant to better understand performance under non-stationary data distributions.

Summary updated

BibTeX
@misc{cavallanti2012memory,
  author = {Giovanni Cavallanti and Nicolò Cesa-Bianchi},
  title = {{Memory Constraint Online Multitask Classification}},
  year = {2012},
  eprint = {1210.0473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1210.0473},
}
Figure