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

Michel Olvera, Paraskevas Stamatiadis, Slim Essid
9/19/2024
cs.SDcs.AIeess.AS

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{olvera2024sound,
  title  = {A sound description: Exploring prompt templates and class descriptions to enhance zero-shot audio classification},
  author = {Michel Olvera and Paraskevas Stamatiadis and Slim Essid},
  year   = {2024},
  eprint = {2409.13676},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13676v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.13676.svg)](https://codeofpaper.com/paper/2409.13676)

Discussion