ECAvg: An Edge-Cloud Collaborative Learning Approach using Averaged Weights (2310.03823v1)
Abstract: The use of edge devices together with cloud provides a collaborative relationship between both classes of devices where one complements the shortcomings of the other. Resource-constraint edge devices can benefit from the abundant computing power provided by servers by offloading computationally intensive tasks to the server. Meanwhile, edge devices can leverage their close proximity to the data source to perform less computationally intensive tasks on the data. In this paper, we propose a collaborative edge-cloud paradigm called ECAvg in which edge devices pre-train local models on their respective datasets and transfer the models to the server for fine-tuning. The server averages the pre-trained weights into a global model, which is fine-tuned on the combined data from the various edge devices. The local (edge) models are then updated with the weights of the global (server) model. We implement a CIFAR-10 classification task using MobileNetV2, a CIFAR-100 classification task using ResNet50, and an MNIST classification using a neural network with a single hidden layer. We observed performance improvement in the CIFAR-10 and CIFAR-100 classification tasks using our approach, where performance improved on the server model with averaged weights and the edge models had a better performance after model update. On the MNIST classification, averaging weights resulted in a drop in performance on both the server and edge models due to negative transfer learning. From the experiment results, we conclude that our approach is successful when implemented on deep neural networks such as MobileNetV2 and ResNet50 instead of simple neural networks.
- J. Yao, S. Zhang, Y. Yao, F. Wang, J. Ma, J. Zhang, Y. Chu, L. Ji, K. Jia, T. Shen, et al., “Edge-cloud polarization and collaboration: A comprehensive survey for ai,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 7, pp. 6866–6886, 2022.
- M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, “Mobilenetv2: Inverted residuals and linear bottlenecks,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4510–4520, 2018.
- M. Tan and Q. Le, “Efficientnet: Rethinking model scaling for convolutional neural networks,” in International conference on machine learning, pp. 6105–6114, PMLR, 2019.
- A. Bochkovskiy, C.-Y. Wang, and H.-Y. M. Liao, “Yolov4: Optimal speed and accuracy of object detection,” arXiv preprint arXiv:2004.10934, 2020.
- L. Liu, C. Ke, H. Lin, H. Xu, et al., “Research on pedestrian detection algorithm based on mobilenet-yolo,” Computational intelligence and neuroscience, vol. 2022, 2022.
- C. Chen, C. Wang, B. Liu, C. He, L. Cong, and S. Wan, “Edge intelligence empowered vehicle detection and image segmentation for autonomous vehicles,” IEEE Transactions on Intelligent Transportation Systems, 2023.
- R. Bibi, Y. Saeed, A. Zeb, T. M. Ghazal, T. Rahman, R. A. Said, S. Abbas, M. Ahmad, and M. A. Khan, “Edge ai-based automated detection and classification of road anomalies in vanet using deep learning,” Computational intelligence and neuroscience, vol. 2021, pp. 1–16, 2021.
- N. Kukreja, A. Shilova, O. Beaumont, J. Huckelheim, N. Ferrier, P. Hovland, and G. Gorman, “Training on the edge: The why and the how,” in 2019 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW), pp. 899–903, IEEE, 2019.
- H. Cao, M. Wachowicz, R. Richard, and C.-H. Hsu, “Fostering new vertical and horizontal iot applications with intelligence everywhere,” arXiv preprint arXiv:2310.00346, 2023.
- C. Yang, S. Lan, L. Wang, W. Shen, and G. G. Huang, “Big data driven edge-cloud collaboration architecture for cloud manufacturing: a software defined perspective,” IEEE access, vol. 8, pp. 45938–45950, 2020.
- L. Hu, G. Sun, and Y. Ren, “Coedge: Exploiting the edge-cloud collaboration for faster deep learning,” IEEE Access, vol. 8, pp. 100533–100541, 2020.
- S. Wang, T. Tuor, T. Salonidis, K. K. Leung, C. Makaya, T. He, and K. Chan, “Adaptive federated learning in resource constrained edge computing systems,” IEEE journal on selected areas in communications, vol. 37, no. 6, pp. 1205–1221, 2019.
- L. U. Khan, S. R. Pandey, N. H. Tran, W. Saad, Z. Han, M. N. Nguyen, and C. S. Hong, “Federated learning for edge networks: Resource optimization and incentive mechanism,” IEEE Communications Magazine, vol. 58, no. 10, pp. 88–93, 2020.
- Z. Su, Y. Wang, T. H. Luan, N. Zhang, F. Li, T. Chen, and H. Cao, “Secure and efficient federated learning for smart grid with edge-cloud collaboration,” IEEE Transactions on Industrial Informatics, vol. 18, no. 2, pp. 1333–1344, 2021.
- H. Cao and M. Wachowicz, “Analytics everywhere for streaming iot data,” in 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS), pp. 18–25, IEEE, 2019.
- A. Krizhevsky, “Learning multiple layers of features from tiny images,” tech. rep., 2009.
- Y. LeCun and C. Cortes, “MNIST handwritten digit database,” 2010.
- C.-L. Li, K. Sohn, J. Yoon, and T. Pfister, “Cutpaste: Self-supervised learning for anomaly detection and localization,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 9664–9674, 2021.
- M. T. Rosenstein, Z. Marx, L. P. Kaelbling, and T. G. Dietterich, “To transfer or not to transfer,” in NIPS 2005 workshop on transfer learning, vol. 898, 2005.
- N. D. Lawrence and J. C. Platt, “Learning to learn with the informative vector machine,” in Proceedings of the twenty-first international conference on Machine learning, p. 65, 2004.
- B. Cao, S. J. Pan, Y. Zhang, D.-Y. Yeung, and Q. Yang, “Adaptive transfer learning,” in proceedings of the AAAI Conference on Artificial Intelligence, vol. 24, pp. 407–412, 2010.
- X. Wang, Y. Han, V. C. Leung, D. Niyato, X. Yan, and X. Chen, “Convergence of edge computing and deep learning: A comprehensive survey,” IEEE Communications Surveys & Tutorials, vol. 22, no. 2, pp. 869–904, 2020.
- Atah Nuh Mih (6 papers)
- Hung Cao (29 papers)
- Asfia Kawnine (6 papers)
- Monica Wachowicz (14 papers)