Elamur Research

Utterance-level Aggregation for Speaker Recognition in the Wild

Paper · 2019 · Weidi Xie, Arsha Nagrani, Joon Son Chung et al.

Summary

A recording can contain a recognizable voice for only part of its duration. A pause, background noise, or another person taking a turn can occupy time without providing evidence about the speaker of interest. A speaker verification system has to compress that uneven evidence into a representation that can be compared with one from another recording. The paper asks how to do this when the recordings vary in length and come from unconstrained settings. Its answer is to let the contents of each local segment determine how it contributes to the representation of the whole utterance. The problem concerns the identity carried by speech.

The authors first use a narrower version of ResNet-34 to extract a sequence of local descriptors from a spectrogram, a representation of how a recording’s frequency content changes over time. A pooling layer then combines these descriptors into a vector of fixed size. NetVLAD learns a set of reference vectors and summarizes the recording through the departures of its local descriptors from those references. GhostVLAD adds a place for descriptors to put some of their weight without passing the associated information into the final vector. The convolutional network and the pooling layer learn together from speaker identities in the VoxCeleb2 development partition. At evaluation, the comparison is between recordings of speakers outside that training partition.

On the original VoxCeleb1 verification list, the NetVLAD system trained with standard softmax reaches an equal error rate of 3.57%, against 4.19% for an earlier ResNet system. The reported parameter counts for that comparison are 10 million and 26 million, respectively. Changing NetVLAD’s training objective to additive margin softmax brings the error rate to 3.32%, and the GhostVLAD result is 3.22%. Equal error rate measures verification errors at the threshold where false acceptances and false rejections occur at the same rate. The authors also report 5.17% on the harder VoxCeleb1-H list, compared with 7.33% for the earlier ResNet.

A separate experiment crops test recordings to different durations. Longer crops are associated with better verification on the selected VoxCeleb1 material, with the authors highlighting 4s or more as beneficial relative to shorter crops. The duration experiment supports the value of giving the system more speech to work with under these conditions. The comparison between pooling layers answers a different question. It shows a modest verification gain from the ghost clusters, while their proposed role in absorbing noise and other unwanted material remains an explanation of how the gain could arise.

Deep dive: Utterance-level Aggregation for Speaker Recognition in the Wild

How thin-ResNet and dictionary pooling turn variable-length recordings into speaker embeddings, and how they perform on VoxCeleb verification tests. · about 34 minutes to read

The problem and its context

Recognizing a voice across recordings

Speaker verification starts with a pair of recordings and asks whether the voice to be verified belongs to the same person in both. Speaker identification, as used for training in this paper, gives the system a recording and asks it to choose among designated speaker identities. The distinction shapes the experiment. The authors have labels that identify the people in the training data, so they can train with an identification task. The test involves comparing recordings of people whose identities were absent from training. What must transfer from training is a way of describing a voice that makes the comparison informative.

The paper contrasts this aim with speech recognition. Information near a particular moment can matter to a system that needs to follow what someone said. For speaker verification, the authors want a single representation of an utterance, available for comparison whatever the duration of the input. The local features still matter because they are where the acoustic evidence originates. The challenge is to decide what information survives when the sequence of local features becomes a compact description.

A recording made in the wild offers no assurance that its most useful moments will occur at a predictable position. It may include a stretch of clear speech, a silence, and an interjection from someone else. An operation that always gives greater influence to the same times has no way to respond to where these events happen. An ordinary average can accommodate the variable number of time positions, but it puts each descriptor into the same calculation with the same weight. If a descriptor carries little information about the intended speaker, the averaging operation itself has no mechanism for lightening its influence in response to its content.

Variable duration poses a related problem. The sequence of local descriptors for a long recording can contain more entries than the sequence for a short recording. The output, however, should have the same dimensions in both cases. That makes it possible to store utterance representations and compare them without first matching the sequences in time. A compact vector also reduces the amount of information that must be kept and processed for each comparison. The paper therefore treats local feature extraction, compression across time, and the size of the stored representation as distinct design decisions.

The authors place the problem in a period when freely available, large speaker datasets and accessible deep learning frameworks made this kind of end-to-end training easier to pursue. Their account connects the emergence of larger benchmarks to the opportunity to learn the representation from recordings collected under less constrained conditions. One of the precedents is VoxCeleb.

Where earlier systems put the work

The earlier neural systems surveyed in the paper typically divide the work among a feature extractor, an operation that pools over time, and a training objective based on classification. The extractor turns nearby pieces of the acoustic input into feature values. Pooling decides how those values will describe the utterance as a whole. The training objective supplies feedback about whether that description is useful for distinguishing speakers. Systems can share this outline and still differ substantially in what they retain and how they learn to retain it.

The feature extractors in the survey include convolutional networks that work along both time and frequency, and networks whose convolutions work along time. A convolution applies the same learned local operation at different positions. Working along both axes lets a network respond to patterns across neighboring frequencies and moments in the spectrogram. A time-only operation moves along the sequence with a different arrangement of the input features. The authors also describe recurrent front ends based on long short-term memory, in which state passed through the sequence helps determine the local representations. Their own choice is a convolutional trunk, the part of the system that prepares the descriptors for pooling.

At the pooling stage, temporal averaging offers a straightforward solution to the length problem. Each feature coordinate receives its own average over time. The result has the same number of coordinates as a local descriptor, regardless of how many descriptors contribute. A fully connected layer also appears in the paper’s account of earlier aggregation systems. The authors’ concern about these earlier choices is that the aggregation does not expressly adapt to which moments contain useful evidence. A feature extractor can still learn to respond differently to inputs before they reach a pooling layer. The question is what the pooling layer itself can do with those differences.

Statistical pooling extends averaging by keeping information about spread as well as central tendency. With the standard deviation alongside the mean, the representation can distinguish a coordinate that stays near its average throughout an utterance from one that departs from it substantially. The statistics describe all the descriptors they receive. The versions discussed in the paper give those descriptors equal influence within the calculation.

