Clustering-based hard negative sampling for supervised contrastive speaker verification

Piotr Masztalski, Michał Romaniuk, Jakub Żak, Mateusz Matuszewski, Konrad Kowalczyk
7/23/2025
eess.AScs.LGcs.SD

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

In speaker verification, contrastive learning is gaining popularity as an alternative to the traditionally used classification-based approaches. Contrastive methods can benefit from an effective use of hard negative pairs, which are different-class samples particularly challenging for a verification model due to their similarity. In this paper, we propose CHNS - a clustering-based hard negative sampling method, dedicated for supervised contrastive speaker representation learning. Our approach clusters embeddings of similar speakers, and adjusts batch composition to obtain an optimal ratio of hard and easy negatives during contrastive loss calculation. Experimental evaluation shows that CHNS outperforms a baseline supervised contrastive approach with and without loss-based hard negative sampling, as well as a state-of-the-art classification-based approach to speaker verification by as much as 18 % relative EER and minDCF on the VoxCeleb dataset using two lightweight model architectures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{masztalski2025clusteringbased,
  title  = {Clustering-based hard negative sampling for supervised contrastive speaker verification},
  author = {Piotr Masztalski and Michał Romaniuk and Jakub Żak and Mateusz Matuszewski and Konrad Kowalczyk},
  year   = {2025},
  eprint = {2507.17540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.17540v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.17540.svg)](https://codeofpaper.com/paper/2507.17540)

Discussion