Abstract
Domain adaptation in natural language generation (NLG) remains challenging because of the high complexity of input semantics across domains and limited data of a target domain. This is particularly the case for dialogue systems, where we want to be able to seamlessly include new domains into the conversation. Therefore, it is crucial for generation models to share knowledge across domains for the effective adaptation from one domain to another. In this study, we exploit a tree-structured semantic encoder to capture the internal structure of complex semantic representations required for multi-domain dialogues in order to facilitate knowledge sharing across domains. In addition, a layer-wise attention mechanism between the tree encoder and the decoder is adopted to further improve the model’s capability. The automatic evaluation results show that our model outperforms previous methods in terms of the BLEU score and the slot error rate, in particular when the adaptation data is limited. In subjective evaluation, human judges tend to prefer the sentences generated by our model, rating them more highly on informativeness and naturalness than other systems.
Introduction
In modern dialogue systems, the Natural Language Generation (NLG) module is responsible for converting a structured Semantic Representation (SR)—such as inform(name=Golden House, food=Chinese)—into natural, human-readable sentences. A significant challenge in this field is multi-domain adaptation. Collecting high-quality training data for every possible domain (e.g., hotels, taxis, restaurants) is prohibitively expensive and time-consuming.
Most existing NLG models treat the SR as a "flat" input, such as a simple list or a binary vector. This approach ignores the inherent hierarchy of the data: for instance, an "inform" act in the restaurant domain shares linguistic patterns with an "inform" act in the hotel domain. Without capturing this structure, models struggle to transfer knowledge from data-rich source domains to data-poor target domains, often resulting in "hallucinated" information or missing details, leading to high slot error rates.
Methodology
To address these challenges, this paper introduces two primary innovations designed to enhance knowledge sharing across domains:
- Tree-Structured Semantic Encoder (Tree-LSTM): Instead of flattening the SR, the model organizes it into a tree based on the system's ontology: Root → Domain → Dialogue Act → Slot → Property. A Tree-LSTM encodes this structure in a bottom-up fashion, allowing the model to learn representations for specific acts or slots that are shared across different domains.
- Layer-wise Attention Mechanism: The decoder, an LSTM responsible for word generation, utilizes an attention mechanism to "peek" at different layers of the tree (domain, act, and slot layers) at each time step. This helps the model determine precisely which piece of information to express next.
The decoder also incorporates a gated mechanism (reading and writing gates) to track which parts of the semantic representation have already been verbalized, preventing repetition or the omission of critical slots.
Experimental Setup
The model was evaluated using the Multi-Domain Wizard-of-Oz (MultiWOZ) dataset, which features over 10,000 dialogues across 7 domains. The researchers tested three specific domain transitions: Restaurant to Hotel, Restaurant to Attraction, and Train to Taxi. Performance was measured at varying levels of target-domain data availability, ranging from 1.25% to 100% of the available adaptation data.
Results and Discussion
The proposed model (Tree+Att) demonstrated significant improvements, particularly in low-data regimes. When provided with only 1.25% of adaptation data, the model achieved a Slot Error Rate (SER) of approximately 25%, while baseline models like SCLSTM or TGen exceeded 75%.
Key findings include:
- Hierarchy as a Bridge: The tree structure acts as a common language between domains. By learning the general structure of a "request" act, the model does not need to relearn basic grammar when transitioning between domains.
- Generalization to Unseen Representations: The model performed remarkably well on "unseen" SRs—combinations of acts and slots that never appeared in the training set—by assembling learned components (nodes) into novel sentences.
- Human Preference: Subjective evaluations showed that human judges rated the tree-structured model higher for both informativeness and naturalness, noting fewer "wrong domain" errors compared to baselines.
Conclusion
This research demonstrates that explicitly modeling the hierarchical structure of semantic representations significantly improves domain adaptation in NLG. While the model currently depends on a fixed ontology, future work will explore incorporating dialogue history to enhance contextual awareness and integrating this tree-structured approach into fully end-to-end dialogue systems.
Summary updated