Towards Understanding and Mitigating Audio Adversarial Examples for Speaker Recognition

Guangke Chen, Zhe Zhao, Fu Song, Sen Chen, Lingling Fan, Feng Wang, Jiashui Wang

TL;DR

This paper presents the first systematic evaluation of 22 different audio transformations and adversarial training techniques to protect Speaker Recognition Systems (SRSs). The authors discover that defenses successful in the image domain often fail in audio, and they propose a novel feature-level transformation (FeCo) that, when paired with adversarial training, increases model accuracy by 13.6% and raises attack costs by two orders of magnitude.

What Problem Does This Paper Address?

Speaker Recognition Systems (SRSs)—used in everything from banking authentication to smart home devices—are notoriously vulnerable to adversarial examples. These are audio clips that sound normal to humans but are mathematically engineered to fool an AI into misidentifying a speaker.

While many defenses exist (like input transformations or adversarial training), the authors argue that the field lacks a rigorous, unified evaluation. Most existing defenses were only tested against "non-adaptive" attacks—where the attacker doesn't know the defense exists. In reality, a sophisticated attacker will adapt. Furthermore, conclusions drawn from the image domain (where most adversarial research happens) don't always apply to the sequential, high-frequency nature of audio.

Methods

The authors systematically investigate two main defensive pillars:

  1. Input Transformations (22 types):
    • Waveform-level (W-transformations): These include time-domain changes (quantization, smoothing) and frequency-domain filters (low-pass, band-pass).
  2. Speech Compression: Standard codecs like MP3, AAC, and OPUS.
  3. Feature-level (F-transformations): The authors introduce Feature Compression (FeCo). Instead of modifying the raw wave, FeCo applies clustering algorithms (like k-means) to the acoustic feature matrix (MFCCs) to remove redundant information and disrupt adversarial perturbations.
  4. Adversarial Training (AdvT): Retraining the model using adversarial examples to make it inherently more robust.
  5. Adaptive Attack Design: To stress-test these defenses, they designed "adaptive" versions of 7 major attacks (including PGD and CW), using techniques like BPDA (to bypass non-differentiable filters) and EOT (to bypass randomized defenses).

Datasets

The study uses four datasets derived from LibriSpeech, a standard large-scale corpus of English read speech:

  • Spk10-enroll/test: A smaller set for speaker verification and identification tasks.
  • Spk251-train/test: A larger set used for training the background models and evaluating open-set identification.

The authors also released SPEAKERGUARD, a comprehensive evaluation platform for SRS security.

Key Insights and Ideas

  • Audio is not an Image: In images, the "Backward Pass Differentiable Approximation" (BPDA) is a silver bullet for breaking non-differentiable defenses. In audio, the authors found BPDA often fails against Constant Bit Rate (CBR) compression because the transformation is too complex to be approximated by a simple identity function.
  • CBR vs. VBR Matters: Interestingly, Constant Bit Rate (CBR) compression is much more effective at stopping attacks than Variable Bit Rate (VBR). VBR preserves more "perceptual" quality, which inadvertently preserves the adversarial signal.
  • Distortion $\neq$ Strength: A common myth is that "stronger" adversarial examples (those that fool a model more easily) must have higher distortion. The authors found no direct correlation; some weak attacks had high distortion, while some very strong attacks remained nearly imperceptible.
  • The Power of Randomness: Randomized feature-level transformations (like FeCo) are significantly harder to bypass than deterministic ones because they prevent the attacker from calculating a stable gradient to follow.

Key Results

  • FeCo + AdvT: The combination of the proposed Feature Compression and Adversarial Training was the clear winner. In a complete white-box setting (where the attacker knows everything), this combo:
  • Increased model accuracy by 13.62% compared to standard adversarial training.
  • Increased the computational cost for the attacker by two orders of magnitude (requiring ~27,500 queries vs. 100).
  • Usability: Most transformations only slightly degraded the accuracy of "benign" (normal) voices, making them practical for real-world deployment.
  • Generalization: The defenses also showed promise in mitigating other types of voice threats, such as "Hidden Voice" attacks and speech synthesis (deepfake) attacks.

Limitations and Future Work

  • Metric Alignment: The authors acknowledge that standard metrics like SNR and PESQ don't perfectly capture how a human perceives audio quality. More research is needed into "audio-specific" imperceptibility metrics.
  • Commercial Systems: While the study used state-of-the-art open-source models (Kaldi, AudioNet), they did not directly target proprietary commercial APIs (like Alexa or Azure), though they expect their findings on transformations to generalize.
  • Advanced BPDA: Future work could involve developing more sophisticated approximation functions to try and break the CBR compression defenses that survived this study.

Summary updated

Abstract

Speaker recognition systems (SRSs) have recently been shown to be vulnerable to adversarial attacks, raising significant security concerns. In this work, we systematically investigate transformation and adversarial training based defenses for securing SRSs. According to the characteristic of SRSs, we present 22 diverse transformations and thoroughly evaluate them using 7 recent promising adversarial attacks (4 white-box and 3 black-box) on speaker recognition. With careful regard for best practices in defense evaluations, we analyze the strength of transformations to withstand adaptive attacks. We also evaluate and understand their effectiveness against adaptive attacks when combined with adversarial training. Our study provides thirteen useful insights and findings, many of them are new or inconsistent with the conclusions in the image and speech recognition domains, e.g., variable and constant bit rate speech compressions have different performance, and some non-differentiable transformations remain effective against current promising evasion techniques which often work well in the image domain. We demonstrate that the proposed novel feature-level transformation combined with adversarial training is rather effective compared to the sole adversarial training in a complete white-box setting, e.g., increasing the accuracy by 13.62% and attack cost by two orders of magnitude, while other transformations do not necessarily improve the overall defense capability. This work sheds further light on the research directions in this field. We also release our evaluation platform SpeakerGuard to foster further research.
BibTeX
@article{chen2023towards,
  author = {Guangke Chen and Zhe Zhao and Fu Song and Sen Chen and Lingling Fan and Feng Wang and Jiashui Wang},
  title = {{Towards Understanding and Mitigating Audio Adversarial Examples for Speaker Recognition}},
  journal = {IEEE TDSC},
  year = {2023},
  doi = {10.1109/tdsc.2022.3220673},
}
Figure