Characterizing Audio Adversarial Examples Using Temporal Dependency

Zhuolin Yang, Bo Li, Pin-Yu Chen, Dawn Song

TL;DR

This paper demonstrates that while standard image-based defenses (like bit quantization) fail to protect voice assistants from adversarial attacks, the unique temporal dependency of audio provides a powerful shield. By checking if the transcription of a short audio segment remains consistent when processed as part of a longer clip, researchers can detect sophisticated "hidden command" attacks with over 93% accuracy, even when the attacker knows how the defense works.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously fragile. An attacker can add a tiny, inaudible amount of noise to an audio file to make a voice assistant like Alexa or Google Home hear "open the front door" instead of a pop song.

While many defenses exist for images, this paper addresses two major gaps:

  1. The Transferability Gap: Do "input transformations" (like reducing image resolution or bit depth) that work for images actually protect audio?
  2. The Domain Gap: Audio is fundamentally different from images. Images rely on spatial correlations (pixels near each other), while audio relies on temporal dependency (the meaning of a sound depends on what came before and after it). The authors ask if we can weaponize this unique property to catch attackers.

Methods

The authors propose a detection method called Temporal Dependency (TD).

The logic is elegant: In natural speech, the first two seconds of a sentence should be transcribed the same way whether you listen to just those two seconds or the entire ten-second clip. However, audio adversarial perturbations are often "brittle"—they are mathematically optimized to work on a specific, full-length window of audio.

The Temporal Dependency (TD) pipeline comparing whole vs. partial transcriptions.

The TD Pipeline: 1. Take an audio input and select the first $k$ portion (the prefix). 2. Transcribe this prefix alone to get result $S_k$. 3. Transcribe the entire audio and extract the first $k$ portion of that transcription to get $S_{\{whole,k\}}$. 4. Compare the two results using Word Error Rate (WER). 5. If the results differ significantly, the audio is flagged as adversarial.

The authors also tested four "standard" image-inspired defenses: Quantization (rounding amplitudes), Local Smoothing (sliding window averages), Downsampling, and Autoencoders (reconstructing the audio to "clean" it).

Datasets

The study utilized three primary datasets to cover both simple classification and complex speech-to-text tasks:

  • LibriSpeech: A large corpus of English read speech (approx. 1000 hours).
  • Mozilla Common Voice: A public dataset of human-spoken audio files.
  • Speech Commands: A dataset of short, one-second commands (e.g., "yes", "no", "up", "down") used for the classification tasks.

Key Insights and Ideas

  • Audio is not just "1D Images": Standard image defenses like bit quantization provide some protection for simple keyword classification but are easily bypassed by "adaptive attacks" in complex speech-to-text systems.
  • The Fragility of Context: Adversarial perturbations in audio often rely on the global context of the file to "force" the neural network into a specific state. By breaking that context (listening to only a portion), the defense causes the attack to collapse.
  • Resistance to Adaptive Attacks: Even if an attacker knows the system is using a TD check, it is mathematically difficult to create a perturbation that is "stable" enough to produce the same malicious transcription for both a partial segment and the whole sequence.

Key Results

  • Detection Power: The TD method achieved an Area Under the Curve (AUC) of 0.936 on the Common Voice dataset and 0.930 on LibriSpeech, indicating highly effective discrimination between benign and adversarial audio.
  • Failure of Image Defenses: While input transformations reduced attack success rates initially, "adaptive" attackers (who accounted for the defense) were able to restore attack success rates to nearly 100% for quantization and smoothing.
Evaluation metrics of various defenses and the TD method's detection results.
  • Robustness: Against "Segment Attacks" (where the attacker tries to only perturb the first portion), the success rate dropped to a mere 2%. The "Concatenation Attack" (trying to stitch two successful attacks together) failed completely because the boundary between segments disrupted the model's internal state.

Limitations and Future Work

  • Short Audio Clips: The TD method relies on having enough temporal data to compare. For very short, one-second clips (like those in the Speech Commands dataset), the temporal dependency is less obvious, making the method less effective.
  • Computational Overhead: Running the transcription process twice (once for the segment, once for the whole) increases the time it takes for a voice assistant to respond.
  • Future Directions: The authors suggest exploring how this temporal consistency check could be integrated directly into the training of RNNs (Recurrent Neural Networks) to create models that are "robust by design" rather than just having an external detector.

Summary updated

BibTeX
@inproceedings{yang2019characterizing,
  author = {Zhuolin Yang and Bo Li and Pin-Yu Chen and Dawn Song},
  title = {{Characterizing Audio Adversarial Examples Using Temporal Dependency}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=_wgkF1GpIPT},
}
Figure