This paper, presented at INTERSPEECH 2021, introduces FastICARL, a framework designed to bring efficient incremental learning to resource-constrained audio sensing devices.
TL;DR
FastICARL enables mobile devices to learn new audio tasks (like new emotions or sounds) on the fly without forgetting old ones. By optimizing how representative data is selected and stored, it reduces learning latency by up to 92% and storage needs by up to 4x compared to the state-of-the-art iCARL method, all while maintaining high accuracy.
What Problem Does This Paper Address?
Deep learning models typically suffer from Catastrophic Forgetting (CF): when trained on a new task, they abruptly lose the ability to perform previously learned tasks. While Incremental Learning (IL) methods exist to solve this, they are usually too "heavy" for mobile devices.
The representative method, iCARL, relies on "exemplars"—a small set of representative samples from old classes stored to remind the model of what it previously learned. However, iCARL has two major bottlenecks for on-device use:
- Computational Cost: The "herding" algorithm used to select these exemplars is extremely slow, involving inefficient nested loops.
- Storage Demand: Storing these exemplars in high precision (32-bit floats) consumes significant memory, which is a dealbreaker for embedded systems.
Methods
The authors propose two primary optimizations to transform iCARL into FastICARL:
- Fast Exemplar Selection: Instead of the standard herding algorithm ($O(nm^2)$ complexity), FastICARL uses a $k$-nearest-neighbor (k-NN) search combined with a max-heap data structure. It calculates the distance of every sample to the class mean and uses the heap to efficiently track the $m$ closest samples. This reduces the complexity to $O(n \log m)$, where $n$ is the number of samples and $m$ is the number of exemplars.
- Exemplar Quantization: To save space, FastICARL applies quantization to the stored exemplars. It converts 32-bit float data into 16-bit float or 8-bit integer formats. This reduces the "storage budget" required to keep the model's memory intact.
- On-Device Implementation: Unlike many papers that simulate mobile performance on a desktop, the authors implemented FastICARL directly on a Jetson Nano and a Google Pixel 4. They utilized the MNN (Mobile Neural Network) framework to enable actual on-device training, a feature often missing in more popular libraries like TensorFlow Lite.
Datasets
The framework was evaluated on two common audio sensing tasks:
- EmotionSense (ER): A dataset for emotion recognition containing five categories (Happy, Sad, Fear, Anger, Neutral).
- UrbanSound8K (ESC): An environmental sound classification dataset featuring 10 urban sound classes (e.g., car horn, drilling, street music).
The evaluation followed a "Sequential Learning Task" protocol, where the model starts with half the classes and learns the remaining classes one by one.
Key Insights and Ideas
- The Selection Bottleneck: The authors discovered that in standard iCARL, the process of picking which samples to keep (exemplar construction) accounts for 70% to 90% of the total incremental learning time.
- Efficiency vs. Accuracy: A surprising "aha moment" is that the simplified $k$-NN selection method performs nearly as well as the mathematically complex herding algorithm but is orders of magnitude faster.
- Quantization is "Free": The information loss from 8-bit quantization has a negligible impact on the final F1-score, proving that high-precision storage is unnecessary for maintaining "memory" in incremental learning.
- Privacy First: By making the IL process fast and light enough for a phone, the authors enable a system where user data never has to leave the device to update a model, significantly enhancing user privacy.
Key Results
- Speedup: FastICARL reduced the incremental learning time by 78-92% on the Google Pixel 4 and 18-78% on the Jetson Nano compared to iCARL.
- Storage Savings: By using 8-bit quantization, they reduced the storage requirement by 2 to 4 times. For the EmotionSense task, the total storage (model + exemplars) was kept under 0.5 MB.
- Performance: FastICARL achieved weighted F1-scores of 69% for Emotion Recognition and 71% for Sound Classification. This is significantly higher than a model with no IL (which dropped to 2% accuracy on some tasks) and nearly matches the "Joint" upper bound (training on all data at once).
Limitations and Future Work
- Training Latency: While exemplar selection is now much faster, the actual backpropagation (updating model weights) remains a significant portion of the remaining time. The authors suggest looking into model pruning to speed this up.
- Extreme Quantization: The study stopped at 8-bit quantization; the authors suggest exploring 2-bit or 3-bit precision in the future.
- Hardware Scaling: The authors aim to test the framework on even more constrained hardware, such as microcontrollers with very limited RAM.
Summary updated