DOI QR코드

DOI QR Code

Design for Deep Learning Configuration Management System using Block Chain

딥러닝 형상관리를 위한 블록체인 시스템 설계

  • Received : 2021.06.16
  • Accepted : 2021.06.21
  • Published : 2021.06.30

Abstract

Deep learning, a type of machine learning, performs learning while changing the weights as it progresses through each learning process. Tensor Flow and Keras provide the results of the end of the learning in graph form. Thus, If an error occurs, the result must be discarded. Consequently, existing technologies provide a function to roll back learning results, but the rollback function is limited to results up to five times. Moreover, they applied the concept of MLOps to track the deep learning process, but no rollback capability is provided. In this paper, we construct a system that manages the intermediate value of the learning process by blockchain to record the intermediate learning process and can rollback in the event of an error. To perform the functions of blockchain, the deep learning process and the rollback of learning results are designed to work by writing Smart Contracts. Performance evaluation shows that, when evaluating the rollback function of the existing deep learning method, the proposed method has a 100% recovery rate, compared to the existing technique, which reduces the recovery rate after 6 times, down to 10% when 50 times. In addition, when using Smart Contract in Ethereum blockchain, it is confirmed that 1.57 million won is continuously consumed per block creation.

머신러닝의 한 종류인 딥러닝은 각 학습 과정을 진행할 때, 가중치를 변경하면서 학습을 수행한다. 딥러닝을 수행할때 대표적으로 사용되는 Tensor Flow나 Keras의 경우 학습이 종료된 결과를 그래프 형태로 제공한다. 이에 과다학습으로 인한 퇴화 현상 또는 가중치의 잘못된 설정으로 인해 학습 결과에 오류가 발생하는 경우, 해당 학습 결과를 폐기해야한다. 이에 기존 기술은 학습 결과를 롤백하는 기능을 제공하고 있지만, 롤백 기능은 최대 5회 이내의 결과로 제한된다. 또한, 딥러닝의 모든 과정을 기록하고 있는 것이 아니기 때문에 값을 추적하기 어렵다. 이를 해결하기 위해 MLOps의 개념을 적용한 기술이 존재하지만. 해당 기술에서는 이전 시점으로 롤백하는 기능을 제공하지 않는다. 본 논문에서는 기존 기술의 문제점을 해결하기 위해 학습 과정의 중간 값을 블록체인으로 관리하여 학습 중간 과정을 기록하고, 오류가 발생할 경우 롤백할 수 있는 시스템을 구성한다. 블록체인의 기능 수행을 위해서 딥러닝 과정 및 학습 결과 롤백은 Smart Contract를 작성하여 동작하도록 설계하였다. 성능평가는 기존의 딥러닝 방식의 롤백 기능을 평가하였을 때, 제안방식은 100%의 복구율을 가지는 것에 비교하여 기존 기법에서는 6회 이후에 복구율이 감소되어 50회일 때 10%까지 감소하는 것을 확인하였다. 또한, 이더리움 블록체인의 Smart Contract를 사용할 때, 블록 1회 생성 시 157만원의 금액이 지속적으로 소모되는 것을 확인하였다.

Keywords

Acknowledgement

This research was supported by the MSIT(Ministry of Science and ICT), Korea, under the ITRC(Information Technology Research Center) support program(IITP-2020-2020-0-01602) supervised by the IITP(Institute for Information & Communications Technology Planning & Evaluation)

References

  1. S. H. Bae, H. J. Lee, Y. T. Shin. "A Study on Deep learing Configuration Management System using Block chain", Journal of 2021 KIPS, vol 28. pp234-237, 2021
  2. S. Nakamoto. "Bitcoin: A Peer-to-Pe er Electronic Cash System", 2009
  3. V. Buterin. "Ethereum White Paper: A Next Gerne ration Smart Contract & Decentra lized Application Platform", 2014
  4. IBM. "An Introduction to Hyperledger", 2018
  5. K. Driscoll et al. "Byzantine Falut Tolerance, from Theory to Reality", "Computer safy, Realiability, and Security. pp235-248, 2003
  6. M. Castro, B. Likov. "Practical Byzantine Fault Tolerance". Third Symposium on Op erating System Design and Implementation. 1999.
  7. K.Hikodukue. "Python NI YORU SCARPING & KIKAIGAKUSHU TECHNIQUE", WIKIBOOKS. 2019
  8. TensorFlow. "TensorFlow Guide, Save Model, Check Point". last modified Mar 22. 2021. "https://www.tensorflow.org/guide/checkpoint"
  9. J. S. Bong. "A Personal Health Information Sharing Platform based on Hyperledger Fabric Blockchain". Ph.D. diss. University of Soongsil. 2019