[Paper Review] Discriminative Acoustic Word Embeddings: Recurrent Neural Network-Based Approaches
This paper proposes recurrent neural network (RNN)-based acoustic word embeddings trained with discriminative losses—specifically contrastive loss in a Siamese network setup and cross-entropy loss in a classifier setup—for improved word discrimination in speech. The Siamese RNN model outperforms prior CNN-based methods and classifier-based RNNs, achieving state-of-the-art results on a word discrimination task, with robust performance even at low embedding dimensions and better generalization to unseen words.
Acoustic word embeddings --- fixed-dimensional vector representations of variable-length spoken word segments --- have begun to be considered for tasks such as speech recognition and query-by-example search. Such embeddings can be learned discriminatively so that they are similar for speech segments corresponding to the same word, while being dissimilar for segments corresponding to different words. Recent work has found that acoustic word embeddings can outperform dynamic time warping on query-by-example search and related word discrimination tasks. However, the space of embedding models and training approaches is still relatively unexplored. In this paper we present new discriminative embedding models based on recurrent neural networks (RNNs). We consider training losses that have been successful in prior work, in particular a cross entropy loss for word classification and a contrastive loss that explicitly aims to separate same-word and different-word pairs in a "Siamese network" training setting. We find that both classifier-based and Siamese RNN embeddings improve over previously reported results on a word discrimination task, with Siamese RNNs outperforming classification models. In addition, we present analyses of the learned embeddings and the effects of variables such as dimensionality and network structure.
Motivation & Objective
- To explore the effectiveness of RNN-based models for learning discriminative acoustic word embeddings (AWEs) that capture semantic and phonetic similarity between spoken word segments.
- To compare two training paradigms—Siamese networks with contrastive loss and classifier-based training with cross-entropy loss—for learning AWEs.
- To evaluate the impact of network depth, embedding dimensionality, and training vocabulary frequency on AWE performance.
- To analyze the structure and geometry of learned embeddings, particularly their ability to preserve relative distances between words with similar or dissimilar pronunciations.
Proposed method
- The paper employs deep LSTM and GRU-based RNNs to encode variable-length speech segments into fixed-dimensional embeddings.
- It trains two types of models: a Siamese network with contrastive loss to minimize intra-class (same-word) and maximize inter-class (different-word) distances, and a classifier with cross-entropy loss to predict word identities.
- The Siamese network is trained on all possible pairs of training examples, effectively increasing the training signal and enabling better modeling of relative word similarities.
- The network architecture includes stacked RNN layers (up to 3) followed by fully connected layers, with ablation studies on the number of layers and their impact on performance.
- Embedding quality is evaluated using average precision (AP) on a word discrimination task, with t-SNE visualizations to analyze cluster structure and inter-cluster distances.
- Experiments are conducted on a standard benchmark dataset, comparing results to prior CNN-based AWEs and baseline methods like dynamic time warping (DTW).
Experimental results
Research questions
- RQ1Can RNN-based models outperform prior CNN-based acoustic word embeddings on a word discrimination task?
- RQ2Does training with a Siamese contrastive loss lead to better generalization to unseen words compared to a classifier-based cross-entropy loss?
- RQ3How do architectural choices—such as the number of stacked RNN layers and fully connected layers—affect the quality of learned embeddings?
- RQ4How robust are the embeddings to reductions in dimensionality, and what is the minimum effective dimension for good performance?
- RQ5To what extent do training frequency and word exposure influence embedding quality, especially for rare or unseen words?
Key findings
- The Siamese RNN model with contrastive loss achieves the highest average precision on the development set, outperforming both the classifier-based RNN and prior CNN-based AWEs.
- Siamese RNNs show superior performance across all embedding dimensionalities ≥16, exceeding previously reported CNN-based results at every dimension.
- The model with 3 stacked RNN layers and 2–3 fully connected layers achieves the best performance, indicating that fully connected layers have a more significant impact than additional stacked RNN layers.
- Performance improves with higher training frequency of words, and the Siamese model benefits more from increased frequency due to its pair-based training scheme.
- t-SNE visualizations show that Siamese embeddings better preserve relative distances between word clusters, especially for words with similar or dissimilar pronunciations, such as 'programs' and 'problem'.
- The model generalizes better to unseen words than the classifier-based approach, suggesting that contrastive learning better captures intrinsic word similarity beyond just identity classification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.