TL;DR
Current text-to-audio (TTA) models can generate convincing isolated sounds, but they fail spectacularly when asked to generate structured relationships (such as temporal sequence, spatial distance, counts, or logical conditions). This paper introduces RiTTA, a benchmark and multi-stage evaluation protocol specifically designed to assess relational audio generation, alongside a parameter-efficient gated prompt tuning strategy that significantly improves relation-modeling performance with just ~5M extra parameters.
What Problem Does This Paper Address?
While modern generative audio models can synthesize a "dog barking" or a "cat meowing" with high acoustic fidelity, real-world acoustic environments are defined by relationships: events occur in specific sequences ("dog barks, followed by a cat meow"), vary in distance ("loud bird chirp nearby, then faint chirp 7m away"), involve counts ("three distinct sounds"), or obey compositional logic ("generate A or B, but not both").
Existing TTA models (such as AudioLDM, AudioGen, and Tango) consistently fail to model these dependencies, often collapsing to single events or ignoring relational modifiers entirely. Worse, standard evaluation metrics like Fréchet Audio Distance (FAD) and KL divergence assess overall distribution similarity rather than semantic alignment, masking these failures.
Methods
To tackle this, the authors propose an end-to-end framework spanning data creation, evaluation, and model adaptation:
- RiTTA Benchmark Taxonomy: The authors structure audio relations into four primary categories and 11 sub-relations:
- Temporal Order (
before,after,simultaneity) - Spatial Distance (
close first,far first,equal distance—modeled via relative loudness) - Count (specifying 2–5 events)
- Compositionality (
and,or,not,if-then-else) - Multi-Stage Relation-Aware Evaluation Protocol: Moving beyond holistic acoustic metrics, the authors propose mAMSR (mean Average Multi-Stage Relation score), which utilizes a finetuned audio event detection network (PANNS) across three strict criteria:
- Presence ($f_p$): Are all specified audio events present?
- Relation Correctness ($f_r$): Do the detected events satisfy the target relation (e.g., correct start/end order or relative amplitude difference)?
- Audio Parsimony ($f_s$): Does the audio penalize extraneous, repetitive, or hallucinated sound events?
- Gated Prompt Tuning (GPT): Rather than full-model fine-tuning, the authors introduce learnable relation and event prompt embeddings ($\approx 5\text{M}$ parameters total). Prompts attend to input text tokens via cross-attention and are pooled using an $\text{entmax}_{1.5}$ gating mechanism. Because $\text{entmax}$ produces exact zeros, the network sparsely activates only the prompts relevant to the specific prompt's relations and classes.
Datasets
- Curated Seed Audio & Text Prompts: The authors sourced exemplar clips from Freesound.org (and speech from the VCTK corpus) spanning 5 main categories (Human, Animal, Machinery, Human-Object, Object-Object) and 25 sub-categories. Seed clips (1–5 seconds) were linearly composited according to explicit relational rules, paired with GPT-4-augmented descriptive prompts.
- Benchmark Size: 22 hours of test audio (800 pairs, 720 pairs per relation) and 44 hours of training audio (1.6k pairs, 1,440 pairs per relation).
- Detector Fine-Tuning Set: 100k generated 10-second multi-event audio clips used to finetune a PANNS (
Cnn14_DecisionLevelMax) event detector, improving its mAP from 0.43 to 0.57.
Key Insights and Ideas
- General Metrics Are Blind to Relationships: Standard metrics like FAD and FD completely uncorrelated (and sometimes inversely correlated) with relational accuracy. AudioLDM variants achieved the best zero-shot FAD scores while exhibiting virtually zero relation modeling capability ($\text{mAMSR} \le 0.08 \times 10^{-4}$).
- Off-the-Shelf Models Fail Baseline Logic: Across all zero-shot models, average presence accuracy and relation correctness remained below 10%. Count and spatial distance were especially challenging.
- Agentic Workflows Aren't a Silver Bullet: Decomposing prompts via GPT-4 into single events and stitching them using LLM-generated code improved relation adherence, but resulted in poor acoustic continuity and worse distribution scores (higher FAD/KL).
- Sparse Gating Matters: Prompt tuning without selective gating degrades performance because task-irrelevant event/relation embeddings pollute the conditioning space. The $\text{entmax}_{1.5}$ gate allows the model to cleanly activate only the relevant relations.
Key Results
- Benchmarking SOTA Models: Among zero-shot models, TangoFlux scored highest in relational awareness ($\text{mAMSR} = 76.57 \times 10^{-4}$, $\text{mARel} = 7.02\%$), though its absolute performance remained low, highlighting significant room for improvement.
- Gated Prompt Tuning Gains: Applying Gated Prompt Tuning to TangoFlux improved its mAMSR from 83.44 (standard finetuning) to 127.98 ($+53\%$), while also outperforming full fine-tuning on general fidelity (FAD dropped from 2.94 to 1.60, KL dropped from 20.10 to 17.98).
- Parameter Efficiency: Tuning just 5M prompt parameters alongside model weights achieved superior relational compositionality compared to standard parameter updates alone.
Limitations and Future Work
- Closed-Set Vocabulary: The benchmark is currently restricted to 25 predefined sound classes and 11 relations. Extending this to open-ended, free-form relation modeling remains an open challenge.
- Mono-Audio Distance Approximations: Spatial distance is approximated through relative loudness dampening in mono audio. Evaluating spatial relations in binaural or multi-channel spatial audio (SELD) is needed for true acoustic localization.
- Non-Overlapping Constraint: To avoid requiring complex blind audio source separation during evaluation, spatial distance testing enforced temporally distinct events. Extending evaluation to polyphonic, overlapping spatial events represents an important next step.
Summary updated