Abstract
We study the representation and encoding of phonemes in a recurrent neural network model of grounded speech. We use a model which processes images and their spoken descriptions, and projects the visual and auditory representations into the same semantic space. We perform a number of analyses on how information about individual phonemes is encoded in the MFCC features extracted from the speech signal, and the activations of the layers of the model. Via experiments with phoneme decoding and phoneme discrimination we show that phoneme representations are most salient in the lower layers of the model, where low-level signals are processed at a fine-grained level, although a large amount of phonological information is retained at the top recurrent layer. We further find out that the attention mechanism following the top recurrent layer significantly attenuates encoding of phonology and makes the utterance embeddings much more invariant to synonymy. Moreover, a hierarchical clustering of phoneme representations learned by the network shows an organizational structure of phonemes similar to those proposed in linguistics.
Introduction
Deep neural networks have achieved remarkable success in speech processing, yet their internal mechanisms often remain opaque. While traditional models rely on supervised transcripts, "grounded" models learn language more naturally by associating audio signals with visual contexts. This study investigates how such a model—specifically a Recurrent Highway Network (RHN)—encodes phonological information as it transforms raw acoustic input into abstract semantic embeddings.
Methodology
The architecture analyzed consists of a convolutional layer for processing Mel-frequency cepstral coefficients (MFCCs), followed by five recurrent layers, an attention mechanism, and a final embedding layer. To probe the internal representations, the researchers employed three primary techniques:
- Phoneme Decoding: Training a linear classifier to identify phonemes from layer activations.
- ABX Discrimination: Testing the model's ability to distinguish minimal pairs (e.g., "bit" vs "pit") in varying contexts.
- Hierarchical Clustering: Visualizing the organizational structure of learned phoneme representations.
The study utilized the Synthetically Spoken COCO dataset, where MS COCO image captions were converted to audio using Google’s Text-to-Speech. This synthetic approach allowed for precise forced alignment between audio segments and phonemic labels.
Phonological Encoding and the "Sweet Spot"
Experimental results indicate that phonemic information is not uniformly distributed across the network. Decoding accuracy and discrimination performance suggest that phonological detail is most salient in the first and second recurrent layers. As processing moves toward the higher layers and the attention mechanism, this "form-based" information is gradually filtered out to prioritize "function" or meaning.
As shown in the decoding results, vowels consistently achieve the highest identification accuracy, while more complex classes like affricates show more erratic patterns. The steady decline in accuracy after the second recurrent layer highlights the model's transition from acoustic processing to semantic abstraction.
Emergent Linguistic Structure
One of the most striking findings is that the model develops a sophisticated internal map of sounds without explicit phonetic supervision. By performing hierarchical clustering on the activations of the first recurrent layer, the researchers discovered that the model naturally groups phonemes into categories that mirror traditional linguistic theory.
The resulting dendrogram reveals clear clusters for vowels, plosives, and fricatives. This suggests that these linguistic categories are statistically optimal ways to organize sound for the task of grounded language understanding.
Semantic Filtering and Synonymy
The attention mechanism serves as a critical filter, attenuating phonological details to produce embeddings that are invariant to specific sounds. This is evidenced by the model's treatment of synonyms: while lower layers treat words like "couch" and "sofa" as distinct acoustic events, the final embeddings recognize their semantic equivalence. This abstraction is essential for mapping diverse spoken utterances to a shared visual-semantic space.
Conclusion
This research demonstrates that grounded speech models naturally learn a hierarchical representation of language. Lower layers specialize in the "how" of speech (phonology), while higher layers focus on the "what" (semantics). The emergence of linguistic categories suggests a deep alignment between statistical learning in neural networks and the structures identified in human linguistics. Future work will explore whether these artificial processing stages mirror the hierarchical organization of the human auditory cortex using naturalistic, non-synthetic speech data.
Summary updated