journal article·2021-01-23Open access

Towards Blockchain-Based Federated Machine Learning: Smart Contract for Model Inference

Vaidotas Drungilas, Evaldas Vaičiukynas, Mantas Jurgelaitis, Rita Butkienė, Lina Čeponienė

Applied Sciences· Volume 11· Issue 3

Abstract

Federated learning is a branch of machine learning where a shared model is created in a decentralized and privacy-preserving fashion, but existing approaches using blockchain are limited by tailored models. We consider the possibility to extend a set of supported models by introducing the oracle service and exploring the usability of blockchain-based architecture. The investigated architecture combines an oracle service with a Hyperledger Fabric chaincode. We compared two logistic regression implementations in Go language—a pure chaincode and an oracle service—at various data (2–32 k instances) and network (3–13 peers) sizes. Experiments were run to assess the performance of blockchain-based model inference using 2D synthetic and EEG eye state datasets for a supervised machine learning detection task. The benchmarking results showed that the impact on performance is acceptable with the median overhead of oracle service reaching 2–4%, depending on the dimensionality of the dataset. The overhead tends to diminish at large dataset sizes with the runtime depending on the network size linearly, where additional peers increased the runtime by 6.3 and 6.6 s for 2D and EEG datasets, respectively. Demonstrated negligible difference between implementations justifies the flexible choice of model in the blockchain-based federated learning and other machine learning applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Blockchain Technology Applications and Security · Privacy-Preserving Technologies in Data · Stochastic Gradient Optimization Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Information Systems, Faculty of Informatics, Kaunas University of Technology, Studentų str. 50, LT-51368 Kaunas, Lithuania

References (41)

