Abstract
Traditional Natural Language Generation (NLG) in spoken dialogue systems often relies on rigid templates or requires expensive, manually-aligned data. This paper presents the Semantically Conditioned LSTM (SC-LSTM), a neural architecture that jointly learns sentence planning and surface realization. By incorporating a specialized "reading gate" to track semantic slots, the SC-LSTM generates fluent, accurate, and varied responses from unaligned data, significantly outperforming existing baselines in both objective metrics and human preference.
Introduction
Natural Language Generation (NLG) serves as the critical interface between a dialogue system's internal logic and the user. Historically, developers have faced a trade-off between robust but repetitive rule-based systems and flexible but data-hungry corpus-based models. The latter often require fine-grained alignments between semantic slots and specific words—a process that is both costly and prone to error. Without such alignments, neural models frequently suffer from "hallucinations" or omit vital information.
The SC-LSTM addresses these challenges by providing an end-to-end trainable framework that requires no manual alignment. It produces natural, human-like variation while ensuring that all required information (slots) is accurately conveyed to the user.
The SC-LSTM Architecture
The core innovation is the SC-LSTM cell, which extends the standard Long Short-Term Memory (LSTM) architecture with a mechanism for semantic control.
As shown in the figure above, the model is conditioned on a Dialogue Act (DA) vector—a one-hot representation of the information to be conveyed (e.g., inform(name=Seven_Days, food=Chinese)). The key component is the Reading Gate ($r_t$), which acts as a dynamic "to-do list." As the LSTM generates words, the reading gate learns to recognize when a specific piece of information has been mentioned and "turns off" the corresponding feature in the DA vector. This internal tracking prevents the model from repeating itself or forgetting key details.
To capture complex linguistic structures, multiple SC-LSTM layers are stacked with skip connections to facilitate gradient flow. Furthermore, a Backward Reranker—a second SC-LSTM trained to process sentences in reverse—is used during decoding to select the most fluent candidate from a generated set.
Implicit Sentence Planning and Realization
A significant finding of this work is that the network learns to perform sentence planning (ordering information) and surface realization (word selection) simultaneously. The reading gate automates tasks that previously required complex, handcrafted logic.
The visualization above demonstrates how semantic features are "checked off" as the sentence progresses. For instance, in the restaurant domain, the food=VALUE feature drops to zero immediately after the word "korean" is generated. By adding a penalty to the cost function for any DA features that remain active at the end of a sentence, the model develops a strict discipline for information accuracy.
Evaluation and Results
The SC-LSTM was evaluated on two unaligned datasets collected via Amazon Mechanical Turk: SF Restaurant (approx. 5,000 utterances) and SF Hotel (approx. 5,000 utterances). These datasets are "unaligned," meaning the model only sees the input DA and the final human sentence, without being told which words correspond to which slots.
The model achieved superior performance across both objective and subjective metrics:
- Objective Metrics: The deep SC-LSTM reached BLEU scores of 0.731 (Restaurant) and 0.832 (Hotel), with remarkably low Slot Error Rates (0.46% and 0.41% respectively), outperforming vanilla RNNs and k-Nearest Neighbor baselines.
- Human Evaluation: Judges rated the SC-LSTM higher for both Informativeness and Naturalness. In pairwise tests, humans preferred SC-LSTM outputs over the next best system more than 60% of the time.
Conclusion
The SC-LSTM represents a major step toward scalable, high-quality NLG for dialogue systems. By learning to track semantic state internally, it removes the need for expensive data alignment. While challenges remain—such as handling "hard-to-delexicalize" binary slots (e.g., kids-allowed=yes) and scaling to open-domain conversation—the SC-LSTM provides a robust foundation for multi-domain and multilingual generation in future AI assistants.
Summary updated