Adversarial music: real-world audio adversarial attack on wake word detection systemsAdversarial Music: Real World Audio Adversary Against Wake-word Detection System
The authors use a differentiable music synthesizer to generate adversarial music and perform a gray-box denial-of-service attack on Amazon Alexa wake word detection, measuring F1 dropping from 92.5% to 11.0%.
The authors call it a gray-box attack: the attacker does not know the real Alexa model's parameters but trains a simulated model based on its public architecture and transfers the attack; the attacker controls a segment of background music that can be played over the air, carrying out a denial of service (DoS) against a commercial voice assistant's wake word detection so that it cannot respond to the wake word while the attack music is playing.
- Voice assistants rely on on-device wake word detection to respond to commands, and the authors argue it may be threatened by audio adversarial examples; existing attacks on ASR are difficult to make reliably effective over the air against commercial systems, so the authors instead attack wake word detection, which is updated less often.
- Train an emulated wake word model following Alexa's public architecture, parameterize the attack as guitar-timbre music using a differentiable Karplus-Strong synthesizer, jointly optimize the attack loss, a psychoacoustic masking term, and the room impulse response (expectation over transform) with PGD, then transfer to real Alexa.
- The attack is effective in both digital and physical experiments: real Alexa's physical test F1 drops from 92.5% to 11.0% (Table 1); non-adversarial music at the same loudness barely affects Alexa (Table 4); the closer the attack distance and the higher the volume, the more effective the attack, and the attack music needs to overlap with the wake word (Tables 2, 3).
- The authors state that the simulated model's performance is not exactly the same as real Alexa's due to insufficient training data; the authors call for future research on defenses against such risks. The experiments target only one device, Amazon Alexa, with 10 samples per group in the physical tests, and the paper does not report attack results on other voice assistants.
- Evaluated models
- Emulated ModelAlexa
- Benchmarks
- 自采 100 条 "Alexa" 唤醒词语料(10 人,增强至 2000 条)LJ speech dataset
- Metrics
- PrecisionRecallF1 ScoreAlexa 响应唤醒词次数(/10)
The researchers synthesized an adversarial audio clip resembling guitar background music; when played over the air, it reduced the F1 of Amazon Alexa wake word detection from 92.5% to 11.0%, and their self-built simulation model from 93.4% to 11.0%. This type of attack is a denial-of-service-style interference whose purpose is to prevent the voice assistant from being woken while the adversarial music is playing. Methodologically, the authors reproduced the model according to the publicly disclosed Alexa wake word detection architecture, parameterized the frequency and volume of notes with a differentiable synthesizer, and optimized with PGD, psychoacoustic masking, and the expected transformation of room impulse responses, so that the perturbation remains effective in physical space. In control experiments, random music, single tones, and real guitar music at the same volume were almost unable to make Alexa fail; the attack was ineffective when the wake word was spoken before the adversarial music, and the distance and angle between the adversarial sound source and the device also affected the success rate. The authors claim this is the first real-world adversarial attack against a commercial-grade voice assistant wake word detection system.
Why it was selectedThe paper provides a real-world measurement in which adversarial music played over the air in a real room reduced the F1 of Alexa wake word detection from 92.5% to 11.0%, which can serve as a baseline reference for physical attacks in the audio domain.
Paper analysis
What problem does this paper attempt to solve?
How to carry out an over-the-air, hard-to-perceive denial-of-service attack on the wake word detection of a commercial voice assistant.
Core question: Can a piece of audio that sounds like background music disable the wake word detection of a commercial voice assistant (Amazon Alexa) in a real physical environment (a DoS attack).
- Scenario and motivation: The authors argue that voice assistant applications may involve safety-critical scenarios (e.g., in a car), and their wake word detection may be attacked by a malicious third party; compared with the image and language domains, audio speech systems have received less adversarial attack research.
- Shortcomings of existing methods: The authors state that existing attacks on ASR systems (e.g., Carlini and Wagner 2018, Qin et al. 2019, Schönherr et al. 2018) only work in the digital domain against specific models and are not robust when played over the air against commercial ASR systems; moreover, cloud ASR models are updated frequently, making sustained attacks difficult. The authors verified that these existing adversarial examples are ineffective against Alexa and Siri.
- Core observation: Wake word detection models must be deployed on-device with limited compute and are updated less often than cloud ASR models (citing Hoffmeister 2019), so the authors choose to attack wake word detection rather than ASR.
- Proposed approach: Train a simulated model following Alexa's public architecture, use a differentiable music synthesizer to parameterize the adversarial perturbation as a segment of guitar-timbre background music, optimize it with PGD, and play it over the air so that Alexa cannot respond to the wake word while the attack music is playing.
- Threat model (which the authors call a gray-box attack):
- Goal: Denial of service against wake word detection, disabling the voice assistant while the attack music is present.
- Knowledge: The attacker does not know the parameters and gradients of the real Alexa model but knows its public architecture (Panchapagesan et al. 2016, Guo et al. 2018, etc.), and assumes the real model's gradients are similar to the simulated model's.
- Capability: Control a segment of parameterized music that can be played over the air, with loudness not exceeding a person's wake word command; the attack budget is more constrained than in existing work (only notes the synthesizer can generate).
- Victim system: The wake word detection system of Amazon Alexa (Amazon Echo).
What related research exists?
Related work covers image and text adversarial attacks, audio voice attacks, and defense methods; the authors state that existing audio attacks cannot take effect over the air against commercial systems.
Adversarial attacks in the image and text domains
- Szegedy et al. (2013) first proposed adversarial examples on images; Nguyen et al. (2015), Kurakin et al. (2016), Moosavi-Dezfooli et al. (2016), Elsayed et al. (2018), Li et al. (2019), etc. conducted extensive follow-up research in the vision domain.
- Papernot et al. (2016), Ebrahimi et al. (2018), Iyyer et al. (2018), Naik et al. (2018), Reddy and Knight (2016), etc. applied adversarial attacks to natural language processing.
Defense methods
- Cisse et al. (2017)'s Parseval networks and Wong and Kolter (2018)'s provable defenses; the authors state such work provides guidance for building robust models.
Audio and speech attacks
- Zhang et al. (2017) (DolphinAttack) proposed a proof of concept for real-world speech attacks, but the authors point out that it focuses on the hardware part of ASR systems rather than the machine learning components.
- Carlini et al. (2016) (Hidden Voice Commands) attacks HMM models; the authors consider that it only demonstrated a limited set of discrete voice commands, and most perturbations cannot be played over the air.
- Carlini and Wagner (2018) and Qin et al. (2019) perform white-box attacks on the Mozilla speech recognition system; the authors state these attacks only work under specific settings and are fragile in the real world; Schönherr et al. (2018) uses psychoacoustics to hide attacks against the Kaldi system, and the authors state the real-world success rate is unsatisfactory and the adversarial examples cannot change playback source.
- The authors report verifying that the above adversarial examples are ineffective against Alexa and Siri: both can still correctly transcribe under these perturbations.
Techniques on which this paper's attack relies
- The simulated model architecture is based on Amazon's public wake word detection papers: Panchapagesan et al. (2016), Kumatani et al. (2017), Guo et al. (2018), Wu et al. (2018).
- The attack optimization uses Athalye et al. (2018)'s expectation over transform; music synthesis uses the Karplus-Strong algorithm (Jaffe and Smith 1983); room impulse responses use the Image Source Method of Allen and Berkley (1979); the psychoacoustic masking setup follows Qin et al. (2019).
Baselines and positioning: The experimental baselines are three types of non-adversarial audio at the same loudness—random music generated by the Karplus-Strong algorithm, random single tones generated by Karplus-Strong, and non-synthesized real guitar music (the top 10 guitar pieces on YouTube). The authors position this paper as: a gray-box attack that is harder than white-box attacks, and claim that to their knowledge it is a real-time gray-box real-world attack against commercial voice assistant wake word detection.
How does the paper address this problem?
Train a simulated model of Alexa wake word detection, use a differentiable Karplus-Strong synthesizer to parameterize the attack as music, and use PGD to jointly optimize the attack and concealment.
Overall approach: first reproduce, following the public architecture, a simulated wake word detection model with performance comparable to real Alexa, then constrain the adversarial perturbation to a segment of differentiably synthesized guitar-timbre music (Adversarial Music), perform white-box optimization on the simulated model with PGD, and attack real Alexa via transferability.
Simulated wake word detection model
- Architecture: Implement time-delayed bottleneck highway networks following Guo et al. (2018), with DFT features as input: 4 highway blocks for feature extraction, a linear bottleneck layer, concatenation of a temporal context window of adjacent frames, then 6 highway blocks for classification (Figure 1).
- Training: First pretrain a general acoustic model on multiple large corpora (Fisher, Switchboard, TED-LIUM), then adapt it with a small amount of wake word data; train as binary classification (wake word/non-wake word) over time series, detecting "Alexa" by recognizing the phoneme sequence AX, L, EH, K, S, AX.
- Fidelity: The authors state that due to insufficient training data, the simulated model's performance is not exactly the same as Alexa's but is of the same order of magnitude (DET curves in Figure 2; the Alexa curve is flat because its False Alarm Rate is not public), and they believe the gradients of the two models should be highly similar, so the white-box attack can transfer.
Adversarial music synthesizer (threat model)
- Parameterization: Synthesize guitar timbre with the Karplus-Strong plucked-string algorithm; a piece of music is a sequence of L notes {(f ri , di , voli )}, given a BPM and sampling rate; during optimization only each note's frequency f r and volume vol are updated, with note duration d fixed.
- Differentiability: The synthesis function π(x; θ) is differentiable with respect to frequency and volume; the authors implement it in PyTorch, enabling gradient-based optimization.
- Synthesis process: Each note first simulates a pluck with a random initial displacement, then generates a decaying vibration through iterative zero low-pass filtering (Algorithm 1).
Psychoacoustic masking
- Goal: Make the perturbation inconspicuous to the human ear. Following the setup of Qin et al. (2019), the perturbation's normalized power spectral density is required to be below the original audio's frequency masking threshold, corresponding to the loss term Lη (x, δ) = 1/(⌊ N/2 ⌋ + 1) ∑k=0⌊ N/2 ⌋ max { p̄δ (k) − ηx (k), 0 }, i.e., the portion of the perturbation PSD exceeding the masking threshold incurs a penalty.
Room impulse response (Expectation over Transform)
- Purpose: Make the attack still effective when played over the air. Use the Image Source Method (Allen and Berkley 1979) to generate a room impulse response r according to room dimensions, sound source position, and reverberation time; the transform t(x) = x ∗ r, with t following the distribution T of room configurations.
PGD optimization and attack objective
- Attack objective: An untargeted attack that maximizes the wake word detection classification loss while balancing the psychoacoustic loss with α: maxθ l(x, δθ, y) = Et ∈ T, x, y ∼ D [Lwake(f(t(x + δθ), y)) − α · Lη (x, δθ)], where L_wake is the simulated model's wake word detection loss and δθ is the synthesized adversarial music.
- Constraints: During PGD optimization, frequency is restricted to 27.5Hz–4186Hz (a space of 88 notes) and volume to 0–100 dBA; the authors state some parameters are fixed to speed up training, with specific values defined in the code.
What experiments did the paper conduct?
Both digital and physical experiments show the attack is effective: in the real Alexa physical test, F1 drops from 92.5% to 11.0%, while non-adversarial music at the same loudness has almost no effect.
Experimental setup
- Systems tested: the emulated wake word detection model reproduced by the authors following Guo et al. (2018) (Emulated Model), and real Amazon Alexa (Amazon Echo device).
- Data: 10 people (4 male, 6 female; 4 native English speakers, 6 non-native speakers), each with 10 "Alexa" wake words, 100 in total, augmented 20-fold to 2000 via speed, pitch, and volume changes; the LJ speech dataset is used for background noise and negative samples, synthesizing 10-second audio with binary labels.
- Metrics: Precision, Recall, F1 (the authors explain that F1 was chosen because missed detections and false alarms are equally harmful); the physical experiments additionally use "the number of times Alexa responds to the wake word in 10 attempts."
- Physical environment: a home environment (Figure 4), with attack music played from a MacBook Pro (15-inch, 2018) speaker (the authors state they also tried an Alienware MX 18R2 and a Logitech Z506, with the MacBook Pro performing best, and report only its results); the tester is at distance dt from the Echo, the attack sound source is at distance da from the Echo, with angle ϕ; the human wake word averages 70 dBA, the background reference noise is 20 dBA, the attack music is 40–70 dBA, and a sound level meter is used to ensure the attack music is no louder than the wake word.
- Sample sizes: 4000 for digital tests; 100 per group for physical tests (Table 1); 10 per group for Tables 2–4 (5 each for male and female testers).
- Baselines: three types of non-adversarial audio at the same loudness (70 dBA, da = 7.7ft): Karplus-Strong random music, Karplus-Strong random single tones, and real guitar music (10 tracks).
Main results
Table 1: performance of each model in digital/physical environments with and without attack.
Swipe horizontally to read the table
Model Attack Environment Precision Recall F1 Sample count Emulated Model No Digital 0.97 0.94 0.955 4000 Emulated Model No Physical 0.96 0.91 0.934 100 Alexa No Physical 0.93 0.92 0.925 100 Emulated Model Yes Digital 0.14 0.11 0.117 4000 Emulated Model Yes Physical 0.12 0.09 0.110 100 Alexa Yes Physical 0.11 0.10 0.110 100 - The authors state that the attack is effective against both the emulated model and real Alexa in digital and physical tests, and that precision is affected more by the attack than recall.
- The authors note that False Positives are relatively rare, and believe this may be because it is an untargeted attack, where the adversarial examples do not drive the model to predict a specific label.
- The authors conclude: audio adversarial examples disguised as music can be played over the air and cause commercial wake word detection systems to fail.
Physical parameter sweep (Table 2)
- What was measured: the number of times real Alexa responds to the wake word under different da (4.7/6.2/7.7ft), dt (4.2/7.2/10.2ft), ϕ (0°/90°/180°), and volume (40–70 dBA) (10 attempts per group).
- Results: at 70 dBA and da = 4.7ft, Alexa responds 0/10 at all angles; at 60 dBA, most combinations are 0/10–4/10; at 50 dBA, 1/10–4/10; at 40 dBA, 3/10–5/10.
- Authors' interpretation: the shorter da is, the more effective the attack; success rate rises as volume increases from 40 dBA to 70 dBA, and the attack is ineffective below 40 dBA; the larger ϕ is, the weaker the attack, which the authors attribute to Alexa's 7-microphone array source separation capability, and they state this proves that accounting for the room impulse response is useful—removing the room impulse transform makes the adversarial examples ineffective.
Time offset and baseline comparison (Tables 3, 4)
- Time offset (da = 7.7ft, 70 dBA): when the attack music is played 1 second after the wake word (toffset = +1s), Alexa responds in all cases (10/10); when played 1 second before (toffset = −1s), it does not respond in any case (0/10); when played continuously in a loop, 0/10–1/10. The authors state that the attack music must overlap with the entire duration of the wake word to be effective, and that it is ineffective if the wake word is spoken first.
- Non-adversarial baselines (da = 7.7ft, 70 dBA): under random music, random single tones, and real guitar music, the number of Alexa responses is 9/10–10/10. The authors state that these baselines can hardly fool Alexa under various test conditions, showing that the adversarial music trained with PGD is indeed effective.
Other ablations and analyses
- Room impulse response ablation: after removing the room impulse transform, the adversarial examples lose effectiveness (main text, no numbers given).
- Speaker comparison: the authors state they tried three speakers, with the MacBook Pro speaker performing best, and the paper reports only that speaker's results (no comparison numbers given).
- Tester gender: the physical experiments were each tested by one male and one female tester with 5 samples each (Tables 2–4); the paper does not report differences in results by gender.
What are some points that can be further explored?
The authors state there is a performance gap between the simulated model and real Alexa, and call for research on defenses; the experiments cover only one device, Alexa, and the physical-group sample size is small.
Limitations and future directions noted by the authors
- Simulation fidelity (Section 3.1): The authors state that due to the lack of training data, the emulated model's performance is not exactly the same as real Alexa, but is only on the same order of magnitude.
- Defense research (Section 1 and Conclusion): The authors state that this finding calls for future voice research to focus on defenses and general robustness against such potential risks.
- Attack condition limits (Section 4): The authors report that the attack is ineffective when the attack music is below 40 dBA; the attack is ineffective when the wake word is spoken before the attack music; the larger ϕ is, the weaker the attack. These are the boundaries of the conditions under which the authors describe the attack as effective.
Scope of experimental coverage
- The only commercial system tested is Amazon Alexa (Amazon Echo); for other voice assistants, the paper only reports the verification that "existing ASR adversarial examples are ineffective against Alexa and Siri," and does not use this paper's method to attack Siri.
- The main physical experiment uses 100 samples per group (Table 1); parameter sweeps use 10 per group (5 each for male and female testers, Tables 2–4).
- The physical environment is a single home environment, and the attack sound source is a MacBook Pro speaker; the paper does not report quantitative results in other rooms or with other speakers.
- The only wake word is "Alexa"; there are 2 testers (one male, one female), and the pre-collected corpus comes from 10 people.
- The paper does not report training hyperparameters such as the number of PGD iterations or the value of α (it states that some parameters are defined in the code); it does not report statistical significance tests.
- The paper does not evaluate any defense method, nor does it test adaptive attacks.
Summarize the main content of the paper
The authors propose an adversarial audio attack disguised as background music that, when played over the air, disables Amazon Alexa wake word detection, dropping F1 from 92.5% to 11.0%.
A paper on real-world audio adversarial attacks against voice assistant wake word detection (NeurIPS 2019).
- Problem: The authors argue that commercial voice assistants' wake word detection is deployed on-device and updated infrequently, so it may be easier to attack than cloud ASR; existing audio adversarial attacks cannot reliably take effect over the air against commercial systems.
- Method: Train a simulated wake word detection model following Amazon's public architecture (Guo et al. 2018); use a differentiable Karplus-Strong synthesizer to parameterize the perturbation as guitar-timbre music, and use PGD to jointly optimize the attack loss, a psychoacoustic masking term, and room impulse responses (expectation over transform), then transfer the attack to real Alexa, which the authors call a gray-box attack.
- Main results (Table 1): In the digital setting, the simulated model's F1 drops from 95.5% to 11.7%; in the physical setting, the simulated model's F1 drops from 93.4% to 11.0%, and real Alexa's F1 drops from 92.5% to 11.0%.
- Parameter patterns (Tables 2, 3): The closer the attack sound source and the louder the volume, the more effective the attack (at 70 dBA, da = 4.7ft, Alexa responds 0/10); below 40 dBA it is ineffective; the attack music must overlap with the wake word, and if played 1 second late it is completely ineffective.
- Controls (Table 4): Under random music, random single tones, and real guitar music at the same loudness, Alexa responds 9/10–10/10; the authors state this shows the attack effect comes from PGD optimization rather than mere noise interference.
- Authors' conclusion: Adversarial examples disguised as music constitute a real threat to commercial voice assistants (e.g., driving distraction, malicious control of smart devices), and the authors call for future research on defenses and general robustness against such risks.