Multi-task learning on the edge: cost-efficiency and theoretical optimality

Sami Fakhry, Romain Couillet, Malik TiomokoarXiv 2021

Introduction

Modern machine learning faces a fundamental tension between two dominant trends: Multi-Task Learning (MTL) and Edge Computing. While MTL thrives on aggregating diverse datasets to enhance model performance, Edge Computing prioritizes keeping data local to conserve bandwidth, reduce carbon footprints, and protect privacy. Traditionally, MTL requires centralizing data, which is prohibitively expensive in distributed environments. Conversely, existing edge methods often suffer from a lack of global context or "negative transfer," where unrelated source data degrades performance on a target task. This paper introduces a distributed version of the Multi-Task Learning Supervised Principal Component Analysis (MTL-SPCA) algorithm to bridge this gap.

Methods: Distributed MTL-SPCA

The proposed approach builds upon MTL-SPCA, a spectral method that projects data onto a subspace of weighted data classes. The core innovation lies in two areas: optimal labeling and a communication-efficient distributed architecture.

Optimal Labeling

Unlike standard methods that assign fixed labels (e.g., $\pm 1$) across all tasks, this method calculates task-dependent "optimal labels." These labels are mathematically tuned to minimize classification error for a specific target task, effectively filtering out noise from unrelated source tasks and preventing negative transfer.

Distributed Architecture

The authors demonstrate that the entire MTL-SPCA pipeline requires only the empirical means (sufficient statistics) of each class from each client, rather than raw data matrices.

Distributed architecture of MTL-SPCA showing the exchange of class means between clients and a central coordinator.

As shown in the architecture above, clients compute local class means and transmit these small vectors to a Central Client. The Central Client estimates inter-task similarity and calculates an optimal projection vector ($V_t$), which the Target Client then uses for local classification. This shift results in an $O(n)$-fold reduction in data transmission costs while maintaining data locality.

Experimental Evaluation

The researchers evaluated the algorithm using synthetic Gaussian mixtures and real-world benchmarks, including the Amazon Review Dataset (Books, DVDs, Electronics, Kitchen) and the Office31 + Caltech computer vision benchmark.

Key Results

The distributed algorithm achieves performance parity with its centralized counterpart, confirming no accuracy loss during the transition to the edge.

Error rate as a function of task relatedness ($\beta$), comparing MTL-SPCA against theoretical predictions and baselines.

As illustrated in the results for synthetic data, the empirical error rates of MTL-SPCA closely track the theoretical optimality curves. Furthermore, the method demonstrates significant resilience to negative transfer. While "naive" SPCA (N-SPCA) often sees increased error rates when adding unrelated tasks (low $\beta$), MTL-SPCA remains stable or improves. Experiments on real-world datasets also showed that adding source tasks consistently improves performance until an asymptotic saturation point is reached, effectively discovering affinities between tasks.

Conclusion and Future Work

By sharing only sufficient statistics, the distributed MTL-SPCA provides a "sober" approach to AI that aligns with low-carbon technology goals while maintaining theoretical robustness. While the current framework assumes Gaussian distributions and focuses on binary classification, future work will explore extensions to highly non-Gaussian manifolds and fully decentralized, peer-to-peer implementations.

Summary updated

BibTeX
@misc{fakhry2021multi,
  author = {Sami Fakhry and Romain Couillet and Malik Tiomoko},
  title = {{Multi-task learning on the edge: cost-efficiency and theoretical optimality}},
  year = {2021},
  eprint = {2110.04639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.04639},
}
Figure