Speaker embedding aggregation: combine enrollment recordings into one profile
Compare mean, median, max, and attention aggregation for multiple enrollment utterances. Build a fair baseline and test across the microphones, distances, and speech conditions your system will use.
Speaker embedding aggregation: combine enrollment recordings into one profile
When a person provides several enrollment recordings, the way their speaker embeddings are combined can affect verification. The simplest baseline is a vector average; median or max pooling and attention methods that learn relationships among enrollment utterances are alternatives. No method is best in every recording or prompt condition, so compare them on development and test data that resemble the real enrollment process.
Three ways to combine recordings
| Method | How it works | Benefit and caution |
|---|---|---|
| Mean | Average corresponding dimensions across embeddings | Simple baseline; low-quality recordings still influence the result |
| Median or max | Select the median or largest value in each dimension | Simple, but dimensions may combine traits from different recordings and may not form a representative utterance vector |
| Attention aggregation | Learned weights capture relationships and relative importance across enrollments | Can learn variation, but requires separate training and validation data and adds complexity |
An enrollment embedding is a fixed-length vector produced by a speaker encoder from one enrollment utterance. The combined profile is compared with an embedding from a new test utterance. Averaging embeddings and averaging the scores from separate comparisons are different choices; record and evaluate them separately.
Build a mean baseline
**Fix the enrollment conditions.** Match the product flow: utterances per speaker, duration, prompted or free speech, and near- or far-field microphones.
**Process each recording separately.** Use identical preprocessing and encoder settings. Record silence, short speech, clipping, and severe noise.
**Start with simple aggregation.** Use element-wise mean as the baseline and test median as another reference. If the encoder requires it, normalize each vector before averaging and normalize the resulting profile using the same rule. Follow the model’s specified training and inference procedure.
**Score test speech.** Apply the same cosine or PLDA backend to the profile and test embedding. Evaluate thresholds and errors on a held-out development set.
**Evaluate attention later.** A learned aggregator can model relationships among enrollment embeddings, but needs enough training speakers and validation data. Compare it on the same speaker-disjoint trials as the mean baseline, and record parameter count and inference cost.
How to read published results
A 2025 EUSIPCO study compared ways to combine five ECAPA-TDNN embeddings under near-field and far-field Hi-Mia conditions and on VoxCeleb. The authors reported that attention aggregation beat simple averaging on Hi-Mia, while its benefit was not consistent on VoxCeleb; mean or median performed better in some cases. Augmentation effects also differed with far-field noise and data conditions. These findings do not show that attention is universally better for every encoder or service.
A 2022 attention-backend study also compared an attention method with cosine and PLDA baselines for multiple enrollments. Those results likewise depend on its datasets and training setup. If you lack data resembling your enrollment environment, use mean aggregation as a reproducible baseline and design a separate test in the real service conditions.
When scores are poor
If enrollment samples all use one room or microphone, test a separate set recorded across days or distances to see whether the profile overfits the environment.
If one recording is very noisy or clipped, test whether an explicit quality rule before aggregation changes results. Choose the rule on development data using criteria that can run in the product; do not cherry-pick only clean test samples.
Report performance separately as enrollment count changes. Do not assume one profile rule works equally well with one and five recordings.
If attention improves training results only, check speaker splits, session overlap, and domain mismatch, then confirm on an independent test set.
If profiles must be stored, set retention, access, and deletion rules for both original recordings and embeddings. Protect embeddings as potentially identifying biometric data.
References
- How to merge your embeddings: statistical vs attention-based speaker embedding aggregation for speaker verification with multiple enrollments — EUSIPCO 2025
- Joint Speaker Encoder and Neural Back-end Model for Fully End-to-End Automatic Speaker Verification with Multiple Enrollment Utterances
- Attention Back-end for Automatic Speaker Verification with Multiple Enrollment Utterances
- ECAPA-TDNN: Emphasized Channel Attention, Propagation and Aggregation in TDNN Based Speaker Verification