Adversarial Music: Real World Audio Adversary Against Wake-word Detection System

Juncheng B. Li, Shuhui Qu, Xinjian Li, J. Zico Kolter, Florian Metze

This paper, presented at NeurIPS 2019, demonstrates a robust, real-world adversarial attack that effectively "jams" voice assistants like Amazon Alexa. By synthesizing inconspicuous, guitar-like background music, the researchers were able to prevent these devices from recognizing their wake-words, creating a physical-world denial-of-service (DoS) attack.

TL;DR

Researchers developed "Adversarial Music" that sounds like a normal guitar to humans but prevents Amazon Alexa from hearing its wake-word. By targeting the on-device wake-word detector rather than cloud-based speech recognition, they achieved a successful over-the-air "gray-box" attack, reducing Alexa's detection F1 score from 92.5% to 11.0%.

What Problem Does This Paper Address?

Most adversarial audio research focuses on digital-only attacks or targeting Automatic Speech Recognition (ASR) systems. However, commercial Voice Assistants (VAs) like Alexa and Google Assistant are difficult to attack in the real world for two reasons:

  1. Cloud Updates: ASR models live in the cloud and are updated frequently, making them moving targets.
  2. Physical Robustness: Digital perturbations often fail when played over speakers due to room acoustics, distance, and microphone hardware.

The authors identify a more vulnerable target: the wake-word detection system. Unlike ASR, wake-word detection must run locally on low-power hardware to ensure privacy and low latency. These on-device models are updated much less frequently. The authors aim to create a "jamming" signal—disguised as music—that prevents the VA from ever waking up to listen to a user's command.

Methods

The researchers used a multi-step pipeline to move from a digital attack to a physical one:

  • Model Emulation: Since Alexa's internal model is a black box, they built an emulated version based on published research, utilizing a time-delayed bottleneck highway network architecture.
  • Differentiable Music Synthesis: Instead of adding random noise, they used a differentiable implementation of the Karplus-Strong algorithm to synthesize guitar-like sounds. Because the synthesizer is differentiable, they could backpropagate gradients through the music generation process to optimize the notes and volumes for the attack.
  • Expectation Over Transform (EOT): To ensure the attack worked "over the air," they incorporated EOT during training. This involved simulating various room impulse responses (RIR) and psychoacoustic masking thresholds, ensuring the adversarial signal remained effective despite echoes and remained inconspicuous to human ears.
  • Optimization: They used Projected Gradient Descent (PGD) to maximize the loss of the wake-word detector while keeping the synthesized audio within the parameters of realistic-sounding music.
Figure 1: Emulated Wake-word model

Datasets

  • Pre-training: The emulated model was pre-trained on large open-source speech corpora, including Fisher, Switchboard, and TED-LIUM.
  • Wake-word Data: The authors collected 100 "Alexa" utterances from 10 different people (varying gender and native/non-native accents). This was augmented 20x by varying speed, tempo, and volume to create a 2,000-sample dataset.
  • Negative Samples: The LJ speech dataset was used for background noise and non-wake-word speech examples.

Key Insights and Ideas

  • Targeting the Gatekeeper: The most clever insight is shifting the attack surface from the complex, cloud-based ASR to the simpler, static, on-device wake-word detector.
  • Parametric vs. Additive Attacks: Most adversarial attacks add a small $\epsilon$ of noise to every sample. This paper uses a parametric threat model, where they only optimize the frequency and volume of specific musical notes. This makes the attack much more natural-sounding.
  • Transferability: The "gray-box" approach worked remarkably well. An attack optimized against an emulated model transferred successfully to the proprietary, commercial Alexa hardware.
  • Physicality Matters: The researchers found that considering the "room impulse response" was mandatory; without it, the adversarial effect vanished as soon as the audio was played through a real speaker.

Key Results

The attack was highly effective in both digital simulations and physical "over-the-air" tests:

  • Digital Performance: The F1 score of the emulated model dropped from 93.4% to 11.0% when the adversarial music was present.
  • Physical Performance: In real-world tests with an Amazon Echo, the F1 score dropped from 92.5% to 11.0%.
  • Specificity: The authors tested "random" music and non-adversarial guitar notes at the same volume levels. These baselines failed to jam Alexa, proving that the adversarial optimization was doing the heavy lifting, not just the volume of the music.
Figure 4: Physical Testing Illustration

Limitations and Future Work

  • Spatial Constraints: The attack's effectiveness is sensitive to the distance ($d_a$) between the attacker and the VA, as well as the angle ($\phi$) relative to the device's microphone array.
  • DoS Only: This is a denial-of-service attack. It prevents a device from working but does not allow the attacker to inject specific malicious commands (e.g., "Alexa, open the front door").
  • Gray-box Assumption: The attack relies on having a good guess of the target's architecture. While wake-word architectures are often discussed in literature, a significant change in model type by a manufacturer could break the transferability.
  • Defense: The authors note that this work calls for further research into making wake-word detectors more robust against such structured, low-power interference.

Summary updated

BibTeX
@inproceedings{li2019adversarial,
  author = {Juncheng B. Li and Shuhui Qu and Xinjian Li and J. Zico Kolter and Florian Metze},
  title = {{Adversarial Music: Real World Audio Adversary Against Wake-word Detection System}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=UM74ZoGr2p},
}
Figure