CN114764707A - Federal learning model training method and system - Google Patents

Federal learning model training method and system Download PDF

Info

Publication number
CN114764707A
CN114764707A CN202110001486.0A CN202110001486A CN114764707A CN 114764707 A CN114764707 A CN 114764707A CN 202110001486 A CN202110001486 A CN 202110001486A CN 114764707 A CN114764707 A CN 114764707A
Authority
CN
China
Prior art keywords
user
model
training
federated learning
organization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110001486.0A
Other languages
Chinese (zh)
Inventor
刘诗阳
史家康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110001486.0A priority Critical patent/CN114764707A/en
Publication of CN114764707A publication Critical patent/CN114764707A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/008Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols involving homomorphic encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Evolutionary Computation (AREA)
  • Finance (AREA)
  • Mathematical Physics (AREA)
  • Medical Informatics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a system for training a federated learning model, wherein the method comprises the following steps: creating a blockchain network for use in the training of the federal learning model; receiving local training model parameters uploaded by an organization user in each round of the training process of the federal learning model, wherein the organization user is a block chain user for locally training the federal learning model by using local user data; sending the local training model parameters uploaded by all organization users to worker users, and performing joint training on the federal learning model by the worker users by using all the local training model parameters; updating the federal learning model by adopting the parameters of the joint training model uploaded by the worker user who successfully creates the block; and sending the joint training model parameters to the organization user to update the local training model parameters of the organization user. In the invention, users of other participants except the data provider participate in the training of the federal learning model, so that the user range is expanded.

Description

联邦学习模型训练方法和系统Federated Learning Model Training Method and System

技术领域technical field

本发明实施例涉及业务支撑技术领域,尤其涉及一种联邦学习模型训练方法和系统。Embodiments of the present invention relate to the technical field of business support, and in particular, to a federated learning model training method and system.

背景技术Background technique

联邦学习(Federated Learning)是在保障大数据交换时的信息安全、保护终端数据和个人数据隐私以及保证合法合规的前提下,在多参与方或多计算节点之间开展高效率的机器学习的一种新兴人工智能基础技术。目前,一些联邦学习模型通过联邦学习进行训练。Federated Learning is to carry out efficient machine learning among multiple participants or multiple computing nodes under the premise of ensuring information security during big data exchange, protecting the privacy of terminal data and personal data, and ensuring legal compliance. An emerging artificial intelligence basic technology. Currently, some federated learning models are trained through federated learning.

然而,目前的通过联邦学习训练联邦学习模型的方法存在以下问题:联邦学习参与方局限于数据提供方,导致用户范围小以及训练效率低问题。However, the current method of training federated learning models through federated learning has the following problems: federated learning participants are limited to data providers, resulting in a small range of users and low training efficiency.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种联邦学习模型训练方法和系统,用于解决目前的通过联邦学习训练联邦学习模型的方法用户范围小以及训练效率低的问题。Embodiments of the present invention provide a federated learning model training method and system, which are used to solve the problems of small user scope and low training efficiency in the current method for training federated learning models through federated learning.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种联邦学习模型训练方法,包括:In a first aspect, an embodiment of the present invention provides a federated learning model training method, including:

创建区块链网络,以用于联邦学习模型的训练;Create a blockchain network for training federated learning models;

在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;During each round of federated learning model training, receive local training model parameters uploaded by organizational users, who are blockchain users who locally use local user data to train the federated learning model;

将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;Sending the local training model parameters uploaded by all the organizational users to the worker users, and the worker users use the local training model parameters uploaded by all the organizational users to jointly train the federated learning model;

采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;Update the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created blocks;

将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。Sending the joint training model parameters to the organization user to update the organization user's local training model parameters.

可选的,所述组织用户上传的本地训练模型参数采用同态加密算法进行加密。Optionally, the local training model parameters uploaded by the organizational user are encrypted using a homomorphic encryption algorithm.

可选的,所述组织用户采用自定义的密钥对本地训练模型参数进行同态加密。Optionally, the organization user uses a self-defined key to perform homomorphic encryption on the parameters of the local training model.

可选的,在每一轮联邦学习模型的训练过程中,所述区块链网络的区块链节点接收组织用户上传的本地训练模型参数包括:Optionally, in each round of training of the federated learning model, the blockchain node of the blockchain network receives the local training model parameters uploaded by the organization user including:

接收所述组织用户上传的本地训练模型参数时,判定所述组织用户是否同时上传了加密证明,所述加密证明由所述区块链网络的任意N个背书节点基于零知识证明开具;When receiving the local training model parameters uploaded by the organizational user, determine whether the organizational user has uploaded an encrypted certificate at the same time, and the encrypted certificate is issued by any N endorsement nodes of the blockchain network based on zero-knowledge proof;

若所述组织用户未发送加密证明,判定所述组织用户为恶意参与方。If the organization user does not send the encryption certificate, it is determined that the organization user is a malicious participant.

可选的,所述方法还包括:Optionally, the method further includes:

在进行联邦学习模型的训练之前,接收组织用户上传的额外样本,组成额外样本库,所述额外样本包括多个输入样本和输出样本对,所述输入样本由所述组织用户利用随机算法生成,所述输出样本为所述组织用户将所述输入样本加入到自身的本地用户数据中对联邦学习模型进行训练得到的输出;Before the training of the federated learning model is performed, an additional sample uploaded by an organization user is received to form an additional sample library, where the additional sample includes a plurality of pairs of input samples and output samples, and the input samples are generated by the organization user using a random algorithm, The output sample is an output obtained by the organization user adding the input sample to its own local user data to train the federated learning model;

接收组织用户上传的本地训练模型参数;Receive local training model parameters uploaded by organization users;

所述区块链网络的任意N个背书节点从所述额外样本库中随机抽取K个样本,根据所述K个样本对所述本地训练模型参数进行准确率判别;Any N endorsement nodes of the blockchain network randomly select K samples from the additional sample library, and perform accuracy discrimination on the local training model parameters according to the K samples;

若N个背书节点的平均准确率高于预设阈值,为所述组织用户开具加密证明。If the average accuracy of the N endorsement nodes is higher than the preset threshold, an encryption certificate is issued for the user of the organization.

可选的,所述方法还包括:Optionally, the method further includes:

在创建区块链网络之后,为每一用户赋予初始资产;After the blockchain network is created, initial assets are given to each user;

在得到收敛的联邦学习模型之后,根据每一轮中发生的交易,对每一用户进行资产结算。After the converged federated learning model is obtained, the assets are settled for each user according to the transactions that occur in each round.

可选的,根据每一轮中发生的交易,对每一用户进行资产结算之前还包括:Optionally, according to the transactions that occur in each round, before the asset settlement for each user, it also includes:

在用户加入所述区块链网络之后,在用户的区块链节点上部署智能合约集,若所述用户为组织用户,所述智能合约集包括以下至少一项:状态查询合约,模型更新合约和模型下载合约;若所述用户为工人用户,所述智能合约集包括以下至少一项:状态查询合约,模型加工合约和模型下载合约;After the user joins the blockchain network, a smart contract set is deployed on the user's blockchain node. If the user is an organizational user, the smart contract set includes at least one of the following: a status query contract, a model update contract and model download contract; if the user is a worker user, the smart contract set includes at least one of the following: a status query contract, a model processing contract and a model download contract;

其中,所述状态查询合约被用户调用时,提交一次查询交易,以查询所述用户方的当前剩余可用资产;Wherein, when the status query contract is called by the user, a query transaction is submitted to query the current remaining available assets of the user;

所述模型更新合约被所述组织用户调用时,将所述组织用户的本地训练模型参上传至所述区块链网络,完成一次模型参数更新交易;When the model update contract is called by the organizational user, upload the local training model parameters of the organizational user to the blockchain network to complete a model parameter update transaction;

所述模型下载合约被所述工人用户调用时,从所述区块链网络下载所有所述组织用户上传的本地训练模型参数,所述模型下载合约被所述组织用户调用时,从所述区块链网络下载所述工人用户上传的联合训练模型参数,以完成一次模型参数下载交易;When the model download contract is called by the worker user, it downloads all the local training model parameters uploaded by the organization user from the blockchain network. The blockchain network downloads the joint training model parameters uploaded by the worker user to complete a model parameter download transaction;

