Few-shot Class-incremental Audio Classification Using Adaptively-refined Prototypes

Wei Xie, Yanxiong Li, Qianhua He, Wenchang Cao, Tuomas Virtanen

Abstract

New classes of sounds constantly emerge with a few samples, making it challenging for models to adapt to dynamic acoustic environments. This challenge motivates us to address the new problem of few-shot class-incremental audio classification (FCAC). This study aims to enable a model to continuously recognize new classes of sounds with a few training samples of new classes while remembering the learned ones. To this end, we propose a method to generate discriminative prototypes and use them to expand the model's classifier for recognizing sounds of new and learned classes. The model is first trained with a random episodic training strategy, and then its backbone is used to generate the prototypes. A dynamic relation projection module refines the prototypes to enhance their discriminability. Results on two datasets (derived from the corpora of Nsynth and FSD-MIX-CLIPS) show that the proposed method exceeds three state-of-the-art methods in average accuracy and performance dropping rate.

Introduction

In real-world acoustic environments, new sound categories—ranging from rare biological vocalizations to specific industrial noises—emerge continuously. Traditional deep learning models for audio classification are typically static, limited to the classes present in their initial training sets. While Few-shot Learning (FSL) addresses the need to learn from minimal data, it often ignores the "catastrophic forgetting" of previously learned classes. Conversely, Class-incremental Learning (CIL) manages the addition of new classes but usually requires substantial data for each.

This research introduces the task of Few-shot Class-incremental Audio Classification (FCAC). The objective is to develop systems capable of human-like learning: rapidly acquiring new sound concepts from just a few examples while maintaining a robust memory of prior knowledge.

Proposed Methodology

The proposed framework addresses the "discriminability gap" between well-defined base class representations and the potentially "fuzzy" representations of new classes learned from limited samples.

1. Random Episodic Training Strategy (RETS)

Rather than standard supervised training, the model's feature extractor (backbone) is initialized using RETS. This strategy simulates the few-shot experience by repeatedly sampling small "episodes" of data during the base training phase. This forces the model to learn highly generalizable features that are effective for unseen audio categories encountered in later sessions.

2. Dynamic Prototype Refinement

Each sound class is represented by a "prototype"—the centroid of its embeddings in the feature space. To improve the separation between classes, the authors introduce the Dynamic Relation Projection Module (DRPM). This module uses learnable weights to refine prototypes across incremental sessions, ensuring they remain distinct even as the total number of classes grows.

3. Relation-based Classification

Instead of using standard distance metrics like Euclidean distance, a learnable Relation Module (RM) calculates the similarity between a query sound's embedding and the stored prototypes. This non-linear similarity scoring further enhances the model's ability to distinguish between closely related sound events.

The proposed FCAC framework: (a) illustrates the incremental training sessions using RETS and DRPM, while (b) details the inference process where query embeddings are compared against refined prototypes.

Experimental Evaluation

The framework was evaluated on two benchmarks: NSynth-100 (100 musical instrument classes) and FSC-89 (89 everyday sound event classes derived from FSD-MIX-CLIPS). The model was compared against standard Finetuning, iCaRL, and Dynamic Few-Shot Learning (DFSL).

Key Results

The proposed method demonstrated significant improvements across all metrics:

  • Higher Average Accuracy (AA): On the NSynth-100 dataset, the proposed method achieved an AA of 89.26%, significantly outperforming the next best baseline (DFSL at 84.89%) and crushing standard finetuning (59.82%).
  • Lower Performance Dropping (PD) Rate: The model showed superior stability, with a PD rate of only 20.27%, compared to 62.10% for standard finetuning, indicating a high resistance to catastrophic forgetting.
  • Few-shot Robustness: The model maintained high accuracy even in the extreme "1-shot" scenario, where only a single audio clip is available for each new class.
Detailed accuracy results across ten sessions on the NSynth-100 dataset. The proposed method consistently maintains higher accuracy and lower performance degradation compared to existing baselines.

Conclusion

This work establishes a robust baseline for the FCAC task. By combining episodic training with dynamic prototype refinement, the proposed method effectively balances the acquisition of new knowledge with the preservation of old memories. Future research will focus on scaling these techniques to open-world environments with thousands of classes and improving the refinement process for noisier, real-world audio data.

Summary updated

BibTeX
@misc{xie2023few,
  author = {Wei Xie and Yanxiong Li and Qianhua He and Wenchang Cao and Tuomas Virtanen},
  title = {{Few-shot Class-incremental Audio Classification Using Adaptively-refined Prototypes}},
  year = {2023},
  eprint = {2305.18045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18045},
}
Figure