Abstract
Contextual audio-text retrieval—the task of matching natural language descriptions to audio clips—is a complex cross-modal challenge requiring the alignment of diverse acoustic signals with unstructured text. This paper presents a framework that significantly advances the state-of-the-art by prioritizing semantic aggregation over temporal modeling. By utilizing high-capacity Pre-trained Audio Neural Networks (PANNs) and descriptor-based aggregation via NetRVLAD, the proposed system achieves superior performance on the AudioCaps and CLOTHO benchmarks. Our findings suggest that for current retrieval tasks, the semantic content of an audio clip is a more robust retrieval cue than the chronological order of sound events.
Introduction
While text-based search for images and videos has reached a high level of maturity, retrieving audio based on complex, unstructured natural language (e.g., "a woman talks nearby as water pours") remains a significant challenge. This task, known as contextual audio-text retrieval, faces two primary hurdles: cross-modality alignment and sequence complexity. Mapping the acoustic "vibe" of a sound wave to the semantic meaning of a sentence requires a shared mathematical space that can capture the nuances of both domains. Furthermore, both audio clips and sentences are sequences of varying lengths; condensing these into a single representative vector without losing critical information is a non-trivial architectural problem.
Previous research often relied on simpler audio features or borrowed architectures from video retrieval that did not fully account for the unique characteristics of sound. This study addresses these gaps by evaluating advanced feature extraction and aggregation techniques.
Methodology
The proposed framework consists of three distinct stages designed to optimize the representation of both audio and text.
1. Feature Extraction
To capture high-level acoustic concepts, the researchers moved beyond standard spectrograms to PANNs (Pre-trained Audio Neural Networks). Specifically, they employed a 14-layer CNN (CNN14) pre-trained on AudioSet, a massive dataset containing a wide variety of sound events. This pre-training provides the model with a foundational "knowledge" of diverse sounds, such as mechanical noises, animal calls, and human speech. For text processing, the system utilizes pre-trained word2vec embeddings to transform linguistic tokens into a continuous vector space.
2. Semantic Aggregation
A critical component of the system is the "pooling" stage, which squashes a sequence of embeddings into a single fixed-length vector. The researchers compared three approaches:
- Parameter-free: Standard Mean and Max pooling.
- Temporal: Using Long Short-Term Memory (LSTM) networks to model the chronological order of sounds.
- Descriptor-based: Utilizing NetVLAD and its variant, NetRVLAD (Residual Vector of Locally Aggregated Descriptors). These methods learn "semantic clusters"—essentially mental buckets for different types of sounds—and describe the input audio based on its relationship to these clusters.
3. Matching and Gating
Once aggregated, the vectors pass through a Context Gating module. This mechanism dynamically re-weights features to highlight the most salient information for retrieval. Finally, the similarity between the audio and text vectors is calculated using cosine similarity.
Experimental Results
The model was evaluated on two primary benchmarks: AudioCaps (~49,000 10-second clips) and CLOTHO v2.1 (~7,000 longer clips of 15–30 seconds). The combination of CNN14 and NetRVLAD established new state-of-the-art (SOTA) results, outperforming previous models like MoEE and CE.
- AudioCaps: The system achieved a Recall@1 (R@1) of 29.3% for text-to-audio retrieval, a substantial improvement over the previous SOTA of 23.1%.
- CLOTHO: The system achieved an R@1 of 13.1%, up from the previous best of 9.0%.
- Bidirectional Performance: The model demonstrated similar gains in audio-to-text retrieval, confirming that the learned shared embedding space is robust and effective in both directions.
Discussion: Semantics vs. Sequence
The most significant insight from this research is that semantics outweigh temporal order in current audio retrieval contexts. Despite the intuitive assumption that the order of sounds (e.g., "a dog barks then a car passes") should matter, the descriptor-based NetRVLAD consistently outperformed the temporal LSTM. This suggests that for existing benchmarks, identifying what sounds are present is more critical than identifying when they occur.
Furthermore, the transition from VGGish features to PANNs provided a massive performance boost. This underscores the importance of the breadth and diversity of pre-training data in developing models that can generalize across the varied soundscapes found in AudioCaps and CLOTHO. NetRVLAD’s efficiency—using averaged descriptors—also helped prevent overfitting, a common issue given the relatively small size of the CLOTHO dataset.
Conclusion and Future Work
By combining high-capacity pre-trained features with semantic clustering, this research sets a new benchmark for audio-text retrieval. However, the authors note that the lack of temporal sensitivity in current models may be a reflection of the datasets themselves, where captions rarely rely on strict chronological cues. Future work may involve developing datasets that require temporal reasoning or creating hybrid models that can better balance semantic content with sequential logic.
Summary updated