Abstract
In cloud-edge collaborative systems, lightweight edge models must continuously adapt to shifting data distributions, such as changing lighting and weather conditions in traffic monitoring. However, these models frequently suffer from "catastrophic forgetting," where learning new environmental features leads to the degradation of previously acquired knowledge. This paper presents ER-EMU (Edge Model Update based on adaptive experience replay), a novel framework that mitigates forgetting by strategically replaying historical data. Unlike traditional methods that sample past experiences uniformly, ER-EMU prioritizes data that is most dissimilar to the current environment using a domain distance metric. Experimental results on real-world traffic datasets demonstrate that ER-EMU significantly improves Mean Average Precision (mAP) across multiple state-of-the-art frameworks.
1. Introduction
The deployment of real-time object detection models on edge devices—such as smart cameras and sensors—is a cornerstone of modern IoT infrastructure. To maintain high performance, these models must undergo continuous updates to account for environmental variability. In scenarios like traffic monitoring, these variations are often cyclical, involving transitions between day and night or peak and off-peak hours.
A primary challenge in this continuous learning paradigm is catastrophic forgetting. When a model optimizes its weights for a new domain (e.g., nighttime detection), it often loses the features necessary for high performance in the previous domain (e.g., daytime detection). While "experience replay"—the practice of re-training on a subset of historical data—is a common countermeasure, standard implementations often treat all past data with equal importance, leading to inefficient training and potential overfitting to the current distribution.
2. Methodology
The proposed ER-EMU framework introduces a more sophisticated approach to experience replay, focusing on diversity and domain discrepancy. It consists of two primary components: DDM-ES and RS-EBU.
2.1 Domain Distance Metric-based Experience Selection (DDM-ES)
The core innovation of ER-EMU is the selection of historical data based on its distance from the current operational domain. The system utilizes Multi-Kernel Maximum Mean Discrepancy (MK-MMD) to calculate the statistical distance between the current data distribution and various historical domains stored in the buffer.
Rather than selecting similar data, DDM-ES prioritizes the most dissimilar historical experiences. By replaying data that the model is currently most likely to forget, the algorithm acts as a powerful regularizer. This ensures the model maintains a "global" representation of the detection task rather than drifting into a "local" niche optimized only for the current hour. The influence of these historical samples is further modulated by a Sigmoid-based weighting function, ensuring that the most unique past experiences exert the greatest influence on the weight updates.
2.2 Random Sampling-based Experience Buffer Update (RS-EBU)
Edge devices are characterized by limited memory and computational power. To manage the experience buffer effectively, ER-EMU employs RS-EBU. This strategy combines a First-In-First-Out (FIFO) approach with random sampling to ensure the buffer remains at a fixed size while maintaining a balanced representation of all previously encountered domains. This prevents the buffer from being dominated by a single time period or environment.
3. Experimental Setup
The researchers evaluated ER-EMU using the Bellevue traffic video dataset, which provides high-resolution footage of real-world traffic across multiple day/night cycles. The experimental architecture simulated a cloud-edge collaborative environment:
- Cloud Model: A high-capacity DINO model (ResNet-101) served as the teacher/reference.
- Edge Model: A lightweight RT-DETR (ResNet-18) was used to represent the resource-constrained deployment target.
4. Results and Analysis
ER-EMU was integrated into three state-of-the-art (SOTA) edge update frameworks: Shoggoth, DCC, and LVACCL. In all instances, the inclusion of ER-EMU led to measurable improvements in Mean Average Precision (mAP):
- DCC: Showed the most significant gain, with mAP increasing from 58.9% to 63.7%.
- Shoggoth: Improved from 59.8% to 62.2% mAP.
- LVACCL: Improved from 59.2% to 60.3% mAP.
Beyond raw accuracy, the models demonstrated superior performance when re-encountering previously seen scenes. For example, when the model returned to a "daytime" state after a "nighttime" update, the ER-EMU-enhanced models retained significantly more daytime detection capability than the baselines.
5. Discussion and Limitations
The study highlights that "dissimilarity as a teacher" is a robust heuristic for continuous learning. By forcing the model to reconcile current observations with the most different historical data, the system builds more resilient feature representations.
However, two primary limitations were identified:
- Model Capacity: The performance gains eventually plateau. This is attributed to the limited parameter count of the ResNet-18 backbone; there is a physical limit to how much diverse information a lightweight model can store simultaneously.
- Computational Cost: Calculating MK-MMD for every update cycle introduces overhead. While feasible for the tested scenarios, further optimization may be required for scaling to environments with hundreds of distinct historical domains.
6. Conclusion
ER-EMU provides a targeted solution to catastrophic forgetting in edge-based object detection. By leveraging domain distance to weight experience replay, the framework ensures that lightweight models remain accurate across cyclical environmental changes. Future work will focus on optimizing the distance calculations and exploring adaptive model capacity management to further push the boundaries of edge intelligence.
Summary updated