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

Adversarial training of Keyword Spotting to Minimize TTS Data Overfitting

Hyun Jin Park, Dhruuv Agarwal, Neng Chen, Rentao Sun, Kurt Partridge, Justin Chen, Harry Zhang, Pai Zhu, Jacob Bartel, Kyle Kastner, Gary Wang, Andrew Rosenberg, Quan WangarXiv 2024 · DOI

Abstract

Training Keyword Spotting (KWS) models on synthetic Text-to-Speech (TTS) data is cost-effective but often leads to "artifact overfitting," where the model learns to recognize synthetic signatures rather than actual speech patterns. This paper introduces an adversarial training framework that uses a Gradient Reversal Layer (GRL) to force the model to learn domain-invariant features. By pitting the KWS model against a synthetic/real classifier, the internal representations become robust to domain shifts. Experimental results on real-world speech demonstrate up to a 12.2% relative improvement in accuracy, even in scenarios with limited or no real positive training data.

Introduction

Keyword Spotting (KWS)—the technology enabling wake-word detection like "Hey Google"—requires vast, diverse audio datasets to ensure reliability across various acoustic environments and accents. While synthetic Text-to-Speech (TTS) systems can generate millions of training examples at a low cost, they often introduce subtle "artifacts" that do not exist in natural human speech.

When a KWS model is trained on this synthetic data, it may overfit to these artifacts, learning to identify "synthetic-ness" rather than the actual keyword. This creates a "sim-to-real" gap where a model performing perfectly on TTS data fails in real-world applications. This study proposes an adversarial training method to bridge this gap by forcing the model to ignore domain-specific features.

Methods

The researchers implemented a multi-task learning framework that incorporates an Adversarial Classifier alongside the primary KWS model.

Comparison between the baseline KWS training setup and the proposed multi-task adversarial training framework.

The architecture consists of three main components:

  1. The KWS Model: A two-stage architecture utilizing Singular Value Decomposition Filter (SVDF) layers for feature extraction followed by a decoder for keyword prediction.
  2. The Synthetic/Real (S/R) Classifier: This sub-network receives hidden layer activations from the KWS model and attempts to distinguish whether the input audio is real or synthetic.
  3. Gradient Reversal Layer (GRL): During backpropagation, the GRL flips the sign of the gradient coming from the S/R classifier. This forces the KWS model to update its weights to maximize the S/R classifier's error, effectively "hiding" any features that reveal the audio's source.

Datasets and Evaluation

The study utilized a massive internal dataset from Google, comprising:

  • Real Speech: 3.8 million positive and 14.1 million negative utterances of "Hey/OK Google."
  • Synthetic Speech (TTS): 7.5 million positive and 5.1 million negative utterances generated via Google's Virtuoso and AudioLM systems.

Evaluation was performed on a dedicated set of real-world recordings to measure the False Rejection Rate (FRR) at various operating points.

Key Insights

  • Detectability of TTS Artifacts: Without adversarial training, a simple classifier could distinguish TTS from real speech with 98.1% accuracy using the model's internal features, confirming significant domain leakage.
  • The "Zero Real Positive" Scenario: Adversarial training improved accuracy by 8% even when the model was trained with zero real positive examples. By contrasting real negative speech against synthetic positive speech, the model learned to generalize the keyword structure while ignoring synthetic signatures.
  • Feature Integration: The most effective adversarial signal was derived by concatenating features from all layers (encoder and decoder), indicating that TTS artifacts are present throughout the entire neural pipeline.

Results

The adversarial approach yielded significant performance gains over the baseline. The best configuration achieved a 12.2% relative improvement in the False Rejection Rate (FRR).

ROC curves showing the performance of the adversarial model (Adver. C5) versus the baseline, demonstrating lower false rejection rates across various false accept thresholds.

The ROC curves illustrate that the improvements are consistent across different operating points (False Accepts per hour), making the model more robust for production environments. The researchers found that a gradient scaling factor ($\lambda$) between 0.3 and 0.5 provided the optimal balance between keyword learning and domain invariance.

Conclusion and Future Work

Adversarial training effectively mitigates overfitting to synthetic data artifacts in KWS models. While the current study used a simple linear adversarial classifier, future work could explore more complex architectures like Conformers or LSTMs for the adversarial component. Additionally, this framework holds promise for addressing other domain mismatches, such as noise environment variations or far-field vs. near-field audio discrepancies.

Summary updated

BibTeX
@misc{park2024adversarial,
  author = {Hyun Jin Park and Dhruuv Agarwal and Neng Chen and Rentao Sun and Kurt Partridge and Justin Chen and Harry Zhang and Pai Zhu and Jacob Bartel and Kyle Kastner and Gary Wang and Andrew Rosenberg and Quan Wang},
  title = {{Adversarial training of Keyword Spotting to Minimize TTS Data Overfitting}},
  year = {2024},
  eprint = {2408.10463},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.10463},
}
Figure