NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Tag OOV Tokens by Integrating Contextual Representation and Background Knowledge

Keqing He, Yuanmeng Yan, Weiran Xu

Abstract

Standard Spoken Language Understanding (SLU) systems often struggle with "Out-of-Vocabulary" (OOV) words—terms that do not appear in the training data. This paper introduces a knowledge-enhanced slot tagging model designed to address this challenge. By integrating BERT’s contextual embeddings with structured lexical knowledge from WordNet via a multi-level graph attention mechanism, the model can "reason" about the category of an unseen word based on its linguistic relatives. Experimental results on the ATIS and Snips datasets demonstrate that this approach significantly outperforms standard models, particularly in few-shot scenarios where training data is scarce.

Introduction: The OOV Challenge in Slot Tagging

In Spoken Language Understanding (SLU), slot tagging is the fundamental task of identifying specific entities within a user's query. For instance, in the command "I want to book lunch," a model must identify "lunch" as a meal_type. While modern neural models excel when provided with abundant training data, they frequently fail when encountering OOV words.

Figure 1: Illustration of how knowledge integration bridges the gap between known terms (e.g., "classical music") and OOV terms (e.g., "scat singing") via hierarchical relationships in a knowledge base.

This problem is exacerbated in few-shot scenarios. If a model has only seen "classical music" during training, it lacks the contextual experience to recognize "scat singing" as a music genre. Traditional solutions like gazetteers (simple dictionaries) are often too rigid and fail to capture the complex, hierarchical relationships between words. This paper proposes using a large-scale Knowledge Base (KB) to act as a bridge, allowing the model to leverage explicit lexical relations to classify unseen terms.

Proposed Methodology

The authors propose a framework that enriches deep contextual embeddings with structured background knowledge.

1. Backbone and Knowledge Retrieval

The model utilizes a standard BERT encoder to capture the context of the input sequence. For every word in the input, the system retrieves relevant "synsets" (sets of synonyms) and their "hyponyms" (more specific sub-types) from WordNet.

2. Multi-Level Graph Attention

The core innovation is a multi-level graph attention mechanism. Rather than simply concatenating knowledge, the model uses two levels of attention:

  • Level 1: Attends to direct synsets to establish a "one-hop" knowledge state.
  • Level 2: Attends to hyponyms (the "children" of those synsets) to further enrich the representation.

This hierarchy allows the model to reason that if a word's relatives belong to a specific slot type, the OOV word likely does as well.

Figure 2: The architecture of the proposed model, featuring the Knowledge Integration Layer situated between the BERT-derived hidden states and the BiLSTM-CRF output layers.

3. Sentinel Vector and Output

To prevent the model from being overwhelmed by irrelevant background knowledge, a "sentinel" vector is included. This allows the model to dynamically weight the importance of the KB versus the original text context. The final enriched representations are processed through a BiLSTM and a CRF (Conditional Random Field) layer to predict slot tags.

Experimental Evaluation

The model was evaluated on two benchmarks: ATIS (flight bookings, low OOV rate) and Snips (multi-domain, high OOV rate). To simulate low-resource environments, the datasets were downsampled to sizes ranging from 1% to 100%.

Key Results

  • Performance Gains: The BERT+KB model consistently outperformed the base BERT model. On the Snips dataset with only 1% training data, the BERT+KB model achieved an F1 score of 71.50, compared to 69.49 for the base model.
  • Robustness to OOV: The improvement was more pronounced on the Snips dataset (5.95% OOV) than on ATIS (0.77% OOV), confirming that external knowledge provides a vital "safety net" for linguistically diverse data.
  • Ablation Studies: Removing the second-level graph attention or the knowledge integration layer resulted in consistent performance drops, validating the importance of hierarchical reasoning.

Discussion and Future Work

The study highlights that explicit lexical relations are most beneficial when training data is sparse (1-5%). As data increases, the gap between the base model and the KB-enhanced model narrows, though the latter maintains a lead.

Future work could involve fine-tuning KB embeddings jointly with the NLU task, rather than using frozen pre-trained vectors. Additionally, exploring other WordNet relations (such as meronyms) or integrating domain-specific Knowledge Graphs for specialized fields like medicine or law could further enhance the model's utility.

Summary updated

BibTeX
@inproceedings{he2020learning,
  author = {Keqing He and Yuanmeng Yan and Weiran Xu},
  title = {{Learning to Tag OOV Tokens by Integrating Contextual Representation and Background Knowledge}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.58},
}
Figure