Probabilistic task modelling for meta-learning

Cuong C. Nguyen, Thanh-Toan Do, Gustavo Carneiro

Abstract

Probabilistic Task Modelling (PTM) is a generative framework that treats machine learning tasks as mixtures of latent "task-themes." By integrating Variational Auto-encoders (VAEs) with Latent Dirichlet Allocation (LDA), PTM enables the quantification of task uncertainty and similarity without the computational burden of task-specific fine-tuning. This approach allows for more efficient meta-learning by identifying relevant tasks and predicting performance on unseen data.

Introduction

In the field of meta-learning, the "black box" assumption often prevails, where all training tasks are treated as equally relevant to the target domain. However, tasks vary in difficulty, redundancy, and relevance. Traditional methods for measuring task similarity, such as Task2Vec, require training probe networks for every new task, which is computationally intensive and impractical for few-shot scenarios. PTM offers a probabilistic alternative that represents tasks as distributions over latent themes, capturing both uncertainty and relatedness efficiently.

Methodology

The PTM framework is built on the analogy that a task is a collection of data points, much like a document is a collection of words.

  1. Latent Embeddings: A VAE compresses high-dimensional data points into a latent embedding space.
  2. Gaussian LDA: Instead of discrete topics, PTM uses "task-themes" represented as Gaussian distributions in the embedding space. Each task $i$ is defined by a mixture $\pi_i$ of these themes.
  3. Inference: The model employs online Variational Inference (VI) for scalability and an Empirical Bayes approach to prevent overfitting by splitting task data into support and query sets.
Probabilistic graphical model of PTM showing the relationship between task-themes, embeddings, and observed data.

Key Insights and Results

The Task-Theme Simplex

By mapping tasks to a simplex, PTM provides a geometric interpretation of task relationships. For instance, a task might be identified as a specific mixture of "Human," "Animal," and "Furniture" themes based on its data distribution. This allows for a visual and mathematical representation of how tasks relate to one another.

A ternary plot illustrating a task's position on the task-theme simplex, representing its mixture of latent semantic categories.

Performance and Efficiency

  • Uncertainty as a Predictor: A significant finding is the correlation between task entropy and model performance. Higher uncertainty in the task-theme mixture (entropy) strongly correlates with lower accuracy in meta-learners like MAML. This allows PTM to serve as a "weather report," predicting task difficulty before execution.
  • Asymmetric Similarity: By using Kullback-Leibler (KL) divergence, PTM captures asymmetric relationships where learning a complex task might assist with a simpler one, but not necessarily vice-versa.
  • Benchmarking: Evaluations on Omniglot and mini-ImageNet confirm that PTM successfully clusters tasks by semantic similarity without explicit labels. In lifelong learning scenarios, PTM-based active task selection consistently outperforms random and deterministic baselines like Task2Vec.

Conclusion

PTM provides a robust framework for task selection and uncertainty estimation in meta-learning. By representing tasks as probabilistic mixtures, it offers a scalable way to navigate complex task distributions. Future work aims to incorporate the learner's dynamic state to further optimize task selection and address potential issues like theme collapse during training.

Summary updated

BibTeX
@inproceedings{nguyen2021probabilistic,
  author = {Cuong C. Nguyen and Thanh-Toan Do and Gustavo Carneiro},
  title = {{Probabilistic task modelling for meta-learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=xlut_6a6IRz},
}
Figure