ai papers
Speaker Recognition with Deep Learning (2) - An Overview of Approaches to Overcoming Its Challenges
Junyoung Park · 2025-12-23 · 17 min
This post continues directly from Speaker Recognition with Deep Learning (1) - Concepts and Task Taxonomy. From this point onward, I will use input/output/state-function notation from signals and systems, as well as Fourier-transform and convolution equations, without separate explanation.
The effort to extract speech features
Speaker Verification, Speaker Identification, and the other tasks comprising Speaker Recognition ultimately share one objective.
How can we define the “features” of an utterance well?
Every form of input speech passes through suitable preprocessing and feature extraction, and those extracted features support multiple downstream tasks. We can consider the following approaches.
The first step toward Speaker Recognition
As the previous post briefly explained, Speaker Recognition is extremely difficult. I only sketched the reasons then: microphone characteristics, background noise, overlapping speech, and so on. Observed speech does not contain only speaker-specific information; it is a mixture contaminated by many nuisances. Muddy water might be easy to filter, but this problem is not so simple.
Even the simplest observation model looks like this:
- The original utterance of speaker , containing that person’s timbre and vocal characteristics
- The impulse response of the transmission path, such as microphone, channel, or room reverberation
- Environmental noise, including background sounds, music, and overlapping speech
What we want is
- Feature extractor or embedding model
- The desired speaker embedding, or latent
For to be a good latent, it must satisfy two conditions:
- Utterances from the same speaker should produce similar even across environments, channels, languages, and sessions.
- Different speakers should produce clearly different even when their content is similar.
Written as an objective,
Why speech recognition is difficult
The challenges listed above now become more clearly fatal. They can be classified in greater detail as follows.
Environment
Real speech almost never contains only the target speaker’s voice. Ambient noise, music, and reverberation are always mixed in, perturbing speaker-specific characteristics and degrading performance at every stage from training through testing. In the equation above, environmental noise, music, and reverberation enter through and , directly damaging or obscuring speaker features. Reverberation also transforms the spectrum through convolution, changing the signal by frequency band:
The model often becomes unsure whether it should identify the person or the room.
Channel
Even for the same speaker, recording equipment and transmission path change the perceived timbre. Wired versus wireless links, microphone type, and transmission interference can separate embedding distributions across channels, and removing this difference entirely is difficult. For the same speaker ,
the input distributions themselves differ, so the embedding distributions split easily. This is a classic cause of “the same person looking like different people.”
Speaker characteristics
One person’s voice continually changes with condition, health, age, emotion, accent, and other factors:
One speaker is therefore not one point, but a distribution over states. The resulting intra-class variance makes discrimination harder. Moreover, unlike many systems, this problem has no explicit state function , making a solution almost impossible to identify.
Speech variability
Every utterance differs. Even the same sentence changes in speed, energy, and intonation. Real-world data is often closer to
- Speaker identity
- Linguistic content, or what was said
- Room or channel response
- Noise
- The recording conditions on a particular occasion
We want to retain only factor and erase the rest as much as possible, but changes in and are so large that the model is easily led by them.
Language characteristics
Changing languages changes phonology, rhythm, and intonation patterns, greatly increasing variation in . Even for the same speaker,
The model can become more sensitive to language or spoken content than to speaker identity. This is directly related to performance collapse in multilingual settings.
Transducing characteristics
Different microphones and headsets have different frequency responses, changing . Narrow bandwidth can discard information entirely:
It is therefore mathematically natural for the same speaker to appear different after the device changes.
What do we actually want?
We want a latent sensitive to speaker identity but insensitive to nuisances such as environment, channel, language, and session. In information-theoretic form,
The key is for to retain as much speaker information as possible and as little information as possible about environment, equipment, language, and the speaker’s condition that day. This personal concern is why I previously wrote about disentanglement.
A more sober look shows, however, that expecting the model to accomplish this automatically without labels or an explicit separation signal is difficult. The observed data can be described by a generative process such as
- Speaker identity, the factor we want to preserve
- Nuisance, including environment, channel, language, session, condition, and other factors we want to remove
We want an encoder, or representation learner, to create
with intuitively large and small . The problem is that alone does not uniquely identify a solution separating and .
Separable representations are fundamentally non-identifiable
At the extreme, suppose
Any mixing function is possible. If is even a bijection,
then a solution can minimize the loss while placing all information into in an entangled form. With only a reconstruction objective such as an autoencoder,
one of the easiest ways to minimize it is to make copy as faithfully as possible. Then naturally includes both and . Without special constraints, entanglement is a far more natural solution than disentanglement. A general learning method cannot easily separate only the speaker’s voice from nuisance .
Generative models such as RBMs and DBMs do not disentangle automatically either
RBMs and DBMs are fundamentally energy-based models:
- Latent, or hidden unit
- Energy function
Training generally maximizes likelihood:
But likelihood maximization is not an objective that asks for clean factor separation.
The units of need not divide their roles neatly so that one captures speaker, another channel, and another language or content. From the learning perspective, one hidden factor may absorb a mixed speaker + channel + content pattern while other factors sit idle like dummy nodes. RBMs and DBMs approximate distributions well; they do not decompose factors into semantic units.
The same applies to DNNs: without supervision, they take convenient shortcuts
A DNN can learn , but even if the objective is speaker classification,
it asks for features that distinguish speakers, not for nuisances to be discarded.
As soon as channel, language, or environment correlates with the label (even large datasets inevitably entangle a fixed set of people recorded in fixed environments),
the model can actively use as a shortcut to predict . The resulting representation naturally mixes
far from the desired .
Separation rarely works without constraints or signals
This gives the following picture:
- likelihood-based training with RBM, DBM, or AE aims to reconstruct or imitate, so it has no reason to discard ;
- classification-based DNN training aims to predict correctly, so if helps, the model actively uses it.
Without explicit information such as conditions, constraints, augmentation design, adversarial signals, or regularization, the desired disentanglement does not arise as naturally as one might hope.
From this perspective, the GMM→vector→vector→ECAPA/SSL progression discussed next is also a history of how each era changed the constraint, structure, or learning signal used to make the model attend less to .
Designing proper deep and deeper feature extraction
The meaning of “feature” in speaker recognition has changed over time. Early methods fed handcrafted speech features such as MFCC or PLP into a dedicated speaker-recognition model. Later approaches increasingly converged on extracting a fixed-length latent, or embedding. Deep learning nevertheless begins from the same place. The input may be a handcrafted feature such as MFCC/Fbank, or convolution may learn directly from the raw waveform. The important question is how to begin from these shallow features and extract the deep “speaker information” we truly want.
GMM-UBM: The era of probabilistic speaker models
The classic approach models a speaker’s utterance features with a GMM, a mixture of multivariate Gaussian distributions. GMM-UBM speaker verification is a representative family.
A GMM assumes that the sample distribution is a weighted sum of Gaussian distributions with several means and standard deviations.
(1) Input features
Frame-level features such as MFCC or PLP are generally used. Let each frame feature be . The GMM is defined below, where is the number of Gaussian components. For speech features such as MFCC and PLP, a continuous speech signal is split along time into “frames” according to a window and stride. Frequency analysis within each sliding window describes the approximate frequency distribution at that location. In greater detail, the MFCC pipeline is STFT (Spectrogram) → Mel Filterbank (Mel-Spectrogram) → Cepstral Coefficients (MFCC). PLP differs somewhat, and explaining every step would take all day, so it is enough to think of them as extracting dominant frequency components. The figure below shows an MFCC example.
After extracting all features, we see a list of “indices” at each point in time. Each index represents a frequency band; the vertical list of values (drawn as tiles in the figure, though each is a number) can be treated as a feature embedding or vector. These are the multiple variables modeled by the GMM. GMM-UBM used 80 dimensions, so there are 80 indices.
Here . A GMM constructed this way models MFCC features from one speaker and therefore generalizes poorly across varied speakers. The UBM compensates for this weakness.
(2) UBM (Universal Background Model)
The UBM is a background distribution resembling the average over all speakers. First train UBM on extensive utterance data from many speakers, then create each speaker model through MAP adaptation.
(3) Baum–Welch statistics and the vector
The UBM posterior produces a GMM for the original speaker information:
The simple principle is to remodel the speaker using a generalized speaker-distribution hypothesis .
These statistics feed directly into later vector and PLDA methods.
(4) Scoring for verification
The most basic method is a log-likelihood ratio:
Even a small change in channel, environment, or session destabilizes MAP adaptation of . MFCC itself is also not particularly robust to noise.
vector: Compress everything into one fixed-length latent
If GMM-UBM creates a GMM distribution for every speaker, the improved vector approach
compresses one variable-length utterance into one fixed-length vector—the total-variability, or vector.
(1) Core idea: Reduce the supervector’s dimension
Let be the “supervector” formed by concatenating all GMM means:
- UBM mean supervector, or global mean
- Total-variability matrix
- The low-dimensional latent we want to extract—the vector
The prior is generally Gaussian: . The key is that the structure models speaker and channel variation together in one space, hence “total variability.” It begins from the view that itself is likely to mix person and channel.
(2) Statistics-based estimation: UBM posterior → posterior
Statistics such as above give the posterior over ; its mean is generally used as the vector.
One can think of it as finding one good prototype.
Back end: Cosine versus PLDA, and length normalization
After extracting vectors, we need to determine whether two belong to the same person.
The simplest method is cosine similarity:
A more sophisticated back end uses PLDA to separate speaker from session once more. PLDA is a probabilistic model assuming that embedding is generated as the sum of a speaker factor and a session factor, such as channel or environment. Its most common form is
- Speaker latent variable, shared by the same speaker
- Within-speaker variation from session, channel, noise, and similar factors
- Training estimates from labeled embeddings and generally adds preprocessing so the data better fits the Gaussian assumption.
- Scoring compares two embeddings , under : same speaker, sharing one , versus : different speakers, with separate values, using a log-likelihood ratio. Despite the formal wording, it simply compares whether the two distributions fit better under a same-speaker or different-speaker assumption.
With DNNs, let the model extract features directly
The perspective now changes. Instead of indirect probabilistic compression, a DNN directly extracts the embedding. MFCC-dependent methods use shallow frequency features; a DNN asks a black-box neural network to extract and use more “abstract” features.
vector: Average the final hidden activations into an embedding
The vector is a typical early deep-learning embedding:
- process frames with a DNN,
- take the final hidden activations,
- and average them across the utterance to form an embedding.
Verification generally uses cosine similarity.
vector: Multitask learning over speaker and text content
Since attending only to the speaker is difficult in practice, the vector jointly learns speaker ID and text information as a multitask problem. Its perspective is candid: if content is difficult to ignore, place it inside the learning structure and control it explicitly. It does not seem like an especially fancy approach.
vector: TDNN + statistics pooling as the standard template
The vector remains a common baseline template. Its outline is simple:
- At frame level, a TDNN (Time-Delay Neural Network) observes a wide temporal context.
- Moving to utterance level, statistics pooling—mean, standard deviation, and so on—turns variable length into fixed length.
- The model trains on speaker classification and uses an intermediate-layer output as the embedding.
Statistics-pooling equation
For frame embeddings ,
becomes the basis of the utterance-level representation. This is why descriptions of vector systems always emphasize the importance of pooling. After extracting the embedding, an vector system generally attaches cosine similarity or PLDA as a back end. More aggressively, it may use margin losses such as AM- or AAM-Softmax to make embeddings more separable.
DNN/vector hybrid: Replace only the alignments with a DNN
There was also an interesting intermediate stage: preserve the vector pipeline while replacing only the frame alignment—the posterior calculation—performed by the UBM-GMM with a DNN.
ECAPA-TDNN: A better vector
More recent architectures strengthen the vector family. The most famous branch is ECAPA-TDNN.
The original paper’s message is clear: retain the basic vector framework of TDNN + statistics pooling, but reinforce it through attention and aggregation.
- Retain the TDNN backbone.
- Improve attention over channels with SE-style components.
- Mix multi-layer features more effectively through aggregation.
- Make pooling more expressive with variants such as channel-dependent statistics pooling.
Raw waveform: Learn from the front end with models such as SincNet
Another line avoids handcrafted features such as MFCC and Fbank, entering directly from the waveform and learning the filter bank. SincNet is a representative example. It uses sinc-based convolution followed by a CNN pipeline for speaker classification and can extend to unsupervised embeddings from a mutual-information perspective. Its message is clean:
The narrowband features important for distinguishing people—pitch, formants, and so on—need not be extracted first by human design. Instead, impose interpretable constraints that let the network learn them directly. How to impose those constraints is the key.
SSL (wav2vec 2.0/HuBERT/WavLM): Grow the representation first
Finally comes the strongest recent trend across modalities: self-supervised learning. It is widely applied to vision, images, and video, although audio still seems not to have absorbed as much of the SSL wave.
- wav2vec 2.0: Latent-space masking + contrastive learning
- HuBERT: Masked prediction targeting clustering-based hidden units
- WavLM: Masked prediction combined with denoising, designed to work beyond ASR tasks
SSL is generally applied to speaker recognition in one of two ways.
Use it only as a feature extractor:
using mean or attentive-statistics pooling, for example.
Or fine-tune it with a speaker loss:
Softmax is possible, but margin-based losses such as AAM- and AM-Softmax now seem more common. This is largely a difference in how the downstream task is performed. Speech still appears underexplored in SSL—why? Honestly, it feels as though we could build something better.
Conclusion
Speaker recognition is less a problem of making the model recognize a speaker than of making it choose what to discard and retain among everything it cannot avoid seeing. Observed speech never contains only ; it is a mixture including —environment, channel, language, session, and condition. The central goal therefore remains identical from beginning to end: make embedding preserve as much person information as possible while containing as little nuisance information as possible.
From this perspective, the GMM→vector→vector→ECAPA/SSL progression records how each era designed structures, learning signals, and data to make the model attend less to .
- GMM-UBM modeled distributions over shallow features such as MFCC and PLP to capture speaker differences, but was structurally vulnerable to channel and environment variation.
- The vector compressed an utterance into fixed-length to create a comparable latent. As the name total variability suggests, however, speaker and nuisance are easily mixed at the source within . Back ends such as PLDA and length normalization therefore attempt a second separation.
- DNN embeddings—-vector, -vector, and ECAPA—let the network learn the features themselves, increasing expressiveness and pushing representations more strongly toward speaker identity through pooling, attention, and margin loss.
- SSL first builds a representation from large-scale data, then aligns it toward the speaker downstream. This too is a contest over which properties treats as invariant and which as discriminative.
The conclusion is simple:
A good speaker-recognition model is ultimately one that creates good embeddings, and good embeddings rarely emerge without good constraints—learning signals, structure, and data design.
Whether the architecture is a GMM, DNN, or SSL model, what matters more than parameter count is (1) which nuisances the design realistically assumes, (2) which constraints prevent the model from using those nuisances as shortcuts, and (3) how well those constraints hold in the real data distribution.
The next post will bring this progression one step closer to reality. Rather than list architectures that perform well in papers, it will examine the forms that takes in broadcast audio, and from a more practical perspective ask which training and inference designs actually increase and reduce .