所述模型加工合约被所述工人用户调用时,向所述区块链网络上传联合训练模型参数,以完成一次加工模型参数交易。When the model processing contract is invoked by the worker user, the joint training model parameters are uploaded to the blockchain network to complete a processing model parameter transaction.

第二方面,本发明实施例提供了一种联邦学习模型训练系统,包括:In a second aspect, an embodiment of the present invention provides a federated learning model training system, including:

创建模块,用于创建区块链网络,以用于联邦学习模型的训练;Create modules for creating blockchain networks for training federated learning models;

第一接收模块,用于在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;The first receiving module is used to receive the local training model parameters uploaded by the organizational user during each round of training of the federated learning model, and the organizational user is a blockchain that uses local user data to train the federated learning model locally user;

第一发送模块,用于将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;a first sending module, configured to send the local training model parameters uploaded by all the organizational users to the worker users, and the worker users use the local training model parameters uploaded by all the organizational users to jointly train the federated learning model;

更新模块,用于采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;an update module for updating the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created the block;

第二发送模块,用于将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。The second sending module is configured to send the joint training model parameters to the organization user to update the local training model parameters of the organization user.

可选的,所述组织用户上传的本地训练模型参数采用同态加密算法进行加密。Optionally, the local training model parameters uploaded by the organizational user are encrypted using a homomorphic encryption algorithm.

可选的,所述组织用户采用自定义的密钥对本地训练模型参数进行同态加密。Optionally, the organization user uses a self-defined key to perform homomorphic encryption on the parameters of the local training model.

可选的,所述系统还包括:Optionally, the system further includes:

加密模块,用于接收所述组织用户上传的本地训练模型参数时,判定所述组织用户是否同时上传了加密证明,所述加密证明由所述区块链网络的任意N个背书节点基于零知识证明开具;若所述组织用户未发送加密证明,判定所述组织用户为恶意参与方。The encryption module is used to determine whether the organization user has uploaded an encryption certificate at the same time when receiving the local training model parameters uploaded by the organization user. The encryption certificate is based on zero-knowledge by any N endorsement nodes of the blockchain network. Certificate issuance; if the organization user does not send an encrypted certificate, it is determined that the organization user is a malicious participant.

可选的,所述系统还包括:Optionally, the system further includes:

第一接收模块,用于在进行联邦学习模型的训练之前,接收组织用户发送的额外样本,组成额外样本库,所述额外样本包括多个输入样本和输出样本对,所述输入样本由所述组织用户利用随机算法生成,所述输出样本为所述组织用户将所述输入样本加入到自身的本地用户数据中对联邦学习模型进行训练得到的输出;The first receiving module is configured to receive additional samples sent by organizational users before training the federated learning model to form an additional sample library, where the additional samples include a plurality of pairs of input samples and output samples, and the input samples are composed of the The organization user is generated by using a random algorithm, and the output sample is the output obtained by the organization user adding the input sample to its own local user data to train the federated learning model;

第二接收模块,用于接收组织用户上传的本地训练模型参数;The second receiving module is used to receive the local training model parameters uploaded by the organization user;

判别模块,用于从所述额外样本库中随机抽取K个样本,根据所述K个样本对所述本地训练模型参数进行准确率判别;A discrimination module, configured to randomly extract K samples from the additional sample library, and perform accuracy discrimination on the parameters of the local training model according to the K samples;

证明模块,用于若N个背书节点的平均准确率高于预设阈值,为所述组织用户开具加密证明。The certification module is used to issue an encryption certificate for the user of the organization if the average accuracy of the N endorsement nodes is higher than the preset threshold.

可选的,所述系统还包括:Optionally, the system further includes:

初始资产赋予模块,用于在创建区块链网络之后,为每一用户赋予初始资产;The initial asset assignment module is used to assign initial assets to each user after the blockchain network is created;

结算模块,用于在得到收敛的联邦学习模型之后,根据每一轮中发生的交易,对每一用户进行资产结算。The settlement module is used to perform asset settlement for each user according to the transactions that occur in each round after the converged federated learning model is obtained.

可选的,所述系统还包括:Optionally, the system further includes:

合约部署模块,用于在用户加入所述区块链网络之后,在用户的区块链节点上部署智能合约集,若所述用户为组织用户,所述智能合约集包括以下至少一项:状态查询合约,模型更新合约和模型下载合约;若所述用户为工人用户,所述智能合约集包括以下至少一项:状态查询合约,模型加工合约和模型下载合约;The contract deployment module is used to deploy a smart contract set on the user's blockchain node after the user joins the blockchain network. If the user is an organizational user, the smart contract set includes at least one of the following: status query contract, model update contract and model download contract; if the user is a worker user, the smart contract set includes at least one of the following: a status query contract, a model processing contract and a model download contract;

其中,所述状态查询合约被用户调用时,提交一次查询交易,以查询所述用户方的当前剩余可用资产;Wherein, when the status query contract is called by the user, a query transaction is submitted to query the current remaining available assets of the user;

所述模型更新合约被所述组织用户调用时,将所述组织用户的本地训练模型参上传至所述区块链网络,完成一次模型参数更新交易;When the model update contract is called by the organizational user, upload the local training model parameters of the organizational user to the blockchain network to complete a model parameter update transaction;

所述模型下载合约被所述工人用户调用时,从所述区块链网络下载所有所述组织用户上传的本地训练模型参数,所述模型下载合约被所述组织用户调用时,从所述区块链网络下载所述工人用户上传的联合训练模型参数,以完成一次模型参数下载交易;When the model download contract is called by the worker user, it downloads all the local training model parameters uploaded by the organization user from the blockchain network. The blockchain network downloads the joint training model parameters uploaded by the worker user to complete a model parameter download transaction;

所述模型加工合约被所述工人用户调用时,向所述区块链网络上传联合训练模型参数,以完成一次加工模型参数交易。When the model processing contract is invoked by the worker user, the joint training model parameters are uploaded to the blockchain network to complete a processing model parameter transaction.

第三方面,本发明实施例提供了一种计算设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述第一方面的联邦学习模型训练方法的步骤。In a third aspect, an embodiment of the present invention provides a computing device, including: a processor, a memory, and a program stored on the memory and executable on the processor, when the program is executed by the processor The steps of implementing the federated learning model training method of the first aspect above.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面的联邦学习模型训练方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the federated learning model training of the above-mentioned first aspect is implemented steps of the method.

本发明实施例中,结合区块链与联邦学习,通过引入除数据提供方之外的其他参与方用户,让不具备足量用户数据或不想共享用户数据的用户也拥有参与联邦学习的权利,从而可以扩大用户范围,且可以有效提高模型训练的效率,并且可以通过进行模型训练生成区块来获取奖励,这些奖励可以用于抵扣模型使用费等方面,在用户范围和激励机制上均优于现有技术方案。In the embodiment of the present invention, combining blockchain and federated learning, by introducing users other than the data provider, users who do not have sufficient user data or do not want to share user data also have the right to participate in federated learning. In this way, the scope of users can be expanded, the efficiency of model training can be effectively improved, and rewards can be obtained by generating blocks through model training. These rewards can be used to deduct model usage fees, etc., and are excellent in terms of user scope and incentive mechanism. in existing technical solutions.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1为本发明实施例的联邦学习模型训练方法的流程示意图;1 is a schematic flowchart of a federated learning model training method according to an embodiment of the present invention;

图2为本发明实施例的联邦学习模型训练系统的结构示意图;2 is a schematic structural diagram of a federated learning model training system according to an embodiment of the present invention;

图3为本发明实施例的计算设备的结构示意图。FIG. 3 is a schematic structural diagram of a computing device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

