Improving the Adversarial Robustness for Speaker Verification by Self-Supervised Learning

Haibin Wu, Xu Li, Andy T. Liu, Zhiyong Wu, Helen Meng, Hung-yi Lee

TL;DR

This paper introduces a novel defense framework for Automatic Speaker Verification (ASV) systems using self-supervised learning models (SSLMs) as "reformers." By treating adversarial perturbations as a form of superficial noise, the authors successfully purify and detect unknown adversarial attacks, significantly improving system robustness without needing prior knowledge of the specific attack algorithm.

What Problem Does This Paper Address?

Automatic Speaker Verification (ASV) is a critical biometric technology used in everything from smartphone unlocking to banking. However, these systems are highly vulnerable to adversarial attacks: tiny, human-imperceptible perturbations added to an audio signal that can trick a model into incorrectly accepting an imposter or rejecting a legitimate user.

The major hurdle in current defense research is that most methods require "knowing the enemy"—they are trained against specific, known attack algorithms. In the real world, attackers are unpredictable. This paper addresses the need for a general-purpose defense that can mitigate and detect adversarial samples without any prior knowledge of how they were generated.

Methods

The authors propose a two-pronged defense strategy based on a Self-Supervised Learning Reformer (SSLR). The SSLR is essentially a speech version of BERT, consisting of transformer encoders trained to reconstruct clean acoustic features from corrupted ones.

1. Adversarial Perturbation Purification

The core idea is that SSLMs are naturally adept at removing "superficial noise" to recover underlying pivotal information. The authors train the SSLR using several masking strategies:

  • Channel Masking: Randomly zeroing out blocks of frequency channels.
  • Time Masking: Randomly zeroing out or replacing blocks of time frames.
  • Magnitude Alteration: Adding Gaussian noise to the input.
Fig. 1. The illustration of inputs with various masking strategies. The masked part is highlighted by an orange block. (a) is the original MFCC, and (b), (c), (d) are the MFCC modified by channel masking, time masking and magnitude alteration, respectively.

During inference, multiple SSLR blocks are cascaded. As an adversarial sample passes through these blocks, the "noise" (the adversarial perturbation) is gradually washed away, pulling the sample back toward the correct side of the decision boundary.

Fig. 2. (a) Illustration of the SSLR models training. The gray pixels in the altered frames (the orange block in (a) ) means masking. The green and blue frames in the predicted frames (the yellow block in (a) ), are the reconstructed frames for time masking and frequency masking respectively. (b) Adversarial defense by cascaded SSLR models. The cascaded SSLR models in (b) are only used during inference. (c) Automatic speaker verification. Notice that all X, ˜ X, ˜ X′ and δ in the figure are matrices that represent acoustic feature sequences.

2. Adversarial Perturbation Detection

The authors observed that while genuine speech samples produce stable ASV scores after passing through SSLR blocks, adversarial samples produce highly volatile scores. By calculating statistical moments (specifically the 5th order moment) of the scores generated at each stage of the cascade, the system can flag and reject suspicious inputs.

The flow for adversarial detection based on statistical analysis of scores across the SSLR cascade.

Datasets

  • VoxCeleb2: Used for training the SSLR models (over 1 million utterances from 6,112 speakers).
  • VoxCeleb1: Used as the benchmark for evaluating the ASV systems and generating adversarial samples.
  • Attacks tested: Fast Gradient Sign Method (FGSM), Basic Iterative Method (BIM), and Jacobian-based Saliency Map Attack (JSMA).

Key Insights and Ideas

  • Adversarial Perturbations as Noise: The most powerful insight is treating adversarial attacks not as a special mathematical case, but as a type of "superficial noise" that generative self-supervised models are already designed to handle.
  • The Power of the Cascade: A single pass through a reformer might not be enough. Cascading multiple identical SSLR blocks (up to 9 in their experiments) significantly improves the purification effect.
  • Score Volatility as a Signal: The fact that adversarial samples "break" differently than genuine samples when processed by a reformer provides a robust signal for detection that doesn't require seeing the attack during training.
  • Standardized Metrics: The paper formalizes new evaluation metrics like GenEER (performance on genuine samples), AdvFAR/AdvFRR (performance under attack), and j-FAR/j-FRR (joint performance on a mix of samples) to provide a clearer benchmark for future defense research.

Key Results

  • Purification Effectiveness: For an r-vector ASV system under a BIM attack, the SSLR-TCM (trained with all three masking types) reduced the False Acceptance Rate (AdvFAR) from 72.30% down to 20.82%.
  • Detection Accuracy: The detection module achieved an accuracy of approximately 80% across different attack algorithms.
  • Outperforming Baselines: The SSLR approach significantly outperformed traditional signal processing filters (mean, median, and Gaussian filters) in both purifying attacks and preserving the performance of genuine speech.
  • Generalizability: The defense worked effectively across different ASV architectures (x-vector and r-vector) and generalized to attacks it had never "seen" before.

Limitations and Future Work

The primary limitation is the "reconstruction tax": passing genuine samples through the SSLR slightly degrades their performance (increasing the GenEER). While the authors showed that fine-tuning the ASV system on SSLR-processed data can mitigate this, it remains a trade-off.

Future work could explore more sophisticated SSLR architectures or training objectives specifically designed to minimize the distortion of clean speech while maximizing the removal of adversarial "noise." Additionally, investigating how this defense holds up against "adaptive attackers" who are aware of the SSLR remains an open and important question.

Summary updated

BibTeX
@article{wu2022improving,
  author = {Haibin Wu and Xu Li and Andy T. Liu and Zhiyong Wu and Helen Meng and Hung-yi Lee},
  title = {{Improving the Adversarial Robustness for Speaker Verification by Self-Supervised Learning}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2022},
  url = {https://openreview.net/forum?id=zh44yj9VYHp},
}
Figure