Skip to main content
QUICK REVIEW

[Paper Review] Modelling Latent Skills for Multitask Language Generation

Kris Cao, Dani Yogatama|arXiv (Cornell University)|Feb 21, 2020
Topic ModelingComputer Science49 references4 citations
TL;DR

This paper proposes a latent variable sequence-to-sequence model that explicitly models shared latent skills across multiple language generation tasks using a mixture of Gaussians over task embeddings. The model improves multitask performance and enables robust few-shot adaptation via inference in the latent task space, outperforming standard fine-tuning in stability and achieving comparable overall performance.

ABSTRACT

We present a generative model for multitask conditional language generation. Our guiding hypothesis is that a shared set of latent skills underlies many disparate language generation tasks, and that explicitly modelling these skills in a task embedding space can help with both positive transfer across tasks and with efficient adaptation to new tasks. We instantiate this task embedding space as a latent variable in a latent variable sequence-to-sequence model. We evaluate this hypothesis by curating a series of monolingual text-to-text language generation datasets - covering a broad range of tasks and domains - and comparing the performance of models both in the multitask and few-shot regimes. We show that our latent task variable model outperforms other sequence-to-sequence baselines on average across tasks in the multitask setting. In the few-shot learning setting on an unseen test dataset (i.e., a new task), we demonstrate that model adaptation based on inference in the latent task space is more robust than standard fine-tuning based parameter adaptation and performs comparably in terms of overall performance. Finally, we examine the latent task representations learnt by our model and show that they cluster tasks in a natural way.

Motivation & Objective

  • To improve multitask conditional language generation by modeling shared latent skills across diverse tasks.
  • To enable efficient adaptation to new, unseen tasks with few examples using inference in the latent task space.
  • To demonstrate that explicit modeling of task-specific skills leads to better generalization and performance than standard baselines.
  • To evaluate the model's ability to cluster tasks meaningfully in the learned latent space.

Proposed method

  • The model uses a sequence-to-sequence architecture with a latent variable z drawn from a mixture of Gaussians, where each component corresponds to a training task.
  • The latent task variable z is sampled during generation and conditions both the encoder and decoder, allowing the same input to produce different outputs based on the skill.
  • The model is trained with weak supervision using dataset identifiers, which provides an inductive bias for shared skills within each task.
  • Inference in the latent space enables few-shot adaptation without updating model parameters, by sampling z that best aligns with few-shot examples.
  • The latent space is probed to analyze whether tasks cluster naturally, indicating meaningful skill representations.
  • The model is evaluated in both multitask and few-shot learning settings across diverse text-to-text generation tasks.

Experimental results

Research questions

  • RQ1Can modeling latent skills in a continuous task embedding space improve performance across multiple language generation tasks?
  • RQ2Does inference-based adaptation in the latent task space outperform standard fine-tuning in few-shot settings?
  • RQ3Are the learned latent task representations semantically coherent, with similar tasks clustering together?
  • RQ4How does the model’s performance compare to strong baselines in multitask and few-shot regimes?

Key findings

  • The proposed model outperforms strong sequence-to-sequence baselines in the multitask setting, achieving improved average performance across all tasks.
  • In the few-shot setting, inference-based adaptation in the latent space achieves performance comparable to standard fine-tuning while being more robust to hyperparameter choices.
  • The model demonstrates positive transfer across tasks, with performance gains particularly notable on low-resource tasks.
  • Probing the latent space reveals that tasks naturally cluster according to semantic similarity, indicating that the model learns meaningful, disentangled skill representations.
  • The model’s performance is sensitive to the number of tasks, suggesting that performance may degrade if the number of tasks is not fixed in advance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.