区块链技术,是由智能合约、点对点网络、加密算法和共识机制四项技术的联合创新应用。区块链在本质上是一个基于时间戳的链表储存结构,也被称为分布式账本或去中心化数据库,这是因为区块链的各个节点形成点对点网络,呈现去中心化的特性。区块链基于共识机制决定写入方,同时保证全网节点数据一致;基于加密算法保障数据安全可靠,同时利用节点上部署的智能合约进行自动化交易处理。综上所述,区块链具有去中心化、集体维护、交叉验证、公开透明、不易篡改和数据可追溯等特点,被应用于需要新型数据库支持、多主体业务、各主体不互信且无可信第三方的各类应用场景,典型范例如数字金融、食药溯源和司法存证等。Blockchain technology is a joint innovative application of four technologies: smart contracts, peer-to-peer networks, encryption algorithms and consensus mechanisms. The blockchain is essentially a timestamp-based linked list storage structure, also known as a distributed ledger or a decentralized database, because each node of the blockchain forms a peer-to-peer network, showing the characteristics of decentralization. The blockchain determines the writer based on the consensus mechanism, and at the same time ensures that the data of the entire network is consistent; based on the encryption algorithm, the data is safe and reliable, and the smart contracts deployed on the nodes are used for automated transaction processing. To sum up, the blockchain has the characteristics of decentralization, collective maintenance, cross-validation, openness and transparency, not easy to tamper with, and data traceability. Various application scenarios for trusting third parties, typical examples are digital finance, food and drug traceability, and judicial evidence storage.

区块链作为一个去中心化、数据加密和不可篡改的分布式共享数据库,可以为联邦学习的数据交换提供数据保密性来对用户隐私进行保障,保证各参与方之间的数据安全,也可以保证多参与方提供数据进行模型训练的数据一致性区块链的价值驱动激励机制,也能够增加各参与方之间提供数据和更新网络模型参数的积极性。As a decentralized, encrypted and non-tamperable distributed shared database, blockchain can provide data confidentiality for federated learning data exchange to protect user privacy and ensure data security between participants. The value-driven incentive mechanism of the data consistency blockchain that ensures that multiple participants provide data for model training can also increase the enthusiasm of each participant to provide data and update network model parameters.

本发明中,将区块链和联邦学习进行结合,对联邦学习模型进行训练。其中,联邦学习模型可以为业务推荐模型等。In the present invention, the blockchain and federated learning are combined to train the federated learning model. Among them, the federated learning model can be a business recommendation model, etc.

请参考图1,本发明实施例提供一种联邦学习模型训练方法,包括:Referring to FIG. 1, an embodiment of the present invention provides a federated learning model training method, including:

步骤11:创建区块链网络,以用于联邦学习模型的训练;Step 11: Create a blockchain network for training federated learning models;

本发明实施例中,该区块链网络的参与方统一称为区块链用户,区块链用户按照其贡献方式,可以分为组织用户和工人用户。In the embodiment of the present invention, the participants of the blockchain network are collectively referred to as blockchain users, and blockchain users can be divided into organizational users and worker users according to their contribution methods.

(a)组织用户指的是拥有用户数据,并且愿意使用用户数据参与联邦学习的业务厂商。组织的贡献方式为共享样本,参与联邦学习模型的训练。组织每次提交更新的模型参数,都可以得到对应的奖励。(a) Organizational users refer to business vendors who own user data and are willing to use user data to participate in federated learning. Organizations contribute by sharing samples and participating in the training of federated learning models. Every time an organization submits updated model parameters, it can get corresponding rewards.

(b)工人用户指的是没有足量用户数据,或者拥有用户数据但是不愿意使用自身用户数据参与联邦学习,但是仍然希望使用联邦学习模型的用户,如小规模业务厂商等。工人用户的贡献方式包含联邦学习模型训练和更新模型参数等工作,并产出新的区块。如同比特币的矿工,多个工人用户竞争完成一个区块的工作,而第一个完成区块并通过共识确认的工人用户可以得到奖励。(b) Worker users refer to users who do not have enough user data, or who have user data but are unwilling to use their own user data to participate in federated learning, but still want to use the federated learning model, such as small-scale business manufacturers. The contribution method of worker users includes the work of federated learning model training and updating model parameters, and producing new blocks. Like Bitcoin miners, multiple worker users compete to complete the work of a block, and the first worker user to complete the block and confirm it through consensus can be rewarded.

本发明实施例中,同一领域的多个业务提供商共同商议一个深度学习模型,将其作为联邦学习模型。考虑到多个业务提供商提供的业务属于同一领域,因此其数据的特征字段往往重合度较高,而用户群体重合度较低。因此,采用基于样本的联邦学习方法,取出特征字段重合且用户样本不重合的部分数据作为共享样本。In the embodiment of the present invention, multiple service providers in the same field jointly negotiate a deep learning model, which is used as a federated learning model. Considering that the services provided by multiple service providers belong to the same field, the characteristic fields of their data tend to have a high degree of coincidence, while the degree of coincidence of user groups is low. Therefore, the sample-based federated learning method is adopted, and the partial data whose feature fields overlap and user samples do not overlap are taken out as shared samples.

业务提供商在提供业务的时候,根据业务实际需求,在软件(如电商、新闻等APP)或硬件(如家庭影院视频点播、云游戏服务等设备)中内置本地数据收集模块,用于收集用户数据并上传到厂商服务器,形成厂商本地用户数据库。When the service provider provides services, according to the actual needs of the business, a local data collection module is built into the software (such as e-commerce, news and other APPs) or hardware (such as home theater video-on-demand, cloud game services and other equipment) to collect data. The user data is uploaded to the manufacturer's server to form the manufacturer's local user database.

步骤12:在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;Step 12: During each round of training of the federated learning model, receive the local training model parameters uploaded by the organizational user, and the organizational user is a blockchain user who locally uses the local user data to train the federated learning model;

组织用户在本地使用本地用户数据对联邦学习模型进行训练,无需将本地用户数据上传,因而可以保护用户数据的隐私,避免用户数据泄露。Organize users to use local user data to train the federated learning model locally without uploading local user data, thus protecting the privacy of user data and avoiding user data leakage.

步骤13:将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;Step 13: Send the local training model parameters uploaded by all the organization users to the worker users, and the worker users use the local training model parameters uploaded by all the organization users to jointly train the federated learning model;

步骤14:采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;Step 14: Update the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created the block;

步骤15:将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。Step 15: Send the joint training model parameters to the organization user to update the local training model parameters of the organization user.

本发明实施例中,结合区块链与联邦学习,通过引入除数据提供方之外的其他参与方用户,让不具备足量用户数据或不想共享用户数据的用户也拥有参与联邦学习的权利,从而可以扩大用户范围,且可以有效提高模型训练的效率,并且可以通过进行模型训练生成区块来获取奖励,这些奖励可以用于抵扣模型使用费等方面,在用户范围和激励机制上均优于现有技术方案。In the embodiment of the present invention, combining blockchain and federated learning, by introducing users other than the data provider, users who do not have sufficient user data or do not want to share user data also have the right to participate in federated learning. In this way, the scope of users can be expanded, the efficiency of model training can be effectively improved, and rewards can be obtained by generating blocks through model training. These rewards can be used to deduct model usage fees, etc., and are excellent in terms of user scope and incentive mechanism. in existing technical solutions.

下面对本发明实施例的奖励机制进行说明。The reward mechanism of the embodiment of the present invention will be described below.

本发明实施例中,可选的,所述方法还包括:In this embodiment of the present invention, optionally, the method further includes:

在创建区块链网络之后,为每一用户赋予初始资产;其中,参与方包括组织用户和工人用户,初始资产用于反应该用户参与联邦学习所付出的成本(金钱成本或数据成本)。After the blockchain network is created, each user is given initial assets; among them, the participants include organizational users and worker users, and the initial assets are used to reflect the cost (money cost or data cost) paid by the user to participate in federated learning.

在得到收敛的联邦学习模型之后,根据每一轮中发生的交易,对每一用户进行资产结算。After the converged federated learning model is obtained, the assets are settled for each user according to the transactions that occur in each round.

本发明实施例中,可选的,根据每一轮中发生的交易,对每一用户进行资产结算之前还包括:In this embodiment of the present invention, optionally, according to transactions that occur in each round, before performing asset settlement for each user, the method further includes:

