Train Me If You Can: Decentralized Learning on the Deep Edge
Source abstract
Abstract
The end of Moore’s Law aligned with data privacy concerns is forcing machine learning (ML) to shift from the cloud to the deep edge. In the next-generation ML systems, the inference and part of the training process will perform at the edge, while the cloud stays responsible for major updates. This new computing paradigm, called federated learning (FL), alleviates the cloud and network infrastructure while increasing data privacy. Recent advances empowered the inference pass of quantized artificial neural networks (ANNs) on Arm Cortex-M and RISC-V microcontroller units (MCUs). Nevertheless, the training remains confined to the cloud, imposing the transaction of high volumes of private data over a network and leading to unpredictable delays when ML applications attempt to adapt to adversarial environments. To fill this gap, we make the first attempt to evaluate the feasibility of ANN training in Arm Cortex-M MCUs. From the available optimization algorithms, stochastic gradient descent (SGD) has the best trade-off between accuracy, memory footprint, and latency. However, its original form and the variants available in the literature still do not fit the stringent requirements of Arm Cortex-M MCUs. We propose L-SGD, a lightweight implementation of SGD optimized for maximum speed and minimal memory footprint in this class of MCUs. We developed a floating-point version and another that operates over quantized weights. For a fully-connected ANN trained on the MNIST dataset, L-SGD (float-32) is 4.20× faster than the SGD while requiring only 2.80% of the memory with negligible accuracy loss. Results also show that quantized training is still unfeasible to train an ANN from the scratch but is a lightweight solution to perform minor model fixes and counteract the fairness problem in typical FL systems.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Privacy-Preserving Technologies in Data · Stochastic Gradient Optimization Techniques · Adversarial Robustness in Machine Learning
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Centro Algoritmi, Universidade do Minho, 4800-058 Guimarães, Portugal
Funding
FCT
References (85)
Show source-provided references
1. Sparks, P. (2022, April 20). The Route to a Trillion Devices. White Paper. ARM. Available online: https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwit7uqT_8f3AhVCmuYKHWnlAB0QFnoECA0QAQ&url=https%3A%2F%2Fcommunity.arm.com%2Fcfs-file%2F__key%2Ftelligent-evolution-components-attachments%2F01-1996-00-00-00-01-30-09%2FArm-_2D00_-The-route-to-a-trillion-devices-_2D00_-June-2017.pdf&usg=AOvVaw0u3rfw99tKfKFI-1COOBkz.
2. Detecting Driver’s Fatigue, Distraction and Activity Using a Non-Intrusive Ai-Based Monitoring System10.2478/jaiscr-2019-0007 ↗
3. A survey of deep learning techniques for autonomous driving10.1002/rob.21918 ↗
4. Feng, C., Wu, S., and Liu, N. (2017, January 22–24). A user-centric machine learning framework for cyber security operations center. Proceedings of the 2017 IEEE International Conference on Intelligence and Security Informatics (ISI), Beijing, China.10.1109/ISI.2017.8004902 ↗
5. A Review of Machine Learning Approaches to Power System Security and Stability10.1109/ACCESS.2020.3003568 ↗
6. Shailaja, K., Seetharamulu, B., and Jabbar, M.A. (2018, January 29–31). Machine Learning in Healthcare: A Review. Proceedings of the 2018 Second International Conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India.10.1109/ICECA.2018.8474918 ↗
7. Ahamed, F., and Farid, F. (2018, January 3–7). Applying Internet of Things and Machine-Learning for Personalized Healthcare: Issues and Challenges. Proceedings of the 2018 International Conference on Machine Learning and Data Engineering (iCMLDE), Sydney, Australia.10.1109/iCMLDE.2018.00014 ↗
8. COVID-19 diagnosis from chest X-ray images using transfer learning: Enhanced performance by debiasing dataloader
9. Determination of COVID-19 pneumonia based on generalized convolutional neural network model from chest X-ray images10.1016/j.eswa.2021.115141 ↗
10. Development of smart camera systems based on artificial intelligence network for social distance detection to fight against COVID-1910.1016/j.asoc.2021.107610 ↗
11. Robust automated Parkinson disease detection based on voice signals with transfer learning10.1016/j.eswa.2021.115013 ↗
12. Nurvitadhi, E., Sim, J., Sheffield, D., Mishra, A., Krishnan, S., and Marr, D. (September, January 29). Accelerating recurrent neural networks in analytics servers: Comparison of FPGA, CPU, GPU, and ASIC. Proceedings of the 2016 26th International Conference on Field Programmable Logic and Applications (FPL), Lausanne, Switzerland.10.1109/FPL.2016.7577314 ↗
13. Ukidave, Y., Li, X., and Kaeli, D. (2016, January 23–27). Mystic: Predictive Scheduling for GPU Based Cloud Servers Using Machine Learning. Proceedings of the 2016 IEEE International Parallel and Distributed Processing Symposium (IPDPS), Chicago, IL, USA.10.1109/IPDPS.2016.73 ↗
14. A machine learning framework for resource allocation assisted by cloud computing10.1109/MNET.2018.1700293 ↗
15. It’s time to redefine Moore’s law again10.1109/MC.2017.34 ↗
16. BACombo—Bandwidth-aware decentralized federated learning10.3390/electronics9030440 ↗
17. Lai, L., Suda, N., and Chandra, V. (2018). Cmsis-nn: Efficient neural network kernels for arm cortex-m cpus. arXiv.
18. Privacy preservation in federated learning: An insightful survey from the GDPR perspective10.1016/j.cose.2021.102402 ↗
19. Ghimire, B., and Rawat, D.B. (2022). Recent Advances on Federated Learning for Cybersecurity and Cybersecurity for Federated Learning for Internet of Things. IEEE Internet Things J., 1.10.1109/JIOT.2022.3150363 ↗
20. Zhao, S., Bharati, R., Borcea, C., and Chen, Y. (2020, January 10–13). Privacy-Aware Federated Learning for Page Recommendation. Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA.10.1109/BigData50022.2020.9377942 ↗
21. The future of low-end motes in the Internet of Things: A prospective paper10.3390/electronics9010111 ↗
22. Du, W., and Atallah, M.J. (2001, January 10–14). Privacy-preserving cooperative statistical analysis. Proceedings of the Seventeenth Annual Computer Security Applications Conference, New Orleans, LA, USA.
23. Li, Q., Wen, Z., and He, B. (2021). A Survey on Federated Learning Systems: Vision, Hype and Reality for Data Privacy and Protection. IEEE Trans. Knowl. Data Eng.
24. Robust and communication-efficient federated learning from non-iid data10.1109/TNNLS.2019.2944481 ↗
25. Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H.B., Patel, S., Ramage, D., Segal, A., and Seth, K. (2022, April 20). Practical Secure Aggregation for Privacy-Preserving Machine Learning. Available online: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwi_p8DN_8f3AhV2_rsIHfOfA8oQFnoECAYQAQ&url=https%3A%2F%2Feprint.iacr.org%2F2017%2F281.pdf&usg=AOvVaw2-ff5sUXAo7J-mpZmek81h.
26. Hamm, J., Champion, A.C., Chen, G., Belkin, M., and Xuan, D. (July, January 29). Crowd-ML: A privacy-preserving learning framework for a crowd of smart devices. Proceedings of the 2015 IEEE 35th International Conference on Distributed Computing Systems, Columbus, OH, USA.10.1109/ICDCS.2015.10 ↗
27. Wang, S., Tuor, T., Salonidis, T., Leung, K.K., Makaya, C., He, T., and Chan, K. (2018, January 16–19). When edge meets learning: Adaptive control for resource-constrained distributed machine learning. Proceedings of the IEEE INFOCOM 2018-IEEE Conference on Computer Communications, Honolulu, HI, USA.10.1109/INFOCOM.2018.8486403 ↗
28. Zantalis, F., Koulouras, G., Karabetsos, S., and Kandris, D. (2019). A Review of Machine Learning and IoT in Smart Transportation. Future Internet, 11.10.3390/fi11040094 ↗
29. Federated Learning in Mobile Edge Networks: A Comprehensive Survey10.1109/COMST.2020.2986024 ↗
30. Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., and Adam, H. (2017). Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv.
31. Edge intelligence: The confluence of edge computing and artificial intelligence10.1109/JIOT.2020.2984887 ↗
32. Adaptive federated learning in resource constrained edge computing systems10.1109/JSAC.2019.2904348 ↗
33. Rizk, E., Vlaski, S., and Sayed, A.H. (2020, January 26–29). Dynamic Federated Learning. Proceedings of the 2020 IEEE 21st International Workshop on Signal Processing Advances in Wireless Communications (SPAWC), Atlanta, GA, USA.10.1109/SPAWC48557.2020.9154327 ↗
34. Chen, Y.T., Chuang, Y.C., and Wu, A.Y. (September, January 31). Online extreme learning machine design for the application of federated learning. Proceedings of the 2020 2nd IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS), Genova, Italy.10.1109/AICAS48895.2020.9073802 ↗
35. Federated machine learning: Concept and applications10.1145/3339474 ↗
36. A survey on transfer learning10.1109/TKDE.2009.191 ↗
37. Wang, H., Yurochkin, M., Sun, Y., Papailiopoulos, D., and Khazaeni, Y. (2020). Federated learning with matched averaging. arXiv.
38. Li, T., Sahu, A.K., Zaheer, M., Sanjabi, M., Talwalkar, A., and Smith, V. (2018). Federated optimization in heterogeneous networks. arXiv.
39. Fallah, A., Mokhtari, A., and Ozdaglar, A. (2020). Personalized federated learning: A meta-learning approach. arXiv.
40. Sprague, M.R., Jalalirad, A., Scavuzzo, M., Capota, C., Neun, M., Do, L., and Kopp, M. (2018). Asynchronous federated learning for geospatial applications. Joint European Conference on Machine Learning and Knowledge Discovery in Databases, Springer.10.1007/978-3-030-14880-5_2 ↗
41. Ek, S., Portet, F., Lalanda, P., and Vega, G. (2020, January 12–17). Evaluation of federated learning aggregation algorithms: Application to human activity recognition. Proceedings of the 2020 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2020 ACM International Symposium on Wearable Computers, Virtual Event.10.1145/3410530.3414321 ↗
42. Bonawitz, K., Eichner, H., Grieskamp, W., Huba, D., Ingerman, A., Ivanov, V., Kiddon, C., Konečnỳ, J., Mazzocchi, S., and McMahan, H.B. (2019). Towards federated learning at scale: System design. arXiv.
43. Suda, N., and Loh, D. (2019). Machine Learning on Arm Cortex-M Microcontrollers, Arm Ltd.
44. Banbury, C.R., Reddi, V.J., Lam, M., Fu, W., Fazel, A., Holleman, J., Huang, X., Hurtado, R., Kanter, D., and Lokhmotov, A. (2020). Benchmarking TinyML Systems: Challenges and Direction. arXiv.
45. Costa, M., Costa, D., Gomes, T., and Pinto, S. (2021). Shifting Capsule Networks from the Cloud to the Deep Edge. arXiv.10.1145/3544562 ↗
46. Yang, J., Shen, X., Xing, J., Tian, X., Li, H., Deng, B., Huang, J., and Hua, X. (2019, January 16–17). Quantization networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00748 ↗
47. PULP-NN: Accelerating quantized neural networks on parallel ultra-low-power RISC-V processors10.1098/rsta.2019.0155 ↗
48. McMahan, B., Moore, E., Ramage, D., Hampson, S., and y Arcas, B.A. (2017, January 20–22). Communication-efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics. PMLR, Fort Lauderdale, FL, USA.
49. Low-Latency Federated Learning Over Wireless Channels With Differential Privacy10.1109/JSAC.2021.3126052 ↗
50. Federated Learning: Challenges, Methods, and Future Directions
51. Kleinberg, B., Li, Y., and Yuan, Y. (2018, January 10–15). An Alternative View: When Does SGD Escape Local Minima?. Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden.
52. Loshchilov, I., and Hutter, F. (2016). SGDR: Stochastic Gradient Descent with Warm Restarts. arXiv.
53. Bäckström, K., Walulya, I., Papatriantafilou, M., and Tsigas, P. (2021, January 17–21). Consistent Lock-free Parallel Stochastic Gradient Descent for Fast and Stable Convergence. Proceedings of the 2021 IEEE International Parallel and Distributed Processing Symposium (IPDPS), Portland, OR, USA.10.1109/IPDPS49936.2021.00051 ↗
54. The mnist database of handwritten digit images for machine learning research10.1109/MSP.2012.2211477 ↗
55. Scaling learning algorithms towards AI
56. A comparative study of training algorithms for supervised machine learning
57. Powers, D.M. (2020). Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation. arXiv.
58. Nielsen, M.A. (2015). Neural Networks and Deep Learning, Determination Press.
59. Kim, G., Hwang, C.S., and Jeong, D.S. (2019, January 26–29). Stochastic Learning with Back Propagation. Proceedings of the 2019 IEEE International Symposium on Circuits and Systems (ISCAS), Sapporo, Japan.10.1109/ISCAS.2019.8702253 ↗
60. Neural network architectures and learning algorithms10.1109/MIE.2009.934790 ↗
61. Zhang, A., Lipton, Z.C., Li, M., and Smola, A.J. (2021). Dive into deep learning. arXiv.
62. A Historical Note on Shuffle Algorithms
63. Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G.S., Davis, A., Dean, J., and Devin, M. (2016). Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv.
64. Lin, D., Talathi, S., and Annapureddy, S. (2016, January 20–22). Fixed point quantization of deep convolutional networks. Proceedings of the International Conference on Machine Learning. PMLR, New York, NY, USA.
65. Lai, L., Suda, N., and Chandra, V. (2017). Deep convolutional neural network inference with floating-point weights and fixed-point activations. arXiv.
66. Gholami, A., Kim, S., Dong, Z., Yao, Z., Mahoney, M.W., and Keutzer, K. (2021). A Survey of Quantization Methods for Efficient Neural Network Inference. arXiv.10.1201/9781003162810-13 ↗
67. Novac, P.E., Boukli Hacene, G., Pegatoquet, A., Miramond, B., and Gripon, V. (2021). Quantization and Deployment of Deep Neural Networks on Microcontrollers. Sensors, 21.10.3390/s21092984 ↗
68. Wang, P., Chen, Q., He, X., and Cheng, J. (2020, January 13–18). Towards Accurate Post-training Network Quantization via Bit-Split and Stitching. Proceedings of the 37th International Conference on Machine Learning, Virtual Event.
69. Imteaj, A., and Hadi Amini, M. (2020, January 14–17). FedAR: Activity and Resource-Aware Federated Learning Model for Distributed Mobile Robots. Proceedings of the 2020 19th IEEE International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA.10.1109/ICMLA51294.2020.00185 ↗
70. Qu, X., Wang, J., and Xiao, J. (2020, January 14–16). Quantization and Knowledge Distillation for Efficient Federated Learning on Edge Devices. Proceedings of the 2020 IEEE 22nd International Conference on High Performance Computing and Communications; IEEE 18th International Conference on Smart City; IEEE 6th International Conference on Data Science and Systems (HPCC/SmartCity/DSS), Yanuca Island, Cuvu, Fiji.10.1109/HPCC-SmartCity-DSS50907.2020.00129 ↗
71. Korkmaz, C., Kocas, H.E., Uysal, A., Masry, A., Ozkasap, O., and Akgun, B. (2020, January 2–5). Chain FL: Decentralized Federated Machine Learning via Blockchain. Proceedings of the 2020 Second International Conference on Blockchain Computing and Applications (BCCA), Antalya, Turkey.10.1109/BCCA50787.2020.9274451 ↗
72. Konečnỳ, J., McMahan, H.B., Ramage, D., and Richtárik, P. (2016). Federated optimization: Distributed machine learning for on-device intelligence. arXiv.
73. Li, Q., Wen, Z., and He, B. (2020, January 7–12). Practical federated gradient boosting decision trees. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.
74. Federated Transfer Learning: Concept and applications
75. Nwankpa, C., Ijomah, W., Gachagan, A., and Marshall, S. (2018). Activation functions: Comparison of trends in practice and research for deep learning. arXiv.
76. Advances and Open Problems in Federated Learning10.1561/2200000083 ↗
77. Fang, M., Cao, X., Jia, J., and Gong, N.Z. (2020, January 12–14). Local Model Poisoning Attacks to Byzantine-Robust Federated Learning. Proceedings of the 29th USENIX Conference on Security Symposium, Berkeley, CA, USA.
78. Li, T., Sanjabi, M., Beirami, A., and Smith, V. (2019). Fair resource allocation in federated learning. arXiv.
79. Towards Fair and Privacy-Preserving Federated Deep Models10.1109/TPDS.2020.2996273 ↗
80. Machine Learning Algorithms—A Review
81. A Survey of Optimization Methods From a Machine Learning Perspective10.1109/TCYB.2019.2950779 ↗
82. Stochastic approximation algorithms: Overview and recent trends10.1007/BF02823149 ↗
83. Adaptive Subgradient Methods for Online Learning and Stochastic Optimization
84. Kingma, D.P., and Ba, J. (2017). Adam: A Method for Stochastic Optimization. arXiv.
85. Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., and Kalenichenko, D. (2018, January 18–23). Quantization and training of neural networks for efficient integer-arithmetic-only inference. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00286 ↗