NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Language Learning Using Speech to Image Retrieval

Danny Merkx, Stefan L. Frank, Mirjam ErnestusInterspeech 2019

TL;DR

This paper presents a novel approach to language learning directly from speech by leveraging image-caption retrieval. By improving upon existing neural network architectures with techniques like vectorial self-attention and importance sampling, they achieve state-of-the-art results in matching spoken utterances to images. Crucially, their analysis reveals that the model implicitly learns to recognize words within the speech signal, even without explicit training for this task.

What Problem Does This Paper Address?

Traditional natural language processing (NLP) models heavily rely on text data, requiring extensive transcriptions even for speech-related tasks like automatic speech recognition. This reliance creates a barrier for low-resource languages or situations where text is unavailable. Furthermore, it doesn't align with how humans, especially children, learn language through rich, multimodal sensory experiences. This paper tackles the challenge of building computational models that can learn language directly from raw speech, mimicking a more natural and cognitively plausible learning process, and bridging the gap between spoken language and visual understanding.

Methods

The core of the paper is a multimodal encoder that maps images and spoken captions into a shared embedding space. This means that matching image-caption pairs should be close together in this space, while mismatched pairs should be far apart.

The model consists of two main branches:

  • Image Encoder: Utilizes a pre-trained ResNet-152 model to extract visual features from images. These features are then passed through a linear projection layer.
  • Speech/Caption Encoder: This is where the novelties lie.
  • Acoustic Features: The model processes raw audio using either Mel Frequency Cepstral Coefficients (MFCCs) or learned Multilingual Bottleneck (MBN) features.
  • Convolutional Layer: A 1D convolutional layer is applied to the acoustic features, acting as the initial processing step.
  • Bi-directional GRU: A 3-layer Gated Recurrent Unit (GRU) processes the features, capturing long-range dependencies in the speech signal from both forward and backward directions.
  • Vectorial Self-Attention: This mechanism allows the model to weigh the importance of different parts of the speech signal when forming the final embedding. This is a key improvement over previous scalar attention methods.

The training objective is to maximize the cosine similarity between embeddings of matching image-caption pairs while minimizing it for mismatched pairs, using a hinge loss function. Several advanced training techniques are employed, including importance sampling (to focus on "hardest" mismatched pairs), cyclic learning rates, and snapshot ensembling (to combine multiple trained models for improved performance).

Datasets

The primary dataset used is Flickr8k. This dataset consists of 8,000 images, each with five English captions. For this work, spoken captions were generated by having Amazon Mechanical Turk workers read the original written captions. The data was split into 6,000 images for training and 1,000 images each for development and testing.

Key Insights and Ideas

  • Implicit Word Recognition: The most striking finding is that the model, despite not being explicitly trained to identify words, learns to recognize them within the speech signal. This is demonstrated through a probing task where a classifier attempts to predict word presence from the model's internal representations.
  • Layered Abstraction: The analysis of word recognition across different network layers reveals a fascinating pattern: deeper layers are generally better at encoding word presence, but performance slightly dips in the final attention layer. This suggests a transition from encoding specific linguistic units to mapping them into the joint multimodal embedding space for the retrieval task.
  • Learned vs. Unlearned Features: The study compares MFCCs (unlearned, cognitively plausible) with MBN features (learned, potentially less plausible but higher performance). While MBN features yield superior retrieval results, MFCCs offer insights into how a model might learn from more fundamental acoustic cues.
  • Cognitive Plausibility: The approach aligns with theories of language acquisition, where children learn language through rich sensory input and gradually build up their understanding from whole utterances to more abstract linguistic units.

Key Results

  • State-of-the-Art Retrieval: The proposed model achieves state-of-the-art performance on the Flickr8k image-caption retrieval task, significantly outperforming previous methods using both MFCC and MBN features. For instance, the MBN model shows a substantial improvement of 23.2 percentage points on R@10 compared to prior work.
  • Word Presence Detection: The word presence detection task shows that the model's internal representations contain information about words. The F1 scores for word detection increase from the input features up to the second GRU layer, then slightly decrease for the third GRU layer and the attention layer. The Area Under the Curve (AUC) for the receiver operating characteristic also follows a similar trend, peaking at the second layer.

Limitations and Future Work

  • Performance Gap: A significant performance gap remains between text-caption to image retrieval and spoken-caption to image retrieval, indicating room for further improvement in speech-based models.
  • Future Directions: The authors plan to extend their work by:
  • Investigating the model's ability to capture sentence-level semantic information using Semantic Textual Similarity (STS) tasks in spoken format.
  • Exploring the linguistic units the model learns to recognize beyond individual words, such as multi-word expressions or sub-lexical information.
  • Further analyzing how word and sub-word units develop through training and across network layers, potentially building on prior work in unsupervised speech recognition.

Summary updated

BibTeX
@inproceedings{merkx2019language,
  author = {Danny Merkx and Stefan L. Frank and Mirjam Ernestus},
  title = {{Language Learning Using Speech to Image Retrieval}},
  booktitle = {Interspeech},
  year = {2019},
}
Figure