Who Calls The Shots? Rethinking Few-Shot Learning for Audio

Yu Wang, Nicholas J. Bryan, Justin Salamon, Mark Cartwright, Juan Pablo Bello

Introduction

Few-shot learning (FSL) aims to recognize novel categories from a limited "support set" of examples. While widely studied in computer vision, audio presents unique challenges. Unlike typical single-label image datasets, audio is inherently multi-label and characterized by polyphony (overlapping sounds) and varying signal-to-noise ratios (SNR). This paper investigates how these acoustic properties, along with the choice of embedding models and few-shot methods, influence performance in a continual learning framework.

System Architecture and Methods

The authors evaluate FSL within a framework where a model must retain knowledge of "base" classes while learning "novel" classes at inference time. The system consists of three primary components: an embedding model, a classification layer for base classes, and a few-shot method for novel classes.

Overview of the evaluated few-shot learning framework, highlighting the interaction between the embedding model, base classifier, and various few-shot methods.

Three few-shot methods were compared:

  1. Prototype: A baseline averaging support set embeddings.
  2. Dynamic Few-Shot Learning (DFSL): A meta-learning approach using a weight generator to predict classification weights for new classes.
  3. Logistic Regression (LR): A transfer learning approach where a new classifier is trained on top of fixed embeddings at inference time.

Controlled Datasets: FSD-MIX

To isolate the effects of polyphony and SNR, the authors introduced two programmatically generated datasets derived from FSD50K: FSD-MIX-SED (10s soundscapes) and FSD-MIX-CLIPS (1s clips). These allow for precise control over the number of overlapping classes and noise levels, facilitating a systematic study of how support set characteristics affect generalization.

Key Results and Insights

The Impact of Support Set Size

A critical finding is the "crossover" point in performance based on the number of support examples ($n$). While DFSL excels in extremely low-data regimes ($n=5$), simple Logistic Regression becomes superior as more examples are provided ($n \ge 10$).

Comparison of few-shot methods across different support set sizes ($n$). DFSL performs best at $n=5$, while Logistic Regression scales better as $n$ increases.

The Capacity Paradox and Matching Principle

The study reveals a "Capacity Paradox": high-capacity models like PANN (80M parameters) excel on base classes but often overfit, leading to poorer performance on novel classes compared to self-supervised models like OpenL3. Specifically, pre-OpenL3+FC achieved the best novel class performance.

Furthermore, the "Matching Principle" suggests that performance is highest when the acoustic characteristics (polyphony and SNR) of the support set match the test environment. Interestingly, providing "complex" support examples (lower SNR, higher polyphony) offers better overall robustness when test conditions are unknown, preventing the sharp performance drops seen when training on "clean" examples.

Conclusion

This research demonstrates that there is no single "best" approach for audio FSL. The optimal strategy depends on the available labeling effort and the expected acoustic environment. While meta-learning (DFSL) is ideal for minimal data, standard transfer learning (LR) is more effective when more shots are available. Future work will extend these insights from audio tagging to the more complex task of Sound Event Detection (SED).

Summary updated

BibTeX
@inproceedings{wang2021who,
  author = {Yu Wang and Nicholas J. Bryan and Justin Salamon and Mark Cartwright and Juan Pablo Bello},
  title = {{Who Calls The Shots? Rethinking Few-Shot Learning for Audio}},
  booktitle = {WASPAA},
  year = {2021},
  doi = {10.1109/waspaa52581.2021.9632677},
}
Figure