T-vectors: Weakly Supervised Speaker Identification Using Hierarchical Transformer Model

Yanpei Shi, Mingjie Chen, Qiang Huang, Thomas HainarXiv 2020

Abstract

Weakly supervised speaker identification aims to identify speakers in an audio clip without precise timestamp labels. This paper introduces T-vectors, a hierarchical Transformer-based architecture that utilizes a frame-level encoder with memory and a segment-level encoder to capture both local and global speaker characteristics. By employing multi-head attention and a memory mechanism inspired by Transformer-XL, T-vectors effectively handle long-term dependencies and overlapping speech. Evaluated on augmented Switchboard and VoxCeleb datasets, T-vectors demonstrate significant improvements over existing RNN-based and X-vector models, particularly in complex multi-speaker scenarios.

Introduction: The Challenge of Weak Supervision

In traditional speaker identification, "strong supervision" requires human annotators to provide exact timestamps for every speaker in a recording. This process is labor-intensive and difficult to scale for large datasets. "Weakly supervised" learning offers a more efficient alternative: the model is only told which speakers are present in a long audio segment, but not when they speak.

The primary challenge in weak supervision is the model's ability to distinguish between voices and ignore background noise or overlapping speech without explicit temporal guidance. Previous architectures, such as H-vectors, relied on Recurrent Neural Networks (RNNs) like GRUs. However, these models often struggle with training efficiency and the "forgetting" of information over long sequences.

The T-vector Architecture

The authors propose the T-vector model, which adopts a hierarchical approach to process audio data.

The hierarchical T-vector architecture, illustrating the flow from input audio through frame-level and segment-level encoders to final speaker identification.

The architecture consists of several key stages:

  1. Global Processing: Raw audio is first processed by a Time Delay Neural Network (TDNN) layer. Positional encodings are added to maintain temporal order, which is crucial for Transformer-based models.
  2. Frame-Level Encoders with Memory: The audio is divided into segments, each passing through a series of Transformer encoder blocks. These blocks incorporate a memory mechanism that reuses hidden states from previous segments. This allows the model to maintain a "history" of the speaker's voice, helping it identify individuals who may only speak briefly or at irregular intervals.
  3. Segment-Level Encoder: The frame-level outputs are pooled and passed through a segment-level Transformer. This stage aggregates information across the entire utterance to form a global representation.
  4. Multi-Head Attention: This mechanism allows the model to attend to different acoustic features simultaneously. This is particularly effective for "unmixing" overlapping speech, as different attention heads can learn to focus on distinct vocal textures or frequency components.

Experimental Setup and Datasets

As no standard weakly supervised dataset existed for this task, the researchers created eight augmented datasets based on the Switchboard Cellular Part 1 (SWBC) and VoxCeleb1 corpora. They tested two specific scenarios:

  • Concat: Multiple speakers' voices are concatenated sequentially.
  • Overlap: Multiple speakers' voices are layered on top of each other, representing the most challenging real-world condition.

Key Results and Insights

The T-vector model was compared against several strong baselines, including X-vectors, Attentive X-vectors, H-vectors, and S-vectors.

  • Superior Performance: T-vectors achieved a 13.3% and 10.5% relative improvement in Equal Error Rate (EER) compared to H-vectors and S-vectors on the SWBC-S dataset.
  • Impact of Memory: The inclusion of the memory mechanism resulted in a 10.6% relative improvement over a T-vector model without memory, confirming its importance for long-term temporal modeling.
  • Robustness to Overlap: The model remained remarkably robust even when three or more speakers were overlapping. As shown in the results, T-vectors consistently outperformed all baselines in the "Overlap" scenarios.
Performance comparison of T-vectors and baselines in the Overlap:Vox-S scenario, showing EER across different numbers of speakers.

Conclusion

T-vectors represent a significant advancement in weakly supervised speaker identification. By leveraging the parallel processing capabilities of Transformers and a specialized memory mechanism, the model overcomes the limitations of previous RNN-based approaches. Future research will explore more complex real-world datasets and further refine attention mechanisms to handle high-density "cocktail party" scenarios with even greater precision.

Summary updated

BibTeX
@misc{shi2020t,
  author = {Yanpei Shi and Mingjie Chen and Qiang Huang and Thomas Hain},
  title = {{T-vectors: Weakly Supervised Speaker Identification Using Hierarchical Transformer Model}},
  year = {2020},
  eprint = {2010.16071},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.16071},
}
Figure