Skip to main content
QUICK REVIEW

[Paper Review] Multi-task learning to improve natural language understanding

Stefan Constantin, Jan Niehues|arXiv (Cornell University)|Dec 17, 2018
Topic ModelingComputer Science14 references5 citations
TL;DR

This paper proposes a multi-task learning approach that improves natural language understanding by jointly training on in-domain synthetic data and out-of-domain real data from movie and TV subtitles. By sharing the encoder between tasks in an attention-based sequence-to-sequence model, the method boosts F1-score from 80.76% to 84.98% on a small synthetic airline travel dataset, demonstrating improved generalization without fine-tuning.

ABSTRACT

Recently advancements in sequence-to-sequence neural network architectures have led to an improved natural language understanding. When building a neural network-based Natural Language Understanding component, one main challenge is to collect enough training data. The generation of a synthetic dataset is an inexpensive and quick way to collect data. Since this data often has less variety than real natural language, neural networks often have problems to generalize to unseen utterances during testing. In this work, we address this challenge by using multi-task learning. We train out-of-domain real data alongside in-domain synthetic data to improve natural language understanding. We evaluate this approach in the domain of airline travel information with two synthetic datasets. As out-of-domain real data, we test two datasets based on the subtitles of movies and series. By using an attention-based encoder-decoder model, we were able to improve the F1-score over strong baselines from 80.76 % to 84.98 % in the smaller synthetic dataset.

Motivation & Objective

  • To address the challenge of limited in-domain training data for natural language understanding (NLU) in low-resource domains like airline travel.
  • To improve generalization of neural NLU models trained on synthetic datasets, which often lack linguistic diversity.
  • To evaluate whether out-of-domain real data (e.g., movie subtitles) can enhance performance when jointly trained with in-domain synthetic data.
  • To investigate the effectiveness of shared encoder multi-task learning in sequence-to-sequence models for NLU.
  • To assess whether fine-tuning improves performance after multi-task training with real out-of-domain data.

Proposed method

  • Uses an attention-based encoder-decoder model with shared embedding and encoder layers across both in-domain synthetic data and out-of-domain real data (OpenSubtitles QA and dialog datasets).
  • Employs gradient accumulation over multiple mini-batch groups to stabilize training and avoid perplexity spikes during optimization.
  • Applies the Adam optimizer with a training schedule that processes one task per mini-batch group, but accumulates gradients across t groups to update weights every t steps.
  • Trains the multi-task model first, then performs fine-tuning on the in-domain task using the same training data.
  • Evaluates performance using F1-score and intent accuracy on test sets from the ATIS benchmark, comparing to single-task baselines.
  • Uses two synthetic datasets (ATIS small and medium) and two out-of-domain datasets (OpenSubtitles QA and dialog) for evaluation.

Experimental results

Research questions

  • RQ1Can joint training of in-domain synthetic data and out-of-domain real data improve F1-score in natural language understanding tasks?
  • RQ2Does sharing only the encoder layer in a multi-task sequence-to-sequence model lead to better generalization than full parameter sharing or no sharing?
  • RQ3How does multi-task learning compare to single-task learning when only synthetic data is available?
  • RQ4Does fine-tuning after multi-task training further improve performance on in-domain NLU tasks?
  • RQ5Can noisy or structurally mismatched out-of-domain data (e.g., QA vs. dialog) still provide useful inductive bias for in-domain NLU?

Key findings

  • The multi-task learning approach improved the F1-score from 80.76% to 84.98% on the ATIS small synthetic dataset, a 4.22 percentage point gain over the single-task baseline.
  • On the larger ATIS medium dataset, the multi-task model achieved an F1-score of 93.27% with the OpenSubtitles dialog dataset, just 0.35 points below the single-task model trained on real ATIS data (93.62%).
  • The best-performing multi-task model (with OpenSubtitles dialog) achieved a test F1-score of 84.98% on the ATIS small dataset, outperforming the single-task baseline by 4.22 percentage points.
  • Fine-tuning after multi-task training led to negligible improvements in F1-score, suggesting that the multi-task model already achieved strong performance without further tuning.
  • The model trained with OpenSubtitles QA data achieved a test F1-score of 83.08% on the ATIS small dataset, a 2.32 percentage point improvement over the baseline.
  • Intent accuracy also improved significantly, with a 1.79 percentage point gain on the ATIS small dataset when using the OpenSubtitles dialog dataset in multi-task learning.

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.