Introduction
Audio-Text Retrieval (ATR) is a fundamental task in cross-modal understanding, enabling the retrieval of audio clips based on textual descriptions and vice versa. While contrastive learning has become the standard training paradigm for these models, it is fundamentally limited by two critical issues: the Gradient Locality Bottleneck (GLB) and Representation-Drift Mismatch (RDM).
GLB occurs because models typically learn from small mini-batches, causing them to miss the "long-tail" of rare acoustic events and fine-grained details present in the broader dataset. To mitigate this, researchers often employ external knowledge bases; however, this introduces RDM. As the model's encoders evolve during training, a static knowledge base becomes stale, leading to a misalignment between the model's current representations and the stored knowledge.
To address these challenges, we present the Adaptive Self-improving Knowledge (ASK) framework, a model-agnostic solution that periodically refreshes its internal knowledge and employs a multi-grained injection strategy to achieve state-of-the-art results.
The ASK Framework
The ASK framework is designed as a "plug-and-play" enhancement for existing ATR architectures. It consists of three core components that work in tandem to improve retrieval performance and robustness.
1. Multi-Grained Knowledge Injection
Rather than relying solely on individual samples, ASK constructs two distinct knowledge bases:
- Fine-Grained Base: Stores instance-level details to capture specific acoustic nuances.
- Coarse-Grained Base: Utilizes K-Means clustering to create prototypes that represent broader semantic categories.
During training, the model retrieves "neighbors" from these bases, enriching the current mini-batch with global context that would otherwise be unavailable.
2. Dynamic Knowledge Refinement
To solve the Representation-Drift Mismatch, ASK introduces a "self-improving" mechanism. The framework periodically re-encodes the entire knowledge base using the most recent version of the model (e.g., every 15 epochs). This ensures that the "teacher" (the knowledge base) and the "student" (the active model) remain aligned throughout the training process.
3. Adaptive Reliability Weighting
Not all retrieved information is beneficial. ASK implements a reliability scoring system based on cross-modal consistency. By comparing the neighbors retrieved for an audio clip with those retrieved for its corresponding text, the system identifies semantic alignment. If the neighborhoods diverge, the framework automatically down-weights that information to prevent the model from learning from noisy or irrelevant data.
Finally, the framework utilizes Optimal Transport (OT) to align these enriched features at the batch level, ensuring a globally optimal matching before calculating the final loss.
Experimental Evaluation
Datasets
The framework was evaluated on two primary benchmarks:
- AudioCaps: Approximately 50,000 audio clips with human-written captions.
- Clotho: A challenging dataset featuring complex captions and diverse acoustic environments.
- WavCaps: Utilized as an out-of-domain knowledge source to test the framework's versatility.
Key Results
ASK consistently outperformed strong baselines across various architectures, including ResNet-BERT and the transformer-based CED-SONAR.
- Performance Gains: On the AudioCaps dataset using a ResNet-BERT architecture, ASK improved the Audio-to-Text (A2T) Recall@1 (R@1) score by 6.0% absolute (from 36.3% to 42.3%). On the more complex Clotho dataset, it achieved a 1.7% absolute boost in A2T R@1.
- Zero-Shot Generalization: ASK demonstrated superior transferability. When trained on AudioCaps and tested directly on Clotho, ASK variants showed significantly better performance than standard models, suggesting that the framework helps the model learn robust semantic concepts rather than simple dataset memorization.
Discussion and Limitations
A critical finding of this research is that static knowledge is a trap. The authors formally demonstrate that as a model improves, an unmoving knowledge base eventually becomes a liability. The ASK framework proves that the knowledge base must be a living entity that co-evolves with the encoders.
However, this approach introduces a trade-off regarding the update frequency ($T$) of the knowledge base. Updating too infrequently leads to RDM, while updating too frequently can destabilize training as the model's reference points shift too rapidly. Additionally, the periodic re-encoding of the dataset and K-nearest neighbor searches add computational overhead.
Conclusion
The ASK framework provides a robust solution to the limitations of batch-based contrastive learning in ATR. By combining multi-grained knowledge injection with dynamic refinement and reliability weighting, it sets a new standard for audio-text retrieval. Future work may explore more efficient update mechanisms or the application of this self-improving logic to larger multi-modal models in domains such as video or image retrieval.
Summary updated