Attention introduces an adjustable influence for different frames. A system can learn to give more weight to descriptors useful for distinguishing voices. Attentive statistics pooling combines this approach with the use of both the mean and measures of spread. In the paper’s account, that combination was the leading earlier approach on VoxCeleb1. Its place in the comparison matters because content-sensitive pooling was already an established proposal. The distinctive question was whether a dictionary of learned references, with an optional set of omitted clusters, would provide an effective way to make aggregation sensitive to content.

How dictionaries entered the picture

The paper traces an earlier line of aggregation research through traditional speaker and language identification, including i-vector systems. The relevance of that line is the use of statistics or dictionaries to summarize evidence distributed through an input. Dictionary-based pooling groups evidence by its relationship to learned reference vectors. It can retain different kinds of departures in different parts of the pooled representation, even though the representation no longer tracks the location of every contributing descriptor.

The immediate precedents include Learnable Dictionary Encoding for speaker and language tasks and a pooling method developed for visual retrieval. In the visual setting, the system has many local descriptors from an image and needs one representation of the whole input. In the speaker setting, the descriptors come from successive parts of a spectrogram, with the number of descriptors determined by the input duration. The paper adapts the same basic operation across those two settings by bringing the aggregation layer into the utterance-level network. The visual retrieval method is NetVLAD.

The authors also draw on GhostVLAD, previously used for sets of face observations. Its design permits assignments to clusters whose accumulated values are left out of the output. This gives the system a way to reduce a descriptor’s total influence on the parts of the representation that are kept. Applying that device to speech raises a specific possibility. A descriptor from silence or from interfering sound may be assigned more strongly to an omitted cluster, so the retained summary contains less of its residual information. That possibility is built into the operation. What the training procedure will actually assign to those clusters is an empirical question.

The paper describes several earlier choices for training and scoring. Softmax trains a classifier to favor the correct speaker among the available training identities. Angular variants alter the geometry of that classification objective. Some systems follow identification training with a verification-oriented objective, such as contrastive loss, which uses relationships between examples to improve their separation. The paper also mentions triplet loss and distinguishes the training objective from the score used to compare a pair at evaluation. Cosine similarity and PLDA appear in the survey as examples of the latter. The authors’ proposal concentrates on how the utterance vector is built and how identification training shapes it. Those choices determine what information the pairwise comparison has available to it.

The method, step by step

From a recording to a sequence of descriptors

The architecture follows the same basic path whether the pooling layer is NetVLAD or GhostVLAD. It begins with a spectrogram, applies a convolutional feature extractor to obtain a sequence, and summarizes that sequence in a compact vector. During training a speaker classification objective guides the whole chain. During verification the utterance vector is available for comparison with the representation of another recording.

From a speech recording to an utterance embedding

The steps in order.

From a speech recording to an utterance embeddingStep 1: Convert the recording to a spectrogram1. Convert the recording to a spectrogramStep 2: Extract local descriptors with thin ResNet2. Extract local descriptors with thin ResNetStep 3: Assign descriptors softly to learned clusters3. Assign descriptors softly to learned clustersStep 4: Accumulate weighted departures from cluster centers4. Accumulate weighted departures from cluster centersStep 5: Normalize and concatenate the retained cluster summaries5. Normalize and concatenate the retained cluster summariesStep 6: Project the result into a compact utterance vector6. Project the result into a compact utterance vector

A spectrogram arranges measurements of the recording by frequency and time. The authors obtain it from short, successive windows of the waveform. Within each window, a Fourier transform provides frequency components for that part of the recording. As the window moves, the measurements supply a sequence of frequency profiles. The arrangement gives the convolutional network a way to detect local patterns in how those profiles develop.

For training, the authors randomly extract a 2.5 second segment from each utterance. They form the spectrogram using a Hamming window of width 25ms, advancing in steps of 10ms. The window tapers the part of the waveform used at each position, and the step determines how far the next position advances. Since the step is smaller than the width, successive measurements draw on overlapping portions of the recording.

The paper specifies a 512 point fast Fourier transform, or FFT. It describes the resulting frequency axis as 256 components together with the direct-current component, which represents the constant part within the window. The short-time Fourier transform for a training crop has shape 257 × 250, with frequency on the first axis and time on the second. Here the fixed duration provides training inputs with a common shape. The network’s way of pooling does not require its evaluation inputs to have that training duration.

The authors normalize the frequency values separately at each timestep. For a given time position they take the mean and standard deviation across its frequency components, subtract that mean from the values, and divide by that standard deviation. The calculation therefore uses the distribution across frequencies at a particular moment. It is distinct from the normalization later applied to the pooled utterance representation and from the normalization that defines angles in the training loss.

No voice activity detection or automatic silence removal is used. Voice activity detection would mark intervals as containing voice so that the system could handle them separately before extracting or pooling features. In this pipeline, the spectrogram can include intervals with little useful speech, and those intervals can enter the network with the rest of the crop. That makes the information retained by the feature extractor and pooling layer especially relevant. The system has no preliminary silence-removal step doing that part of the work on its behalf.

Why the trunk is thin

The trunk is a version of ResNet-34 with fewer channels in its residual blocks. A channel is a learned feature stream at a given part of the network. Narrowing the blocks means computing and carrying fewer such streams at those stages. The defining change here is width. The trunk has 34 layers, and the paper reports 3 million parameters for this feature extractor, compared with 22 million for the standard ResNet-34. Those counts describe the trunks. The full systems also contain the components that pool or transform the trunk’s output.

