Spatial-CLAP: Learning Spatially-Aware audio-text Embeddings for Multi-Source Conditions

Yuki Saito, Kentaro Seki, Yuki Okamoto, Kouei Yamaoka, Yuki Saito 0001, Shinnosuke Takamichi, Hiroshi SaruwatariarXiv 2025 · DOI

Introduction

Recent advancements in Contrastive Language-Audio Pretraining (CLAP) have enabled AI models to identify sound events with high semantic accuracy. However, these models remain largely "spatially deaf," failing to distinguish the physical locations of multiple concurrent sound sources. In complex acoustic environments—such as a city street with a dog barking on the left and a car honking on the right—standard models struggle to correctly associate specific sounds with their respective directions.

Researchers from the University of Tokyo and Keio University have introduced Spatial-CLAP, a framework designed to bridge this gap. By integrating content-aware spatial encoding and a novel contrastive learning strategy, Spatial-CLAP enables models to understand "which" sound is coming from "where," effectively solving the permutation problem in multi-source audio scenes.

The Permutation Problem in Spatial Audio

Existing audio-text models typically treat content and spatial information as independent streams. While this approach suffices for single-source audio, it fails in multi-source conditions. For instance, a model might identify both a "bird" and a "lawnmower" and detect sounds coming from the "left" and "right." However, without a mechanism to bind these attributes, the model cannot distinguish between "bird on left, lawnmower on right" and "lawnmower on left, bird on right." This ambiguity is known as the permutation problem.

Proposed Methodology: Spatial-CLAP

To address these challenges, the authors propose two core innovations:

1. Content-Aware Spatial Encoder (CA-SE)

Unlike conventional models that use separate, generic encoders for content and location, Spatial-CLAP utilizes a Content-Aware Spatial Encoder adapted from SELDNet (Sound Event Localization and Detection). This architecture ensures that spatial features are coupled with audio content from the earliest stages of processing.

Comparison of conventional spatial audio encoding vs. the proposed Spatial-CLAP architecture.

2. Spatial Contrastive Learning (SCL)

The training process incorporates "hard negatives" to sharpen the model's spatial discrimination. In addition to standard audio-text pairs, the model is presented with captions where spatial attributes are intentionally swapped. This forces the model to learn the precise correspondence between specific sound events and their locations to minimize the contrastive loss.

Experimental Setup and Datasets

The model was trained using a spatialized version of the AudioCaps 2.0 dataset. The researchers simulated stereo audio by convolving monaural clips with Room Impulse Responses (RIRs) across five directions: front-left, front, front-right, left, and right. Multi-source mixtures (2-source for training, 3-source for testing) were created to evaluate the model's ability to handle complex, overlapping acoustic scenes.

Results and Discussion

Spatial-CLAP demonstrates significant performance gains over conventional spatial models, particularly in multi-source scenarios.

Quantitative comparison of Spatial-CLAP against baselines across retrieval and spatial classification tasks.

As shown in the results table, Spatial-CLAP achieved a Content-Space Assignment accuracy of 81.69% in 2-source scenarios, nearly doubling the 48.77% achieved by conventional baselines—which perform no better than random chance in this task. Furthermore, in text-to-audio retrieval (R@1) for 2-source conditions, Spatial-CLAP reached 21.34%, a substantial improvement over the baseline's 4.98%.

One of the most significant findings was the model's ability to generalize. Despite being trained on 2-source mixtures, Spatial-CLAP maintained robust performance on 3-source mixtures, suggesting it learns fundamental "spatial logic" rather than simple pattern memorization.

Conclusion

Spatial-CLAP represents a major step toward AI that truly understands the physical context of sound. By solving the permutation problem through content-aware encoding, it opens new possibilities for spatial audio retrieval, captioning, and immersive environment modeling. Future work will focus on dynamic sound sources, denser acoustic environments, and transitioning from simulated to real-world recordings.

Summary updated

BibTeX
@misc{saito2025spatial,
  author = {Yuki Saito and Kentaro Seki and Yuki Okamoto and Kouei Yamaoka and Yuki Saito and Shinnosuke Takamichi and Hiroshi Saruwatari},
  title = {{Spatial-CLAP: Learning Spatially-Aware audio-text Embeddings for Multi-Source Conditions}},
  year = {2025},
  eprint = {2509.14785},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.14785},
}
Figure