在用户加入所述区块链网络之后,在用户的区块链节点上部署智能合约集S,若所述用户为组织用户,所述智能合约集S包括以下至少一项:状态查询合约S1,模型更新合约S2和模型下载合约S3;若所述用户为工人用户,所述智能合约集包括以下至少一项:状态查询合约S1,模型加工合约S4和模型下载合约S3;需要说明的是,除此合约之外,智能合约集S应具有可扩展性,并根据实际业务需求增添其他智能合约。After the user joins the blockchain network, a smart contract set S is deployed on the user's blockchain node. If the user is an organizational user, the smart contract set S includes at least one of the following: a state query contract S1 , a model update contract S2 and a model download contract S3 ; if the user is a worker user, the smart contract set includes at least one of the following: a state query contract S1, a model processing contract S4 and a model download contract S3 ; It should be noted that, in addition to this contract, the smart contract set S should be scalable, and other smart contracts can be added according to actual business needs.

其中,所述状态查询合约S1被用户调用时,提交一次查询交易,以查询该参与方所拥有的所有分布式账本上的世界状态,即查询所述用户方的当前剩余可用资产;即参与方可以条用状态查询合约S1提交一次查询交易。Wherein, when the state query contract S1 is called by the user, it submits a query transaction to query the world state on all distributed ledgers owned by the participant, that is, query the current remaining available assets of the user; A party can submit a query transaction using the state query contract S1.

所述模型更新合约S2被所述组织用户调用时,将所述组织用户的本地训练模型参上传至所述区块链网络,完成一次模型参数更新交易;即组织用户可以通过调用模型更新合约S2将加密的本地训练模型参数上传到区块链。在每一轮联邦学习的迭代中,所有组织用户(组织用户)均需要完成模型参数上传,以供工人用户使用所有模型参数进行联合训练。When the model update contract S2 is called by the organization user, upload the local training model parameters of the organization user to the blockchain network to complete a model parameter update transaction; that is, the organization user can update the contract by calling the model S2 uploads encrypted locally trained model parameters to the blockchain. In each iteration of federated learning, all organizational users (organization users) need to complete the model parameter upload for worker users to use all model parameters for joint training.

所述模型下载合约S3被所述工人用户调用时,从所述区块链网络下载所有所述组织用户上传的本地训练模型参数,所述模型下载合约S3被所述组织用户调用时,从所述区块链网络下载所述工人用户上传的联合训练模型参数,以完成一次模型参数下载交易;即参与方通过调用所述模型下载合约S3,可以提交一次模型参数下载交易。When the model download contract S3 is called by the worker user, it downloads all the local training model parameters uploaded by the organization user from the blockchain network, and when the model download contract S3 is called by the organization user, The joint training model parameters uploaded by the worker user are downloaded from the blockchain network to complete a model parameter download transaction; that is, a participant can submit a model parameter download transaction by invoking the model download contract S 3 .

所述模型加工合约S4被所述工人用户调用时,向所述区块链网络上传联合训练模型参数,以完成一次加工模型参数交易。完成联合训练,成功创建区块的工人用户可以调用模型加工合约S4,使用联合训练模型参数来更新联邦学习模型的参数。When the model processing contract S4 is invoked by the worker user, the joint training model parameters are uploaded to the blockchain network to complete a processing model parameter transaction. After the joint training is completed, the worker users who have successfully created the block can call the model processing contract S 4 and use the joint training model parameters to update the parameters of the federated learning model.

一轮完整的联邦学习迭代由以下步骤组成:A complete federated learning iteration consists of the following steps:

(a)组织用户使用本地用户数据进行联邦学习模型的训练,得出本地训练模型参数。调用模型更新合约S2生成一笔交易,将该本地训练模型参数加密后上传到区块链,即所有用户交换加密的本地训练模型参数。对于一个由多个用户发起的交易,每个用户都需要根据自己拥有的数据量支付交易费用。一般来说,一方拥有的数据量越大,支付的费用就越少。(a) Organize users to use local user data to train the federated learning model, and obtain the local training model parameters. The model update contract S2 is called to generate a transaction, and the local training model parameters are encrypted and uploaded to the blockchain, that is, all users exchange the encrypted local training model parameters. For a transaction initiated by multiple users, each user needs to pay transaction fees based on the amount of data they own. Generally speaking, the larger the amount of data a party has, the less it will pay.

(b)工人用户收集所有组织用户提出的模型更新合约S2交易,调用模型下载合约S3下载所有加密的模型参数,利用所有模型参数完成联邦学习模型的联合训练,成功创建区块的工人用户调用模型加工合约S4完成模型的参数更新。(b) The worker user collects the model update contract S2 transaction proposed by all organizational users, calls the model download contract S3 to download all encrypted model parameters, uses all the model parameters to complete the joint training of the federated learning model, and successfully creates the worker user of the block The model processing contract S4 is called to complete the parameter update of the model.

(c)组织用户调用模型下载合约S3下载联合训练模型参数,进行解密后更新本地训练模型参数。( c ) Organize the user to call the model download contract S3 to download the joint training model parameters, and update the local training model parameters after decryption.

至此,一轮完整的联邦学习迭代完成。此时,区块链中有一个区块被成功创建,创建该区块的工人用户得到了挖矿奖励,参与训练的组织用户完成了本地模型的一次更新。此时,每个组织用户计算损失函数是否满足要求,如不满足,则继续发起下一轮迭代,重复上述(a)、(b)、(c)三个步骤,直到损失函数收敛。At this point, a complete federated learning iteration is completed. At this point, a block in the blockchain was successfully created, the worker user who created the block was rewarded for mining, and the organization user who participated in the training completed an update of the local model. At this time, each organization user calculates whether the loss function meets the requirements. If not, it continues to initiate the next round of iteration, and repeats the above three steps (a), (b), (c) until the loss function converges.

当所有用户完成多轮联邦学习迭代,得到一个收敛的联邦学习模型后,依据每轮迭代中发生的交易造成的用户资产变动,进行实际资产结算。When all users complete multiple rounds of federated learning iterations and obtain a converged federated learning model, actual asset settlement is performed according to the changes in user assets caused by transactions that occur in each iteration.

虽然组织用户在本地进行联邦学习模型的训练,但是训练得出的模型参数中,含有本地用户数据的部分特征。如果恶意参与方获取明文模型参数和预定的联邦学习模型,那么就可以从中逆推出本地用户数据的特征,从而导致数据泄露。因而,本发明实施例中,为了避免模型参数泄露导致的数据特征信息泄露,可选的,所述组织用户上传的本地训练模型参数采用同态加密算法进行加密。进一步可选的,所述组织用户采用自定义的密钥对本地训练模型参数进行同态加密。Although the organization user trains the federated learning model locally, the model parameters obtained from the training contain some features of the local user data. If a malicious party obtains plaintext model parameters and a predetermined federated learning model, the features of local user data can be inversely deduced from them, resulting in data leakage. Therefore, in this embodiment of the present invention, in order to avoid leakage of data feature information caused by leakage of model parameters, optionally, the local training model parameters uploaded by the organizational user are encrypted using a homomorphic encryption algorithm. Further optionally, the organization user uses a self-defined key to perform homomorphic encryption on the parameters of the local training model.

同态加密的特点是,对经过同态加密的数据进行处理得到一个输出,将这一输出进行解密,其结果与用同一方法处理未加密的原始数据得到的输出结果是一样的。因此,作为实际进行联合训练的工人用户,即使不对梯度进行解密,也可以完成模型的训练任务。即工人用户全程接触不到任何未加密的数据,避免了本地模型数据特征信息泄露。The characteristic of homomorphic encryption is that processing the homomorphically encrypted data to obtain an output, and decrypting this output, the result is the same as the output result obtained by processing the unencrypted original data by the same method. Therefore, as a worker user who actually performs joint training, the training task of the model can be completed without decrypting the gradient. That is, worker users cannot access any unencrypted data in the whole process, which avoids the leakage of local model data feature information.

本公开实施例中,利用同态加密算法,组织用户上传的模型参数本身即经过一层加密,杜绝了由于明文模型参数导致的信息泄露。而工人用户在训练模型的时候接触的数据均为加密后数据,且工人用户完全无法进行解密,因此也解决了组织用户和工人用户彼此不互信的问题。In the embodiment of the present disclosure, by using the homomorphic encryption algorithm, the model parameters uploaded by the organization user are encrypted in one layer, which prevents information leakage caused by the plaintext model parameters. The data that worker users contact when training the model is encrypted data, and worker users cannot decrypt it at all, so it also solves the problem that organizational users and worker users do not trust each other.