The network uses the trunk in a fully convolutional way. The same learned local operations can be applied across a spectrogram with a different number of time positions. In the paper’s dimensional notation, the input is a real-valued array of shape 257 × T × 1. The frequency axis has 257 positions, T is the number of input time positions, and the last axis is the single spectrogram channel. The trunk maps the input to an array of shape 1 × T/32 × 512. At that point the frequency axis has been reduced to one position, the time axis is shorter, and each output position has a descriptor with 512 coordinates.

A descriptor at this stage represents information derived from a local part of the input. Its coordinates are the output of learned transformations, so they have a different role from the individual frequency components in the spectrogram. The pooling calculation receives those transformed vectors. Its time index identifies positions in the trunk’s output sequence. It does not separately pool a descriptor for every position in the original spectrogram.

The change in shape explains which part of the representation still depends on duration. For a longer admissible input the trunk can provide more time positions. The width of each descriptor stays fixed, and pooling can operate on any such sequence by accumulating contributions over the available positions. Shrinking the trunk lowers the parameter count at this stage, while the subsequent projection addresses the size of each utterance vector. These are separate uses of compactness. One concerns how many learned values the network contains, and the other concerns how many values must be stored for a recording.

What NetVLAD accumulates

NetVLAD gives the system a dictionary of learned cluster centers. A center is a vector of the same dimension as the descriptors it summarizes. The word cluster suggests a group of related observations, but the pooling layer does not force each descriptor to choose one group. It calculates a separate assignment score for every cluster, converts the scores into weights, and allows each descriptor to contribute to several clusters. The weight allocated to a cluster measures that cluster’s share of the descriptor’s contribution.

A cluster’s accumulated evidence consists of residuals. A residual is the descriptor minus the cluster center, taken coordinate by coordinate. Suppose a local descriptor has a coordinate slightly above a center’s value. For that coordinate it supplies a small positive departure. A descriptor below the center supplies a negative departure, and a descriptor that matches the center on that coordinate supplies no departure there. The assignment weight controls how much of each departure appears in the sum for that cluster.

The same local descriptor can yield different residuals for different centers. It can sit above one center on a coordinate and below another. Assignment and subtraction therefore do separate jobs. Assignment determines the strength of the contribution to a cluster, while subtraction determines the content of the contribution in that cluster’s coordinate system. The output for a cluster is an accumulated direction and magnitude of departure across the utterance, prior to the subsequent normalization.

This construction changes what can survive pooling. With a mean over descriptors, distinct sequences can produce the same vector if the feature coordinates balance in the same way overall. With NetVLAD, descriptors involved in those balances can put their weight on different clusters and leave separate summaries. Cancellation is still possible within a cluster, since the calculation adds signed residuals. The dictionary supplies several places for evidence to collect, which is the basis for retaining more structure than a single average can express.

The paper gives the pooled entry for each cluster and feature coordinate as follows. The dot product in the assignment term is written explicitly.

V(k, j) = ∑ₜ₌₁ᵀ⁄³² [e^(wₖ · xₜ + bₖ) / (∑ₖ′₌₁ᴷ e^(wₖ′ · xₜ + bₖ′))] (xₜ(j) − cₖ(j))

V is the pooled matrix of shape K × D. K is the number of clusters, D is the number of coordinates in each descriptor and cluster center, k selects a cluster, and j selects a coordinate within it. The outer sum, marked ∑ with index t, runs from 1 through T/32, the length of the trunk’s output sequence in the paper’s notation. The vector xₜ is the local descriptor at time position t, and xₜ(j) selects its jth coordinate. The vector cₖ is the learned center for cluster k, so cₖ(j) is the matching coordinate of that center.

The vector wₖ and scalar bₖ are learned parameters for the cluster’s assignment score. The dot denotes the dot product of the assignment vector and the local descriptor. Adding the bias gives a score for that descriptor and cluster. The base e denotes the natural exponential. In the denominator, k′ is a separate cluster index, running from 1 through K, and wₖ′ and bₖ′ are the assignment parameters for the cluster indexed by k′. The division turns the exponentiated scores into proportions across all clusters. The multiplication by the bracketed proportion weights the signed residual before the time sum. The center cₖ and the assignment parameters wₖ and bₖ all receive training feedback.

The equation shows how the layer handles duration. Adding time positions adds terms to the outer sum. It leaves K and D alone. It also shows the form of temporal information that pooling retains. Shuffling the descriptors after the trunk has computed them would leave these sums unchanged. The trunk can encode local temporal patterns before pooling, while the pooled matrix records the accumulation of those patterns without preserving their order. Two recordings can consequently contribute similar kinds of evidence even when the moments containing that evidence occur in different places.

The authors apply L2 normalization and concatenate the cluster information. L2 normalization rescales a vector by its Euclidean length. Concatenation lays the cluster summaries out as successive parts of a single vector, giving each retained cluster its own place in that vector. A fully connected layer then reduces the dimensionality to 512. The projection can combine information from different parts of the concatenated representation. Its stated purpose is to give verification a compact descriptor for storage and similarity computation while keeping the preceding aggregation rich enough to use several references.

What changes in GhostVLAD

GhostVLAD adds clusters that take part in assignment but whose summaries are omitted when the output is assembled. The authors use two ghost clusters. The important detail is that they compete for assignment weight alongside the retained clusters. If a descriptor receives a large share of its weight on ghost clusters, less of its weight remains for those whose residuals go into the utterance vector. The model case can be explained entirely through the assignment calculation. The denominator includes additional options, while the concatenation keeps only the designated output clusters.

Consider a descriptor that the assignment layer strongly favors for an omitted cluster. It can still be assigned some weight to each retained cluster. Its residual there has a correspondingly smaller influence on the accumulated result. This is a soft form of suppression. It can vary with the descriptor, and it does not require a preliminary binary decision about whether an interval contains the target voice. A descriptor that is useful to several retained clusters can still contribute to each of them.

