arXiv:2608.24374cs.SDAug 2026

Manuscript Offprint

arXiv:2608.24374

CoSTALA: Compositional Spatio-Temporal Audio-Language Alignment via Multi-Grain Hierarchical Contrastive Learning

Peiwei Ren, Jinbo Hu, Fang Kang, Shan Liang, Yin Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Conventional audio language models (ALMs) have made significant progress in achieving alignment between auditory and textual representations, including recent explorations in spatial audio. However, in daily spatial scenarios, they still cannot effectively process multi-event audio sequences. Current approaches primarily rely on coarse-grained contrastive learning with global auditory and textual features, lacking the resolution to distinguish multiple sequential events. To overcome these limitations, we propose CoSTALA—a novel training paradigm that transitions from purely global alignment to fine-grained spatio-temporal reasoning. By constructing a multi-granularity hierarchical loss function system, we achieve explicit modeling of temporal dependencies, and successfully anchors individual acoustic events to preserve their semantic purity. Extensive experiments demonstrate that CoSTALA significantly establish a powerful new framework for spatio-temporal audio understanding. 1^{1}

Index Terms: sound event localization and detection, spatial-temporal audio understanding, contrastive learning

1. Introduction

Humans can naturally understand the appearance of objects through visual signals and describe them using natural language. Similarly, when a sound event reaches the human ears, the brain naturally interprets it and its direction of origin, prompting humans to describe it in language. For instance, a human perceives “a dog is barking from the north, then a child is screaming from the south” through auditory signals, and then easily understands the sound event (“dog barking”, “child screaming”) and transfers them into semantic signals with spatial information (“north”, “south”). For machines to comprehend complex auditory environments, they must integrate auditory signals into linguistic signals. By applying linguistic understanding to complex sound signals, they can determine what sound events are occurring, where they are taking place, and their sequence of occurrence.

Contrastive learning [1] has emerged as a robust framework for learning aligned representations across distinct modalities. This efficacy was further validated in the vision-language domain by CLIP [2]. Building upon this foundational concept, Contrastive Language-Audio Pretraining (CLAP) [3] has pioneered cross-modal alignment by mapping audio clips and text into a shared latent space. Subsequent studies have significantly broadened this paradigm. For instance, LAION-CLAP [4]

Figure

Figure 1: Overview of the CoSTALA framework for multi-grain spatio-temporal audio-language contrastive learning. The architecture is designed to process long-duration temporal spatial audio and corresponding spatio-temporal captions derived from isolated spatial events. A text encoder, a semantic audio encoder and a spatial audio encoder process these inputs to extract multilevel representations, which are jointly aligned through a suite of hierarchical loss functions. Specifically, a contrastive learning loss LclL_{cl} and a local alignment loss LlocalL_{local} establish multi-grain spatial audio-text mappings, while a spatio-temporal loss LstL_{st} explicitly models chronological dependencies, and a feature consistency loss LconsistL_{consist} preserves local semantic purity.

leverages massive datasets for auditory semantic enhancement, while T-CLAP [5] refines the contrastive objective by introducing temporal negatives. To transcend the constraints of vanilla CLAP, recent innovations have targeted distinct dimensions: M2D-CLAP [6] enhances universal feature generalization via self-supervised learning; MGA-CLAP [7] shifts focus toward fine-grained alignment using discrete codebooks; and DRCap [8] bridges the gap to generative tasks by integrating Large Language Models (LLMs) for zero-shot captioning.

Despite these advances, conventional CLAP frameworks remain predominantly anchored in static global alignment, primarily optimized for single-event or basic binaural audio-to-text mapping. Recent studies [9–16] have extended this paradigm to spatial audio environments, showing promise in spatially-aware Question-Answering (QA) and text-queried tasks [15, 17].

1^{1}Codes are available on: https://github.com/Cell778/CoSTALA26.git

However, transitioning from static single-event representations to multi-event spatio-temporal sequences introduces significant theoretical challenges. As inputs expand into complex combinatorial spaces—where multiple acoustic events unfold across distinct spatial coordinates—relying solely on global representations becomes suboptimal. This coarse-grained approach imposes a severe information bottleneck by compressing dynamic, high-dimensional content into a single holistic vector. Such compression often induces “context drift”, where the model averages out precise local semantics and consequently fails to resolve the distinct semantic identity of individual events.

To address this representation bottleneck, we argue that the structural correspondence between complex spatial audio streams and compositional natural language necessitates refined hierarchical representations rather than a single global projection. Therefore, we propose CoSTALA training paradigm, achieving a leap from purely global alignment to multi-granularity spatio-temporal reasoning. Beyond sequence-level contrastive learning, CoSTALA explicitly decouples and models the temporal dependencies of spatial events. By establishing local anchors via fine-grained alignment, we mitigate the risk of global feature collapse and preserve the semantic purity of individual acoustic events. Simultaneously, we introduce feature consistency and a 3-way spatio-temporal objective to strictly enforce combinatorial ordering in the latent space. By aligning features at both the localized event level and the global sequence level, our approach resolves temporal ambiguity and establishes a highly discriminative, granular foundation for complex spatial audio-language understanding.

To implement the proposed paradigm, the CoSTALA architecture explicitly maps these decoupled attributes to a shared latent space. We integrate a RoBERTa-based text encoder [18] with a hierarchical audio backbone driven by HTSAT [19], as shown in Figure 1. Inspired by the EINV2 dual-branch design [20], we strictly decouple pure acoustic semantic extraction from spatial localization. Crucially, to precisely capture the temporal sequence of acoustic events, we incorporate a dedicated Transformer-based [21] temporal encoder equipped with Rotated Position Embedding (RoPE) [22]. By synergistically decoupling spatial-semantic extraction with multi-scale temporal modeling, CoSTALA effectively translates hierarchical training objectives into robust, unified spatio-temporal representations.

References (27)