在联邦学习过程中,存在多个参与方,各参与方中可能存在恶意参与方,恶意参与方通过恶意上传错误或伪造的模型参数,在不付出或付出较少成本的情况下获取联合训练模型参数,同时造成联合训练的模型精度降低。In the federated learning process, there are multiple participants, and there may be malicious participants among the participants. The malicious participants maliciously upload wrong or forged model parameters to obtain the joint training model without paying or paying less cost. parameters, while reducing the accuracy of the jointly trained model.

为了避免恶意参与方攻击,本发明实施例中,在每一轮联邦学习模型的训练过程中,所述区块链网络的区块链节点接收组织用户上传的本地训练模型参数包括:In order to avoid malicious participant attacks, in the embodiment of the present invention, in each round of training of the federated learning model, the blockchain node of the blockchain network receives the local training model parameters uploaded by the organization user including:

接收所述组织用户上传的本地训练模型参数时,判定所述组织用户是否同时上传了加密证明,所述加密证明由所述区块链网络的任意N个背书节点基于零知识证明开具;When receiving the local training model parameters uploaded by the organizational user, determine whether the organizational user has uploaded an encrypted certificate at the same time, and the encrypted certificate is issued by any N endorsement nodes of the blockchain network based on zero-knowledge proof;

若所述组织用户未发送加密证明,判定所述组织用户为恶意参与方。If the organization user does not send the encryption certificate, it is determined that the organization user is a malicious participant.

本发明实施例中,可选的,所述方法还包括:In this embodiment of the present invention, optionally, the method further includes:

在进行联邦学习模型的训练之前,接收组织用户上传的额外样本,组成额外样本库,所述额外样本包括多个输入样本和输出样本对,所述输入样本由所述组织用户利用随机算法生成,所述输出样本为所述组织用户将所述输入样本加入到自身的本地用户数据中对联邦学习模型进行训练得到的输出;Before the training of the federated learning model is performed, an additional sample uploaded by an organization user is received to form an additional sample library, where the additional sample includes a plurality of pairs of input samples and output samples, and the input samples are generated by the organization user using a random algorithm, The output sample is an output obtained by the organization user adding the input sample to its own local user data to train the federated learning model;

接收组织用户上传的本地训练模型参数;Receive local training model parameters uploaded by organization users;

所述区块链网络的任意N个背书节点从所述额外样本库中随机抽取K个样本,根据所述K个样本对所述本地训练模型参数进行准确率判别;Any N endorsement nodes of the blockchain network randomly select K samples from the additional sample library, and perform accuracy discrimination on the local training model parameters according to the K samples;

若N个背书节点的平均准确率高于预设阈值,为所述组织用户开具加密证明。If the average accuracy of the N endorsement nodes is higher than the preset threshold, an encryption certificate is issued for the user of the organization.

其中,N为大于1的正整数,K为大于1的正整数。Among them, N is a positive integer greater than 1, and K is a positive integer greater than 1.

也就是说,在联邦学习开始之前,组织用户利用随机算法生成额外样本,所有组织用户共同生成一个额外样本库。该额外样本库中的数据均为自动生成,与任何一个组织用户自身用户数据无关。每个用户需要将该额外样本库加入到自身用户数据库中作为补充训练集进行模型训练。在每一轮联邦学习迭代,组织用户上传加密的模型参数的步骤中,每个组织用户需要同时提交一份加密证明。该加密证明由任意N个背书节点基于零知识证明开具。开具的具体方法为:背书节点从额外样本库中随机抽取K个样本,对该组织用户上传的加密的模型参数进行判别。若N个背书节点的平均准确率高于阈值λ,则认为该组织用户上传的加密的模型参数是正确的。即将样本中的输入样本输入到以该加密的模型参数构成的联邦学习模型中,得到输出样本,判断N个背书节点的输出样本的平均准确率。That is, before federated learning starts, organizational users generate additional samples using a random algorithm, and all organizational users jointly generate an additional sample pool. The data in this additional repository is automatically generated and has nothing to do with any organization's own user data. Each user needs to add the additional sample library to its own user database as a supplementary training set for model training. In each round of federated learning iteration, in the step of organizing users to upload encrypted model parameters, each organizational user needs to submit an encrypted proof at the same time. The cryptographic proof is issued by any N endorsing nodes based on zero-knowledge proof. The specific method of issuing is as follows: the endorsement node randomly selects K samples from the additional sample library, and discriminates the encrypted model parameters uploaded by users of the organization. If the average accuracy rate of N endorsement nodes is higher than the threshold λ, the encrypted model parameters uploaded by users of the organization are considered to be correct. That is, input the input samples in the samples into the federated learning model composed of the encrypted model parameters, obtain the output samples, and judge the average accuracy rate of the output samples of the N endorsement nodes.

本发明实施例中,基于零知识证明思想,提出了加密证明机制。该机制可以在不获取组织用户上传的模型参数前提下,验证该加密的模型参数的正确性,防止了恶意参与方上传错误参数或伪造参数,解决了现有技术中对联邦学习合作方可能面临的恶意攻击难以进行追溯和惩罚的问题。In the embodiment of the present invention, based on the idea of zero-knowledge proof, an encryption proof mechanism is proposed. This mechanism can verify the correctness of the encrypted model parameters without obtaining the model parameters uploaded by the organization user, preventing malicious participants from uploading wrong parameters or forging parameters, and solving the problem that federated learning partners may face in the prior art. The malicious attack is difficult to trace and punish.

请参考图2,本发明实施例还提供一种联邦学习模型训练系统20,包括:Referring to FIG. 2, an embodiment of the present invention further provides a federated learning model training system 20, including:

创建模块21,用于创建区块链网络,以用于联邦学习模型的训练;Create a module 21 for creating a blockchain network for training a federated learning model;

第一接收模块22,用于在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;The first receiving module 22 is used to receive the local training model parameters uploaded by the organizational user during each round of training of the federated learning model, where the organizational user is the block that uses the local user data to train the federated learning model locally chain user;

第一发送模块23,用于将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;The first sending module 23 is configured to send the local training model parameters uploaded by all the organizational users to the worker users, and the worker users use the local training model parameters uploaded by all the organizational users to jointly train the federated learning model;

更新模块24,用于采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;The updating module 24 is used for updating the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created the block;

第二发送模块25,用于将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。The second sending module 25 is configured to send the joint training model parameters to the organization user to update the local training model parameters of the organization user.

可选的,所述组织用户上传的本地训练模型参数采用同态加密算法进行加密。Optionally, the local training model parameters uploaded by the organizational user are encrypted using a homomorphic encryption algorithm.

可选的,所述组织用户采用自定义的密钥对本地训练模型参数进行同态加密。Optionally, the organization user uses a self-defined key to perform homomorphic encryption on the parameters of the local training model.

可选的,还包括:Optionally, also include:

加密模块,用于接收所述组织用户上传的本地训练模型参数时,判定所述组织用户是否同时上传了加密证明,所述加密证明由所述区块链网络的任意N个背书节点基于零知识证明开具;若所述组织用户未发送加密证明,判定所述组织用户为恶意参与方。The encryption module is used to determine whether the organization user has uploaded an encryption certificate at the same time when receiving the local training model parameters uploaded by the organization user. The encryption certificate is based on zero-knowledge by any N endorsement nodes of the blockchain network. Certificate issuance; if the organization user does not send an encrypted certificate, it is determined that the organization user is a malicious participant.

可选的,所述系统还包括:Optionally, the system further includes:

第一接收模块,用于在进行联邦学习模型的训练之前,接收组织用户发送的额外样本,组成额外样本库,所述额外样本包括多个输入样本和输出样本对,所述输入样本由所述组织用户利用随机算法生成,所述输出样本为所述组织用户将所述输入样本加入到自身的本地用户数据中对联邦学习模型进行训练得到的输出;The first receiving module is configured to receive additional samples sent by organizational users before training the federated learning model to form an additional sample library, where the additional samples include a plurality of pairs of input samples and output samples, and the input samples are composed of the The organization user is generated by using a random algorithm, and the output sample is the output obtained by the organization user adding the input sample to its own local user data to train the federated learning model;

