Abstract
Zero-shot audio classification aims to identify sounds from categories not encountered during training. Traditional approaches often rely on semantic labels or textual definitions that fail to capture the perceptual qualities of sound. This paper introduces a novel framework that utilizes Large Language Models (LLMs) to generate multi-dimensional "sound attribute" descriptions, such as timbre, pitch, and onomatopoeia. By training a dual-encoder model to associate audio features with these rich descriptions using supervised contrastive learning, the researchers achieved significant performance gains on the VGGSound and AudioSet benchmarks.
Introduction
Zero-shot audio classification is often considered the "holy grail" of sound recognition, enabling the identification of rare or novel sounds without specific training examples. However, a fundamental "semantic gap" exists between textual labels and auditory signals. For instance, a Wikipedia entry for a "Crow" describes its biological traits rather than the specific acoustic properties of its caw. While large-scale models like CLAP have made strides, they often rely on indirect exposure during pre-training. This research seeks to bridge the gap by providing models with "perceptual knowledge"—descriptions of what a sound actually feels like to a human listener.
Methodology
The proposed framework consists of three core components designed to enrich the textual representation of audio classes:
- Sound Attribute Definition: The authors defined six universal auditory attributes to describe sounds: sound frequency (pitch), timbre, onomatopoeia, simile, emotion, and a standard definition.
- LLM-Powered Generation: ChatGPT (
gpt-3.5-turbo) was employed to automatically generate these descriptions for hundreds of sound classes, leveraging its vast internal knowledge of human language and sound description. - Improved Contrastive Learning (SupCon): The model employs a dual-encoder architecture (Audio and Text Encoders). Unlike traditional methods, it uses cosine similarity and the InfoNCE loss to align audio embeddings with their corresponding textual attribute descriptions.
Experimental Setup
The method was evaluated on two large-scale datasets: VGGSound (over 200,000 clips) and AudioSet (115,000 samples). To ensure a rigorous zero-shot evaluation, a 5-fold class-split strategy was used. The model was trained on four folds and tested on a completely unseen fifth fold, preventing any overlap between training and testing categories.
Results and Discussion
The proposed method consistently outperformed baseline models across all test folds. On VGGSound, accuracy improved from 24.1% to 27.0% using a CNN14 backbone. On AudioSet, the improvement was even more pronounced, jumping from 26.8% to 32.5%.
A key finding was the relative importance of different attributes. High-level semantic attributes, particularly onomatopoeia and similes, provided a more significant performance boost than low-level physical attributes like pitch. This suggests that describing a sound as "sounding like grrr" is more discriminative for the model than technical descriptions of frequency.
Qualitative analysis showed that adding onomatopoeia helped the model distinguish between acoustically similar but semantically distinct sounds, such as "dog growling" versus "dog barking." The "With-Class" strategy—always including the class name during training—was also found to be crucial for anchoring noisy generated attributes to ground-truth labels.
Conclusion
This research demonstrates that leveraging LLMs to provide perceptual sound attributes significantly enhances zero-shot audio classification. While the results are promising, challenges remain regarding the alignment of LLM-generated text and the risk of hallucinations for obscure classes. Future work may explore more specialized LLMs to further refine auditory descriptions.
Summary updated