This also distinguishes ghost assignment from the competition among ordinary clusters in NetVLAD. In ordinary NetVLAD a descriptor’s assignment weight is distributed among clusters whose summaries are all retained. An individual cluster may receive little of the weight, but that weight is available elsewhere in the output. In GhostVLAD some of the assignment can leave the retained part altogether. The added choices let the system change how much total weight a descriptor contributes to that part, as well as where any remaining contribution goes.

The paper motivates this operation with noisy and undesirable portions of utterances. The training signal, however, is an identity label for the crop. It does not say which individual time positions contain a particular kind of interference. The label can encourage assignment patterns that help predict the speaker, including patterns that reduce the impact of unhelpful descriptors. The equation explains the route by which such down-weighting can happen. It does not give a semantic name to each cluster or determine in advance which acoustic events will activate it.

Learning from identities

The authors train the feature extractor, pooling layer, and subsequent reduction together. The training material comes only from the VoxCeleb2 development partition, which supplies recordings from 5,994 speakers. Each selected crop has a training identity attached to it. The classification loss can send feedback through the utterance vector to the pooling parameters and further back into the convolutional filters. In this sense the dictionary is part of the learned speaker representation. It is not fitted as a separate summary of the acoustics before speaker training begins.

The paper compares standard softmax with additive margin softmax, or AM-Softmax. In standard softmax, class scores are converted to relative probabilities, and training penalizes a low probability assigned to the known speaker. In AM-Softmax the system uses normalized vectors to express the scores through angles. It subtracts a margin from the correct speaker’s cosine score during training, making the target class harder to favor by a given amount of separation among the scores.

The paper expresses the angle for a class through a dot product of normalized vectors.

θᵧ = arccos(wᵀx)

The symbol θᵧ is the angle associated with class y, and arccos is the inverse cosine. The vector x is the feature representation of the training example. The vector w is the corresponding normalized classifier weight, which supplies the class direction for that score. In this expression the superscript T transposes the weight vector, and the product wᵀx is its dot product with x. Both vectors have been L2-normalized, so the dot product gives their cosine. Here the T in wᵀ indicates transpose, whereas the T in the pooling calculation denotes the length of the spectrogram’s time axis. The classifier weight w is also separate from the weights used to assign descriptors to dictionary clusters.

The resulting loss for a training example is the negative log of the margin-adjusted softmax probability of its actual class.

Lᵢ = −log { e^[s(cos θᵧᵢ − m)] / [e^[s(cos θᵧᵢ − m)] + ∑ⱼ≠ᵧᵢ e^[s cos θⱼ]] }

Lᵢ is the loss for instance i. Its known speaker class is yᵢ, and θᵧᵢ is the angle between the example’s feature vector and the weight direction for that class. The function cos takes the cosine of an angle. The parameter m is the margin, subtracted from the target cosine, and s scales the scores before exponentiation. The symbol e denotes the natural exponential and log takes the logarithm. The sum runs over class indices j other than yᵢ. Each θⱼ is the angle associated with one of those competing classes. The denominator combines the exponentiated, margin-adjusted target score with the exponentiated scores of the other classes. The negative sign makes a low adjusted target probability correspond to a large cost.

The margin acts in cosine space. It lowers the target score before softmax without lowering the competing scores in the same way. To make the adjusted target probability large, training can move the example’s feature direction closer to that of its own class and improve its position relative to competitors. This is the geometric motivation for using an identification objective to learn a vector for verification. The authors intend the margin to favor compact representations of the same speaker, so that independent recordings can be compared successfully even when the test speaker has no corresponding training class.

The scale s determines how differences between cosine scores affect the softmax distribution and its gradients. The settings used in the paper are m = 0.4 and s = 30. The authors use the Adam optimizer with an initial learning rate of 1e-3. Their description says the learning rate drops by 10 at the end of each 36-epoch interval until convergence. An epoch is a pass through the training data, so this schedule changes the size of the updates over the course of training. During ordinary verification, the trained network receives the full test segment. The random fixed-duration training crops and the variable-length evaluation inputs serve different purposes within the same architecture.

Experiments and results

The verification trials

The evaluation asks whether utterance representations distinguish same-speaker pairs from different-speaker pairs on VoxCeleb1. The authors state that the VoxCeleb2 development partition and VoxCeleb1 have no speakers in common. This separation matters because the identification objective could otherwise benefit from seeing the test identities during training. The verification results concern the use of the representation on held-out speakers, even on a test list that draws from both of VoxCeleb1’s own partitions.

The original VoxCeleb1 verification list contains 40 speakers. It supplies the principal benchmark and the comparison with the broadest set of earlier systems discussed in the results. VoxCeleb1-E is the extended list and draws from the full VoxCeleb1 dataset, including its train and test splits. The designation train in that last description refers to the VoxCeleb1 partition. The new network’s identification training used VoxCeleb2 development data.

VoxCeleb1-H is designed to make the pairs harder to distinguish by drawing them from identities of the same gender and nationality. A difference in those broad attributes is therefore unavailable as an easy way to separate two identities in that list. The experiment examines how well the utterance representation handles that more restricted comparison. The authors also report finding errors in the extended and hard lists. They evaluate on cleaned versions of both and make those revised trial lists public. The list version matters when comparing results, since the pairs and their labels define the verification task.

For the main evaluations, the system processes each test segment at its full duration. The authors use no test-time augmentation. Such augmentation would create additional versions of an input for scoring, and the authors suggest it might bring slight gains. Their evaluation uses the representation obtained from the original test segment. The cropping experiment later in the paper deliberately changes that condition to ask how performance depends on the amount of input.

Reading equal error rate

Verification yields a pairwise decision by applying a threshold to a score. A false acceptance occurs when a different-speaker pair is accepted as a match. A false rejection occurs when a same-speaker pair is rejected. As the threshold moves, the system can become more willing to accept pairs or more willing to reject them. The equal error rate, abbreviated EER, is the error rate at the operating point where the false acceptance and false rejection rates are equal. A lower value indicates better separation at that point.