第二接收模块,用于接收组织用户上传的本地训练模型参数;The second receiving module is used to receive the local training model parameters uploaded by the organization user;

判别模块,用于从所述额外样本库中随机抽取K个样本,根据所述K个样本对所述本地训练模型参数进行准确率判别;A discrimination module, configured to randomly extract K samples from the additional sample library, and perform accuracy discrimination on the parameters of the local training model according to the K samples;

证明模块,用于若N个背书节点的平均准确率高于预设阈值,为所述组织用户开具加密证明。The certification module is used to issue an encryption certificate for the user of the organization if the average accuracy of the N endorsement nodes is higher than the preset threshold.

可选的,所述系统还包括:Optionally, the system further includes:

初始资产赋予模块,用于在创建区块链网络之后,为每一用户赋予初始资产;The initial asset assignment module is used to assign initial assets to each user after the blockchain network is created;

结算模块,用于在得到收敛的联邦学习模型之后,根据每一轮中发生的交易,对每一用户进行资产结算。The settlement module is used to perform asset settlement for each user according to the transactions that occur in each round after the converged federated learning model is obtained.

可选的,所述系统还包括:Optionally, the system further includes:

合约部署模块,用于在用户加入所述区块链网络之后,在用户的区块链节点上部署智能合约集,若所述用户为组织用户,所述智能合约集包括以下至少一项:状态查询合约,模型更新合约和模型下载合约;若所述用户为工人用户,所述智能合约集包括以下至少一项:状态查询合约,模型加工合约和模型下载合约;The contract deployment module is used to deploy a smart contract set on the user's blockchain node after the user joins the blockchain network. If the user is an organization user, the smart contract set includes at least one of the following: status query contract, model update contract and model download contract; if the user is a worker user, the smart contract set includes at least one of the following: a status query contract, a model processing contract and a model download contract;

其中,所述状态查询合约被用户调用时,提交一次查询交易,以查询所述用户方的当前剩余可用资产;Wherein, when the status query contract is called by the user, a query transaction is submitted to query the current remaining available assets of the user;

所述模型更新合约被所述组织用户调用时,将所述组织用户的本地训练模型参上传至所述区块链网络,完成一次模型参数更新交易;When the model update contract is called by the organizational user, upload the local training model parameters of the organizational user to the blockchain network to complete a model parameter update transaction;

所述模型下载合约被所述工人用户调用时,从所述区块链网络下载所有所述组织用户上传的本地训练模型参数,所述模型下载合约被所述组织用户调用时,从所述区块链网络下载所述工人用户上传的联合训练模型参数,以完成一次模型参数下载交易;When the model download contract is called by the worker user, it downloads all the local training model parameters uploaded by the organization user from the blockchain network. The blockchain network downloads the joint training model parameters uploaded by the worker user to complete a model parameter download transaction;

所述模型加工合约被所述工人用户调用时,向所述区块链网络上传联合训练模型参数,以完成一次加工模型参数交易。When the model processing contract is invoked by the worker user, the joint training model parameters are uploaded to the blockchain network to complete a processing model parameter transaction.

综上,本发明的方案主要由以下几个部分组成:To sum up, the scheme of the present invention mainly consists of the following parts:

一个联邦学习网络。同一个业务领域(如云服务、视频或通信等)内的多个业务提供将各自收集到的用户数据,在本地进行深度学习模型训练。将训练得出的中间模型的模型参数加密,上传到一个由所有厂商共同组成的区块链网络中进行联合训练,并下载联合训练后的模型参数用于本地模型更新,如此反复迭代得出一个该业务领域的联邦学习模型,例如业务推荐模型,每个厂商可以使用该模型,用于对用户进行更精确的业务推荐。在整个训练过程中,所有用户隐私数据均保存在业务厂商本地,避免了由于共享样本导致的用户隐私数据泄露。A federated learning network. Multiple businesses in the same business domain (such as cloud services, video, or communications, etc.) provide user data collected by themselves, and perform deep learning model training locally. The model parameters of the intermediate model obtained by training are encrypted, uploaded to a blockchain network composed of all manufacturers for joint training, and the model parameters after joint training are downloaded for local model update. A federated learning model in this business domain, such as a business recommendation model, can be used by each manufacturer to make more accurate business recommendations to users. During the entire training process, all user privacy data are stored locally in the business vendor, which avoids user privacy data leakage due to shared samples.

一个区块链网络,用于保障联邦学习参与各方上链数据不可篡改且可追溯。当恶意参与方试图利用错误的参数更新破坏整体模型效果时,可以利用区块链网络的交叉验证机制快速定位恶意参与方,避免错误更新。此外,区块链网络固有的激励机制可以让拥有较多贡献的参与方获得额外收益补偿。A blockchain network used to ensure that the on-chain data of all parties involved in federated learning cannot be tampered with and can be traced. When malicious parties try to use wrong parameter updates to destroy the overall model effect, the cross-validation mechanism of the blockchain network can be used to quickly locate malicious parties and avoid erroneous updates. In addition, the inherent incentive mechanism of the blockchain network can allow participants with more contributions to obtain additional income compensation.

一套基于同态加密和零知识证明的加密证明机制,用于保障各参与方本地数据特征不被泄露,避免恶意参与方攻击。A set of cryptographic proof mechanisms based on homomorphic encryption and zero-knowledge proofs are used to ensure that the local data characteristics of each participant are not leaked and avoid malicious participant attacks.

一个联邦学习模型训练系统,用于实现本地数据采集、本地建模、模型参数加多方联合训练最终模型、数据上传区块链、区块链贡献激励以及对联邦学习合作方可能面临的恶意攻击进行追溯等本技术方案涉及的所有功能。A federated learning model training system for local data collection, local modeling, model parameters plus multi-party joint training of the final model, data upload to the blockchain, blockchain contribution incentives, and malicious attacks that may be faced by federated learning partners. All functions involved in this technical solution, such as traceability.

在一实施例中,本方案所涉及的联邦学习模型训练系统包括:用户信息管理模块、本地模型训练模块、区块链操作模块、结算模块和加密模块。In one embodiment, the federated learning model training system involved in this solution includes: a user information management module, a local model training module, a blockchain operation module, a settlement module, and an encryption module.

用户信息管理模块,用于进行用户注册、信息记录和信息修改等基础信息管理。此外,该模块还具备根据用户资产证明(金钱资产或数据资产)对用户进行分类,根据用户的类别限制用户的功能权限。The user information management module is used for basic information management such as user registration, information recording and information modification. In addition, this module also has the ability to classify users according to the user's asset certificate (money assets or data assets), and limit the user's functional rights according to the user's category.

本地模型训练模块,用于完成用户本地模型的训练、更新和维护等工作。组织用户调用此模块来使用本地自有数据库中的用户数据进行初步模型训练,和使用工人用户完成联合训练后的联邦学习模型参数来更新本地模型;工人用户调用此模块对收集到的所有加密的模型进行联合训练。The local model training module is used to complete the training, update and maintenance of the user's local model. Organization users call this module to use the user data in the local database to perform preliminary model training, and use the federated learning model parameters after joint training by worker users to update the local model; worker users call this module to collect all encrypted data. The models are jointly trained.

区块链操作模块,用于提供给用户进行节点加入或退出区块链、发起资产交易、上传或下载模型参数、提交加密证明以及数据溯源等功能,并将用户的操作结果提交至区块链。The blockchain operation module is used to provide users with functions such as node joining or exiting the blockchain, initiating asset transactions, uploading or downloading model parameters, submitting encrypted certificates, and data traceability, and submitting the user's operation results to the blockchain. .

加密模块,用于提供给用户根据自定义的密钥进行同态加密的功能,和基于零知识证明的加密正确性审计功能。在上传加密的模型参数这一步骤中,出示加密证明这一功能由此模块完成。The encryption module is used to provide users with the function of homomorphic encryption based on a user-defined key, and the encryption correctness audit function based on zero-knowledge proof. In the step of uploading encrypted model parameters, the function of presenting encryption proof is completed by this module.

