Abstract
Upon deployment to edge devices, it is often desirable for a model to further learn from streaming data to improve accuracy. However, extracting representative features from such data is challenging because it is typically unlabeled, non-independent and identically distributed (non-i.i.d), and is seen only once. To mitigate this issue, a common strategy is to maintain a small data buffer on the edge device to hold the most representative data for further learning. As most data is either never stored or quickly discarded, identifying the most representative data to avoid significant information loss becomes critical. In this paper, we propose an on-device framework that addresses this issue by condensing incoming data into more informative samples. Specifically, to effectively handle unlabeled incoming data, we propose a pseudo-labeling technique designed for unlabeled on-device learning environments. Additionally, we develop a dataset condensation technique that only requires little computation resources. To counteract the effects of noisy labels during the condensation process, we further utilize a contrastive learning objective to improve the purity of class data within the buffer. Our empirical results indicate substantial improvements over existing methods, particularly when buffer capacity is severely restricted. For instance, with a buffer capacity of just one sample per class, our method achieves an accuracy that outperforms the best existing baseline by 58.4% on the CIFAR-10 dataset.
Introduction
Deep learning models deployed on edge devices, such as autonomous robots or drones, must continuously adapt to their environments. However, on-device learning faces two significant challenges: catastrophic forgetting and severe resource constraints. When a model learns new information, it often loses previously acquired knowledge. To prevent this, devices typically maintain a "replay buffer" of old samples. Unfortunately, edge devices have limited memory, and standard buffers are often too small to be effective.
Dataset Condensation (DC) offers a potential solution by creating a few "synthetic" images that encapsulate the information of thousands of real ones. However, traditional DC methods are computationally expensive, requiring complex bi-level optimization, and assume the availability of perfectly labeled data—conditions rarely met in real-world streaming environments.
The DECO Framework
To bridge this gap, we introduce DECO (Device-centric Efficient Condensation Optimization). DECO is designed to handle unlabeled, non-i.i.d. data streams on resource-constrained hardware through three primary innovations:
- Majority Voting Pseudo-Labeling: Streaming data is often temporally correlated (e.g., a camera observing the same object for multiple frames). DECO leverages this by using a sliding window and majority voting to assign pseudo-labels, effectively filtering out noisy or uncertain model predictions.
- Efficient One-Step Gradient Matching: Unlike traditional DC that matches entire training trajectories, DECO simplifies the process to a single-step gradient match. It utilizes finite difference approximation to avoid expensive second-order derivatives, drastically reducing the computational overhead.
- Contrastive Learning for Buffer Purity: To prevent the synthetic buffer from being corrupted by incorrect pseudo-labels, a contrastive loss is employed. This ensures the model learns distinct representations for different classes within the buffer, maintaining high data purity.
Experimental Evaluation
We evaluated DECO on four benchmarks: SVHN, CIFAR-10, CIFAR-100, and ImageNet-10, simulating non-i.i.d. data streams. The results demonstrate that information density is more critical than sample count; a single synthetic image optimized for gradients is far more effective at preventing forgetting than a raw photo.
DECO achieves massive accuracy gains, particularly in memory-constrained settings. With a buffer capacity of only one image per class (IpC=1), DECO outperformed the best existing baseline by 58.4% on CIFAR-10. Furthermore, the optimized condensation process is 3.3x to 8.8x faster than full DC methods, and the resulting learning curves are significantly more stable than standard replay methods like FIFO.
Conclusion and Future Work
DECO demonstrates that efficient dataset condensation is a viable path for on-device learning. By turning temporal correlation into a feature for pseudo-labeling and simplifying the condensation math, it enables edge devices to learn continuously without forgetting. Future work will explore extending DECO to complex tasks like object detection and evaluating its performance on specific edge hardware architectures.
Summary updated