The distinction between a percentage of errors and a percentage of correctly identified speakers is important here. The reported values describe decisions over verification trials. They do not describe how many of the training identities the classifier can name. They also describe one point on the threshold tradeoff. An application that placed very different costs on false acceptance and false rejection could be interested in another part of that tradeoff. EER supplies a common point for the paper’s comparisons, including its comparison with an earlier ResNet and with earlier pooling strategies. That is the role of the verification benchmark.

Results on the original list

The paper compares its configurations with an earlier ResNet-based system and with approaches that differ in pooling or embedding design. The survey identifies attentive statistics pooling as an earlier leading method. Among the alternatives discussed in the results, the dictionary system of Cai and colleagues is the closest in architectural idea. Their system gives a reference point for whether a learned dictionary alone accounts for the new performance. The authors’ own temporal average pooling configuration gives another reference point, this time for a simpler kind of aggregation under standard softmax training.

Pooling and training configurations on original VoxCeleb1 verification by equal error rate

Additive margin training improves the NetVLAD result, and GhostVLAD gives the lowest error among these configurations.

Pooling and training configurations on original VoxCeleb1 verification by equal error rateTemporal average pooling with standard softmax: 10.48Temporal average pooling with standardsoftmax10.48Cai and colleagues’ dictionary system: 4.48Cai and colleagues’ dictionary system4.48Earlier ResNet system: 4.19Earlier ResNet system4.19NetVLAD with standard softmax: 3.57NetVLAD with standard softmax3.57NetVLAD with AM-Softmax: 3.32NetVLAD with AM-Softmax3.32GhostVLAD with AM-Softmax (this paper): 3.22GhostVLAD with AM-Softmax (this paper)3.22
The numbers
System or settingEER %
Temporal average pooling with standard softmax10.48
Cai and colleagues’ dictionary system4.48
Earlier ResNet system4.19
NetVLAD with standard softmax3.57
NetVLAD with AM-Softmax3.32
GhostVLAD with AM-Softmax (this paper)3.22

With standard softmax, the NetVLAD configuration reaches 3.57% EER on the original VoxCeleb1 list, compared with 4.19% for the earlier ResNet. The paper reports 10 million parameters for the new comparison system and 26 million for the earlier one. This is a comparison of complete system counts as reported in the results. The 3 million and 22 million counts given for thin and standard ResNet-34 describe the trunks in the architecture discussion. The two comparisons answer different questions about where parameters are saved.

Retaining NetVLAD and using AM-Softmax gives 3.32% EER on the same original list. That improvement occurs within the set of configurations proposed by the authors, so it is more informative about the role of the training objective than the comparison between complete ResNet systems. GhostVLAD gives the lowest reported result, 3.22%. The authors characterize the additional gain from the ghost clusters as modest. Earlier choices still account for much of the strength of the overall system, since the standard-softmax NetVLAD configuration already beats the reported earlier ResNet value.

The dictionary approach of Cai and colleagues has 4.48% EER on the original list. That comparison shows that the new combination of trunk, aggregation, and training can outperform a related dictionary-based approach. The shared use of learned references does not make the two full systems a controlled comparison of dictionary mechanisms. Several architectural and training decisions can matter when they are evaluated together.

Temporal average pooling with standard softmax gives 10.48% EER on the original verification list. This is the weakest of the results shown in the chart. The authors compare it with earlier work in which a further contrastive training stage improved temporal average pooling. Its score is therefore informative about the combination of average pooling and the stated classification loss. A method that uses the same pooling operation with a different objective can give a different separation of same-speaker and different-speaker trials.

The extended and hard trials

On VoxCeleb1-H the paper reports an EER of 5.17% for the new system and 7.33% for the earlier ResNet. The authors emphasize that the separation between the reported systems is greater on this comparison than on the original list. The harder trial design makes this a check under a different pairing constraint. A score on VoxCeleb1-H should be read against other scores for that list, where the systems have to distinguish pairs selected under the same rule.

New and earlier ResNet systems on VoxCeleb1-H by equal error rate

The proposed system has lower verification error on the hard trial list.

New and earlier ResNet systems on VoxCeleb1-H by equal error rateEarlier ResNet system: 7.33Earlier ResNet system7.33Proposed system (this paper): 5.17Proposed system (this paper)5.17
The numbers
System or settingEER %
Earlier ResNet system7.33
Proposed system (this paper)5.17

The paper evaluates the extended list as well, but its discussion supplies the numerical head-to-head comparison above for the hard list. The authors point out that several earlier methods report on the original benchmark without reporting on the extended and hard lists. The comparisons therefore have different coverage. The original list places the proposed system alongside a wider set of earlier methods. The extended and hard lists ask how evaluated systems handle different selections of trials, with fewer reported counterparts for those selections.

List cleaning adds another distinction to keep in view. Evaluating the same utterance network on an amended trial list changes the evidence used to measure it. Cleaning is a change to the benchmark, while changing the pooling or loss is a change to the system. The authors discuss the cleaned extended and hard lists separately from their architectural comparisons, and their release makes the revised trial definitions available for further evaluation.

Giving the system more time

The duration experiment uses a separate sampling procedure so that the tested lengths can be drawn from the same eligible source material. The authors first keep VoxCeleb1 recordings at least 6 seconds long. The paper reports 87,010 eligible segments, or 56.7% of the dataset. This restriction lets the longest crop in the experiment be drawn from the same pool of recordings as the shorter crops. Otherwise a comparison between length conditions could also be a comparison between different eligible recordings.

The protocol describes a sampling frame of 1251 VoxCeleb1 speakers, with 100 positive pairs and 100 negative pairs described per speaker. Positive pairs contain recordings of the same speaker, and negative pairs contain recordings of different speakers. The paper also gives a resulting total of 25,020 verification pairs. The relationship between the per-speaker counts and that total is left unclear, so the stated counts cannot specify an unambiguous reconstruction of the pair list.