请参考图3,本发明实施例还提供一种计算设备30,包括处理器31,存储器32,存储在存储器32上并可在所述处理器31上运行的计算机程序,该计算机程序被处理器31执行时实现上述联邦学习模型训练方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Referring to FIG. 3, an embodiment of the present invention further provides a computing device 30, including a processor 31, a memory 32, and a computer program stored in the memory 32 and running on the processor 31, the computer program being executed by the processor When 31 is executed, each process of the above-mentioned embodiment of the federated learning model training method is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述联邦学习模型训练方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、磁碟或者光盘等。Embodiments of the present invention also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing federated learning model training method embodiment is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者计算设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a computing device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

1.一种联邦学习模型训练方法,其特征在于,包括:1. a federated learning model training method, is characterized in that, comprises: 创建区块链网络,以用于联邦学习模型的训练;Create a blockchain network for training federated learning models; 在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;During each round of federated learning model training, receive local training model parameters uploaded by organizational users, who are blockchain users who locally use local user data to train the federated learning model; 将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;Sending the local training model parameters uploaded by all the organizational users to the worker users, and the worker users use the local training model parameters uploaded by all the organizational users to jointly train the federated learning model; 采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;Update the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created blocks; 将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。Sending the joint training model parameters to the organization user to update the organization user's local training model parameters. 2.如权利要求1所述的方法,其特征在于,所述组织用户上传的本地训练模型参数采用同态加密算法进行加密。2 . The method according to claim 1 , wherein the local training model parameters uploaded by the organization user are encrypted by using a homomorphic encryption algorithm. 3 . 3.如权利要求2所述的方法,其特征在于,所述组织用户采用自定义的密钥对本地训练模型参数进行同态加密。3 . The method according to claim 2 , wherein the organization user performs homomorphic encryption on the parameters of the local training model by using a self-defined key. 4 . 4.如权利要求1所述的方法,其特征在于,在每一轮联邦学习模型的训练过程中,所述区块链网络的区块链节点接收组织用户上传的本地训练模型参数包括:4. The method according to claim 1, wherein, in each round of training of the federated learning model, the blockchain node of the blockchain network receives the local training model parameters uploaded by the organization user comprising: 接收所述组织用户上传的本地训练模型参数时,判定所述组织用户是否同时上传了加密证明,所述加密证明由所述区块链网络的任意N个背书节点基于零知识证明开具;When receiving the local training model parameters uploaded by the organizational user, determine whether the organizational user has uploaded an encrypted certificate at the same time, and the encrypted certificate is issued by any N endorsement nodes of the blockchain network based on zero-knowledge proof; 若所述组织用户未发送加密证明,判定所述组织用户为恶意参与方。If the organization user does not send the encryption certificate, it is determined that the organization user is a malicious participant. 5.如权利要求4所述的方法,其特征在于,还包括:5. The method of claim 4, further comprising: 在进行联邦学习模型的训练之前,接收组织用户上传的额外样本,组成额外样本库,所述额外样本包括多个输入样本和输出样本对,所述输入样本由所述组织用户利用随机算法生成,所述输出样本为所述组织用户将所述输入样本加入到自身的本地用户数据中对联邦学习模型进行训练得到的输出;Before the training of the federated learning model is performed, an additional sample uploaded by an organization user is received to form an additional sample library, where the additional sample includes a plurality of pairs of input samples and output samples, and the input samples are generated by the organization user using a random algorithm, The output sample is an output obtained by the organization user adding the input sample to its own local user data to train the federated learning model; 接收组织用户上传的本地训练模型参数;Receive local training model parameters uploaded by organization users; 所述区块链网络的任意N个背书节点从所述额外样本库中随机抽取K个样本,根据所述K个样本对所述本地训练模型参数进行准确率判别;Any N endorsement nodes of the blockchain network randomly select K samples from the additional sample library, and perform accuracy discrimination on the local training model parameters according to the K samples; 若N个背书节点的平均准确率高于预设阈值,为所述组织用户开具加密证明。If the average accuracy of the N endorsement nodes is higher than the preset threshold, an encryption certificate is issued for the user of the organization. 6.如权利要求1所述的方法,其特征在于,还包括:6. The method of claim 1, further comprising: 在创建区块链网络之后,为每一用户赋予初始资产;After the blockchain network is created, initial assets are given to each user; 在得到收敛的联邦学习模型之后,根据每一轮中发生的交易,对每一用户进行资产结算。After the converged federated learning model is obtained, the assets are settled for each user according to the transactions that occur in each round. 7.如权利要求6所述的方法,其特征在于,根据每一轮中发生的交易,对每一用户进行资产结算之前还包括:7. The method according to claim 6, wherein, according to the transactions that occur in each round, before performing asset settlement for each user, the method further comprises: 在用户加入所述区块链网络之后,在用户的区块链节点上部署智能合约集,若所述用户为组织用户,所述智能合约集包括以下至少一项:状态查询合约,模型更新合约和模型下载合约;若所述用户为工人用户,所述智能合约集包括以下至少一项:状态查询合约,模型加工合约和模型下载合约;After the user joins the blockchain network, a smart contract set is deployed on the user's blockchain node. If the user is an organizational user, the smart contract set includes at least one of the following: a status query contract, a model update contract and model download contract; if the user is a worker user, the smart contract set includes at least one of the following: a status query contract, a model processing contract and a model download contract; 其中,所述状态查询合约被用户调用时,提交一次查询交易,以查询所述用户方的当前剩余可用资产;Wherein, when the status query contract is called by the user, a query transaction is submitted to query the current remaining available assets of the user; 所述模型更新合约被所述组织用户调用时,将所述组织用户的本地训练模型参上传至所述区块链网络,完成一次模型参数更新交易;When the model update contract is called by the organizational user, upload the local training model parameters of the organizational user to the blockchain network to complete a model parameter update transaction; 所述模型下载合约被所述工人用户调用时,从所述区块链网络下载所有所述组织用户上传的本地训练模型参数,以完成一次模型参数下载交易;所述模型下载合约被所述组织用户调用时,从所述区块链网络下载所述工人用户上传的联合训练模型参数,以完成一次模型参数下载交易;When the model download contract is called by the worker user, all the local training model parameters uploaded by the organization user are downloaded from the blockchain network to complete a model parameter download transaction; the model download contract is called by the organization When the user calls, download the joint training model parameters uploaded by the worker user from the blockchain network to complete a model parameter download transaction; 所述模型加工合约被所述工人用户调用时,向所述区块链网络上传联合训练模型参数,以完成一次加工模型参数交易。When the model processing contract is invoked by the worker user, the joint training model parameters are uploaded to the blockchain network to complete a processing model parameter transaction. 8.一种联邦学习模型训练系统,其特征在于,包括:8. A federated learning model training system, comprising: 创建模块,用于创建区块链网络,以用于联邦学习模型的训练;Create modules for creating blockchain networks for training federated learning models; 第一接收模块,用于在每一轮联邦学习模型的训练过程中,接收组织用户上传的本地训练模型参数,所述组织用户为在本地使用本地用户数据对联邦学习模型进行训练的区块链用户;The first receiving module is used to receive the local training model parameters uploaded by the organizational user during each round of training of the federated learning model, and the organizational user is a blockchain that uses local user data to train the federated learning model locally user; 第一发送模块,用于将所有所述组织用户上传的本地训练模型参数发送给工人用户,由所述工人用户利用所有所述组织用户上传的本地训练模型参数对联邦学习模型进行联合训练;a first sending module, configured to send the local training model parameters uploaded by all the organizational users to the worker users, and the worker users use the local training model parameters uploaded by all the organizational users to jointly train the federated learning model; 更新模块,用于采用成功创建区块的所述工人用户上传的联合训练模型参数更新所述联邦学习模型;an update module for updating the federated learning model using the joint training model parameters uploaded by the worker users who have successfully created the block; 第二发送模块,用于将所述联合训练模型参数发送给所述组织用户以更新所述组织用户的本地训练模型参数。The second sending module is configured to send the joint training model parameters to the organization user to update the local training model parameters of the organization user. 9.一种计算设备,其特征在于,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至7中任一项所述的联邦学习模型训练方法的步骤。9. A computing device, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to achieve as claimed in the claims Steps of the federated learning model training method described in any one of 1 to 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的联邦学习模型训练方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program according to any one of claims 1 to 7 is implemented. The steps of the federated learning model training method.
CN202110001486.0A 2021-01-04 2021-01-04 Federal learning model training method and system Pending CN114764707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110001486.0A CN114764707A (en) 2021-01-04 2021-01-04 Federal learning model training method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110001486.0A CN114764707A (en) 2021-01-04 2021-01-04 Federal learning model training method and system

