Abstract
Speaker anonymization aims to protect user privacy by stripping biometric identifiers from voice recordings while preserving linguistic content. A common approach involves the use of x-vectors—mathematical embeddings representing vocal characteristics—which are replaced with synthetic "pseudo x-vectors." This paper demonstrates that current evaluation methods, which rely on training complex deep learning models to measure privacy, significantly underestimate the risk of de-anonymization. We propose a deterministic "simulate and compare" inference attack that exploits the underlying logic of the anonymization algorithm. Our results show that this attack achieves near-perfect accuracy in many scenarios and significantly outperforms traditional machine learning models while requiring a fraction of the computational cost.
Introduction
As voice-controlled devices and speech-to-text services become ubiquitous, the need for robust speaker anonymization has intensified. The goal is to transform a speaker's voice so that their identity is hidden, yet the utility of the speech (e.g., for transcription or emotion recognition) remains intact. The current state-of-the-art approach, popularized by the VoicePrivacy Challenge, utilizes x-vector embeddings to represent speaker identity. By replacing a user's original x-vector with a synthetic one, these systems attempt to generate anonymized audio.
However, the security of these systems is typically evaluated using Automatic Speaker Identification (ASI) models. These models are often deep neural networks trained to recognize speakers from processed audio. This paper argues that this evaluation framework is fundamentally flawed because it assumes an attacker's strength is limited by their ability to train a model. We demonstrate that a principled inference attack—one that understands the mathematical transformation used during anonymization—provides a much more accurate lower bound for privacy.
The "Simulate and Compare" Attack
Unlike traditional attacks that attempt to "learn" patterns through training, the proposed inference attack is deterministic and requires no machine learning. It operates on a "simulate and compare" principle, leveraging the fact that many anonymization processes are public and reproducible.
Methodology
The attack follows four primary steps:
- Observation: The attacker obtains the anonymized audio and extracts its resulting x-vector.
- Simulation: Assuming knowledge of the anonymization algorithm (a standard "white-box" or "gray-box" security assumption), the attacker identifies a set of "suspect" speakers.
- Re-Anonymization: The attacker runs the suspect voices through the exact same anonymization process to generate their corresponding "pseudo x-vectors."
- Matching: The attacker compares the observed x-vector from the target audio to the simulated pseudo x-vectors using simple distance metrics, such as $L_2$ distance. The closest match is identified as the original speaker.
This attack is effective because the generation of a pseudo x-vector is rarely truly random. In many implementations, it is an average of the original voice and its nearest neighbors in a public pool. This deterministic relationship creates a unique "fingerprint" that points directly back to the original speaker.
Experimental Evaluation
The study utilized the Libri_dev dataset (a subset of LibriSpeech) for testing, with LibriTTS "train-other-500" serving as the public pool of x-vectors for the anonymization process. The adversary's pool of potential "suspect" speakers consisted of 29 unique individuals from the Libri_dev_enrolls set.
Performance Results
The inference attack demonstrated a clear superiority over traditional deep-learning-based ASI models in two primary scenarios:
- Same-Audio Scenario: When the attacker has access to the same audio samples used for anonymization, the inference attack achieved 100% accuracy across nearly all settings.
- Different-Audio Scenario: In a more realistic setting where the attacker has different recordings of the same person, the inference attack reached approximately 77% accuracy. In contrast, a standard ASI model struggled to reach 43% accuracy.
- Computational Efficiency: The inference attack is remarkably fast. While training a standard evaluation model for the VoicePrivacy Challenge can take up to 10 hours, the proposed attack executes in roughly 2 minutes.
Key Insights and Identity Leakage
The success of this attack reveals critical vulnerabilities in current anonymization logic. The process of selecting the most similar (or dissimilar) voices from a pool to create a pseudo-voice inadvertently leaks statistical information about the original speaker.
Furthermore, the researchers discovered that identity "leaks" through features previously thought to be identity-neutral. Even when the x-vector was completely randomized—theoretically providing maximum privacy—the attack performed better than random guessing. This suggests that speaker identity is still present in the pitch ($F_0$) and linguistic features ($B_N$) of the regenerated audio.
Conclusion and Future Work
The findings indicate that current x-vector-based anonymization methods are insufficient against an adversary who understands the transformation algorithm. The "ML-free" nature of this attack proves that complexity in an attack model is not a prerequisite for effectiveness; rather, understanding the mathematical vulnerabilities of the defense is key.
Future research should focus on more robust anonymization techniques, such as Differential Privacy, which can provide formal guarantees against such inference. Additionally, more work is needed to neutralize identity leakage in pitch and linguistic components to ensure that anonymized speech is truly decoupled from the biometric identity of the speaker.
Summary updated