The authors crop the recordings in the trial pairs to 2s, 3s, 4s, 5s, and 6s. They draw the test crops at random, repeat the process three times, and calculate a mean and standard deviation. The mean describes the result across draws. The standard deviation describes variation across those draws, which matters when a different starting point can bring different amounts of useful speech into the window.

The paper reports a strong relationship between longer crops and better verification and highlights 4s or more in its description of the result. One interpretation is that a longer window has more chances to include speech from the intended speaker. In unconstrained material, a short crop can land largely on a pause, interference, or a different voice. A longer crop can contain those same kinds of material and still include enough relevant speech to make the utterance vector useful. The experiment compares cropped durations within the selected VoxCeleb1 material. Its conclusion concerns how much evidence the system can use under that procedure.

What the ablations show

Pooling and the objective work together

The comparison between standard-softmax NetVLAD and AM-Softmax NetVLAD changes the loss while retaining the basic aggregation mechanism. The original-list EER moves from 3.57% to 3.32%. The network can therefore improve its verification behavior without changing where or how it pools local descriptors. Training changes which features and cluster relationships emerge, even when the mathematical form of the pooling layer stays the same.

The result is consistent with the authors’ motivation for a margin objective. A training rule that demands more favorable target angles can encourage embeddings that are easier to compare across recordings. The verification result is measured on unseen identities, which makes it evidence for transfer beyond identifying the training speakers. EER is still an outcome of the completed system. The reported comparison does not separately measure how much the same-speaker angles changed or how much the different-speaker representations spread apart.

The standard-softmax temporal average result gives a different comparison. It shows what happens when every descriptor contributes through a common time average in that training setting. The authors conjecture that a representation learned this way can distinguish training classes while leaving examples from the same speaker too dispersed for good verification. The distinction is plausible in the terms of the task. A classifier can correctly put examples on the appropriate side of its class boundaries even when the examples from one person are far apart within that region. A verification comparison has to deal directly with how close or similar individual utterance vectors are.

The paper connects this explanation with an earlier gain from contrastive loss and online hard sample mining for temporal average pooling. Hard sample mining selects difficult training cases as training proceeds, so the objective gives explicit attention to examples that the current representation has trouble placing. The authors suggest that a comparable training stage might also improve the dictionary-based configurations. That suggestion remains open. The measured average-pooling result and the earlier improvement under contrastive training show why a pooling method’s performance should be read together with the loss that shaped its inputs.

The extra assignment option

GhostVLAD improves the best result on the original list from the 3.32% EER reported for margin-trained NetVLAD to 3.22% EER. The change introduces a concrete way for local descriptors to influence the output less. A descriptor that assigns more of its weight to the ghost clusters supplies less residual weight to the retained ones. The improvement establishes that the configuration with this mechanism performs better in the reported comparison.

The mechanism offers a credible explanation for why the change could help. A network exposed to uncropped or inconsistently informative time sequences benefits if descriptors associated with interference can have less influence. It also has other ways to use the added assignment capacity. The ghost clusters might receive recurring acoustic patterns that happen to be uninformative for the training classification, without those patterns constituting a single recognizable type of noise or silence. The test result concerns the effectiveness of the completed representation. The paper offers no time-aligned examination of the assignments that would identify which sounds were down-weighted in a particular recording.

The end-to-end training makes that distinction especially important. Adding ghost clusters changes the assignments and also changes the feedback seen by the rest of the network. The trunk and retained cluster centers can learn differently as a consequence. The comparison measures the effect of using GhostVLAD in the trained system. It does not isolate a filtering intervention applied to a fixed sequence of otherwise unchanged descriptors.

Varying the dictionary size

For the additional GhostVLAD experiment, the authors keep the Thin ResNet-34 architecture unchanged while varying both the VLAD cluster count and the classification loss. They evaluate the variants on the original VoxCeleb1 verification list. Keeping the trunk architecture fixed removes one source of variation from the comparison. The outcome can speak more directly to whether the dictionary requires a particular size and whether the aggregation depends on one training objective.

The authors describe the differences as small and say that the observed results are robust to the cluster counts and to the two losses tested. The claim applies over their chosen configurations. A cluster count affects how finely the dictionary can divide descriptors among different reference regions and how much information the intermediate pooled matrix can hold before projection. The study indicates that the reported performance is available across the tested choices. It supplies no basis for extrapolating that behavior to much larger or smaller dictionaries.

This result also puts the headline configuration in perspective. A single best EER identifies the strongest reported setting on the original test list. The cluster comparison addresses whether nearby design choices are workable. An engineering account of the architecture needs both kinds of evidence. A good best setting can coexist with useful stability across the narrower range that the authors actually compare.

Varying available evidence

The crop study intervenes on the input at verification time. Increasing the crop duration changes how many time positions the trunk can supply to the pooling layer, while the utterance vector retains the same size. The common eligibility rule for source segments helps keep differences in recording availability from dominating the result. Repeated random crops help expose dependence on which portion of the utterance happens to be selected.

A longer crop also changes several properties together. It can add clean speech, additional acoustic contexts, pauses, or another speaker’s voice. The improvement is therefore evidence about the value of longer observations under this sampling procedure. It does not measure separately the value of each additional kind of sound. The authors’ explanation that longer crops are more likely to contain useful target speech fits the design, but the crops are defined by elapsed duration rather than by a measured amount of that speech.

Taken together, the controlled comparisons locate gains at several different stages. The loss comparison shows that the geometry encouraged during training matters even with the same pooling family. The GhostVLAD comparison shows a smaller gain from changing the destination of assignment weight. The length experiment shows that aggregation benefits when the tested recordings contain more time from which to gather evidence. The complete-system comparison with the earlier ResNet adds a different observation: better EER can coexist with fewer parameters, even though that comparison cannot apportion the gain between the trunk and the other changes.