Publications (1)

Publication Number Publication Date
CN114764707A true CN114764707A (en) 2022-07-19

Family

ID=82363262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110001486.0A Pending CN114764707A (en) 2021-01-04 2021-01-04 Federal learning model training method and system

Country Status (1)

Country Link
CN (1) CN114764707A (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316502A1 (en) * 2017-04-27 2018-11-01 Factom Data Reproducibility Using Blockchains
CN110262819A (en) * 2019-06-04 2019-09-20 深圳前海微众银行股份有限公司 A kind of the model parameter update method and device of federal study
CN111125779A (en) * 2019-12-17 2020-05-08 山东浪潮人工智能研究院有限公司 Block chain-based federal learning method and device
CN111368319A (en) * 2020-03-04 2020-07-03 西安电子科技大学 Block chain-based data security access method in federated learning environment
CN111552986A (en) * 2020-07-10 2020-08-18 鹏城实验室 Blockchain-based federated modeling method, device, device and storage medium
CN111598254A (en) * 2020-05-22 2020-08-28 深圳前海微众银行股份有限公司 Federated learning modeling method, device and readable storage medium
CN111914277A (en) * 2020-08-07 2020-11-10 平安科技(深圳)有限公司 Intersection data generation method and federal model training method based on intersection data
CN112084256A (en) * 2019-06-12 2020-12-15 国际商业机器公司 Aggregated machine learning validation for databases
CN112132198A (en) * 2020-09-16 2020-12-25 建信金融科技有限责任公司 Data processing method, device and system and server
EP3846062A1 (en) * 2020-01-06 2021-07-07 Tata Consultancy Services Limited Method and system for processing transactions in a blockchain network
WO2021208721A1 (en) * 2020-11-23 2021-10-21 平安科技(深圳)有限公司 Federated learning defense method, apparatus, electronic device, and storage medium
CN113645020A (en) * 2021-07-06 2021-11-12 北京理工大学 A Consortium Chain Privacy Protection Method Based on Secure Multi-Party Computation
CN114338045A (en) * 2022-01-14 2022-04-12 中国人民解放军战略支援部队信息工程大学 Information data verifiability safety sharing method and system based on block chain and federal learning
CN115361145A (en) * 2022-10-19 2022-11-18 北京理工大学 A Consortium Chain Privacy Protection Method Supporting Supervision Based on Zero-Knowledge Proof
WO2024016548A1 (en) * 2022-07-20 2024-01-25 天津科技大学 Blockchain-based ai model training method
CN117540376A (en) * 2023-11-08 2024-02-09 浙江师范大学 Federal learning method and system supporting anti-poisoning and reasoning attack
CN117875456A (en) * 2023-12-22 2024-04-12 重庆邮电大学 Federal learning method based on CKS homomorphic encryption and Fabric

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316502A1 (en) * 2017-04-27 2018-11-01 Factom Data Reproducibility Using Blockchains
CN110262819A (en) * 2019-06-04 2019-09-20 深圳前海微众银行股份有限公司 A kind of the model parameter update method and device of federal study
CN112084256A (en) * 2019-06-12 2020-12-15 国际商业机器公司 Aggregated machine learning validation for databases
CN111125779A (en) * 2019-12-17 2020-05-08 山东浪潮人工智能研究院有限公司 Block chain-based federal learning method and device
EP3846062A1 (en) * 2020-01-06 2021-07-07 Tata Consultancy Services Limited Method and system for processing transactions in a blockchain network
CN111368319A (en) * 2020-03-04 2020-07-03 西安电子科技大学 Block chain-based data security access method in federated learning environment
CN111598254A (en) * 2020-05-22 2020-08-28 深圳前海微众银行股份有限公司 Federated learning modeling method, device and readable storage medium
CN111552986A (en) * 2020-07-10 2020-08-18 鹏城实验室 Blockchain-based federated modeling method, device, device and storage medium
CN111914277A (en) * 2020-08-07 2020-11-10 平安科技(深圳)有限公司 Intersection data generation method and federal model training method based on intersection data
CN112132198A (en) * 2020-09-16 2020-12-25 建信金融科技有限责任公司 Data processing method, device and system and server
WO2021208721A1 (en) * 2020-11-23 2021-10-21 平安科技(深圳)有限公司 Federated learning defense method, apparatus, electronic device, and storage medium
CN113645020A (en) * 2021-07-06 2021-11-12 北京理工大学 A Consortium Chain Privacy Protection Method Based on Secure Multi-Party Computation
CN114338045A (en) * 2022-01-14 2022-04-12 中国人民解放军战略支援部队信息工程大学 Information data verifiability safety sharing method and system based on block chain and federal learning
WO2024016548A1 (en) * 2022-07-20 2024-01-25 天津科技大学 Blockchain-based ai model training method
CN115361145A (en) * 2022-10-19 2022-11-18 北京理工大学 A Consortium Chain Privacy Protection Method Supporting Supervision Based on Zero-Knowledge Proof
CN117540376A (en) * 2023-11-08 2024-02-09 浙江师范大学 Federal learning method and system supporting anti-poisoning and reasoning attack
CN117875456A (en) * 2023-12-22 2024-04-12 重庆邮电大学 Federal learning method based on CKS homomorphic encryption and Fabric

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张桉: "一种基于区块链与联邦学习的数据隐私保护方法", 《企业科技与发展》, no. 10, 31 October 2022 (2022-10-31) *
郑立志;: "基于联邦学习的数据安全在银行领域的探索", 中国金融电脑, no. 09, 7 September 2020 (2020-09-07) *

Similar Documents

Publication Publication Date Title
CN108650270B (en) Data sharing method and system based on alliance chain and incentive mechanism
CN110870254B (en) Method and system for providing distributed private subspaced data structures
CN115210741B (en) Partially ordered blockchain
US20190287026A1 (en) Learning service blockchain
KR102086228B1 (en) A secure and efficient blockchain service based on a untrusted blockchain arbitration server
US11367055B2 (en) Decentralized pooled mining for enabling proof-of-work on blockchains
CN110462621A (en) Sensitive data element is managed in block chain network
CN109726887A (en) Blockchain-based mobile crowdsourcing data collection and processing system and method
CN108965247A (en) A kind of threat information exchange shared system and method based on block chain
CN110275891A (en) Artificial intelligence software market
EP3709568A1 (en) Deleting user data from a blockchain
CN111291394A (en) False information management method, false information management device and storage medium
CN115705571A (en) Protecting privacy of auditable accounts
Chen et al. Trusted audit with untrusted auditors: A decentralized data integrity Crowdauditing approach based on blockchain
JP2024509666A (en) Blockchain data segregation
US11924348B2 (en) Honest behavior enforcement via blockchain
Liu et al. Blockchain-empowered lifecycle management for AI-generated content products in edge networks
Bhatia et al. WorkerRep: Building trust on crowdsourcing platform using blockchain
CN113298404A (en) Method and device for determining workload of federal learning participator
CN115427980A (en) Context integrity preservation
Lisi et al. Practical application and evaluation of atomic swaps for blockchain-based recommender systems
Keshavarzkalhori et al. Federify: A verifiable federated learning scheme based on zksnarks and blockchain
CN114239043B (en) A shared encrypted storage system based on blockchain technology
US20230396445A1 (en) Multi-signature wallets in public trust ledger actions via a database system
US20240177143A1 (en) Intermediary roles in public trust ledger actions via a database system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination