Learning to Fool the Speaker Recognition

Jiguo Li, Xinfeng Zhang, Jizheng Xu, Li Zhang, Yue Wang, Siwei Ma, Wen Gao

Abstract

Speaker recognition systems are increasingly deployed for identity verification in sensitive applications, yet their robustness against adversarial attacks remains under-explored compared to computer vision. This paper introduces a fast, generative "attacker" network based on fully convolutional residual blocks. By adding imperceptible perturbations to raw audio, the proposed model achieves a 99.2% success rate in non-targeted attacks while maintaining high perceptual quality. Operating at over 20 times faster than real-time, this approach demonstrates a significant security risk for voice-based biometrics.

Introduction

Adversarial attacks—small, intentional perturbations designed to mislead machine learning models—have been extensively documented in the visual domain. However, audio biometrics, specifically speaker recognition, have received less attention. While existing audio attacks often target Automatic Speech Recognition (ASR) to change what is said, this work focuses on Speaker Recognition—changing who is perceived to be speaking. Furthermore, unlike traditional iterative optimization methods that are computationally expensive, this paper proposes a generative approach capable of creating adversarial audio on the fly.

Methodology

The authors propose the Speaker Recognition Attacker, a lightweight model inspired by Adversarial Transformation Networks (ATNs).

Architecture and Optimization

The attacker is a fully convolutional residual network comprising five blocks. It processes raw speech input and generates a perturbed version. To ensure the initial state is "clean," the final layer's weights are initialized to zero.

Training a model to fool a robust recognition system is challenging due to the "gradient vanishing" problem in the victim's softmax layer. To mitigate this, the authors optimize directly on the immediate activations preceding the softmax layer. The total loss function is a weighted sum of three components:

  1. Recognition Loss ($L_{spk}$): Encourages the victim model to misclassify the speaker.
  2. Phoneme Loss ($L_{phn}$): Utilizes a pretrained phoneme recognition model to ensure the speech content remains intelligible and natural.
  3. Distance Loss ($L_{norm}$): Constraints the $L_2$ norm of the perturbation to maintain imperceptibility.
The proposed Speaker Recognition Attacker architecture and training pipeline, highlighting the integration of pretrained speaker and phoneme recognition modules.

Key Insights

  • High-Frequency Vulnerability: Analysis of the perturbation spectrogram reveals that attack energy is concentrated in the 7k–8k Hz band. This suggests that speaker recognition models rely on high-frequency features that are less critical for human speech comprehension.
  • Phoneme Preservation: By incorporating $L_{phn}$, the attacker ensures that while the speaker's identity is masked or altered, the linguistic content remains clear, avoiding the "robotic" artifacts common in simpler attacks.
  • Computational Efficiency: As a feed-forward CNN, the model achieves a Real-Time Factor (RTF) of 0.042, allowing it to process a 10-second audio clip in less than 0.5 seconds on a standard CPU.

Key Results

The model was evaluated using the TIMIT dataset against the state-of-the-art SincNet architecture.

Non-targeted Attacks

In non-targeted scenarios, the goal is to make the system misidentify the speaker as anyone else. The model achieved a 99.2% Sentence Error Rate (SER). Despite this high success rate, the audio quality remained exceptional, with a Signal-to-Noise Ratio (SNR) of 57.2dB and a PESQ score of 4.2.

Quantitative results for non-targeted attacks, showing the trade-off between attack success (SER) and audio quality (SNR, PESQ) across different loss coefficients.

Targeted Attacks

In targeted scenarios, the attacker aims to fool the system into identifying the speaker as a specific individual. The system successfully achieved this 72.1% of the time on average across various targets.

Conclusion and Future Work

This research highlights a critical vulnerability in speaker recognition systems. While currently a white-box attack requiring access to the victim model's gradients during training, the speed and effectiveness of the generative approach are concerning. Future work will explore black-box transferability—where an attacker trained on one model can fool another—and the robustness of these attacks in real-world acoustic environments involving physical playback and recording.

Summary updated

BibTeX
@article{li2021learning,
  author = {Jiguo Li and Xinfeng Zhang and Jizheng Xu and Li Zhang and Yue Wang and Siwei Ma and Wen Gao},
  title = {{Learning to Fool the Speaker Recognition}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2021},
  doi = {10.1145/3468673},
}
Figure