Learning Spatially-Aware Language and Audio Embedding

Bhavika Devnani, Skyler Seto, Zakaria Aldeneh, Alessandro Toso, Elena Menyaylenko, Barry-John Theobald, Jonathan Sheaffer, Miguel Sarabia · DOI

Introduction

Modern Audio Foundation Models (AFMs), such as LAION-CLAP, demonstrate impressive performance in semantic sound identification. However, these models are typically "spatial-blind," having been trained on single-channel audio that lacks directional context. Conversely, Sound Event Localization and Detection (SELD) models excel at spatial pinpointing but are restricted to closed vocabularies. ELSA (Embeddings for Language and Spatial Audio) addresses this gap by introducing a multimodal foundation model that unifies semantic identity with spatial localization through natural language.

Methodology

ELSA employs a dual-branch architecture optimized via multimodal contrastive learning. The audio encoder consists of a Semantic Branch (HTSAT) and a Spatial Branch (CNN) designed to process First Order Ambisonics (FOA). FOA captures the 3D sound field, allowing the model to extract directional information via intensity vectors. The text encoder utilizes a RoBERTa-base model.

Figure 1: Overview of the ELSA pipeline, including room simulation, LLM-based caption rephrasing, and the dual-branch contrastive learning architecture.

To overcome the lack of large-scale spatial audio datasets with natural language captions, the authors developed a spatial augmentation pipeline. They utilized existing mono datasets (AudioCaps, Clotho) and simulated nearly 9,000 unique acoustic environments. Captions were then "spatially enriched" using LLaMA-13B; for instance, "A bird chirps" was transformed into "In a medium-sized room, a bird is emitting loud sounds from a distant location." Training objectives included standard contrastive loss alongside spatial regression heads for direction, distance, and room area.

Key Insights

  • Structured Latent Space: ELSA’s embedding space supports vector arithmetic, enabling "spatial editing" of audio (e.g., moving a sound from "front" to "back" via text embedding manipulation).
  • Semantic-Spatial Synergy: Training on spatial data improved semantic retrieval by 2.8%, suggesting that spatial context enriches the learning signal for sound identity.
  • Implicit Spatiality: The research found that standard text encoders like RoBERTa possess latent knowledge of typical sound locations (e.g., "skylight" implies "above"), which ELSA leverages and formalizes.

Results and Evaluation

ELSA was evaluated against benchmarks like TUT Sound Events 2018 and a new real-world dataset, Spatial-RWD.

Figure 6: Comparative performance of ELSA against state-of-the-art models. ELSA achieves superior semantic retrieval (mAP@10) and significantly better 3D localization than semantic-only models.

Key findings include:

  • Localization: ELSA reduced mean-absolute-error (MAE) in 3D localization by 11.6° compared to SeldNET.
  • Retrieval: The model achieved a +2.9% improvement in mAP@10 scores compared to LAION-CLAP.
  • Zero-Shot Performance: ELSA demonstrated >90% accuracy in zero-shot classification of spatial attributes like distance and elevation.
  • Real-World Transfer: Despite synthetic training, the model transferred effectively to real-world recordings in the Spatial-RWD dataset.

Conclusion and Future Work

ELSA represents a significant step toward spatially-aware audio understanding. While current limitations include potential LLM hallucinations in captioning and a focus on single static sources, future iterations aim to incorporate Higher Order Ambisonics (HOA) and handle complex multi-source environments.

Summary updated

BibTeX
@misc{devnani2024learning,
  author = {Bhavika Devnani and Skyler Seto and Zakaria Aldeneh and Alessandro Toso and Elena Menyaylenko and Barry-John Theobald and Jonathan Sheaffer and Miguel Sarabia},
  title = {{Learning Spatially-Aware Language and Audio Embedding}},
  year = {2024},
  eprint = {2409.11369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.11369},
}
Figure