TL;DR
Variational Multi-Task Learning (VMTL) is a new probabilistic framework that significantly boosts performance in multi-task settings where data is scarce. By using Gumbel-Softmax priors to automatically learn how tasks relate, VMTL jointly optimizes both feature representations and classifiers, setting new state-of-the-art benchmarks across five major datasets.
What Problem Does This Paper Address?
Multi-task learning (MTL) is built on a simple premise: learning related tasks together should be better than learning them in isolation. However, realizing this benefit is difficult when each task has very little training data. In such "low-data" regimes, models are prone to overfitting, and "negative transfer"—where irrelevant information from one task hurts another—becomes a major risk.
Most existing MTL methods focus on sharing either feature representations or classifiers, but rarely both in a unified way. Furthermore, determining exactly how tasks are related is often left to manual design or rigid regularizers. The authors of this paper set out to create a framework that can automatically discover task relationships and leverage shared knowledge for both representations and classifiers simultaneously.
Methods
The authors introduce Variational Multi-Task Learning (VMTL), casting the problem as one of variational Bayesian inference.
Key innovations include:
- Joint Latent Variables: Both the feature representations ($z$) and the classifiers ($w$) are treated as latent variables. This allows the model to capture the inherent uncertainty of learning from limited data.
- Gumbel-Softmax Priors: Instead of using fixed priors, VMTL defines the prior for a specific task as a learnable mixture of the variational posteriors of all other tasks. The mixing weights are learned using the Gumbel-Softmax technique, which allows the model to "select" which tasks are most relevant while remaining end-to-end differentiable.
- Unified Inference: The model jointly infers the posteriors for representations and classifiers, as illustrated in the graphical model below.
- Amortized Version (VMTL-AC): To improve efficiency and robustness, the authors also propose an amortized version that uses inference networks to generate the parameters of the variational posteriors.
Datasets
The framework was evaluated on five diverse benchmarks:
- Office-Home: 65 object categories across four domains (Art, Clipart, Product, Real-world).
- Office-Caltech: 10 categories shared across four domains.
- ImageCLEF: 12 categories across four public datasets.
- DomainNet: A massive dataset with 345 categories across six domains. This is the first time DomainNet has been used for this specific multi-task learning setting.
- Rotated MNIST: Used specifically to test the framework's performance on regression tasks (predicting rotation angles).
Key Insights and Ideas
- Data-Driven Relatedness: The Gumbel-Softmax priors successfully learn intuitive task relationships. For example, correlation heatmaps generated by the model on the Office-Home dataset reveal that "Real-World" images are more closely related to "Art" than to "Clipart," allowing for more effective knowledge transfer.
- Sparsity Prevents Negative Transfer: The learned mixing weights tend to be sparse. By focusing only on the most relevant tasks, VMTL avoids the performance degradation often caused by trying to force-share knowledge between unrelated tasks.
- Uncertainty is Key: By using a Bayesian approach, the model handles the "noise" of limited data better than deterministic baselines. This is particularly evident in the 5% training data split, where VMTL shows its largest performance gains.
- Amortization for Robustness: Interestingly, the amortized version (VMTL-AC) proved to be more robust against adversarial attacks. The authors suggest that using mean feature representations to generate classifiers acts as a form of regularization.
Key Results
VMTL consistently outperformed both single-task baselines and state-of-the-art multi-task methods.
- Classification Accuracy: On the Office-Home dataset with only 5% training data, VMTL achieved 58.3% accuracy, significantly higher than the deterministic BMTL baseline (50.4%) and the single-task STL baseline (49.2%).
- Consistency Across Scales: The performance gains held up even on the large-scale DomainNet dataset, where VMTL achieved a mean accuracy of 33.6% compared to 28.6% for the next best previous method.
- Regression Performance: In the Rotated MNIST task, VMTL achieved the lowest Normalized Mean Squared Error (NMSE) across almost all digits, proving the framework's versatility beyond simple classification.
- Efficiency: While Bayesian methods can be slow, VMTL-AC converges faster than the standard VMTL, making it practical for larger datasets.
Limitations and Future Work
The authors acknowledge that while 10 Monte Carlo samples are sufficient for good performance, the sampling process does introduce a slight runtime overhead compared to deterministic models. Additionally, while the model handles classification and regression well, extending this variational approach to more complex structured outputs (like semantic segmentation or object detection) remains an open area for future research. Finally, the authors noted that as the amount of training data per task increases (e.g., to 60%), the relative benefit of multi-task transfer decreases as individual tasks become easier to solve independently.
Summary updated