Enhancing Audio-Language Models through Self-Supervised Post-Training with Text-Audio Pairs

Anshuman Sinha, Camille Migozzi, Aubin Rey, Chao Zhang · DOI

Abstract

Current Audio-Language Models (ALMs) excel at identifying sound events but often fail to capture their temporal order or relationships, treating recordings as a "bag-of-sounds." We present TeminAL, a two-stage self-supervised post-training framework designed to instill temporal reasoning into ALMs. By employing hierarchical sound distinction and temporal reasoning stages alongside a novel Temporal Noise Contrastive Estimation (TNCE) loss, TeminAL significantly improves a model's ability to understand sequences like "A before B" without degrading standard retrieval performance.

Introduction

State-of-the-art models like CLAP (Contrastive Audio-Language Pretraining) have set benchmarks in audio retrieval. However, they struggle with compositional reasoning. For instance, a model might fail to distinguish between "dog barking before a car horn" and "car horn before a dog barking." This limitation hinders applications in fields requiring precise temporal instructions, such as medical or industrial monitoring. TeminAL addresses this by teaching models to recognize not just what sounds are present, but when they occur.

The TeminAL Framework

TeminAL (Temporal Instillation in ALMs) follows a hierarchical two-stage post-training scheme:

Overview of the TeminAL two-stage post-training pipeline, transitioning from standard contrastive learning to temporal reasoning.

Stage A: Sound Distinction

Before learning temporal order, a model must distinguish between multiple sound events. In this stage, the model is trained to identify distinct sound events within a single audio clip, moving beyond simple single-label classification.

Stage B: Temporal Reasoning

This stage introduces temporal augmentations using two primary operators:

  • Temporal Inversion (T): Swaps the order of sound events (e.g., "A before B" becomes "B before A").
  • Temporal Overlay (O): Blends multiple sounds to simulate simultaneous occurrences ("A while B").

To optimize for these relationships, the authors introduce Temporal Noise Contrastive Estimation (TNCE). Unlike standard contrastive losses that use random clips as negatives, TNCE utilizes "temporal negatives"—samples containing the correct sounds but in the wrong temporal configuration.

The Temporal Contrastive Loss matrix, highlighting the distinction between usual positives/negatives and specific temporal negatives used to sharpen reasoning.

Evaluation and Results

The model was post-trained on the ESC-50 dataset and evaluated using standard benchmarks (AudioCap, Clotho) and a new Zero-Shot Temporal Evaluation (ZSTE) framework.

Key Findings

  • Improved Temporal Accuracy: The resulting model, T-CLAP, showed a 5.28% improvement in temporal understanding on the ZSTE benchmark compared to the base CLAP model.
  • Robustness: T-CLAP significantly outperformed the base model in discerning overlapping features, achieving 46.78% vs 9.59% on specific complex subtasks.
  • Efficiency: By fine-tuning only the final projection layers (~10% of parameters), the method remains computationally efficient and avoids the need for massive compute resources.
  • Preservation of Retrieval Skills: The model maintained competitive performance on standard retrieval tasks, proving that temporal awareness can be added without "catastrophic forgetting" of core retrieval logic.

Conclusion

TeminAL demonstrates that temporal awareness can be effectively instilled into pre-trained ALMs through targeted, self-supervised post-training. By focusing on hard temporal negatives and a hierarchical training approach, models can transition from simple sound detectors to systems capable of complex sequential reasoning. Future work will explore broader "in-the-wild" datasets and more sophisticated text encoders to further enhance these capabilities.

Summary updated

BibTeX
@misc{sinha2024enhancing,
  author = {Anshuman Sinha and Camille Migozzi and Aubin Rey and Chao Zhang},
  title = {{Enhancing Audio-Language Models through Self-Supervised Post-Training with Text-Audio Pairs}},
  year = {2024},
  eprint = {2408.09269},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.09269},
}
Figure