Adversarial Music: Real world Audio Adversary against Wake-word Detection System

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

Introduction

Voice Assistants (VAs) like Amazon Alexa and Google Assistant rely on local wake-word detection to activate. While most adversarial attacks on audio systems are "brittle"—working perfectly in digital simulations but failing when played through a speaker in a real room—researchers have developed a robust, over-the-air attack dubbed "Adversarial Music."

Attacking the core Automatic Speech Recognition (ASR) engine of a VA is difficult because those models live in the cloud and are frequently updated. Instead, this research targets the system's "gatekeeper": the wake-word detector. Because these models run locally on low-power hardware, they are updated less frequently and are more susceptible to "gray-box" attacks. By crafting specific guitar-like sounds that act as a real-world denial-of-service (DoS) attack, researchers can effectively "jam" the wake-word detection, disguising the attack as pleasant background music while preventing the VA from ever "hearing" its wake word.

Methodology

To move from digital theory to physical reality, the authors employed a sophisticated pipeline:

  1. Model Emulation: Since Alexa’s internal model is a proprietary black box, the researchers built an emulated version based on published architectures (time-delayed bottleneck highway networks).
  2. Differentiable Music Synthesis: Instead of adding random, noticeable noise, they utilized the Karplus-Strong algorithm—a digital waveguide technique that simulates the physics of a plucked string—to generate guitar-like notes. Because this synthesizer is differentiable, they could use gradient-based optimization to tune musical parameters like pitch and volume.
Karplus-Strong algorithm for differentiable music synthesis
  1. Projected Gradient Descent (PGD): PGD was used to find the specific musical notes that maximized the error of the wake-word detector while keeping the audio within realistic musical boundaries.
  2. Expectation Over Transform (EOT): To ensure the attack survived the transition to a physical room, the team incorporated Room Impulse Responses (RIR) during training. This simulated how sound bounces off walls and loses clarity over distance, making the adversarial music robust to echoes and speaker distortion.
  3. Psychoacoustic Masking: A loss function based on human hearing thresholds was applied to ensure the adversarial perturbations remained inconspicuous, blending seamlessly into the music.

Experimental Setup

The authors collected a custom dataset of 100 positive samples of the word "Alexa" from 10 different people, encompassing varying genders and accents. This was augmented to 2,000 samples by varying speed, tempo, and volume. The LJ Speech Dataset was used for background noise and negative speech examples.

Real-world validation was conducted in a physical home environment using a real Amazon Echo and a MacBook Pro speaker to play the adversarial music.

Physical over-the-air testing setup

Key Results and Insights

The results demonstrate a significant vulnerability in commercial VAs, proving that an attack optimized against a re-implemented gray-box model can successfully transfer to a proprietary product.

  • Digital and Physical Success: In a purely digital environment, the attack reduced the emulated model's F1 score from 93.4% to 11.7%. Crucially, when tested against a real Amazon Echo over-the-air, the F1 score dropped from 92.5% to 11.0%.
  • The "Jamming" Strategy: Rather than forcing a VA to execute a malicious command, this attack focuses on a Denial of Service. It effectively deactivates the device’s ability to respond to the user.
  • Acoustic Camouflage: The attack is socially inconspicuous. A human hears a pleasant melody, while the AI's wake-word engine is overwhelmed by adversarial features. The authors verified that normal music played at the same volume did not disable Alexa nearly as effectively.
  • The Importance of EOT: Without accounting for room acoustics during training via EOT, the adversarial effect vanished when played over-the-air.

Limitations and Future Work

While highly effective, the attack has physical and temporal constraints. It is most successful when the adversarial music overlaps with the entire duration of the wake word; if the user speaks before the music starts, the attack often fails. Additionally, Alexa uses a 7-microphone array designed for source separation. The success rate of the attack drops as the angle between the human speaker and the adversarial speaker increases.

Ultimately, this work highlights a pressing need for more robust on-device models and adversarial training to protect VAs from being "silenced," especially as they become more integrated into safety-critical environments like smart homes and connected cars.

Summary updated

BibTeX
@inproceedings{li2019adversarial,
  author = {Juncheng Li and Shuhui Qu and Xinjian Li and Joseph Szurley 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