Beyond $L_p$ clipping: Equalization-based Psychoacoustic Attacks against ASRs

Hadi Abdullah, Muhammad Sajidur Rahman, Christian Peeters, Cassidy Gibson, Washington Garcia, Vincent Bindschaedler, Thomas Shrimpton, Patrick Traynor

TL;DR

Researchers from the University of Florida have developed a new equalization-based adversarial attack that exploits both traditional and modern "fully end-to-end" Automatic Speech Recognition (ASR) systems. By leveraging human psychoacoustics rather than standard mathematical clipping, this attack produces malicious audio that is significantly less noisy and more imperceptible to human listeners than current state-of-the-art methods.

What Problem Does This Paper Address?

Automatic Speech Recognition (ASR) systems, like those powering Alexa or Siri, are vulnerable to adversarial attacks—audio inputs that sound like normal speech to humans but are transcribed as malicious commands by the machine.

Historically, the most "stealthy" attacks used psychoacoustic models to hide perturbations. However, these attacks relied on the existence of traditional signal-processing layers (like STFT or MFCC) within the ASR to calculate gradients in the frequency domain. Modern ASRs have moved toward "fully end-to-end" architectures that learn features directly from raw waveforms, rendering these older psychoacoustic attacks obsolete.

To attack these newer models, researchers fell back on $L_p$ clipping, a technique borrowed from image recognition that "cuts" the signal at a maximum threshold. While effective for pixels, $L_p$ clipping in audio introduces harsh distortion and audible artifacts (harmonics) that make the attack obvious to a human ear. This paper aims to bridge the gap: creating a psychoacoustic attack that works on end-to-end models without sacrificing audio quality.

The primary difference between traditional ASRs (which use signal processing like MFCC) and fully end-to-end ASRs (which use NNs to learn features directly).

Methods

The authors propose an equalization-based psychoacoustic attack. Instead of hard-clipping the signal amplitude, they manipulate the intensity of individual frequencies based on the human auditory system's limitations.

  1. Masking Thresholds: They calculate "masking thresholds" using psychoacoustic principles like frequency masking (where a loud tone makes a nearby softer tone inaudible) and variable perception of loudness (the BARK scale).
  2. Iterative Optimization: Using a white-box approach, they iteratively generate a candidate perturbation $\delta$ using the Fast Gradient Sign Method (FGSM) to move the ASR's output toward a target malicious transcription.
  3. Frequency-Domain Equalization: They transform the perturbation into the frequency domain using a Short-Time Fourier Transform (STFT). They then "equalize" the perturbation, scaling the real-imaginary pairs of the complex numbers to ensure they stay below the masking thresholds while strictly maintaining phase information to prevent distortion.
  4. Time-Domain Reconstruction: Because the modified spectrogram doesn't have a perfect inverse, they use the Griffin-Lim algorithm to reconstruct the final time-domain adversarial audio.
Comparison showing how hard clipping distorts the waveform and adds noise, while equalization reduces intensity at specific frequencies to maintain quality.

Datasets

The study utilized the LibriSpeech dataset, a standard large-scale corpus of read English speech.

  • Evaluation Set: 100 audio samples were randomly selected from the LibriSpeech test set.
  • Target Phrases: Each sample was perturbed to match 50 different random target phrases from the same set, resulting in a robust testing framework of 20,000 attack audio samples across different parameters.

Key Insights and Ideas

  • Audio is not Images: The biggest "aha" moment is the critique of $L_p$ clipping. In computer vision, $L_p$ distance is a decent proxy for similarity. In audio, "hard clipping" a waveform creates high-frequency harmonics that are incredibly jarring to humans, even if the mathematical $L_p$ distance is small.
  • Phase Matters: Many frequency-domain modifications discard phase, but the authors show that maintaining the real-imaginary pair during equalization is critical for reconstructing high-quality audio.
  • The Griffin-Lim Trade-off: While Griffin-Lim is usually run for many iterations (e.g., 50) to get the best reconstruction, the authors found that for adversarial attacks, $k=1$ iteration is actually optimal. Higher iterations tend to "wash out" the fine-grained adversarial perturbations, leading to lower attack success rates.
Plots showing that lower Griffin-Lim iterations ($k=1, 2$) lead to higher attack success and faster generation times.

Key Results

  • Effectiveness: The attack achieved a 100% success rate against DeepSpeech (a traditional/hybrid model) and a 76% success rate against Wav2Letter (a fully end-to-end model). These rates are comparable to the state-of-the-art Carlini & Wagner (CW) attack.
  • Perceptibility (User Study): In a study of 100 participants, 80% voted that the authors' attack samples were less noisy than the CW attack.
  • Annoyance Factor: Between 70% and 98% of participants found the CW attack samples "annoying" or "very annoying," whereas the authors' equalization-based samples were perceived as significantly cleaner.

Limitations and Future Work

The primary limitation noted is the lower success rate (76%) on the fully end-to-end Wav2Letter model compared to DeepSpeech. The authors attribute this to the lack of recurrent layers or MFCC features in Wav2Letter's architecture, which may make it slightly more robust to optimization-based attacks.

Future work could involve exploring black-box versions of this attack or testing against a wider variety of end-to-end architectures to improve the success rate across all model types.

Summary updated

BibTeX
@inproceedings{abdullah2021beyond,
  author = {Hadi Abdullah and Muhammad Sajidur Rahman and Christian Peeters and Cassidy Gibson and Washington Garcia and Vincent Bindschaedler and Thomas Shrimpton and Patrick Traynor},
  title = {{Beyond $L\_p$ clipping: Equalization-based Psychoacoustic Attacks against ASRs}},
  booktitle = {ACML},
  year = {2021},
  url = {https://openreview.net/forum?id=eJ_K5BOmPwn},
}
Figure