MetaAudio: A Few-Shot Audio Classification Benchmark

Calum Heggan, Sam Budgett, Timothy M. Hospedales, Mehrdad Yaghoobi

Abstract

MetaAudio is the first comprehensive, open-source benchmark designed to pivot few-shot learning (FSL) research from its heavy bias toward image classification into the realm of acoustics. By providing a standardized framework across diverse audio domains, the study reveals that gradient-based meta-learning algorithms significantly outperform popular metric-based approaches in audio tasks. Furthermore, specialized "in-domain" meta-learning often exceeds the performance of massive pre-trained models, highlighting the unique challenges of the audio modality.

Introduction

Few-shot learning (FSL)—the ability to learn new concepts from minimal examples—has seen explosive growth, primarily in computer vision. This image-centric development risks creating algorithms that fail to generalize to other modalities like audio. Existing audio FSL research is often fragmented, utilizing inconsistent datasets and non-reproducible splits. MetaAudio addresses these issues by introducing a standardized, reproducible framework covering environmental noises, musical instruments, human speech, and bird calls.

The MetaAudio Benchmark

To ensure a robust evaluation, MetaAudio aggregates seven diverse datasets, testing generalization across various acoustic environments.

Overview of the datasets included in the MetaAudio benchmark.

The benchmark includes:

  • ESC-50: Environmental sounds (rain, dogs, etc.).
  • NSynth: Musical instrument notes.
  • FDSKaggle18: A mixed bag of everyday sounds.
  • VoxCeleb1: Human voice identification.
  • BirdCLEF 2020: Complex, noisy bird songs.
  • Watkins Marine Mammals & SpeechCommandsV2: Held-out datasets for cross-domain testing.

Methodology

The authors evaluate five representative FSL algorithms: metric-based (Prototypical Networks), gradient-based (MAML and Meta-Curvature), and baselines (SimpleShot and Meta-Baseline).

Instead of standard vision backbones, a lightweight hybrid CRNN (Convolutional Recurrent Neural Network) is employed to capture both spatial patterns in spectrograms and temporal dependencies. To handle varying audio lengths (0.1s to 30m), a "fixed-length sub-clip" strategy is used, segmenting files into 5-second clips to maintain consistent input sizes without excessive padding.

Results and Discussion

Gradient Adaptation vs. Metric Learning

A key finding is that gradient-based methods (MAML and Meta-Curvature) consistently outperform metric-learners in the audio domain. Unlike vision, where fixed feature spaces often suffice, audio classes are diverse enough to require internal weight updates for each new task.

Classification accuracy as a function of k-shots (left) and N-ways (right), comparing various FSL algorithms.

As shown in the figure above, gradient-based methods exhibit steeper performance gains as the number of training examples ($k$-shots) increases. In contrast, metric-based methods like ProtoNets tend to stagnate.

Domain Specificity and Joint Training

The study challenges the "big model" assumption. Specialized meta-learning often outperformed massive transformers (like AST) pre-trained on AudioSet, suggesting a significant domain shift in acoustics. Additionally, "Joint Training"—training on all datasets simultaneously—improved performance on environmental sounds and enhanced generalization to unseen datasets like marine mammal vocalizations.

Performance Highlights

  • Meta-Curvature emerged as the top performer, achieving the best average rank across primary datasets.
  • On the NSynth dataset, Meta-Curvature reached a peak accuracy of 96.47% in a 5-way 1-shot setting.
  • New state-of-the-art results were achieved on ESC-50 and Kaggle18 through "Free Dataset Sampling," which mixes classes from different datasets in one training episode.

Conclusion

MetaAudio provides a critical foundation for audio FSL research. While the current CRNN backbone is modest, it establishes clear performance trends, notably the superiority of gradient-based adaptation. Future work will explore larger architectures and attention-based sampling to mitigate noise from "weak labels" in long audio clips, further closing the gap between few-shot learning and complex real-world soundscapes.

Summary updated

BibTeX
@inproceedings{heggan2022metaaudio,
  author = {Calum Heggan and Sam Budgett and Timothy M. Hospedales and Mehrdad Yaghoobi},
  title = {{MetaAudio: A Few-Shot Audio Classification Benchmark}},
  booktitle = {ICANN},
  year = {2022},
  url = {https://openreview.net/forum?id=256CCsXVB6},
}
Figure