Tree-Structured Semantic Encoder with Knowledge Sharing for Domain Adaptation in Natural Language Generation

Bo-Hsiang Tseng, Pawel Budzianowski, Yen-Chen Wu, Milica Gasic

Abstract

This paper introduces a tree-structured semantic encoder for Natural Language Generation (NLG) in spoken dialogue systems, designed to drastically improve domain adaptation when training data is scarce. By modeling the inherent hierarchy of dialogue semantics (Domain $\rightarrow$ Act $\rightarrow$ Slot) using a Tree-LSTM and a layer-wise attention mechanism, the model effectively shares structural knowledge across domains, reducing slot error rates by up to 50% compared to flat-encoding baselines.

Introduction

In task-oriented dialogue systems, the Natural Language Generation (NLG) module translates machine-readable Semantic Representations (SR)—such as inform(name=Clowns, food=English)—into natural, human-readable sentences. A significant bottleneck in developing open-domain systems is domain adaptation. Collecting annotated data for every new domain is expensive. Prior NLG models often encode SRs as flat binary vectors, failing to capture the hierarchical ontology (Domain > Dialogue Act > Slot > Value) inherent in dialogue semantics. This lack of structural awareness makes them data-hungry and poor at adapting to new domains with limited examples.

Methodology

To address these limitations, the authors propose a novel architecture that captures the internal structure of complex semantics through two primary components:

  1. Tree-Structured Semantic Encoder: The input SR is mapped to a tree reflecting the ontology. Leaf nodes (properties) feed into slot nodes, then dialogue act nodes, and finally a root domain node. A Tree-LSTM processes this bottom-up, creating a semantic embedding that understands the relationships between different information levels.
  2. LSTM Decoder with Layer-wise Attention: The decoder generates sentences using delexicalized tokens (e.g., @restaurant-inform-area). A layer-wise attention mechanism allows the decoder to attend to specific layers of the Tree-LSTM (domain, act, and slot layers) at each time step, guiding the prediction of the next piece of information.
Architecture of the proposed model featuring a tree-structured encoder and an LSTM-based decoder with layer-wise attention.

The decoder also employs reading and writing gates to track generated information, preventing repetitions or omissions.

Experimental Setup

The model was evaluated on the Multi-Domain Wizard-of-Oz (MultiWOZ) dataset. MultiWOZ is a rigorous benchmark spanning 7 domains with over 10,000 dialogues. Unlike simpler datasets like SFX or E2E, MultiWOZ features complex turns that often mix multiple dialogue acts and domains in a single response.

Key Insights

  • Structural Knowledge Sharing: By explicitly modeling the ontology's hierarchy, the model recognizes structural parallels across domains. For example, an inform act about an area in the Restaurant domain shares structural similarities with the same act in the Attraction domain, allowing the model to reuse learned grammatical patterns.
  • Interpretable Attention: The layer-wise attention mechanism acts as a routing system. By forcing the model to predict domain, act, and slot distributions separately, it reduces hallucinations of incorrect dialogue acts, even with limited target-domain data.
  • Generalization to Unseen Semantics: The tree structure enables the model to generalize to novel combinations of slots and acts by leveraging structural patterns learned in the source domain.

Results

The proposed model (Tree+Att) demonstrated significant performance gains, particularly in low-data regimes. In few-shot adaptation scenarios (e.g., Restaurant to Hotel using only 1.25% of target data), the model reduced the Slot Error Rate (SER) from over 75% in baselines to approximately 25%.

BLEU score performance across different percentages of adaptation data for the Restaurant to Attraction domain.

Furthermore, when tested on "unseen" semantics under the 1.25% data setting, the Tree+Att model failed only 14.8% of the time, compared to an 80.5% failure rate for the SCLSTM baseline. Human evaluations via Amazon Mechanical Turk also rated the model higher in both informativeness and naturalness.

Conclusion

While highly effective, the model's reliance on delexicalization requires rigid pre- and post-processing, which may be challenging for morphologically rich languages. Future work aims to extend the tree encoder to incorporate broader dialogue context history, moving toward fully end-to-end dialogue systems.

Summary updated

BibTeX
@inproceedings{tseng2019tree,
  author = {Bo-Hsiang Tseng and Pawel Budzianowski and Yen-Chen Wu and Milica Gasic},
  title = {{Tree-Structured Semantic Encoder with Knowledge Sharing for Domain Adaptation in Natural Language Generation}},
  booktitle = {SIGdial},
  year = {2019},
  url = {https://openreview.net/forum?id=N-cbE9cFjl},
}
Figure