Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation

Yaofo Chen, Shuaicheng Niu, Yaowei Wang, Shoukai Xu, Hengjie Song, Mingkui Tan

Abstract

Deploying deep learning models to edge devices often encounters the challenge of distribution shift—performance degradation caused by environmental changes like weather or lighting. While Test-Time Adaptation (TTA) can mitigate this, edge hardware typically lacks the computational resources for backpropagation and the bandwidth for continuous cloud communication. This paper presents CEMA, a collaborative cloud-edge framework designed for robust and efficient model adaptation. CEMA selectively uploads informative samples to a cloud server, where a powerful foundation model guides the adaptation of a lightweight edge model. Experimental results on ImageNet-C and ImageNet-R demonstrate that CEMA achieves state-of-the-art accuracy while reducing communication costs by over 60%.

Introduction

In real-world AI applications, models often face data distributions that differ significantly from their training sets. This "distribution shift" is a primary obstacle for reliable deployment on edge devices such as smart cameras or industrial sensors. Traditional Test-Time Adaptation (TTA) methods attempt to update models on-the-fly using incoming test data. However, edge devices face two major bottlenecks:

  1. Computational Constraints: Most edge hardware is optimized for inference and lacks the power for the gradient-based updates required by backpropagation.
  2. Bandwidth Constraints: Uploading all test data to a cloud server for processing is often infeasible due to latency and cost.
Comparison between conventional TTA and the CEMA framework

The CEMA Framework

CEMA (Cloud-Edge Elastic Model Adaptation) addresses these challenges through a "selective" collaboration strategy. Instead of performing full adaptation on the edge or uploading all data to the cloud, CEMA splits the workload intelligently between the resource-constrained edge and the resource-rich cloud.

Selective Sample Uploading

The edge device filters incoming samples based on their entropy to decide which are most valuable for adaptation. This process involves two key filters:

  • Reliability Filter: Samples with excessively high entropy are often corrupted by noise. CEMA uses a dynamic threshold to exclude these "unreliable" samples, preventing them from degrading the model.
  • Informativeness Filter: Samples with very low entropy indicate that the model is already confident and likely correct. Uploading these is redundant. CEMA focuses on samples in the "Goldilocks" zone—informative enough to learn from, but not so noisy as to be harmful.

Cloud-Side Distilled Adaptation

Once the curated samples reach the cloud, a more powerful "foundation model" (e.g., ResNet-101) acts as a teacher. The cloud updates this foundation model to the new environment and then distills this knowledge into a smaller "student" model—the edge model. A replay buffer is utilized to store informative samples, allowing the cloud to perform multiple training iterations for improved efficiency.

Detailed view of the CEMA adaptation paradigm

Efficient Parameter Distribution

To minimize the download overhead, CEMA does not transmit the entire updated model back to the edge. Instead, it only sends the updated affine parameters of the normalization layers (e.g., Batch Normalization). For a standard ResNet-18 architecture, this reduces the data transmitted to the edge by approximately 99.91%, ensuring the system remains responsive even under limited network conditions.

Evaluation and Results

The authors evaluated CEMA on two rigorous benchmarks: ImageNet-C (simulating 15 types of environmental corruptions) and ImageNet-R (testing style shifts through artistic renditions).

  • Accuracy: On ImageNet-C (severity level 5), CEMA achieved an average accuracy of 40.8%, outperforming established TTA methods like Tent (35.1%) and ETA (38.7%).
  • Efficiency: CEMA demonstrated superior bandwidth efficiency, reducing the volume of uploaded samples by 60% compared to existing methods on ImageNet-C. On ImageNet-R, it achieved 27.9% accuracy while uploading only 20% of the test samples, whereas competing methods often required 100% data upload for lower performance.

Conclusion

CEMA represents a significant advancement in making edge AI more robust and efficient. By leveraging the synergy between resource-constrained edge devices and powerful cloud-based foundation models, it provides a scalable solution for real-time model adaptation. Future work may extend this paradigm to more complex tasks like object detection and explore the integration of even larger multi-modal foundation models.

Summary updated

BibTeX
@inproceedings{chen2024towards,
  author = {Yaofo Chen and Shuaicheng Niu and Yaowei Wang and Shoukai Xu and Hengjie Song and Mingkui Tan},
  title = {{Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=vePdNU3u6n},
}
Figure