Cloud-Device Collaborative Adaptation to Continual Changing Environments in the Real-World

Yulu Gan, Mingjie Pan, Rongyu Zhang, Zijian Ling, Lingran Zhao, Jiaming Liu, Shanghang Zhang

Abstract

Deploying lightweight AI models to edge devices requires robustness against ever-changing real-world environments. However, these models often suffer from distribution shifts and catastrophic forgetting. This paper introduces the Uncertainty-based Visual Prompt Adapted (U-VPA) framework, a collaborative approach where a cloud-based teacher model assists a device-based student model. By employing Uncertainty-Guided Sampling to minimize bandwidth and Visual Prompt Learning to adapt the student model without extensive retraining, the framework achieves state-of-the-art performance in object detection across continuous domain shifts.

Introduction

The deployment of deep learning models on edge devices like autonomous vehicles or smartphones necessitates a balance between real-time efficiency and environmental robustness. Lightweight models are efficient but brittle, struggling with "distribution shifts" caused by weather changes (fog, rain, snow) or lighting transitions. Traditional Test-Time Adaptation (TTA) methods often lead to catastrophic forgetting, where a model loses its ability to perform in previous environments after adapting to a new one. Conversely, cloud-only processing is hindered by high latency and bandwidth costs.

Methodology: The U-VPA Framework

The researchers propose the Uncertainty-based Visual Prompt Adapted (U-VPA) framework to bridge the gap between cloud intelligence and edge efficiency.

The proposed cloud-device collaborative framework for continual adaptation.

The framework consists of three core components:

  1. Uncertainty Guided Sampling (UGS): To optimize bandwidth, the edge device does not transmit all data. Instead, it uses Monte Carlo (MC) Dropout to estimate prediction uncertainty. Only samples that exceed a specific uncertainty threshold—indicating the model is "confused"—are uploaded to the cloud. This strategy reduced uplink bandwidth by 58% in experimental trials.
  2. Visual Prompt Learning Strategy (VPLU): On the cloud, a high-capacity "teacher" model (e.g., ResNet-101) processes the difficult samples. Rather than updating the entire device model, the cloud learns a "Visual Prompt"—a small set of learnable parameters (representing only 0.43% of the total model) added to the input image. These prompts act as specialized filters that help the lightweight model interpret challenging conditions.
  3. Uncertainty-aware Prompt Updation (U-EMA): To maintain stability and prevent forgetting, prompts are updated using an Exponential Moving Average (EMA). The update weight is dynamically adjusted based on uncertainty: higher uncertainty triggers more significant updates to adapt to new environments, while lower uncertainty preserves existing knowledge.

Experimental Evaluation

The U-VPA framework was tested on two major object detection benchmarks: Cityscapes-to-Cityscapes-C (synthetic corruptions) and Cityscapes-to-ACDC-Detection (real-world adverse conditions). To evaluate long-term stability, sequences were repeated over 10 rounds to monitor for catastrophic forgetting.

Key Results

The framework demonstrated significant improvements over existing state-of-the-art (SOTA) methods:

  • Accuracy: On Cityscapes-C, U-VPA achieved a 31.0 mAP, a 13.6% improvement over the baseline and superior to methods like CoTTA and AMS.
  • Stability: As shown in the performance comparison, U-VPA maintains high accuracy across multiple rounds of environmental shifts, whereas competing methods often degrade over time.
Comparison of U-VPA against other methods across multiple rounds of environmental shifts.
  • Efficiency: By sending only the "hard" samples (approx. 42% of data), the model actually performed better than if 100% of data were used, suggesting that redundant "easy" samples can introduce noise during adaptation.

Conclusion

The U-VPA framework provides a robust solution for edge AI deployment by leveraging cloud-device collaboration. By focusing on uncertainty for both data sampling and model updates, it achieves a balance between learning new environmental features and retaining prior knowledge. Future work will explore extending this approach to other computer vision tasks like semantic segmentation and optimizing prompt architectures for better contextual capture.

Summary updated

BibTeX
@inproceedings{gan2022cloud,
  author = {Yulu Gan and Mingjie Pan and Rongyu Zhang and Zijian Ling and Lingran Zhao and Jiaming Liu and Shanghang Zhang},
  title = {{Cloud-Device Collaborative Adaptation to Continual Changing Environments in the Real-World}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure