Abstract
DSpAST (Disentangled Spatial Audio Spectrogram Transformer) is a novel audio encoder designed to help Large Language Models (LLMs) reason about "where" and "what" in a 3D acoustic environment. By using task-specific branches and feature attention to separate information about sound events, distance, and direction, it significantly outperforms existing models on spatial reasoning benchmarks while adding a negligible 0.2% to the parameter count.
Introduction
To truly understand a scene through sound, an AI must perform three distinct tasks: Sound Event Detection (SED) ("what" is making the noise?), Distance Prediction (DP) ("how far" away is it?), and Direction-of-Arrival Estimation (DoAE) ("where" is it coming from?).
The challenge is that these tasks often require conflicting information from the audio signal. For example, the specific "texture" of a sound helps identify a dog barking (SED), but the timing and level differences between two ears are what reveal the dog's location (DoAE). In standard monolithic encoders, optimizing for one task often degrades performance in the others. DSpAST addresses this "interference" by proposing a disentangled architecture that allows the model to process these different spatial attributes independently before feeding them into an LLM.
Methodology
The authors build upon the SpatialAST architecture and introduce three key modifications to create DSpAST:
- Expanded Feature Set: In addition to standard log-mel spectrograms and Interaural Phase Differences (IPDs), the model incorporates Interaural Level Differences (ILD) and Generalized Cross-Correlation with Phase Transform (GCC-PHAT). These are classical signal processing features known to be highly effective for localization.
- Feature Attention Module: Instead of simply averaging all input features, DSpAST uses a task-specific attention mechanism. This allows the model to dynamically "weight" which features are most important for a specific task (e.g., prioritizing GCC-PHAT for direction but ignoring it for sound identification).
- Disentangled Branches: The architecture splits into three parallel branches (SED, DP, and DoAE). While they share the heavy-lifting "backbone" weights (the Transformer blocks) to keep the model efficient, each branch has its own feature attention and linear projection. This ensures that the final embeddings sent to the LLM contain distinct, non-interfering representations for each spatial attribute.
Key Insights: Feature Importance Validation
One might assume that three task-specific branches would triple the model size. However, by sharing the Transformer backbone and only specializing the "head" and "attention" layers, the authors achieved disentanglement with only a 0.2% increase in parameters (86.09M vs 85.96M).
Furthermore, the feature attention weights confirm long-standing acoustic theories. For instance, the SED branch almost entirely ignores GCC-PHAT, while the DoAE branch relies on it heavily. This proves the model is learning to look at the "right" clues for the right tasks, effectively "unmixing" the spatial information before it reaches the LLM.
Key Results
- Superior Performance: DSpAST (Stage 3) outperformed the baseline SpatialAST across all metrics. Notably, it improved the Mean Angular Error (MAE) for direction from 17.87° to 14.44° and the Mean Average Precision (mAP) for sound detection from 49.90 to 54.53.
- Reasoning Gains: When integrated into the BAT reasoning system (based on Llama-2), DSpAST improved accuracy on complex "Type E" spatial reasoning questions (e.g., "Is the cat to the left of the dog?") from 74.04% to 77.71%.
- Ablation Success: The results showed that adding the new features (ILD, GCC-PHAT) and the attention mechanism were both critical; removing either led to a drop in performance.
Limitations and Future Work
While DSpAST shows significant promise, it was trained and tested on simulated binaural audio. Real-world performance in complex, non-simulated environments remains to be fully validated. Additionally, the current work focuses on binaural (two-ear) audio; moving to multi-microphone arrays could provide even more powerful localization capabilities. Future research will also explore dynamic scenes with moving sources or listeners and aim to move toward open-ended Sound Event Detection with temporal localization.
Summary updated