Learning to fool the speaker recognition

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

TL;DR

This paper introduces a lightweight, real-time "speaker recognition attacker" that generates imperceptible audio perturbations to fool deep learning-based speaker identification systems. By leveraging a novel optimization strategy that incorporates phoneme recognition, the researchers achieved a 99.2% success rate in non-targeted attacks while maintaining audio quality so high it is virtually indistinguishable to human listeners.

What Problem Does This Paper Address?

Deep learning has revolutionized biometric systems like face and fingerprint recognition, but it has also made them targets for adversarial attacks—small, intentional perturbations that cause a model to misclassify an input. While vision-based attacks are well-documented, speaker recognition has remained relatively under-explored.

Existing audio attacks typically target Automatic Speech Recognition (ASR) systems (turning speech to text) rather than speaker identity. Furthermore, many current methods rely on iterative optimization during the testing phase, making them too slow for real-time applications. The authors set out to create a fast, generative model that can fool state-of-the-art speaker recognition systems without degrading the perceived quality of the audio.

Methods

The authors propose a Speaker Recognition Attacker, a lightweight, fully convolutional residual network. Unlike previous methods that optimize each audio sample individually, this is a generative model: once trained, it can process new audio in a single forward pass.

Key components of their approach include:

  • Attacker Network: A 5-block 1-D convolutional architecture using varying dilations (1, 2, 5, 2, 1) to expand the receptive field without increasing parameter count.
  • Pre-Softmax Optimization: Well-trained models often produce near-zero gradients at the final softmax layer, making them hard to attack. The authors bypassed this "gradient missing" problem by optimizing the activations immediately before the softmax layer.
  • Multi-Part Loss Function: To balance attack success with audio fidelity, they used a three-pronged loss:
  • Speaker Loss ($L_{spk}$): Drives the model to misclassify the speaker.
  • Phoneme Loss ($L_{phn}$): Uses a pretrained phoneme recognition model to ensure the linguistic content of the speech remains unchanged.
  • Norm Loss ($L_{norm}$): Constraints the scale of the perturbations using an $L_2$ norm to keep them imperceptible.
Fig. 2. Illustration of our framework. Our speaker recognition attacker is applied to the raw speech input and generates a speech with perturbations, which can fool the following speaker recognition model although the perturbations are imperceptible. Besides, a pretrained phoneme recognition model is used to help train the attacker network. No finetuning for the pretrained modules when training the attacker model.

Datasets

The researchers evaluated their model using the TIMIT dataset, a standard benchmark containing recordings of 462 speakers. They used the state-of-the-art SincNet as their target model for speaker recognition and Pytorch-Kaldi for the phoneme recognition component.

Key Insights and Ideas

  • Vulnerability of Raw Waveforms: The study confirms that speaker recognition models operating directly on raw waveforms (like SincNet) are highly susceptible to adversarial perturbations.
  • The Phoneme Advantage: One of the most significant "aha" moments was finding that incorporating a phoneme recognition model during training significantly improves the trade-off between attack success and audio quality. It acts as a "content guardrail," ensuring the attacker only modifies speaker-specific traits while leaving the words intact.
  • Frequency Selectivity: By analyzing the perturbations in the frequency domain, the authors discovered that the 7k–8k Hz band is particularly influential for speaker recognition. While the attack is full-band, the energy is strongest in these high-frequency regions.
Fig. 3. The spectrogram energy distribution of the perturba- tions over the testing set.

Key Results

The model proved to be both highly effective and incredibly fast:

  • Non-Targeted Attack: Achieved a 99.2% Sentence Error Rate (SER). Despite this near-total failure of the recognition system, the audio quality remained high, with a Signal-to-Noise Ratio (SNR) of 57.2dB and a PESQ score of 4.2 (where 4.5 is perfect).
  • Targeted Attack: Successfully fooled the system into identifying a specific "target" speaker with a 72.1% average success rate.
  • Speed: The model is extremely efficient, with a Real-Time Factor (RTF) of 0.042 on a standard CPU. This means it can process audio 20 times faster than real-time, making it viable for live streaming applications.
Table showing the trade-off between attack success (SER) and audio quality (SNR/PESQ) as hyper-parameters are tuned.

Limitations and Future Work

The primary limitation acknowledged is that this is a white-box attack, meaning the attacker requires full access to the target model's internal gradients during the training phase.

For future work, the authors aim to explore:

  • Black-box attacks: Attacking systems where the internal architecture and weights are unknown.
  • Transferable attacks: Developing adversarial examples that can fool multiple different speaker recognition models simultaneously.

This research serves as a wake-up call for the biometrics community, highlighting the need for more robust defenses in voice-activated and speaker-verified systems.

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