CompA: Addressing the Gap in Compositional Reasoning in Audio-Language Models

Sreyan Ghosh, Ashish Seth, Sonal Kumar, Utkarsh Tyagi, Chandra Kiran Reddy Evuru, Ramaneswaran S, S Sakshi, Oriol Nieto, Ramani Duraiswami, Dinesh Manocha

Introduction

In the world of Vision-Language Models (VLMs), researchers realized early on that models like CLIP could identify a "dog" and a "car" in an image but often struggled to tell if the "dog is in the car" or the "car is in the dog." This is a fundamental failure of compositional reasoning.

The authors of this paper argue that Audio-Language Models (ALMs)—such as CLAP—suffer from the exact same syndrome. While these models are excellent at retrieving audio based on general keywords, they are surprisingly bad at understanding the structure of an audio scene. For example, if you ask a model to distinguish between "a dog barking before a siren" and "a siren before a dog barking," most current models perform only marginally better than random chance. They hear the dog and the siren, but they completely miss the "before."

To address this gap, the researchers introduce CompA, a new expert-annotated benchmark to test compositional reasoning, and CompA-CLAP, a model trained with novel contrastive learning techniques that significantly improves the ability to understand temporal order and attribute binding in audio.

The "Bag of Words" Syndrome

The paper proves that current ALMs rely heavily on simple keyword matching rather than true comprehension. To demonstrate this, the authors evaluated standard models on existing benchmarks like Clotho and AudioCaps, but with a twist: they shuffled the words in the captions.

Performance of standard models when caption words are shuffled.

When captions are shuffled—removing all grammar, syntax, and order—standard models' performance barely drops. This proves they weren't "reading" the captions for structural relationships in the first place; they were simply acting as a "bag of words" or, more accurately, a "bag of sounds."

The CompA Benchmark

To properly evaluate whether a model can actually reason about audio composition, the researchers created two expert-annotated test sets, primarily sourced from real-world samples in AudioSet Strong:

  1. CompA-order (400 instances): Tests if a model understands the temporal sequence of events (e.g., Event A happens before, after, or during Event B).
  2. CompA-attribute (200 instances): Tests "attribute binding"—knowing which description belongs to which sound (e.g., distinguishing "a woman laughs while a baby cries" from "a baby laughs while a woman cries").
Examples of the CompA-Order benchmark testing temporal understanding.

In these benchmarks, an instance consists of two audio-caption pairs where both audio clips contain the exact same acoustic events but in different compositions. The model must successfully match the right audio to the right caption.

CompA-CLAP: Training for Composition

Because real-world compositional audio data is scarce, simply training on more data isn't enough. The researchers developed CompA-CLAP using two novel training strategies to force the model to learn structure:

  • Composition-Aware Hard Negatives: The authors used Large Language Models (like GPT-4) to take existing captions and flip them—swapping word order or attributes—to create "hard negatives." They then modified the contrastive loss function so the model has to work harder to distinguish the correct caption from these subtle, tricky alternatives.
  • Modular Contrastive Learning: To overcome data scarcity, they built a pipeline to create synthetic training data. They took individual sound snippets (like a "tiger roar" and "thunder") and programmatically mixed or concatenated them to create complex scenes with known structures. By training the model to align with captions at various levels of detail (both the full complex scene and its individual "modules"), the model learns a more fine-grained representation of how sounds combine.

For training, they introduced CompA-661k (a cleaned and augmented version of LAION-Audio-630K) and AudioSet-CompA (110k pairs with LLM-generated, human-verified captions).

Key Results

The introduction of CompA-CLAP yielded impressive improvements in compositional reasoning without sacrificing general performance:

  • Massive Gains in Reasoning: CompA-CLAP outperformed all baseline models on the CompA benchmarks by 10% to 28%.
  • Zero-Shot Success: Despite being specifically tuned for composition, the model maintained or even slightly improved its performance on standard zero-shot audio classification tasks (like ESC-50). This proves that better reasoning leads to better, more robust general representations.
  • The Human-Level Gap: While CompA-CLAP is a huge step forward, it still scores significantly lower than humans on these tasks. For instance, it achieved a ~33.8% group score on CompA-order compared to 87.4% for humans, highlighting that audio reasoning remains a highly challenging frontier.

Limitations and Future Work

The authors identify a few areas where the model still struggles. First, it has difficulty with acoustic similarity; it performs best when acoustic events are distinct (e.g., a tiger and a human) but struggles when two sounds are very similar (e.g., two different people talking). Second, performance drops for rare sounds in the "long tail" that weren't seen frequently during pre-training. Finally, the model still exhibits sensitivity to specific prepositions it hasn't encountered frequently in a compositional context.

Future work will likely involve expanding the CompA benchmark to include more than two simultaneous events and finding even more robust ways to teach models the intricate nuances of human language as it relates to complex soundscapes.

Summary updated

BibTeX
@inproceedings{ghosh2024compa,
  author = {Sreyan Ghosh and Ashish Seth and Sonal Kumar and Utkarsh Tyagi and Chandra Kiran Reddy Evuru and Ramaneswaran S and S Sakshi and Oriol Nieto and Ramani Duraiswami and Dinesh Manocha},
  title = {{CompA: Addressing the Gap in Compositional Reasoning in Audio-Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=86NGO8qeWs},
}
Figure