Self-supervised Predictive Coding Models Encode Speaker and Phonetic Information in Orthogonal Subspaces

Oli Danyi Liu, Hao Tang, Sharon Goldwater

Abstract

Self-supervised speech representations are known to encode both speaker and phonetic information, but how they are distributed in the high-dimensional space remains largely unexplored. We hypothesize that they are encoded in orthogonal subspaces, a property that lends itself to simple disentanglement. Applying principal component analysis to representations of two predictive coding models, we identify two subspaces that capture speaker and phonetic variances, and confirm that they are nearly orthogonal. Based on this property, we propose a new speaker normalization method which collapses the subspace that encodes speaker information, without requiring transcriptions. Probing experiments show that our method effectively eliminates speaker information and outperforms a previous baseline in phone discrimination tasks. Moreover, the approach generalizes and can be used to remove information of unseen speakers.

Introduction

Self-supervised learning (SSL) has revolutionized speech processing by enabling models to learn from vast quantities of unlabeled audio. Models like Autoregressive Predictive Coding (APC) and Contrastive Predictive Coding (CPC) act as "information sponges," capturing a wide array of acoustic features, ranging from phonetic content to individual speaker identity. However, for tasks such as automatic speech recognition (ASR), speaker-specific characteristics often act as noise, complicating the identification of underlying phonetic units.

This research investigates the geometric organization of these features within the model's high-dimensional hidden layers. We test the hypothesis that speaker and phonetic information are naturally disentangled into nearly orthogonal subspaces, allowing for straightforward speaker normalization without the need for complex supervised un-learning techniques.

Methodology: Identifying Subspaces

To analyze the internal geometry of APC and CPC models, we employ a systematic approach based on Principal Component Analysis (PCA):

  1. Aggregation: To isolate specific types of variance, we average representation vectors across different contexts. We construct three matrices: one for "average speakers" (marginalizing over phones), one for "average phones" (marginalizing over speakers), and a "joint" matrix capturing every speaker-phone combination.
  2. PCA Analysis: We apply PCA to these matrices to identify the principal directions (eigenvectors) that capture the maximum variance for speakers versus phones.
  3. Orthogonality Verification: We measure the similarity between the top speaker directions and the top phone directions using cosine similarity.
Heatmaps showing the cosine similarity between the principal components of the phone/speaker subspaces and the joint speaker-phone subspace. The diagonal structure indicates that phonetic and speaker information are encoded in distinct, nearly orthogonal directions.

The "L-Shape" of Information

Our analysis reveals a striking geometric property: speaker and phonetic information are nearly orthogonal. In high-dimensional space, this "L-shape" organization means that moving along phonetic dimensions has minimal impact on the speaker-related coordinates, and vice versa.

Furthermore, we observe a clear hierarchy in how the model allocates its representational capacity. In the joint speaker-phone space, the primary dimensions are almost exclusively dedicated to phonetic discrimination—distinguishing between vowels and consonants, for instance. Speaker-specific variance only becomes dominant in much lower-ranked dimensions. This suggests that the objective of predicting future audio frames naturally prioritizes phonetic content over individual speaker quirks.

Speaker Normalization via Subspace Collapsing

Leveraging the discovered orthogonality, we propose a simple yet effective speaker normalization technique: Subspace Collapsing. By projecting the original representation vectors onto a space that is mathematically perpendicular to the identified speaker subspace, we can effectively "delete" the dimensions encoding speaker identity while preserving the phonetic structure.

This method offers several advantages:

  • Zero-Shot Generalization: Because the speaker subspace is a consistent structural property of the model, a subspace learned from one set of speakers (e.g., LibriSpeech train-clean-100) can be used to normalize voices the model has never encountered before.
  • No Transcriptions Required: Unlike supervised normalization, this approach relies solely on the learned geometry of the SSL model.
  • Centering vs. Rescaling: Our findings indicate that simply centering the data (shifting the mean to zero) is more robust than full standardization. Rescaling variance can inadvertently amplify residual speaker noise.

Key Results and Performance

We evaluated our normalization method using the LibriSpeech corpus, focusing on speaker erasure and phonetic discrimination (ABX task).

Impact of collapsing the speaker subspace on speaker erasure (SER) and phonetic discrimination (ABX error). As more dimensions are collapsed, speaker information is effectively removed (high SER), while phonetic discrimination improves to an optimal point.
  • Information Erasure: Collapsing the speaker subspace caused the error rate of a speaker probing classifier to jump from 0.45% to over 82%, indicating successful removal of identity information.
  • Phonetic Discrimination: On the ABX task, our method outperformed standard utterance-level normalization. For the CPC-big model, it reduced the across-speaker error rate from 4.11% to 3.77%.
  • Generalization: The speaker dimensions learned from 251 speakers successfully normalized speakers in the test-clean set, proving the universality of the speaker subspace.

Conclusion and Future Directions

This study demonstrates that predictive coding models naturally organize speaker and phonetic information into orthogonal subspaces. This geometric property allows for efficient, unsupervised speaker normalization that generalizes to unseen speakers.

Future work will explore whether masked coding models (like HuBERT or wav2vec 2.0) exhibit similar geometric properties and evaluate the robustness of these subspaces in noisier, multi-lingual, or spontaneous speech environments. Additionally, the potential for real-time, streaming normalization remains an exciting avenue for practical application.

Summary updated

BibTeX
@misc{liu2023self,
  author = {Oli Danyi Liu and Hao Tang and Sharon Goldwater},
  title = {{Self-supervised Predictive Coding Models Encode Speaker and Phonetic Information in Orthogonal Subspaces}},
  year = {2023},
  eprint = {2305.12464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12464},
}
Figure