Controlled Text Generation for Data Augmentation in Intelligent Artificial Agents

Nikolaos Malandrakis, Minmin Shen, Anuj Goyal, Shuyang Gao, Abhishek Sethi, Angeliki MetallinouarXiv 2019

Building new features for voice assistants like Alexa or Siri often hits a major roadblock: the "cold start" problem. To train a robust Natural Language Understanding (NLU) system, you need thousands of examples of how users might ask for a new feature. But when a feature is brand new, you might only have a handful of template phrases.

In their paper, "Controlled Text Generation for Data Augmentation in Intelligent Artificial Agents," researchers from Amazon Alexa AI and USC explore how to use neural text generation to bridge this data gap, turning a few seed phrases into a rich, diverse training set.

TL;DR

The researchers demonstrate that Conditional Variational Auto-encoders (CVAEs) can effectively generate synthetic training data for NLU tasks, even in extremely low-resource settings. By augmenting training sets with these generated phrases, they achieved up to a 5% absolute improvement in intent classification F1-score.

What Problem Does This Paper Address?

When developers define a new capability for an artificial agent, they start with a "signature"—a combination of a domain (e.g., Movies), an intent (e.g., GetActorMovies), and specific slots (e.g., genre, person_name). They usually provide a few "carrier phrases" as templates, such as "what genre movies is person_name in."

Example of template carrier phrases for two signatures

The challenge is that NLU models need much more variety to handle the messy reality of human speech. Traditional data collection is slow and expensive. While text generation seems like an obvious solution, standard methods often struggle with control (ensuring the generated text matches the intended signature) and diversity (avoiding repetitive, trivial outputs). Furthermore, most state-of-the-art "controlled" generation techniques rely on discriminators that fail when you have hundreds of categories but only a few examples per category.

Methods

The authors compared several encoder-decoder architectures to see which could best handle this low-resource, high-category environment:

  1. Seq2Seq (S2S) with Attention: A standard baseline that treats the task as a translation problem (phrase A to phrase B).
  2. Variational Auto-encoders (VAE): These map phrases to a latent space, allowing for more diverse sampling, but they lack inherent control over which category is generated.
  3. VAE with Discriminator: An adversarial approach where a classifier tries to identify the category of the generated text, forcing the generator to be more accurate.
  4. Conditional VAE (CVAE): The authors' proposed winner. Instead of a separate discriminator, the category label (the signature) is appended directly to the decoder.
The variants of VAE used: (a) VAE, (b) Conditional VAE (CVAE) and (c) VAE with discriminator

The CVAE approach is particularly elegant because it requires only direct optimization (no complex "wake-sleep" or adversarial training) and naturally learns to separate the "style" of a phrase from its "category" in the latent space.

Datasets

The experiments were conducted on two internal Alexa datasets:

  • Movie Dataset: 179 signatures with an average of only eight carrier phrases each. This represents the "low-resource" scenario.
  • Live Entertainment Dataset: A larger set of customer data covering music, books, and other media, used to provide a more robust training signal for the generators.
  • "All" Dataset: A combination of the two, totaling 767 signatures.

Key Insights and Ideas

  • The Discriminator Trap: In settings with hundreds of signatures and very few samples per signature, discriminators can't reach high enough accuracy to provide a useful training signal. The authors found their discriminator accuracy topped out at 35%, rendering the VAE+Discriminator models ineffective.
  • The Accuracy-Diversity Seesaw: There is a fundamental trade-off between how "correct" a generated phrase is (matching the target signature) and how "diverse" it is. A model that only repeats the training set is 100% accurate but 0% useful.
  • CVAE as the "Sweet Spot": The CVAE models provided the most favorable trade-off curve. By sampling from the "prior" distribution (ignoring the encoder and just providing a signature to the decoder), they could generate highly accurate yet novel phrases.
Figure 5: Intrinsic accuracy BLEU4 as a function of in- trinsic diversity for the ‘all’ test set for multiple hyper- parameter combinations of each model.

Key Results

The researchers evaluated their models both intrinsically (how good is the text?) and extrinsically (does it help the agent?).

  • Intrinsic Quality: CVAE models achieved high "slot carry-over" rates (up to 0.98), meaning they almost always included the correct entity types required by the signature.
  • Extrinsic Impact: When the generated data was added to the training set for an intent classifier (a Bi-LSTM model), the performance gains were significant. For the low-resource Movie domain, the CVAE-augmented training led to a 5% absolute F1-score increase. Even on the larger "All" dataset, they saw a 2% improvement.
Figure 3: Sample output phrases. The S2S model and all posterior sampling models use a phrase as an input. For prior sampling the desired signature is the model input.

Limitations and Future Work

While the results are promising, the authors note that metrics like BLEU mostly evaluate "surface" similarity. They found that diversity and novelty are only good predictors of extrinsic performance when combined with high accuracy.

Future work could involve more sophisticated semantic evaluation of the generated text. Additionally, while the CVAE handles hundreds of categories well, scaling this to thousands of rapidly changing features in a production environment remains an engineering challenge.

Summary updated

BibTeX
@misc{malandrakis2019controlled,
  author = {Nikolaos Malandrakis and Minmin Shen and Anuj Goyal and Shuyang Gao and Abhishek Sethi and Angeliki Metallinou},
  title = {{Controlled Text Generation for Data Augmentation in Intelligent Artificial Agents}},
  year = {2019},
  eprint = {1910.03487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.03487},
}
Figure