Exploiting Context-dependent Duration Features for Voice Anonymization Attack Systems

Natalia Tomashenko, Emmanuel Vincent, Marc Tommasi

TL;DR

State-of-the-art voice anonymization systems often leave the timing and duration of phonemes untouched to preserve speech naturalness. This paper demonstrates that these temporal dynamics are a massive privacy loophole, introducing a novel attack model using context-dependent duration embeddings that can re-identify speakers with high accuracy—all without needing to retrain the model on anonymized data.

What Problem Does This Paper Address?

Voice anonymization is crucial for protecting user privacy under regulations like GDPR. Modern systems typically alter a speaker's voice identity by modifying spectral features (like pitch and timbre) while attempting to keep the linguistic content intact.

However, a major shortcut taken by many state-of-the-art anonymization tools is leaving the speech rate and individual phoneme durations completely unchanged. This paper investigates whether an attacker can exploit these subtle "temporal fingerprints"—the unique rhythm and timing with which a person speaks—to bypass anonymization and successfully re-identify the speaker.

Methods

The authors introduce a systematic way to capture speech temporal dynamics using context-dependent duration embeddings:

  1. Raw Duration Feature Sequences: Instead of just calculating a speaker's average phoneme length, the authors track individual phoneme occurrences in their exact context. Each phone in an utterance is mapped to an $N$-dimensional one-hot vector (where $N$ is the number of phoneme classes) multiplied by its duration in acoustic frames.
  2. ECAPA-TDNN Architecture: These raw sequence vectors are projected and fed into an ECAPA-TDNN (Emphasized Channel Attention, Propagation, and Aggregation in Time Delay Neural Network), a standard architecture for speaker verification. The network learns to output a 128-dimensional embedding that encapsulates the context-dependent duration patterns of the speaker.
  3. Robust Training: To prevent the model from overfitting to specific sentences, it is trained on variable-length chunks (32 to 256 phones) with random starting offsets.

At test time, speaker verification is performed simply by calculating the cosine distance between the duration embeddings of a trial utterance and an enrollment speaker.

Figure 1: Attack model training on raw duration feature sequences, yielding a 128-dimensional context-dependent duration embedding (yellow).

Datasets

The approach was evaluated using the well-known LibriSpeech corpus (read English audiobooks):

  • Training: LibriSpeech-train-960 (2,338 speakers) was used to train the attack model.
  • Evaluation: The dev-clean and test-clean subsets were used.
  • Anonymized Data: To test the attack against protected voices, the evaluation datasets were processed using a state-of-the-art GAN-based voice anonymization system (the baseline B3 from the VoicePrivacy 2024 Challenge), which alters pitch and speaker identity but preserves original phoneme durations.

Key Insights and Ideas

  • Timing is Identity: Speech rhythm and phoneme duration are highly speaker-specific behavioral biometrics. Even when a voice is completely transformed to sound like someone else, how they pace their words remains a dead giveaway.
  • Universal Attack Capability: Traditional "semi-informed" attack models must be retrained on anonymized data to understand the transformations. Because this duration-based model relies strictly on timing features, it is completely decoupled from acoustic changes. A single model trained on clean, original data can be universally applied against various anonymization algorithms.
  • Context is King: Moving from simple average phoneme durations to context-dependent sequences dramatically unlocks the predictive power of speech temporal dynamics, dropping error rates significantly.

Key Results

The proposed duration-feature attack model (A2) was compared against a simple metric-based duration baseline (A1) and a standard filter-bank acoustic model (A3).

  • Massive Error Reductions: On the test-clean dataset using 8 utterances, the Equal Error Rate (EER) for the proposed model dropped to 1.8% on original data and 3.9% on anonymized data. This represents a massive absolute EER reduction of 12–22% compared to the simpler baseline (A1).
  • Comparison to Acoustic Attacks: The proposed model performs comparably to the standard acoustic attack model (A3), which achieved a 2.0% EER on 8 utterances. However, remember that A3 requires explicit retraining on the anonymized data, whereas the proposed duration model (A2) achieves its 3.9% EER blindly, without ever seeing the anonymized data during training.
Table 1: Automatic speaker verification results (EER,%) on original and anonymized data depending on the number of utterances (#utter) used to compute speaker embeddings, for three different attack models.

The authors also validated a more challenging, realistic scenario using multiple enrollment utterances but only a single trial utterance, showing that the model maintains robust re-identification capabilities even with limited test data.

Table 2: Automatic speaker verification results (EER,%) on original and anonymized data for different attack models and varying number of utterances for enrollment (enr), with one ut- terance for trial (trl).

Limitations and Future Work

The primary limitation of this study is its reliance on exact text transcripts to obtain perfect phonetic alignments via GMM-HMM models. In a real-world attack scenario, an adversary would have to use Automatic Speech Recognition (ASR) to transcribe the audio first, which would introduce transcription errors and likely degrade the attack's accuracy.

Future directions include: * Testing the approach on different, more diverse speech corpora. * Investigating how these duration embeddings can be combined with conventional acoustic embeddings for even stronger hybrid attacks. * Developing advanced anonymization countermeasures that can effectively obfuscate speech temporal patterns without destroying the natural flow and prosody of the synthesized voice.

Summary updated

Abstract

The temporal dynamics of speech, encompassing variations in rhythm, intonation, and speaking rate, contain important and unique information about speaker identity. This paper proposes a new method for representing speaker characteristics by extracting context-dependent duration embeddings from speech temporal dynamics. We develop novel attack models using these representations and analyze the potential vulnerabilities in speaker verification and voice anonymization systems.The experimental results show that the developed attack models provide a significant improvement in speaker verification performance for both original and anonymized data in comparison with simpler representations of speech temporal dynamics reported in the literature.
BibTeX
@inproceedings{tomashenko2025exploiting,
  author = {Natalia Tomashenko and Emmanuel Vincent and Marc Tommasi},
  title = {{Exploiting Context-dependent Duration Features for Voice Anonymization Attack Systems}},
  booktitle = {Interspeech},
  year = {2025},
  doi = {10.21437/interspeech.2025-2317},
}
Figure