Entity Aware Syntax Tree Based Data Augmentation for Natural Language Understanding

Jiaxing Xu, Jianbin Cui, Jiangneng Li, Wenge Rong, Noboru MatsudaarXiv 2022 · DOI · arXiv

Abstract

This paper introduces Entity Aware Data Augmentation (EADA), a novel framework designed to enhance Natural Language Understanding (NLU) models in data-scarce environments. At the heart of the approach is the Entity Aware Syntax Tree (EAST), a specialized hierarchical structure that prioritizes entity positions and logical sentence patterns over rigid grammatical rules. By merging seed data into an EAST and utilizing a Mock Sentence Generator (MSG), EADA produces high-quality, diverse training samples. Experimental results on benchmarks such as ATIS and SNIPS demonstrate that EADA significantly outperforms traditional augmentation methods and leading commercial NLU platforms, particularly in "cold-start" scenarios.

Introduction

Developing robust NLU systems for tasks like intent detection and slot filling typically requires vast amounts of annotated data. However, the high cost and time associated with manual labeling often create a bottleneck, especially for new domains. While data augmentation (DA) is a common remedy, existing techniques often fail to preserve the semantic integrity required for NLU. Simple methods like Easy Data Augmentation (EDA) can break the relationship between intents and entities through random swaps, while syntax-based methods like Dependency Tree Morphing are often too rigid to capture the natural variation in user queries.

To address these limitations, we propose the Entity Aware Syntax Tree (EAST) and the EADA framework, which focus on the structural patterns of intents and the pivotal role of entities within them.

The Entity Aware Syntax Tree (EAST)

The EAST is designed to represent the underlying logic of an intent rather than just the syntax of a single sentence. It utilizes two primary node types:

  • Control Nodes: These manage the sequence and variety of the sentence. Order nodes enforce a specific sequence; Pick-one nodes act as logical OR gates; and Exchangeable nodes allow for flexible word ordering (e.g., "flights from A to B" vs "flights to B from A").
  • Content Nodes: These hold the actual linguistic data, categorized as Fixed phrases or Entity slots (e.g., <city_name>) that can be populated from a lexicon.
Comparison of the proposed EAST structure with standard constituent and dependency trees.

As shown in Figure 1, the EAST provides a more flexible and intent-focused representation compared to traditional constituent or dependency trees, which are often too granular for effective data generation.

The EADA Framework

The EADA pipeline transforms a small set of seed data into a robust training set through four key stages:

  1. Data Preprocessing: Specific entities are replaced with general labels to focus on structure.
  2. Main Entity Determination: Identifying the "anchor" entity that defines the intent's context.
  3. EAST Growth: Small amounts of seed data are iteratively merged into a unified tree structure.
  4. Mock Sentence Generation (MSG): The tree is traversed to generate new sentences. To ensure semantic realism, the system uses cosine similarity of word embeddings to select entity replacements that are contextually appropriate.
The EADA framework workflow, illustrating the transition from seed data to augmented datasets.

Experimental Results and Discussion

The effectiveness of EADA was evaluated across several benchmarks, including SNIPS, ATIS, and CoNLL-2003. On the ATIS dataset, EADA achieved a slot-filling F1-score of 0.981, a significant improvement over the 0.952 baseline.

The framework's most impressive performance occurred in "cold-start" tests. With only 70 training samples, EADA achieved an F1-score of 0.761. In comparison, highly optimized commercial platforms like Amazon Alexa and DialogFlow achieved scores of 0.564 and 0.704, respectively, under the same constraints.

Ablation studies confirmed that the EAST structure itself is the primary driver of these gains. While the generated sentences may occasionally lack perfect grammatical fluency, this "noise" serves as a form of regularization, helping the model generalize better to the imperfect language often found in real-world user inputs.

Conclusion

EADA offers a scalable and effective solution for NLU data scarcity. By centering the augmentation process on an entity-aware syntax structure, it preserves the semantic core of user intents while providing the diversity needed for robust model training. Future work will focus on improving the grammatical fluency of generated sentences and extending the framework to broader NLP tasks beyond task-oriented NLU.

Summary updated

BibTeX
@misc{xu2022entity,
  author = {Jiaxing Xu and Jianbin Cui and Jiangneng Li and Wenge Rong and Noboru Matsuda},
  title = {{Entity Aware Syntax Tree Based Data Augmentation for Natural Language Understanding}},
  year = {2022},
  eprint = {2209.02267},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02267},
}
Figure