An MAP Estimation for Between-Class Variance

Jiao Han, Yunqi Cai, Lantian Li, Guanyu Li, Dong Wang

TL;DR

Probabilistic Linear Discriminant Analysis (PLDA) is a staple for speaker verification, but it often falters when training data contains too few speakers to accurately estimate "between-class" variance. This paper introduces a robust Maximum A Posteriori (MAP) estimation method that treats the variance calculation as a simple linear interpolation between training data and a prior, leading to consistent performance gains in open-set verification tasks.

What Problem Does This Paper Address?

In fields like speaker verification, we use PLDA to distinguish between "within-class" noise (different recordings of the same person) and "between-class" variance (the actual differences between people). To work well, the model needs to see a massive variety of speakers during training.

However, even "large" datasets like VoxCeleb only contain a few thousand speakers. When you are dealing with high-dimensional data (400-600 dimensions), estimating the covariance of speaker means using standard Maximum Likelihood (ML) becomes unreliable. This "noisy" estimation leads to poor generalization—the model learns the specific speakers in the training set too well and fails to recognize the broader characteristics of human voices in general.

Methods

The authors propose moving from a standard ML estimation to a Maximum A Posteriori (MAP) estimation by introducing an Inverse-Wishart prior on the between-class variance ($\epsilon$).

The technical hurdle here is that PLDA is a hierarchical model: the prior is placed on the class means, but the likelihood is calculated based on the individual samples (class members). Usually, this makes the math "intractable," requiring complex iterative algorithms that are computationally expensive.

The "Aha!" Derivation: The authors prove that under mild conditions (specifically, when each class has a similar number of training samples), the complex MAP inference simplifies into a beautiful, closed-form linear interpolation: $$\epsilon_{MAP} = \frac{\alpha\epsilon_0 + K\epsilon}{\alpha + K}$$ Where:

  • $\epsilon$ is the variance from standard PLDA.
  • $\epsilon_0$ is a prior covariance.
  • $K$ is the number of speakers in the training set.
  • $\alpha$ is a hyper-parameter representing "virtual samples" from the prior.

This allows researchers to "smooth" their variance estimates without the overhead of variational inference.

Datasets

The study utilizes three major benchmarks in the speaker recognition community:

  • VoxCeleb: A massive open-source dataset (7,000+ speakers) used here to train the initial x-vector extractor and the baseline PLDA model.
  • SITW (Speakers in the Wild): A dataset of 299 speakers used for evaluation. The "Dev" set was used to tune the hyper-parameter $\alpha$, and the "Eval" set provided the final results.
  • HI-MIA: A text-dependent speaker recognition dataset recorded in far-field conditions, used to test the model's robustness in different acoustic environments.

Key Insights and Ideas

  • The Reliability Gap: The authors demonstrate that when the number of samples is small, the "variance of the variance" is huge, especially for heavy-tailed distributions (which speaker vectors are known to follow). This justifies the need for a prior to "anchor" the estimate.
  • Virtual Samples: The MAP formula can be intuitively understood as adding $\alpha$ "fake" speakers from a known prior distribution to the $K$ real speakers in the training data. This effectively dilutes the noise in the $S_B$ estimation.
  • Dual Application: The MAP-estimated variance isn't just useful for the final PLDA scoring; it also improves Length Normalization (LN). Standard LN can be too "aggressive" if the variance is poorly estimated; the MAP approach "discounts" large, unreliable variances, making the normalization more stable.

Key Results

The researchers tested their MAP approach on both PLDA scoring and Length Normalization. Across the board, the MAP-based systems outperformed the standard ML-based baselines:

  • SITW Eval: The Equal Error Rate (EER) improved from 4.019% (Standard PLDA) to 3.909% (PLDA/MAP).
  • HI-MIA Eval: The EER dropped from 0.891% to 0.810%.
  • Consistency: The improvement was consistent across different dimensionality reduction settings (LDA[512] and LDA[150]), proving that the benefit of MAP estimation isn't just an artifact of a specific setup.

Limitations and Future Work

The primary limitation is the assumption used for the simplified interpolation formula: that every class involves the same number of training samples ($n$). While the authors note that the formula remains largely correct if classes have "sufficient" samples, real-world datasets are often highly imbalanced.

Future work is suggested to explore more sophisticated ways to combine MAP estimation with length normalization, particularly for data that has already been transformed or projected into lower-dimensional spaces where the original statistics might be skewed.

Summary updated

BibTeX
@inproceedings{han2021map,
  author = {Jiao Han and Yunqi Cai and Lantian Li and Guanyu Li and Dong Wang},
  title = {{An MAP Estimation for Between-Class Variance}},
  booktitle = {APSIPA ASC},
  year = {2021},
  url = {https://openreview.net/forum?id=YFT1NdOFpP},
}

Loading related content...

Figure