Modelresearch
x-vector
Also called x-vector speaker embedding, TDNN speaker embedding.
A speaker embedding from a time-delay neural network with statistics pooling, trained to classify speakers.
An x-vector is a fixed-length vector that describes the speaker of an utterance. A neural network reads the frames of the utterance through a few time-delay layers, pools their outputs into one vector of means and standard deviations, and then classifies the speaker. After training, the classifier is thrown away, and the output of the first layer after the pooling is the x-vector. The embedding is scored with PLDA, as i-vectors are.
The machine
The network of Snyder et al. 2018 (their Table 1) takes 24-dimensional filterbank features. Write for the output of layer at frame . The frame layers splice the outputs of the layer below at a few offsets and apply an affine map and a ReLU:
| layer | input frames | input × output |
|---|---|---|
| frame1 | ||
| frame2 | ||
| frame3 | ||
| frame4 | ||
| frame5 | ||
| statistics pooling | all frames | |
| segment6 | the pooled vector | |
| segment7 | segment6 | |
| softmax | segment7 |
The frame layers see a window of 15 frames around : frame1 sees , frame2 widens it to , and frame3 to . The statistics pooling layer computes, over the frames of the utterance,
for each of the 1500 coordinates, and passes the 3000 numbers to segment6. The softmax has one output per training speaker, and the network is trained with cross-entropy on chunks of a few seconds of speech.
The x-vector is the affine output of segment6, taken before the nonlinearity: 512 numbers. The back end reduces it with LDA (to 150 dimensions in the paper), applies length normalization, and scores pairs with PLDA.
What it counts
- One vector per utterance. The pooling turns any number of frames into 3000 numbers, so utterances of any length give a 512-dimensional vector.
- Order does not matter after the window. The mean and the standard deviation do not change when frames are reordered. The network sees the order of frames only inside the 15-frame window of the frame layers.
- A pooling example. Take two coordinates and three frames with outputs , and . Then and , so the pooled vector is . Any order of the three frames gives the same vector.
- Size. The layers up to segment6 have weights and biases, the 4.2 million parameters that the paper counts without segment7 and the softmax.
- Cost. Each frame costs about multiply-adds in the frame layers, so extraction is linear in . Segment6 runs once per utterance. A trial then costs for PLDA with the dimension after LDA.
Relation to other models
- i-vectors. Both map an utterance to one vector and use the same back end. The i-vector comes from a generative model trained without speaker labels. The x-vector comes from a network trained to tell speakers apart, which needs many labeled speakers.
- Time-delay networks. The frame layers are a time-delay neural network: a one-dimensional convolution over time, with gaps between the spliced frames.
- PLDA. PLDA treats the x-vector as speaker plus session, both Gaussian. Length normalization makes this closer to true.
- Data augmentation. The training data were augmented with noise, music, babble (MUSAN) and simulated reverberation. The paper reports that augmentation helps the network more than it helps the i-vector system.
- Later embeddings. Wider networks (ResNets, ECAPA-TDNN), attentive pooling and angular margin losses keep the same plan: frame layers, pooling, a segment layer as the embedding.
Known results in the model
These are measurements from Table 2 of Snyder et al. 2018, as equal error rates in percent. "Original" is the system without augmentation, "augmented" adds augmentation to the PLDA and the extractor training data, and "+ VoxCeleb" also adds VoxCeleb to the training data.
| system | test set | original | augmented | + VoxCeleb |
|---|---|---|---|---|
| x-vector | SITW Core | 9.40 | 6.00 | 4.16 |
| i-vector | SITW Core | 9.29 | 8.04 | 7.45 |
| x-vector | SRE16 Cantonese | 8.00 | 5.86 | 5.71 |
| i-vector | SRE16 Cantonese | 9.23 | 8.95 | 9.23 |
Without augmentation the two systems are close; with it, the x-vector is clearly better on these sets. The numbers hold for these data sets, this back end and this training data, and they cannot be compared with error rates on other lists. Nothing is proved about the embedding beyond what the training objective gives: a network that classifies its training speakers well need not separate new speakers well, and the gain on new speakers is a measurement.
References
- David Snyder, Daniel Garcia-Romero, Gregory Sell, Daniel Povey and Sanjeev Khudanpur, X-vectors, robust DNN embeddings for speaker recognition, ICASSP 2018, pages 5329 to 5333, Table 1 (the layers of the network), the section on data augmentation, and Table 2 (the equal error rates on SITW and SRE16)
- 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 i-vector system that x-vectors are compared with
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 50ES3M Edit this page History Report an error Markdown