Limitations

Qualifications raised by the authors

The authors note that their main evaluation uses full segments without test-time augmentation and suggest that augmentation could yield slight improvements. That possibility is outside the reported comparison. The headline scores describe the given inference procedure, so an evaluation using multiple modified versions of each recording would answer a different question about the same network.

They also identify errors in the VoxCeleb1-E and VoxCeleb1-H trial lists and release cleaned versions. This qualification is important because changing trial definitions can affect EER independently of a change in the network. The authors’ own evaluation includes the cleaned lists, while several comparison methods supply no results for the extended or hard tasks. The paper’s claim to improve on earlier systems has its widest comparison base on the original VoxCeleb1 list.

The account of average pooling is explicitly tentative. The authors propose that standard softmax can leave excessive variation among utterances of a given speaker when used with temporal averaging. They cite earlier improvement from contrastive training and suggest a possible gain from applying a similar approach to NetVLAD or GhostVLAD. They do not present that additional experiment for their dictionary-based systems. The conjecture about within-speaker variation and the proposal for further training should therefore be distinguished from the verification scores actually reported.

For the duration study, the authors restrict source material to recordings long enough to support the full crop range. They also explain why an in-the-wild crop can contain mostly irrelevant sound. Their finding concerns the available duration of such segments. The experimental setup gives a way to vary that duration under a common eligibility rule, but it does not identify the exact amount of useful speech in each crop.

Limits of the experimental design

The evaluation tests held-out speakers within the VoxCeleb benchmarks described in the paper. The speaker separation between the VoxCeleb2 development partition and VoxCeleb1 supports the transfer claim for unseen identities. A separate question is whether the same gains would hold for other recording collections, other mixtures of voice and noise, or speakers recorded under conditions with different constraints. The evaluations reported here do not establish that broader result.

The ghost clusters provide the capacity to down-weight descriptors, and the reported EER shows a benefit for the configuration that uses them. The claimed interpretation of the clusters is less directly tested. There is no reported comparison in which particular interference is introduced into matched recordings and its influence measured with and without ghost pooling. There is also no reported analysis matching assignment weights to annotated spans of target speech, silence, or other voices. The data support the measured verification gain and the mathematical account of how suppression can occur. They leave the acoustic meaning of the learned assignments unresolved.

A related limit concerns cases with multiple speakers. The architecture pools the descriptors of the utterance into one representation under supervision from its speaker label. A contribution from another voice can be made smaller if doing so helps the learned task. The method does not take a separate indication of which voice in an arbitrary mixture is the target. Its results therefore address verification on the labeled trials the paper defines, instead of the problem of selecting a requested speaker from an arbitrary multispeaker recording.

The parameter comparisons quantify one aspect of compactness. The architecture also projects each recording to a vector with 512 coordinates, which is relevant to storing and comparing utterance representations. Parameter counts and output dimensions do not directly measure elapsed inference time, peak memory, or throughput. Fully convolutional extraction still processes a sequence whose length depends on the recording. The paper establishes the size of the reported network and representation, while runtime behavior across recording durations remains unmeasured.

The duration study has a narrower population than the main full-segment evaluation because its source recordings all meet the 6 second eligibility rule. Performance on a short random crop from a longer recording can differ from performance on an utterance that was itself recorded or selected as a short segment. The study also stops at 6s crops. Its finding about longer input applies to the tested range and does not determine how gains would continue outside it. The reported per-speaker sampling description and final pair count leave a further ambiguity about the exact set of trials behind that conclusion.

Finally, EER compresses threshold behavior to one value. The paper’s best original-list result and the stronger comparison on the hard list demonstrate improvement at the EER operating point. They do not give a full account of how those systems compare at thresholds chosen to favor one kind of error over the other. Similarly, the rule used to construct VoxCeleb1-H makes it possible to examine verification under a harder pairing constraint, but its aggregate score does not establish separate results for the demographic groups involved.

What came after

The subsequent work that can be identified is the 2021 report on the Accented English Speech Recognition Challenge. Its title describes a challenge with open datasets, tracks, baselines, results, and methods. It cites the utterance aggregation paper in the context of a task concerned with recognizing accented speech. This brings the speaker verification study into the documented background of a speech recognition evaluation. The Accented English Speech Recognition Challenge 2020

The tasks place different demands on the representation. The verification paper pools across time to characterize a speaker for comparison with another utterance. A speech recognition task concerns the linguistic content of the recording, for which information at particular positions in the sequence can matter. The citation establishes a connection between the two lines of work. The role of the cited method in the challenge baselines or methods is unspecified, so it does not establish a later implementation of NetVLAD or GhostVLAD or an evaluation of either layer on accented speech recognition.

Cite

Cite as Weidi Xie, Arsha Nagrani, Joon Son Chung and Andrew Zisserman. 2019. Utterance-level Aggregation for Speaker Recognition in the Wild. IEEE International Conference on Acoustics Speech and Signal Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/icassp.2019.8683120 · arXiv 1902.10107

@inproceedings{xie2019utterance,
  title = {{Utterance-level Aggregation for Speaker Recognition in the Wild}},
  author = {Weidi Xie, Arsha Nagrani, Joon Son Chung and Andrew Zisserman},
  booktitle = {IEEE International Conference on Acoustics Speech and Signal Processing},
  year = {2019},
  doi = {10.1109/icassp.2019.8683120},
  eprint = {1902.10107},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/icassp.2019.8683120}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/xie-2019-utterance-level-aggregation-speaker-recognition/

References

