Introduction
In multi-modal AI, models like CLAP (Contrastive Language-Audio Pretraining) have achieved impressive "global" understanding, identifying the general content of an audio clip (e.g., "a dog barking"). However, these models typically produce a single embedding for an entire clip, losing the temporal precision required to identify when specific events occur. Traditional Sound Event Detection (SED) models can pinpoint these boundaries but are often "closed-set," limited to a fixed vocabulary of categories.
FLAM (Frame-Wise Language-Audio Modeling) addresses this gap by introducing an open-vocabulary model capable of precise temporal localization. By combining a de-biased frame-level contrastive objective with a massive synthetic dataset, FLAM achieves state-of-the-art performance in SED without sacrificing global retrieval capabilities.
Methods: Bridging Global and Local Understanding
FLAM’s architecture shifts from instance-level pooling to frame-level granularity.
Frame-Level Architecture
Unlike standard models that aggregate audio features into a single vector, FLAM’s audio encoder outputs a sequence of frame-level embeddings (e.g., 32 frames for a 10-second clip). Each frame is compared directly to the text embedding of a query, allowing for localized detection.
De-biased Contrastive Learning
Training at the frame level introduces significant label imbalance, as most frames in a batch will not match a specific text prompt. FLAM adapts the SigLIP (Sigmoid Loss for Language-Image Pre-training) objective, incorporating Logit Adjustment. This uses text-dependent scales ($\alpha$) and biases ($\beta$) to account for varying event durations and frequencies (e.g., the difference between "rain" and "thunder").
Automated Data Pipeline
To overcome the scarcity of frame-level annotations, the authors developed a simulation pipeline. They mixed short, labeled sound effects into background "ambiances," automatically generating precise temporal boundaries and LLM-enhanced captions for over one million synthetic samples.
Key Insights: The Importance of Calibration
A critical finding of the research is that raw cosine similarity between audio frames and text is insufficient for accurate detection. Without logit adjustment (specifically the $\beta$ bias term), the model produces uncalibrated scores that are difficult to threshold for binary event detection.
Furthermore, the study reveals that local training benefits global tasks. Teaching the model to align individual frames actually improved its performance on zero-shot classification, suggesting that fine-grained temporal alignment forces the learning of more discriminative features.
Results and Evaluation
FLAM was evaluated across several closed-set (DESED, AudioSet-Strong) and open-vocabulary benchmarks (ASFX-SED).
- Superior Localization: On the ASFX-SED benchmark, FLAM achieved an AUROC of 81.23, significantly outperforming the previous state-of-the-art MGA-CLAP (69.56).
- Zero-Shot Accuracy: On the ESC50 dataset, FLAM reached 86.9% accuracy, surpassing its own "Global-only" baseline (81.6%).
- Retrieval Stability: FLAM maintained strong performance on standard text-to-audio retrieval, demonstrating that localization capabilities can be added without degrading global retrieval performance.
Limitations and Future Work
While FLAM represents a significant step forward, several challenges remain. The current temporal resolution (approx. 312ms per frame) may be too coarse for very fast percussive sounds. Additionally, the model is optimized for fixed 10-second windows, and its performance in extremely dense auditory scenes (more than three concurrent events) requires further investigation. Future work may explore using these frame-aligned representations to improve temporal control in text-to-audio generation.
Summary updated