A sound description: Exploring prompt templates and class descriptions to enhance zero-shot audio classification

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Olvera, Michel, Stamatiadis, Paraskevas, Essid, Slim
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929509090983936
author Olvera, Michel
Stamatiadis, Paraskevas
Essid, Slim
author_facet Olvera, Michel
Stamatiadis, Paraskevas
Essid, Slim
contents Audio-text models trained via contrastive learning offer a practical approach to perform audio classification through natural language prompts, such as "this is a sound of" followed by category names. In this work, we explore alternative prompt templates for zero-shot audio classification, demonstrating the existence of higher-performing options. First, we find that the formatting of the prompts significantly affects performance so that simply prompting the models with properly formatted class labels performs competitively with optimized prompt templates and even prompt ensembling. Moreover, we look into complementing class labels by audio-centric descriptions. By leveraging large language models, we generate textual descriptions that prioritize acoustic features of sound events to disambiguate between classes, without extensive prompt engineering. We show that prompting with class descriptions leads to state-of-the-art results in zero-shot audio classification across major ambient sound datasets. Remarkably, this method requires no additional training and remains fully zero-shot.
format Preprint
id arxiv_https___arxiv_org_abs_2409_13676
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A sound description: Exploring prompt templates and class descriptions to enhance zero-shot audio classification
Olvera, Michel
Stamatiadis, Paraskevas
Essid, Slim
Sound
Artificial Intelligence
Audio and Speech Processing
Audio-text models trained via contrastive learning offer a practical approach to perform audio classification through natural language prompts, such as "this is a sound of" followed by category names. In this work, we explore alternative prompt templates for zero-shot audio classification, demonstrating the existence of higher-performing options. First, we find that the formatting of the prompts significantly affects performance so that simply prompting the models with properly formatted class labels performs competitively with optimized prompt templates and even prompt ensembling. Moreover, we look into complementing class labels by audio-centric descriptions. By leveraging large language models, we generate textual descriptions that prioritize acoustic features of sound events to disambiguate between classes, without extensive prompt engineering. We show that prompting with class descriptions leads to state-of-the-art results in zero-shot audio classification across major ambient sound datasets. Remarkably, this method requires no additional training and remains fully zero-shot.
title A sound description: Exploring prompt templates and class descriptions to enhance zero-shot audio classification
topic Sound
Artificial Intelligence
Audio and Speech Processing
url https://arxiv.org/abs/2409.13676