25 references, from the paper's own bibliography.

  1. M. McLaren, L. Ferrer, D. Castan, and A. Lawson, “The speakers in the wild (SITW) speaker recognition database,” in INTERSPEECH, 2016. OpenAlex ↗ · Scholar ↗
  2. A. Nagrani, J. S. Chung, and A. Zisserman, “VoxCeleb: a large-scale speaker identification dataset,” in INTERSPEECH, 2017. our card
  3. J. S. Chung, A. Nagrani, and A. Zisserman, “VoxCeleb2: Deep speaker recognition,” in INTERSPEECH, 2018. OpenAlex ↗ · Scholar ↗
  4. M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G.S. Corrado, A. Davis, J. Dean, M. Devin, et al., “Tensorflow: Large-scale machine learning on heterogeneous distributed systems,” arXiv preprint arXiv:1603.04467, 2016. our card
  5. A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer, “Automatic differentiation in pytorch,” 2017. OpenAlex ↗ · Scholar ↗
  6. A. Vedaldi and K. Lenc, “Matconvnet: Convolutional neural networks for matlab,” in Proc. ACMM, 2015. our card
  7. C. Li, X. Ma, B. Jiang, X. Li, X. Zhang, X. Liu, Y. Cao, A. Kannan, and Z. Zhu, “Deep speaker: an end-to-end neural speaker embedding system,” arXiv preprint arXiv:1705.02304, 2017. OpenAlex ↗ · Scholar ↗
  8. L. Wan, Q. Wang, A. Papir, and I.L. Moreno, “Generalized end-to-end loss for speaker verification,” in 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2018, pp. 4879–4883. OpenAlex ↗ · Scholar ↗
  9. Y. Lukic, C. Vogt, O. Dürr, and T. Stadelmann, “Speaker identification and clustering using convolutional neural networks,” in IEEE 26th International Workshop on Machine Learning for Signal Processing (MLSP). IEEE, 2016, pp. 1–6. OpenAlex ↗ · Scholar ↗
  10. I. Lopez-Moreno, J. Gonzalez-Dominguez, O. Plchot, D. Martinez, J. Gonzalez-Rodriguez, and P. Moreno, “Automatic language identification using deep neural networks,” in Acoustics, Speech and Signal Processing (ICASSP), 2014 IEEE International Conference on. IEEE, 2014, pp. 5337–5341. OpenAlex ↗ · Scholar ↗
  11. D. Snyder, D. Garcia-Romero, D. Povey, and S. Khudanpur, “Deep neural network embeddings for text-independent speaker verification,” Proc. Interspeech 2017, pp. 999–1003, 2017. OpenAlex ↗ · Scholar ↗
  12. S. Shon, H. Tang, and J. Glass, “Frame-level speaker embeddings for text-independent speaker recognition and analysis of end-to-end model,” arXiv preprint arXiv:1809.04437, 2018. OpenAlex ↗ · Scholar ↗
  13. K. Okabe, T. Koshinaka, and K. Shinoda, “Attentive statistics pooling for deep speaker embedding,” arXiv preprint arXiv:1803.10963, 2018. OpenAlex ↗ · Scholar ↗
  14. W. Cai, Z. Cai, X. Zhang, X. Wang, and M. Li, “A novel learnable dictionary encoding layer for end-to-end language identification,” arXiv preprint arXiv:1804.00385, 2018. OpenAlex ↗ · Scholar ↗
  15. W. Cai, J. Chen, and M. Li, “Exploring the encoding layer and loss function in end-to-end speaker and language recognition system,” arXiv preprint arXiv:1804.05160, 2018. OpenAlex ↗ · Scholar ↗
  16. R. Arandjelović, P. Gronat, A. Torii, T. Pajdla, and J. Sivic, “NetVLAD: CNN architecture for weakly supervised place recognition,” in Proc. CVPR, 2016. our card
  17. Y. Zhong, R. Arandjelović, and A. Zisserman, “GhostVLAD for set-based face recognition,” in Asian Conference on Computer Vision, ACCV, 2018. OpenAlex ↗ · Scholar ↗
  18. W. Cai, J. Chen, and M. Li, “Analysis of length normalization in end-to-end speaker verification system,” arXiv preprint arXiv:1806.03209, 2018. OpenAlex ↗ · Scholar ↗
  19. M. Hajibabaei and D. Dai, “Unified hypersphere embedding for speaker recognition,” arXiv preprint arXiv:1807.08312, 2018. OpenAlex ↗ · Scholar ↗
  20. G. Bhattacharya, J. Alam, and P. Kenny, “Deep speaker embeddings for short-duration speaker verification,” in Proc. Interspeech, 2017, pp. 1517–1521. OpenAlex ↗ · Scholar ↗
  21. D. Snyder, D. Garcia-Romero, G. Sell, D. Povey, and S. Khudanpur, “X-vectors: Robust dnn embeddings for speaker recognition,” ICASSP, Calgary, 2018. OpenAlex ↗ · Scholar ↗
  22. FA Chowdhury, Quan Wang, Ignacio Lopez Moreno, and Li Wan, “Attention-based models for text-dependent speaker verification,” arXiv preprint arXiv:1710.10470, 2017. OpenAlex ↗ · Scholar ↗
  23. Jinkun Chen, Weicheng Cai, Danwei Cai, Zexin Cai, Haibin Zhong, and Ming Li, “End-to-end language identification using netfv and netvlad,” in Proc. ISCSLP, 2018. OpenAlex ↗ · Scholar ↗
  24. D. Chen, S. Tsai, V. Chandrasekhar, G. Takacs, H. Chen, R. Vedantham, R. Grzeszczuk, and B. Girod, “Residual enhanced visual vectors for on-device image matching,” in Asilomar, 2011. OpenAlex ↗ · Scholar ↗
  25. F. Wang, W. Liu, H. Liu, and J. Cheng, “Additive margin softmax for face verification,” arXiv preprint arXiv:1801.05599, 2018. OpenAlex ↗ · Scholar ↗