Update README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204---license: apache-2.0tags:- speaker-recognition- uncertainty- speaker-verification- speech- voxceleb---
<p align="center"> <b>Junjie Li</b>, <b>Yang Xiao</b>,<b> Kong Aik Lee <br> <i>The Hong Kong Polytechnic University</i> <br> <i>The University of Melbourne, Australia</i></p>
<p align="center"> <a href="https://arxiv.org/abs/2601.15719"> <img src="https://img.shields.io/badge/arXiv-2308.08143-b31b1b.svg"/> </a></p>
This model card presents a SpeechBrain-style release for our uncertainty-aware speaker recognition work:
1. **$\mathcal{U}^3$-xi: Pushing the Boundaries of Speaker Recognition via Incorporating Uncertainty**2. **Towards Robust Uncertainty-Aware Speaker Modeling**
## Model Description
Uncertainty-aware speaker modeling extends conventional speaker embedding systems by estimating and using uncertainty during representation learning, training, and scoring. The model family builds on common speaker-recognition backbones such as ECAPA-TDNN, ResNet34, and ReDimNet-B2, and adds uncertainty-aware components to improve robustness on both in-domain and cross-domain speaker verification.
The first work introduces the $\mathcal{U}^3$-xi framework, which incorporates uncertainty into speaker recognition through:
- **Uncertainty Estimation Module** based on multi-view self-attention (MVA)- **Global Uncertainty Supervision** by incorporating uncertainty into the scale factor- **Uncertainty-aware cosine scoring**
The third work improves this direction with robust uncertainty-aware speaker modeling, especially through:
- **Inter- and Intra-Speaker-Aware Uncertainty Softmax**- **Uncertainty-Calibrated Domain Adaptation (UCDA)**
At the current repository stage, the implemented part of the third work is **Inter- and Intra-Speaker-Aware Uncertainty Softmax**.
## Intended Use
This release is intended for research on:
- Speaker verification- Speaker embedding learning- Uncertainty-aware speaker recognition- Robust speaker modeling under in-domain and cross-domain evaluation- Margin-based speaker classification losses with uncertainty modeling
It is not intended as a turnkey biometric identity product. Any deployment for real user authentication should include additional calibration, privacy review, fairness evaluation, and domain-specific validation.
## Implementation Highlights
The implementation is based on the WeSpeaker codebase and can be adapted into SpeechBrain recipes or checkpoints. The main implemented components are:
- **$\mathcal{U}^3$-xi pooling**: uncertainty-aware utterance-level speaker pooling- **Multi-view self-attention (MVA)**: auxiliary module for uncertainty estimation- **Uncertainty-aware margin losses**: uncertainty-aware variants of AAM-Softmax, AM-Softmax, and SphereFace2- **Inter-/intra-speaker uncertainty modeling**: improved softmax variants from the third work- **Uncertainty-aware cosine scoring**: scoring with uncertainty information when enabled
Key implementation references in the source repository:
- `U_Cube_XI`: `wespeaker/models/pooling_layers.py`- `ArcMarginProduct_uncertainty`: `wespeaker/models/projections.py`- `ArcMarginProduct_uncertainty_inter_intra`: `wespeaker/models/projections.py`- `AddMarginProduct_uncertainty_inter_intra`: `wespeaker/models/projections.py`- `SphereFace2_uncertainty_Arcguide_inter_intra`: `wespeaker/models/projections.py`
## Installation
Clone the repository and install the dependencies:
```bashgit clone https://github.com/mrjunjieli/wespeaker_u_cube.gitcd wespeaker_u_cubepip install -r requirements.txtpip install -e .```
For a SpeechBrain-style workflow, install SpeechBrain in the same environment if you plan to wrap these checkpoints or recipes with SpeechBrain interfaces:
```bashpip install speechbrain```
## Training
The VoxCeleb experiments are located in:
```textexamples/voxceleb/v2```
Example training entry point:
```bashcd examples/voxceleb/v2bash run.sh --stage 1 --stop_stage 5 --config conf/ecapa_tdnn_u_cube.yaml```
Other uncertainty-aware configs include:
```textconf/ecapa_tdnn_u_cube.yamlconf/resnet_u_cube.yamlconf/redimnet_u_cube.yaml```
For the third work, use the inter-/intra-speaker uncertainty-aware projection types implemented in `wespeaker/models/projections.py`, such as:
```textarc_margin_uncertainty_inter_intraadd_margin_uncertainty_inter_intrasphereface2_uncertainty_arcguide```
## Inference and Scoring
A typical evaluation workflow extracts embeddings and then scores verification trials:
```bashcd examples/voxceleb/v2bash run.sh --stage 6 --stop_stage 6 --config conf/ecapa_tdnn_u_cube.yaml```
For uncertainty-aware scoring, use the uncertainty extraction and scoring utilities in the VoxCeleb recipe:
```bashlocal/extract_vox_uncertainty.sh --exp_dir <exp_dir>local/score_uncertainty.sh --exp_dir <exp_dir>```
Replace `<exp_dir>` with the experiment directory containing the trained model and extracted embeddings.
## Results
The table below summarizes representative results from the README for the first and third works. Lower EER and minDCF are better.
### $\mathcal{U}^3$-xi Results
| Model | Params | Vox1-O EER | Vox1-E EER | Vox1-H EER ||:--|:--:|:--:|:--:|:--:|| ECAPA-TDNN c512 baseline | 6.19M | 1.069 | 1.209 | 2.310 || ECAPA-TDNN c512 + $\mathcal{U}^3$-xi | 6.7M | 0.782 | 1.016 | 1.888 || ResNet34 baseline | 6.63M | 0.867 | 1.049 | 1.960 || ResNet34 + $\mathcal{U}^3$-xi | 7.9M | 0.867 | 0.868 | 1.641 || ReDimNet-B2 baseline | 4.89M | 0.782 | 0.907 | 1.667 || ReDimNet-B2 + $\mathcal{U}^3$-xi | 5.5M | 0.606 | 0.779 | 1.494 |
### Robust Uncertainty-Aware Speaker Modeling Results
The third work improves uncertainty-aware training with inter-/intra-speaker-aware softmax variants. Representative results include:
| Backbone | Loss | Uncertainty-aware cosine | Vox1-O EER | Vox1-E EER | Vox1-H EER | CNCeleb EER ||:--|:--|:--:|:--:|:--:|:--:|:--:|| ECAPA512 + $\mathcal{U}^3$-xi | UAAM-Softmax inter-intra | Yes | 0.840 | 0.965 | 1.833 | 10.781 || ECAPA512 + $\mathcal{U}^3$-xi | UAM-Softmax inter-intra | Yes | 0.808 | 0.991 | 1.794 | 9.411 || ECAPA512 + $\mathcal{U}^3$-xi | USphereFace2 inter-intra | Yes | 0.739 | 0.965 | 1.771 | 10.560 || ResNet34 + $\mathcal{U}^3$-xi | UAAM-Softmax inter-intra | Yes | 0.813 | 0.847 | 1.532 | 9.631 || ReDimNet-B2 + $\mathcal{U}^3$-xi | UAAM-Softmax inter-intra | Yes | 0.627 | 0.758 | 1.434 | 8.607 || ReDimNet-B2 + $\mathcal{U}^3$-xi | USphereFace2 inter-intra | Yes | 0.622 | 0.774 | 1.433 | 11.899 |
## Limitations
- The current third-work implementation includes **Inter- and Intra-Speaker-Aware Uncertainty Softmax**; UCDA is described as part of the work but is not currently provided in the repository.- Results depend on the VoxCeleb recipe, preprocessing, augmentation, training schedule, and scoring setup.- The older pretrained checkpoints from the first work are not recommended as the main release target for this card because the third work supersedes them.
## Citation
If you use this work, please cite the related papers:
```bibtex@article{li2026ucubexi, title={{U^3}-xi: Pushing the Boundaries of Speaker Recognition via Incorporating Uncertainty}, author={Li, Junjie and Lee, Kong Aik}, journal={arXiv preprint arXiv:2601.15719}, year={2026}}```
```bibtex@article{li2026robustuncertainty, title={Towards Robust Uncertainty-Aware Speaker Modeling}, author={Li, Junjie and Lee, Kong Aik}, journal={arXiv preprint}, year={2026}}```
## Contact
For questions, please contact:
```textjunjie98.li@connect.polyu.hk```README.md+201