Algorithm Search⌘K

Modeladvanced

i-vector

Also called identity vector, total variability model.

A low-dimension vector for an utterance, the posterior mean of a latent factor in a factor analysis model of GMM supervectors.

An i-vector is a fixed-length vector, typically of 400 to 600 numbers, that summarizes one utterance of any length. A universal background model (a Gaussian mixture) turns the frames into statistics, and a factor analysis model says that the stacked means of the utterance's mixture lie near a low-dimension subspace of the background means. The i-vector is the posterior mean of the coordinates in that subspace. It carries the speaker and also the channel, so a back end such as PLDA separates the two.

The machine

Let the universal background model (UBM) have CC Gaussians with weights, means mc∈RFm_c \in \mathbb{R}^F and diagonal covariances Σc\Sigma_c. Stack the CC means into a supervector m∈RCFm \in \mathbb{R}^{CF}. The total variability model says that the supervector of the mixture that generated an utterance is

M=m+Tw,w∼N(0,IR),M = m + T w, \qquad w \sim \mathcal{N}(0, I_R),

where TT is a CF×RCF \times R matrix with R≪CFR \ll CF, and TcT_c is its block of FF rows for component cc. The frames of the utterance are then drawn from the mixture with means mc+Tcwm_c + T_c w and the UBM weights and covariances.

Given the frames x1,…,xnx_1, \ldots, x_n, compute the occupation γc(t)\gamma_c(t) of each component under the UBM and the Baum-Welch statistics

Nc=∑tγc(t),F~c=∑tγc(t)(xt−mc).N_c = \sum_t \gamma_c(t), \qquad \tilde F_c = \sum_t \gamma_c(t) (x_t - m_c).

With the occupations held fixed, the posterior of ww is Gaussian, with precision and mean

L=I+∑cNcTc⊤Σc−1Tc,w^=L−1∑cTc⊤Σc−1F~c.L = I + \sum_c N_c T_c^\top \Sigma_c^{-1} T_c, \qquad \hat w = L^{-1} \sum_c T_c^\top \Sigma_c^{-1} \tilde F_c.

The i-vector is w^\hat w. The matrix TT is trained by EM on many utterances, with every utterance treated as its own source, so no speaker labels are needed. EM is often started from a random TT.

What it counts

  • One vector per utterance. w^\hat w has the same dimension RR for an utterance of 2 seconds and one of 2 minutes.
  • Shrinkage with little data. The posterior covariance is L−1L^{-1}. It depends only on the counts NcN_c, not on the values of the frames, and it shrinks as the counts grow. With little data the i-vector is pulled toward 0, the prior mean.
  • An example. Take C=2C = 2, F=1F = 1, R=1R = 1, Σc=1\Sigma_c = 1 and T=(1,2)⊤T = (1, 2)^\top. An utterance with N=(3,1)N = (3, 1) and F~=(1.5,2)\tilde F = (1.5, 2) gives L=1+3⋅1+1⋅4=8L = 1 + 3 \cdot 1 + 1 \cdot 4 = 8, so w^=(1⋅1.5+2⋅2)/8=0.6875\hat w = (1 \cdot 1.5 + 2 \cdot 2)/8 = 0.6875 with posterior variance 0.1250.125. Ten times as much data of the same kind gives L=71L = 71, w^=55/71=0.774648\hat w = 55/71 = 0.774648 and variance 0.0140850.014085. As the data grow, w^\hat w goes to 5.5/7=0.7857145.5/7 = 0.785714, the maximum likelihood value.
  • Cost. The statistics cost O(nCF)O(n C F) for nn frames. With the matrices Tc⊤Σc−1TcT_c^\top \Sigma_c^{-1} T_c stored (O(CR2)O(C R^2) memory), LL costs O(CR2)O(C R^2) and solving for w^\hat w costs O(R3)O(R^3). For large CC and RR this is more than the cost of the statistics, and fast approximations exist.

Relation to other models

  • Factor analysis. The total variability model is factor analysis of the supervector, with a hidden assignment of frames to components. Its posterior has the same form as in factor analysis, weighted by the counts.
  • MAP adaptation. Relevance MAP of the means is the model M=m+DzM = m + D z with z∼N(0,I)z \sim \mathcal{N}(0, I) and a diagonal DD with Dc2=Σc/rD_c^2 = \Sigma_c / r. It is full rank and has no shared subspace; the i-vector model is low rank.
  • Joint factor analysis. JFA writes M=m+Vy+Ux+DzM = m + V y + U x + D z, with a speaker subspace VV and a channel subspace UU. The i-vector model uses one subspace TT for both, because the channel subspace of JFA also carried speaker information.
  • The back end. The i-vector carries channel effects. LDA, within-class covariance normalization (WCCN), length normalization and PLDA or the cosine score handle them. Dehak et al. 2011 used LDA, WCCN and the cosine.
  • x-vectors. x-vectors replace the UBM statistics and the subspace with a network trained to classify speakers, and keep the same back end.
  • GMM-UBM. Both start from the same UBM. GMM-UBM keeps a whole adapted mixture per speaker; the i-vector keeps RR numbers per utterance.

Known results in the model

  • Exact posterior (a theorem). With the occupations fixed, the prior of ww is conjugate to the Gaussian likelihood of the frames, so the posterior is exactly N(w^,L−1)\mathcal{N}(\hat w, L^{-1}). Writing the log posterior as a quadratic in ww gives LL and w^\hat w above.
  • EM for TT. Each EM iteration does not decrease the likelihood of the training statistics, by the usual argument for EM. The E-step needs the posterior mean and the posterior covariance of ww for every utterance.
  • Length normalization (a measurement). Garcia-Romero and Espy-Wilson 2011 found that i-vectors are far from Gaussian, and that scaling them to unit length after centering and whitening lets Gaussian PLDA reach the accuracy of heavy-tailed PLDA.
  • Accuracy (a measurement). Dehak et al. 2011 compare the system with JFA on NIST SRE 2008 data and report better results for the i-vector system. Error rates depend on the data set and the conditions. Snyder et al. 2018 found x-vectors more accurate than i-vectors on their test sets, especially when the training data were augmented.
  • Other uses. The same vector is used for language identification, for diarization and as an input that adapts neural acoustic models to the speaker.

References

  1. Najim Dehak, Patrick J. Kenny, Réda Dehak, Pierre Dumouchel and Pierre Ouellet, Front-end factor analysis for speaker verification, IEEE Transactions on Audio, Speech, and Language Processing 19(4), 2011, pages 788 to 798, the total variability model, the extraction of the i-vector from the Baum-Welch statistics, and the cosine scoring with LDA and WCCN
  2. Tomi Kinnunen and Haizhou Li, An overview of text-independent speaker recognition, from features to supervectors, Speech Communication 52(1), 2010, pages 12 to 40, the sections on GMM supervectors and on factor analysis
  3. Daniel Garcia-Romero and Carol Y. Espy-Wilson, Analysis of i-vector length normalization in speaker recognition systems, Interspeech 2011, the length normalization of i-vectors before Gaussian PLDA

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/Y9F5Q0/text.yaml