Privacy-preserving Representation Learning for Speech Understanding

Minh Tran, Mohammad Soleymani · DOI

Abstract

Existing privacy-preserving speech representation learning methods target a single application domain. In this paper, we present a novel framework to anonymize utterance-level speech embeddings generated by pre-trained encoders and show its effectiveness for a range of speech classification tasks. Specifically, given the representations from a pre-trained encoder, we train a Transformer to estimate the representations for the same utterances spoken by other speakers. During inference, the extracted representations can be converted into different identities to preserve privacy. We compare the results with the voice anonymization baselines from the VoicePrivacy 2022 challenge. We evaluate our framework on speaker identification for privacy and emotion recognition, depression classification, and intent classification for utility. Our method outperforms the baselines on privacy and utility in paralinguistic tasks and achieves comparable performance for intent classification.

Introduction

Speech data contains sensitive biometric information, including age, gender, and individual identity, alongside the intended message. While voice anonymization—modifying raw audio—is a common approach, modern machine learning pipelines increasingly rely on high-dimensional feature embeddings from pre-trained encoders like HuBERT. There is a significant gap in feature-level anonymization: sanitizing these mathematical representations so they can be shared for utility (e.g., command recognition or health monitoring) without compromising the speaker's identity.

Proposed Framework: The Privacy Transformer

The core of this work is a "Privacy Transformer" designed to sanitize feature embeddings by mapping them from a source speaker's identity to a random target speaker's identity.

Overview of the Privacy Transformer training and inference pipeline.

The framework operates in three main stages:

  1. Feature Extraction: Mean-pooled vector representations are extracted from 12 layers of a pre-trained HuBERT encoder.
  2. Training (Identity Swapping): Using the VCTK dataset, where multiple speakers read the same text, the Transformer learns to predict the embedding of an utterance as if it were spoken by a different target speaker. This treats identity as a "style" that can be decoupled from the content.
  3. Inference (Sanitization): During deployment, the system selects a random speaker ID and "re-casts" the input embedding into this new identity. The resulting "sanitized" representation is then used for downstream classification tasks.

Experimental Evaluation

The framework was evaluated across several datasets to measure the trade-off between privacy (hiding identity) and utility (maintaining task performance):

  • Privacy: Evaluated via Speaker Identification (SID) on VoxCeleb1.
  • Utility: Evaluated via Emotion Recognition (IEMOCAP, MSP-IMPROV), Depression Classification (Extended-DAIC), and Intent Classification (Fluent Speech Commands).

Key Results

The proposed method demonstrates superior performance in both privacy protection and utility preservation compared to traditional voice anonymization baselines from the VoicePrivacy 2022 Challenge.

Performance comparison of the proposed method against baselines across privacy (SID Acc) and utility metrics.

As shown in the results table, the Speaker Identification (SID) accuracy dropped significantly from 72.79% to 11.64%, outperforming all baselines. Crucially, the method maintained or improved utility in paralinguistic tasks. For instance, on the IEMOCAP dataset, it achieved a 64.97 F1-score, surpassing the best voice-anonymization baseline. For intent classification, accuracy remained high at 92.91%, confirming that semantic content is preserved.

Furthermore, the method is computationally efficient. Adding the Privacy Transformer increases runtime by only ~18% compared to raw feature extraction (518s vs 439s), making it significantly faster than methods requiring full audio re-synthesis.

Conclusion

This research highlights that sanitizing features directly is more efficient and effective than traditional audio-level anonymization for downstream speech understanding tasks. By treating identity as a transferable style, the Privacy Transformer successfully obscures biometric signatures while retaining critical emotional and semantic information. Future work will focus on extending this approach to temporal sequences and exploring its robustness across different encoder architectures.

Summary updated

BibTeX
@inproceedings{tran2023privacy,
  author = {Minh Tran and Mohammad Soleymani},
  title = {{Privacy-preserving Representation Learning for Speech Understanding}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-2138},
}
Figure