Knowledge as a Teacher: Knowledge-Guided Structural Attention Networks

Yun-Nung Chen, Dilek Hakkani-Tür, Gökhan Tür, Asli Celikyilmaz, Jianfeng Gao, Li DengarXiv 2016

Abstract

Natural language understanding (NLU) is a core component of a spoken dialogue system. Recently recurrent neural networks (RNN) obtained strong results on NLU due to their superior ability of preserving sequential information over time. Traditionally, the NLU module tags semantic slots for utterances considering their flat structures, as the underlying RNN structure is a linear chain. However, natural language exhibits linguistic properties that provide rich, structured information for better understanding. This paper introduces a novel model, knowledge-guided structural attention networks (K-SAN), a generalization of RNN to additionally incorporate non-flat network topologies guided by prior knowledge. There are two characteristics: 1) important substructures can be captured from small training data, allowing the model to generalize to previously unseen test data; 2) the model automatically figures out the salient substructures that are essential to predict the semantic tags of the given sentences, so that the understanding performance can be improved. The experiments on the benchmark Air Travel Information System (ATIS) data show that the proposed K-SAN architecture can effectively extract salient knowledge from substructures with an attention mechanism, and outperform the performance of the state-of-the-art neural network based frameworks.

Introduction

In Spoken Dialogue Systems, the Natural Language Understanding (NLU) module is responsible for "slot filling"—identifying specific pieces of information like departure cities or dates. Traditionally, Recurrent Neural Networks (RNNs) treat sentences as flat, linear sequences of words. However, human language is inherently hierarchical. In the sentence "Show me the flights from Seattle to San Francisco," there is a structural relationship between "Seattle" (origin) and "San Francisco" (destination) that a linear model might struggle to capture if they are far apart.

While previous researchers tried to incorporate "prior knowledge" (like syntax trees), they usually added them as static features. This often led to poor generalization and error propagation: if the initial parser made a mistake, the NLU model inherited that error without a mechanism to ignore it. The proposed Knowledge-guided Structural Attention Networks (K-SAN) architecture treats external linguistic knowledge as a guide rather than a rigid rule, allowing the model to selectively focus on relevant non-linear substructures.

Methods

The K-SAN architecture treats external linguistic knowledge as a "teacher." The process begins with Substructure Extraction, where an input sentence is parsed (e.g., using a dependency parser) and broken into discrete paths from the root to each leaf node. These substructures are then processed through a Knowledge Encoding phase, where they are converted into vector representations using a Neural Network (NN), RNN, or Convolutional Neural Network (CNN).

The K-SAN architecture, featuring the Knowledge Encoding Module and the RNN Tagger.

The core innovation is the Structural Attention mechanism. The model compares the entire sentence representation against each encoded substructure to calculate an attention distribution, identifying which structural paths are most relevant to understanding the specific utterance. Finally, a Joint RNN Tagger combines a standard chain-based RNN with the new knowledge-guided representation, using a weighting factor to balance surface-level and structural information.

Experimental Results

The model was evaluated on the benchmark Air Travel Information System (ATIS) dataset. To test robustness, the researchers created three versions of the training set: Small (1/40th of the original data), Medium (1/10th), and Large (the full original dataset). They also tested two types of "knowledge teachers": Dependency Trees (syntactic) and Abstract Meaning Representation (AMR) graphs (semantic).

Comparison of F1 scores across different models and dataset sizes on the ATIS benchmark.

As shown in the results table, K-SAN consistently outperformed standard RNNs and other structural models like Tree-RNNs. The most dramatic improvements occurred on the "Small" dataset, where K-SAN (using a CNN encoder) reached an F1 of 74.60, compared to just 68.58 for a standard RNN. On the full (Large) dataset, K-SAN achieved a state-of-the-art F1 score of 94.97.

Discussion and Conclusion

K-SAN demonstrates that providing a model with structural "priors" acts as a powerful regularizer, helping it learn the "logic" of language when training data is scarce. By using an attention mechanism, the model can "choose" which parts of the linguistic parse to trust, mitigating the error propagation problem common in previous structural models. While the model is robust to errors, it still requires an external parser, which adds a preprocessing step. Future directions include exploring other types of external knowledge, such as web-scale knowledge graphs, to guide the attention mechanism even further.

Summary updated

Abstract

Natural language understanding (NLU) is a core component of a spoken dialogue system. Recently recurrent neural networks (RNN) obtained strong results on NLU due to their superior ability of preserving sequential information over time. Traditionally, the NLU module tags semantic slots for utterances considering their flat structures, as the underlying RNN structure is a linear chain. However, natural language exhibits linguistic properties that provide rich, structured information for better understanding. This paper introduces a novel model, knowledge-guided structural attention networks (K-SAN), a generalization of RNN to additionally incorporate non-flat network topologies guided by prior knowledge. There are two characteristics: 1) important substructures can be captured from small training data, allowing the model to generalize to previously unseen test data; 2) the model automatically figures out the salient substructures that are essential to predict the semantic tags of the given sentences, so that the understanding performance can be improved. The experiments on the benchmark Air Travel Information System (ATIS) data show that the proposed K-SAN architecture can effectively extract salient knowledge from substructures with an attention mechanism, and outperform the performance of the state-of-the-art neural network based frameworks.
BibTeX
@misc{chen2016knowledge,
  author = {Yun-Nung Chen and Dilek Hakkani-Tür and Gökhan Tür and Asli Celikyilmaz and Jianfeng Gao and Li Deng},
  title = {{Knowledge as a Teacher: Knowledge-Guided Structural Attention Networks}},
  year = {2016},
  eprint = {1609.03286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.03286},
}
Figure