Show source-provided references
1. Hard, A., Rao, K., Mathews, R., Ramaswamy, S., Beaufays, F., Augenstein, S., and Ramage, D. (2019). Federated learning for mobile keyboard prediction. arXiv.
2. Konečný, J., McMahan, H.B., Yu, F.X., Richtárik, P., Suresh, A.T., and Bacon, D. (2017). Federated learning: Strategies for improving communication efficiency. arXiv.
3. Communication-efficient learning of deep networks from decentralized data
4. A survey on security and privacy of federated learning10.1016/j.future.2020.10.007 ↗
5. Wen, Y., Li, W., Roth, H., and Dogra, P. (2020, November 26). Federated Learning Powered by NVIDIA Clara. Available online: https://developer.nvidia.com/blog/federated-learning-clara/.
6. Preuveneers, D., Rimmer, V., Tsingenopoulos, I., Spooren, J., Joosen, W., and Ilie-Zudor, E. (2018). Chained anomaly detection models for federated learning: An intrusion detection case study. Appl. Sci., 8.10.3390/app8122663 ↗
7. Bore, N.K., Raman, R.K., Markus, I.M., Remy, S.L., Bent, O., Hind, M., and Weldemariam, K. (2019, January 14–17). Promoting distributed trust in machine learning and computational simulation. Proceedings of the IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Seoul, Korea.10.1109/BLOC.2019.8751423 ↗
8. Weng, J., Weng, J., Zhang, J., Li, M., Zhang, Y., and Luo, W. (2019). Deepchain: Auditable and privacy-preserving deep learning with blockchain-based incentive. IEEE Trans. Dependable Secure Comput.10.1109/TDSC.2019.2952332 ↗
9. Li, Z., Liu, J., Hao, J., Wang, H., and Xian, M. (2020). CrowdSFL: A secure crowd computing framework based on blockchain and federated learning. Electronics, 9.10.3390/electronics9050773 ↗
10. Blockchain for AI: Review and open research challenges10.1109/ACCESS.2018.2890507 ↗
11. Beniiche, A. (2020). A study of blockchain oracles. arXiv.
12. Reliability analysis for blockchain oracles10.1016/j.compeleceng.2020.106582 ↗
13. Trust management in a blockchain based fog computing platform with trustless smart oracles10.1016/j.future.2019.07.030 ↗
14. Modelling principles for blockchain-based implementation of business or scientific processes
15. Object Management Group (2020, November 26). UML 2.5 Specification. Available online: http://www.omg.org/spec/UML/2.5/PDF.
16. Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., Caro, A.D., and Sethi, M. (2018). Hyperledger fabric: A distributed operating system for permissioned blockchains. Proceedings of the Thirteenth EuroSys Conference, Association for Computing Machinery.10.1145/3190508.3190538 ↗
17. Benchmarking state-of-the-art classification algorithms for credit scoring: An update of research10.1016/j.ejor.2015.05.030 ↗
18. Scikit-learn: Machine learning in python
19. Dua, D., and Graff, C. (2020, November 26). UCI Machine Learning Repository. University of California, Irvine, School of Information and Computer Sciences. Available online: http://archive.ics.uci.edu/ml.
20. Li, L., Fan, Y., Tse, M., and Lin, K.-Y. (2020). A review of applications in federated learning. Comput. Ind. Eng., 149.10.1016/j.cie.2020.106854 ↗
21. Li, Q., Wen, Z., Wu, Z., Hu, S., Wang, N., and He, B. (2021). Federated learning systems: Vision, hype and reality for data privacy and protection. arXiv.
22. Diao, E., Ding, J., and Tarokh, V. (2020). HeteroFL: Computation and communication efficient federated learning for heterogeneous clients. arXiv.
23. Blockchained on-device federated learning10.1109/LCOMM.2019.2921755 ↗
24. Blockchain and federated learning for privacy-preserved data sharing in industrial IoT10.1109/TII.2019.2942190 ↗
25. Kuo, T.-T., and Ohno-Machado, L. (2018). ModelChain: Decentralized privacy-preserving healthcare predictive modeling framework on private blockchain networks. arXiv.
26. Kang, J., Xiong, Z., Niyato, D., Zou, Y., Zhang, Y., and Guizani, M. (2020). Reliable federated learning for mobile networks. IEEE Wirel. Commun., 27.10.1109/MWC.001.1900119 ↗
27. Lu, Y., Huang, X., Zhang, K., Maharjan, S., and Zhang, Y. (2020). Blockchain empowered asynchronous federated learning for secure data sharing in internet of vehicles. IEEE Trans. Veh. Technol., 69.10.1109/TVT.2020.2973651 ↗
28. Mendis, G.J., Wu, Y., Wei, J., Sabounchi, M., and Roche, R. (2018). Blockchain as a service: A decentralized and secure computing paradigm. arXiv.
29. Zou, W., Lo, D., Kochhar, P.S., Le, X.-B.D., Xia, X., Feng, Y., and Xu, B. (2019). Smart contract development: Challenges and opportunities. IEEE Trans. Softw. Eng.
30. Rocha, H., and Ducasse, S. (June, January 27). Preliminary steps towards modeling blockchain oriented software. Proceedings of the IEEE/ACM 1st International Workshop on Emerging Trends in Software Engineering for Blockchain, Gothenburg, Sweden.
31. García-Bañuelos, L., Ponomarev, A., Dumas, M., and Weber, I. (2017, January 10–15). Optimized execution of business processes on blockchain. Proceedings of the International Conference on Business Process Management, Barcelona, Spain.10.1007/978-3-319-65000-5_8 ↗
32. Secure architectures implementing trusted coalitions for blockchained distributed learning (TCLearn)10.1109/ACCESS.2019.2959220 ↗
33. Marchesi, M., Marchesi, L., and Tonelli, R. (2018). An agile software engineering method to design blockchain applications. Proceedings of the 14th Central and Eastern European Software Engineering Conference, Association for Computing Machinery.10.1145/3290621.3290627 ↗
34. (2020, November 26). Package Shim—GoDoc. Available online: https://godoc.org/github.com/hyperledger/fabric-chaincode-go/shim.
35. (2020, November 26). Package http—GoDoc. Available online: https://godoc.org/net/http/.
36. Docker: Lightweight Linux containers for consistent development and deployment
37. Nasir, Q., Qasse, I.A., Talib, M.A., and Nassif, A.B. (2018). Performance analysis of hyperledger fabric platforms. Secur. Commun. Netw.10.1155/2018/3976093 ↗
38. DiPaolo, C. (2020, November 26). Cdipaolo/goml: On-line Machine Learning in Go (And So Much More). Available online: https://github.com/cdipaolo/goml.
39. (2020, November 26). Bandprotocol. Available online: https://bandprotocol.com/.
40. Linux Foundation (2020, November 26). Hyperledger Avalon Proposal. Available online: https://wiki.hyperledger.org/display/TSC/Hyperledger+Avalon+Proposal.
41. Yamashita, K., Nomura, Y., Zhou, E., Pi, B., and Jun, S. (2019, January 24). Potential risks of hyperledger fabric smart contracts. Proceedings of the IEEE International Workshop on Blockchain Oriented Software Engineering, Hangzhou, China.10.1109/IWBOSE.2019.8666486 ↗