Semantically Conditioned LSTM-based Natural Language Generation for Spoken Dialogue Systems

Tsung-Hsien Wen, Milica Gasic, Nikola Mrksic, Pei-hao Su, David Vandyke, Steve J. Young

Abstract: Natural Language Generation (NLG) is a critical component of Spoken Dialogue Systems (SDS), responsible for converting internal system representations into human-like utterances. Traditional methods often struggle with the trade-off between the reliability of rule-based templates and the flexibility of statistical models. This paper introduces the Semantically Controlled Long Short-term Memory (SC-LSTM) network, which jointly learns sentence planning and surface realization. By incorporating a specialized "reading gate" to track semantic information, the SC-LSTM ensures high semantic fidelity and naturalness, significantly outperforming standard recurrent neural networks and rule-based baselines in both objective and subjective evaluations.

Introduction

In modern Spoken Dialogue Systems like Siri or Alexa, the NLG component serves as the primary interface with the user. Historically, developers have relied on "canned" templates—rigid rules that are reliable but sound robotic and are difficult to scale to new domains. Conversely, corpus-based statistical methods offer more variety but often suffer from semantic errors, such as repeating information or omitting key details (the "forgetfulness" problem of standard RNNs).

Researchers at the Cambridge University Engineering Department proposed an elegant solution: the Semantically Controlled LSTM (SC-LSTM). This model teaches a neural network to "keep track" of what it has already said, creating a system that is both highly natural and remarkably accurate.

Methodology: The SC-LSTM Architecture

The core innovation of this work is the modification of the standard LSTM cell to include a semantic control mechanism. While standard LSTMs use gates to manage information flow, they lack an explicit mechanism to ensure that all required semantic slots are mentioned exactly once.

The SC-LSTM cell architecture featuring the additional reading gate ($r_t$) for semantic control.

As shown in Figure 1, the authors introduced a Reading Gate ($r_t$). This gate is conditioned on a Dialogue Act (DA) vector, which represents the specific information the system needs to convey (e.g., inform(name=Dosa, food=Indian, price=cheap)). As the model generates a sentence word-by-word, the reading gate acts as a dynamic checklist. When the model generates a word associated with a specific slot (like "cheap" for the price slot), the gate "checks off" that information in the DA vector, reducing its influence on future time steps. This dual-optimization ensures that no information is lost and no information is redundantly repeated.

Semantic Tracking in Action

The effectiveness of the reading gate can be visualized by observing the decay of feature values as a sentence is generated. The model learns the relationship between specific words and semantic slots automatically during training, eliminating the need for expensive word-level alignment labels.

Visualization of semantic feature values decaying as information is realized during sentence generation in restaurant and hotel domains.

Figure 4 illustrates this "checklist" behavior across two different domains. In the restaurant domain (a), as the model generates the word "Korean," the feature value for food=VALUE drops to zero. Similarly, in the hotel domain (b), the near=VALUE feature decays as the model produces the phrase "near haight." This mechanism allows the model to stay strictly "on message" while maintaining the fluency of a deep neural network.

Experimental Evaluation

The SC-LSTM was trained and tested on two domain-specific datasets collected via Amazon Mechanical Turk: SF Restaurant (~5,000 utterances) and SF Hotel (~5,000 utterances). These datasets provided a "gold standard" of colloquial, varied human language.

Key Results

  • Objective Performance: The "Deep" SC-LSTM achieved the highest BLEU-4 scores and the lowest Slot Error Rate (SER) across both domains, proving it is more accurate than standard RNNs.
  • Human Preference: In subjective trials, human judges rated the SC-LSTM significantly higher for both Informativeness (2.58/3) and Naturalness (2.51/3).
  • Direct Comparison: In pairwise tests, humans preferred SC-LSTM outputs over traditional class-based language models more than 62% of the time.

Conclusion and Future Work

The SC-LSTM represents a major step forward in making chatbots sound more human without sacrificing factual reliability. By integrating sentence planning directly into the neural architecture via the reading gate, the model overcomes the primary weaknesses of previous statistical NLG methods.

Future work aims to address the "Don't Care" problem—where binary or null values are harder for the gate to track—and to extend the model's context to include entire conversation histories rather than single utterances. This will pave the way for even more context-aware and natural digital assistants.

Paper Citation: Wen, T. H., Gašić, M., Mrkšić, N., Su, P. H., Vandyke, D., & Young, S. (2015). Semantically Conditioned LSTM-based Natural Language Generation for Spoken Dialogue Systems. arXiv preprint arXiv:1508.01745v2.

Summary updated

BibTeX
@inproceedings{wen2015semantically,
  author = {Tsung-Hsien Wen and Milica Gasic and Nikola Mrksic and Pei-hao Su and David Vandyke and Steve J. Young},
  title = {{Semantically Conditioned LSTM-based Natural Language Generation for Spoken Dialogue Systems}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1199},
}
Figure