Skip to main content
QUICK REVIEW

[Paper Review] Exploring the Encoding Layer and Loss Function in End-to-End Speaker and Language Recognition System

Weicheng Cai, Jinkun Chen|arXiv (Cornell University)|Apr 14, 2018
Speech Recognition and SynthesisComputer Science16 references37 citations
TL;DR

This paper proposes a unified end-to-end system for speaker and language recognition that improves performance through advanced encoding layers and discriminative loss functions. It introduces a learnable dictionary encoding (LDE) layer and self-attentive pooling (SAP) to generate robust utterance-level representations, while center loss and angular softmax loss enhance discriminative speaker embeddings, achieving up to 63% relative error reduction on NIST LRE 07 and 20% error reduction in speaker verification.

ABSTRACT

In this paper, we explore the encoding/pooling layer and loss function in the end-to-end speaker and language recognition system. First, a unified and interpretable end-to-end system for both speaker and language recognition is developed. It accepts variable-length input and produces an utterance level result. In the end-to-end system, the encoding layer plays a role in aggregating the variable-length input sequence into an utterance level representation. Besides the basic temporal average pooling, we introduce a self-attentive pooling layer and a learnable dictionary encoding layer to get the utterance level representation. In terms of loss function for open-set speaker verification, to get more discriminative speaker embedding, center loss and angular softmax loss is introduced in the end-to-end system. Experimental results on Voxceleb and NIST LRE 07 datasets show that the performance of end-to-end learning system could be significantly improved by the proposed encoding layer and loss function.

Motivation & Objective

  • To develop a unified, interpretable end-to-end system for both speaker and language recognition that handles variable-length speech inputs.
  • To investigate the impact of different encoding layers—temporal average pooling, self-attentive pooling (SAP), and learnable dictionary encoding (LDE)—on utterance-level representation learning.
  • To evaluate the effectiveness of discriminative loss functions, including center loss and angular softmax (A-Softmax), in improving speaker embedding quality for open-set verification.
  • To compare the performance of end-to-end systems with conventional i-vector baselines on standard benchmarks (VoxCeleb and NIST LRE 07).

Proposed method

  • A front-end deep CNN (ResNet-34) extracts frame-level features from raw speech, followed by a learnable encoding layer to produce utterance-level representations.
  • Three encoding layers are evaluated: temporal average pooling (TAP), self-attentive pooling (SAP), and learnable dictionary encoding (LDE), with LDE using 64 dictionary components.
  • Discriminative loss functions—center loss (λ=0.001) and angular softmax (m=4)—are integrated into the end-to-end training to enhance embedding discriminability.
  • The system is trained using stochastic gradient descent with momentum 0.9 and weight decay 1e-4, with learning rate decay at loss platet boundaries.
  • For open-set verification, 128-dimensional speaker embeddings are extracted from the penultimate layer and scored using cosine similarity or PLDA.
  • Data augmentation via random cropping or extension to 300–800 frames per mini-batch ensures robustness to variable-length inputs.

Experimental results

Research questions

  • RQ1How do different encoding layers (TAP, SAP, LDE) affect the performance of end-to-end speaker and language recognition systems?
  • RQ2Can the integration of center loss and angular softmax loss improve the discriminativeness of speaker embeddings in open-set verification?
  • RQ3How does the performance of end-to-end systems compare to conventional i-vector baselines on standard datasets like VoxCeleb and NIST LRE 07?
  • RQ4Does the use of PLDA as a similarity metric provide consistent gains across end-to-end systems, especially when discriminative losses are used?

Key findings

  • The CNN-LDE system achieved a 25% relative error reduction on the NIST LRE 07 3-second task compared to the TAP-Softmax baseline.
  • On the 10-second and 30-second NIST LRE 07 tasks, the CNN-LDE system achieved 45% and 63% relative error reduction, respectively.
  • For VoxCeleb speaker identification, the LDE-based system reduced error by 12% relative to the TAP baseline.
  • The LDE-A-Softmax system achieved the best performance in speaker verification, with a C_det of 0.441 and EER of 4.56%, representing a 20% relative error reduction over the TAP-Softmax baseline.
  • PLDA provided significant gains in the conventional i-vector system but offered little to no improvement in end-to-end systems trained with discriminative losses, sometimes degrading performance.
  • The LDE layer outperformed both TAP and SAP layers across all evaluation tasks, demonstrating its effectiveness in learning robust utterance-level representations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.