Controlled Data Generation via Insertion Operations for NLU

Manoj Kumar, Yuval Merhav, Haidar Khan, Rahul Gupta, Anna Rumshisky, Wael HamzaNAACL 2022

Abstract: Manoj Kumar, Yuval Merhav, Haidar Khan, Rahul Gupta, Anna Rumshisky, Wael Hamza. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Industry Track.

2022.

Introduction

Building production-grade Natural Language Understanding (NLU) systems for tasks like Intent Classification (IC) and Named Entity Recognition (NER) typically requires vast amounts of manually annotated data. This reliance creates a significant bottleneck: manual annotation is expensive, slow, and increasingly complicated by user privacy considerations.

While Data Augmentation (DA) is a standard strategy to mitigate data scarcity, traditional generative methods often struggle with label preservation. For instance, an autoregressive model like GPT might generate a fluent sentence but inadvertently alter the boundaries or content of a specific entity (e.g., a song title), rendering the original labels incorrect. To address this, researchers at Amazon Alexa AI developed the Generative Insertion Transformer (GIT), a framework designed to generate "carrier text" around fixed entities, ensuring perfect label alignment.

The Generative Insertion Transformer (GIT)

GIT departs from traditional left-to-right sequence generation by framing the task as an iterative insertion process. The model is built on a non-autoregressive decoder architecture that takes a "semantic signature" or template as input. This template consists of the intent and fixed slot labels with their values (e.g., PlayMusicIntent Album(shake it off) Artist(Taylor Swift)).

Figure 1: The GIT architecture showing the non-autoregressive decoder inserting carrier tokens like "can you play" and "by" around fixed entity slots.

As shown in the architecture diagram, the model predicts which words should be inserted into the gaps between existing tokens. It iteratively fills these gaps with carrier tokens until an End-of-Sequence (EOS) token is generated for every position. By anchoring entities as fixed points, the model bypasses the "label projection" problem entirely; the sentence is literally constructed around the labels.

To ensure high-quality output, the model undergoes a two-stage training process: pre-training on large-scale unlabeled data (Wikipedia and voice assistant logs) followed by fine-tuning on a small "reduced" set of labeled data. Finally, a confidence filtering mechanism scores the synthetic utterances, retaining only those where the model is highly certain and the labels remain consistent with the intended template.

Experimental Evaluation

The study utilized a large-scale, real-world voice assistant dataset spanning domains such as Music, Books, Home Automation, and Sports. The researchers compared several configurations:

  • Full: The complete annotated dataset (100%).
  • Reduced: A randomly sampled subset containing only 33% of the original data.
  • GIT Variants: Synthetic data generated by GIT models pre-trained on different corpora (Wikipedia vs. Wikipedia + in-domain data).

The primary evaluation metric was SemERw (Weighted Semantic Error Rate), which provides a unified measure of IC and NER performance.

Results and Discussion

The most significant finding was that the GIT_50 (wiki+in-domain) configuration achieved a relative SemER of -0.05% compared to the "Full" baseline. This indicates that an NLU model trained on just one-third of the real data, supplemented by GIT-generated synthetic data, can match the performance of a model trained on the full dataset. GIT also significantly outperformed common baselines like Easy Data Augmentation (EDA) and simple data duplication.

Figure 2: Relative SemER (%) across domains. Lower values indicate better performance relative to the full-data baseline.

Performance varied across domains, revealing an "Inverse Benefit" rule: domains that suffered the most from data reduction (like Music or Knowledge) typically saw the greatest gains from synthetic augmentation. Conversely, in domains like Sports, where utterances are often short or idiosyncratic, the insertion model struggled to provide meaningful improvements. Qualitatively, GIT often acted as a "semantic enhancer," inserting necessary prepositions or verbs that clarified the relationships between entities for the NLU model.

Conclusion

GIT provides a robust method for scaling NLU systems when labeled data is scarce. By focusing on the insertion of carrier text around fixed entities, it solves the critical problem of label preservation in generative data augmentation. Future work includes exploring Knowledge Base sampling to introduce new, unseen entities into the templates and optimizing hyper-parameters on a per-domain basis to further improve performance in challenging categories like Sports.

Summary updated

BibTeX
@inproceedings{kumar2022controlled,
  author = {Manoj Kumar and Yuval Merhav and Haidar Khan and Rahul Gupta and Anna Rumshisky and Wael Hamza},
  title = {{Controlled Data Generation via Insertion Operations for NLU}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=w5nnNk3KYJf},
}
Figure