Skip to main content
QUICK REVIEW

[Paper Review] Continual Learning For On-Device Environmental Sound Classification

Xiao Yang, Xubo Liu|arXiv (Cornell University)|Jul 15, 2022
Music and Audio ProcessingComputer Science5 citations
TL;DR

This paper proposes Uncertainty++, a computationally efficient replay-based continual learning method for on-device environmental sound classification that reduces catastrophic forgetting by measuring per-sample classification uncertainty through perturbations on the classifier's embedding layer. Evaluated on DCASE 2019 and ESC-50, Uncertainty++ achieves 58.1% accuracy and reduces inference time by over 90% compared to baseline uncertainty methods, demonstrating superior accuracy and efficiency in resource-constrained settings.

ABSTRACT

Continuously learning new classes without catastrophic forgetting is a challenging problem for on-device environmental sound classification given the restrictions on computation resources (e.g., model size, running memory). To address this issue, we propose a simple and efficient continual learning method. Our method selects the historical data for the training by measuring the per-sample classification uncertainty. Specifically, we measure the uncertainty by observing how the classification probability of data fluctuates against the parallel perturbations added to the classifier embedding. In this way, the computation cost can be significantly reduced compared with adding perturbation to the raw data. Experimental results on the DCASE 2019 Task 1 and ESC-50 dataset show that our proposed method outperforms baseline continual learning methods on classification accuracy and computational efficiency, indicating our method can efficiently and incrementally learn new classes without the catastrophic forgetting problem for on-device environmental sound classification.

Motivation & Objective

  • Address the challenge of catastrophic forgetting in on-device environmental sound classification due to limited memory and computational resources.
  • Develop a memory update algorithm (MUA) that efficiently selects informative historical samples for replay without incurring high computational costs.
  • Improve classification accuracy and computational efficiency in continual learning scenarios where models must incrementally learn new sound classes without retraining on all past data.
  • Design a model-agnostic method suitable for deployment on mobile and embedded platforms with strict size and memory constraints.
  • Demonstrate the effectiveness of uncertainty-based sampling on embedding layers rather than raw audio to reduce computational overhead.

Proposed method

  • Propose Uncertainty++, a novel memory update algorithm (MUA) that measures per-sample classification uncertainty by applying perturbations to the classifier's embedding layer instead of raw audio inputs.
  • Use multiple perturbation types—Audio Shift, Audio PitchShift, and Audio Colored Noise—on the embedding layer to estimate uncertainty via fluctuations in predicted class probabilities.
  • Select historical samples for replay based on their uncertainty scores, prioritizing samples that are ambiguous or hard to classify, to preserve knowledge of previously learned classes.
  • Integrate the selected replay samples into the training process during incremental learning, minimizing catastrophic forgetting while maintaining low computational overhead.
  • Formulate uncertainty estimation as a differentiable process on embeddings, enabling efficient computation with minimal impact on inference time and memory usage.
  • Implement a lightweight, model-agnostic framework compatible with small on-device models like BC-ResNet-Mod (~86k parameters), suitable for real-time deployment.

Experimental results

Research questions

  • RQ1Can uncertainty-based sampling on the classifier embedding layer effectively reduce catastrophic forgetting in on-device environmental sound classification?
  • RQ2How does the computational cost of uncertainty estimation compare when applied to embeddings versus raw audio features?
  • RQ3Does Uncertainty++ outperform existing MUA methods such as Random, Reservoir, Prototype, and Uncertainty in terms of classification accuracy and inference efficiency?
  • RQ4What is the impact of varying the number of perturbation types on the performance and computational cost of the uncertainty estimation process?
  • RQ5Can the proposed method maintain high accuracy while significantly reducing training time and memory usage in continual learning scenarios with limited on-device resources?

Key findings

  • Uncertainty++ achieves 58.1% classification accuracy on the ESC-50 dataset, outperforming the best baseline (Uncertainty) and all other MUA methods.
  • The method reduces average training time per task to under 60 seconds even with six perturbation types, representing a 90%+ reduction compared to the Uncertainty baseline.
  • With only two perturbation methods, Uncertainty++ already surpasses the performance of the Uncertainty method, indicating strong sample efficiency.
  • The BWT (backward transfer) score of Uncertainty++ is significantly lower than baseline methods, confirming reduced catastrophic forgetting.
  • The average inference time for uncertainty estimation is reduced by over 90% compared to the Uncertainty method, making it highly suitable for on-device deployment.
  • The method is robust across datasets, showing consistent performance gains on both DCASE 2019 Task 1 and ESC-50, validating its generalization to diverse environmental sound classification tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.