Adversarial Defense for Automatic Speaker Verification by Cascaded Self-Supervised Learning Models

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

Abstract

Automatic Speaker Verification (ASV) systems are increasingly integrated into security-sensitive applications but remain highly vulnerable to adversarial attacks—human-imperceptible perturbations designed to deceive AI models. This paper introduces a novel, attack-agnostic defense mechanism utilizing cascaded self-supervised learning (SSL) models. By leveraging the Transformer Encoder Representations from Alteration (TERA) architecture, the proposed system "purifies" adversarial audio signals by reconstructing them toward a natural speech manifold. Experimental results demonstrate that a cascade of TERA models significantly reduces the Equal Error Rate (EER) for adversarial inputs while maintaining modularity with existing ASV pipelines.

Introduction: The Vulnerability of ASV

Automatic Speaker Verification (ASV) is widely deployed for biometric authentication in smartphones and financial services. However, these systems are susceptible to adversarial attacks: strategically crafted noise that sounds like silence or static to humans but causes an AI to misidentify a speaker.

Current defense strategies, such as adversarial training, often suffer from "overfitting" to specific attack types, failing when confronted with novel or unknown perturbations. To address this, researchers have sought an attack-agnostic defense—one capable of neutralizing malicious noise without prior knowledge of the attacker's methodology.

Methodology: TERA and Cascaded Purification

The proposed defense centers on the TERA (Transformer Encoder Representations from Alteration) model, an SSL framework originally designed for speech representation learning.

Self-Supervised Pretraining

TERA is pretrained by intentionally corrupting clean speech—altering time steps, frequency channels, or magnitudes—and tasking the model with reconstructing the original signal. This process forces the model to learn the underlying "manifold" of natural human speech.

Cascaded Purification

The core innovation lies in placing multiple TERA models in a "cascade" (sequential chain) preceding the ASV system. When an adversarial sample enters this chain, the TERA models treat the adversarial noise as just another form of corruption and attempt to "denoise" or purify it, pushing the signal back toward the learned natural speech manifold.

Overview of the TERA-based purification system showing pre-training, the cascaded chain, and integration with an ASV system.

This modular approach acts as a "deep filter" that can be integrated into existing ASV pipelines without modifying the internal weights of the verification model itself.

Experimental Setup and Datasets

The researchers evaluated the system using the following datasets:

  • VoxCeleb1: Used to develop the ASV system and generate adversarial test samples (1,000 trials).
  • VoxCeleb2: Used to pretrain the TERA models, ensuring a robust understanding of diverse human speech patterns.

The defense was tested against two threat levels: Unaware Attackers (who only know the ASV model) and Aware Attackers (who know about the TERA defense and attempt to bypass it).

Results: The Efficacy of Purification

The study found that SSL models like TERA are inherently effective purifiers because they are trained to reconstruct clean speech from noisy inputs, making them adept at identifying and removing unnatural adversarial patterns.

The Power of the Cascade

A single TERA model provides some defense, but stacking them significantly enhances performance. Each additional stage in the cascade further "squeezes" the audio back toward a natural representation. As shown in the performance metrics, the Equal Error Rate (EER) for adversarial inputs decreases markedly as the number of cascaded models increases.

System EER(%) as a function of the number of cascaded TERA models for both adversarial and genuine inputs.

Quantitative Performance

  • Error Reduction: For unaware attackers, the EER dropped from a baseline of 65.92% to approximately 20% when using a 10-model TERA cascade.
  • Comparison to Baselines: TERA outperformed standard mathematical filters (e.g., Gaussian or Median). While a Median filter achieved an EER of ~29%, the TERA cascade reached ~22% on adversarial inputs while preserving more speech-relevant features.
  • Resilience to Aware Attacks: Even when attackers attempted to bypass the defense using a substitute TERA model, the cascade remained effective, lowering the EER from 54.55% to 40.69%.

Discussion and Future Directions

While highly effective against attacks, the TERA cascade introduces a trade-off: a slight degradation in performance on clean audio. The EER for genuine speech rose from ~8% to ~17% due to imperfect reconstruction.

Future work will focus on refining the TERA architecture to ensure higher fidelity in purified audio and finetuning ASV systems on purified audio to make them more resilient to the minor artifacts introduced by the purification process.

Summary updated

BibTeX
@inproceedings{wu2021adversarial,
  author = {Haibin Wu and Xu Li and Andy T. Liu and Zhiyong Wu and Helen Meng and Hung-yi Lee},
  title = {{Adversarial Defense for Automatic Speaker Verification by Cascaded Self-Supervised Learning Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9413737},
}
Figure