Semi-Supervised Neural Text Generation by Joint Learning of Natural Language Generation and Natural Language Understanding Models

Raheel Qader, François Portet, Cyril Labbé

Introduction

Deep learning has significantly advanced End-to-End (E2E) Natural Language Generation (NLG), where models learn to map structured Meaning Representations (MRs)—such as name[The Eagle], food[French]—directly into natural language sentences. However, these models are notoriously "data-hungry," typically requiring thousands of manually paired MR-text examples to achieve high performance. In real-world applications, such paired datasets are expensive and time-consuming to curate.

Conversely, "unpaired" data, such as collections of raw text or standalone database records, is often abundant but remains largely untapped by standard supervised learning methods. This paper addresses this bottleneck by introducing a semi-supervised framework that leverages the inherent relationship between Natural Language Generation (NLG) and Natural Language Understanding (NLU) to allow them to learn from each other using unlabeled data.

Methodology

The authors propose a joint NLG/NLU learning scheme based on the principle of cycle consistency, often referred to as dual learning. The architecture consists of two primary sequence-to-sequence models:

  1. NLG Model: Responsible for mapping a structured MR to a natural language string.
  2. NLU Model: Responsible for mapping a natural language string back to its corresponding MR.
The joint NLG/NLU learning architecture featuring cycle-consistency loops for semi-supervised training.

The Learning Loops

The framework utilizes two distinct learning paths:

  • Supervised Learning: When paired MR-text data is available, both models are trained using standard cross-entropy loss to minimize the difference between predicted and ground-truth outputs.
  • Unsupervised Learning (Cycle Consistency): When only an MR is available, the NLG model generates a sentence, which the NLU model then attempts to reconstruct back into the original MR. Conversely, when only raw text is available, the NLU model extracts an MR, which the NLG model uses to reconstruct the original text.

Overcoming the Differentiability Hurdle

A significant technical challenge in optimizing these loops is that "sampling" a word from a probability distribution is a discrete, non-differentiable operation, which prevents the flow of gradients during backpropagation. To resolve this, the authors employ the Straight-Through Gumbel-Softmax estimator. This technique allows gradients to flow through the discrete text generation step, enabling the entire system to be optimized end-to-end.

Experimental Setup

The models were evaluated on two benchmarks representing different levels of complexity:

  • E2E NLG Challenge Dataset: A clean, crowdsourced dataset in the restaurant recommendation domain (approx. 51k samples). It is characterized by high redundancy, providing multiple reference sentences for each MR.
  • Wikipedia Company Dataset: A more challenging and "ecological" dataset consisting of Wikipedia infoboxes (MRs) and article abstracts. This dataset is noisier, as the text often contains information not present in the MR and vice versa.

Key Results and Discussion

The experiments demonstrate that the joint learning approach significantly enhances performance, particularly when annotated data is scarce.

Performance comparison showing the benefit of incorporating unpaired data across different amounts of paired training data.

Performance Gains

On the E2E dataset, the semi-supervised model achieved a BLEU score of 0.64 and a ROUGE-L of 0.67, outperforming the supervised-only baseline (0.60 BLEU). Notably, it matched the performance of E2E challenge winners without requiring complex pre-processing or re-scoring heuristics. On the noisier Wikipedia dataset, the joint model showed a substantial improvement in Information Coverage (increasing from 2.26 to 2.87 in human evaluations), suggesting that the semi-supervised approach is better at capturing diverse linguistic expressions.

NLU as a Regularizer

The NLU model effectively acts as a "critic" for the NLG model. By forcing the NLG model to produce text that the NLU model can accurately reconstruct into the original data, the system ensures that the generated text remains factually grounded. The authors also found that balancing the tasks is critical; the NLU task is generally easier to learn, so weighting the NLG loss more heavily ($\alpha=1, \gamma=1$) and the NLU loss more lightly ($\beta=0.1, \delta=0.1$) prevented the NLU model from dominating the training process.

Conclusion

This research demonstrates that joint learning of NLG and NLU models provides a robust framework for semi-supervised text generation. By utilizing unpaired data through cycle-consistency loops, the proposed model achieves state-of-the-art results while reducing the dependency on expensive annotated datasets. Future work may involve integrating "pointer-generator" networks to handle out-of-vocabulary terms and exploring Reinforcement Learning to further optimize the naturalness of the generated text.

Summary updated

BibTeX
@inproceedings{qader2019semi,
  author = {Raheel Qader and François Portet and Cyril Labbé},
  title = {{Semi-Supervised Neural Text Generation by Joint Learning of Natural Language Generation and Natural Language Understanding Models}},
  booktitle = {INLG},
  year = {2019},
  doi = {10.18653/v1/w19-8669},
}
Figure