Parameter update guarantee system, certification device, parameter update guarantee method and program
The system uses zero-knowledge proof to ensure transparent model updates in AI systems by generating certificates that verify parameter changes without disclosing sensitive information, addressing confidentiality and security concerns.
Patent Information
- Application Number
- JP2023175216
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-10
AI Technical Summary
Existing AI-based systems face challenges in ensuring transparency of model updates while maintaining the confidentiality of model parameters, as disclosed parameters compromise security and asset value, and there is no guarantee of correct updates.
A system utilizing zero-knowledge proof to generate certificates that verify model parameter updates without revealing the parameters, ensuring transparency and confidentiality through a proving device and verification device.
Enhances transparency of model updates while keeping parameters confidential, allowing users to verify correct updates without exposing sensitive information.
Smart Images

Figure 0007957300000001 
Figure 0007957300000002 
Figure 0007957300000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to a parameter update guarantee system, a certification device, a parameter update guarantee method, and a program. [Background technology]
[0002] In recent years, various AI-based systems have been widely deployed. System providers use machine learning models (hereinafter simply referred to as "models") operating within their systems to perform inferences on data received from system users. Only the inference results are sent to the system users.
[0003] To infer high accuracy even with new, unknown data, it is necessary to update models frequently rather than continuing to use models that have been trained once.
[0004] To ensure transparency in AI, it is important to create a system that allows system providers to prove what updates have been made to the models they are using (how the model parameters have been updated) and whether the models are returning correct inference results, and that system users can also verify this.
[0005] Non-patent document 1 discloses a technique for proving which model was used for the update process. This technique provides the system user with the model parameters before and after the update, and verifies that the update was performed correctly.
[0006] Non-patent document 2 discloses a technique for guaranteeing that a model returns correct inference results while concealing the model parameters. [Prior art documents] [Non-patent literature]
[0007] [Non-Patent Document 1] Jia et al., "Proof-of-Learning: Definitions and Practice", In 42nd IEEE Symposium on Security and Privacy, 2021 [Non-Patent Document 2] Liu et al., "zkCNN: Zero Knowledge Proofs for Convolutional Neural Network Predictions and Accuracy", CCS 2021 [Overview of the project] [Problems that the invention aims to solve]
[0008] However, the technology described in Non-Patent Document 1 has the problem that model parameters are made public to system users, making it impossible to keep them confidential. In other words, since model parameters have confidentiality and asset value, it is undesirable to disclose them to third parties.
[0009] Furthermore, it is not possible to guarantee what updates have been made to the technology described in Non-Patent Document 2.
[0010] The present invention has been made in view of the above points, and aims to improve transparency regarding the updating of machine learning models while keeping the parameters of the machine learning models confidential. [Means for solving the problem]
[0011] To solve the above problem, the proofing device includes an update unit configured to update the parameters of a machine learning model based on a certain dataset and an update algorithm; an inference unit configured to obtain an inference result for certain data by the updated machine learning model; a circuit generation unit configured to generate a first circuit that calculates the updated parameters using the parameters before the update and the dataset as input, based on the parameters before and after the update and the dataset; and a proofing unit configured to generate a certificate using the first circuit and a key based on zero-knowledge proof. The verification device includes a verification unit configured to verify the parameters before and after the update, the certificate, that the update has been performed, and that the inference result has been obtained based on the updated parameters, all of which are committed using the key. [Effects of the Invention]
[0012] This allows for increased transparency regarding updates to machine learning models while keeping the model's parameters confidential. [Brief explanation of the drawing]
[0013] [Figure 1] This figure shows an example configuration of the parameter update guarantee system in the first embodiment. [Figure 2] This figure shows an example of the hardware configuration of the certification device 10 in the first embodiment. [Figure 3] This figure shows an example of the functional configuration of the parameter update guarantee system in the first embodiment. [Figure 4] This is a sequence diagram illustrating an example of a processing procedure performed in the parameter update guarantee system according to the first embodiment. [Figure 5] This figure shows an example of the functional configuration of the parameter update guarantee system in the second embodiment. [Figure 6] This is a sequence diagram illustrating an example of a processing procedure performed in the parameter update guarantee system in the second embodiment. [Description of Embodiments]
[0014] In the present embodiment, by using zero-knowledge proof, a provider of a system that uses a machine learning model (hereinafter simply referred to as "model f") (hereinafter referred to as "system provider") can prove how the model f has been updated (how the parameters of the model f have been updated) without disclosing the parameters of the model f, and a mechanism that allows users of the system (hereinafter referred to as "system users") to verify the proof is disclosed. Note that zero-knowledge proof is a technology for proving whether certain information (in this case, the parameters of the model f) was used in an operation while keeping that information confidential.
[0015] [First Embodiment] In the first embodiment, an example in which the entire learning process is guaranteed is disclosed. That is, in the first embodiment, the system provider proves that the updated parameters were correctly updated from the pre-update parameters, and that inference results were obtained using the updated parameters (hereinafter referred to as "proof items" in the first embodiment), and the system user verifies these proof items. The term "correctly updated" means that the updated model parameters were calculated through a proper update algorithm A.
[0016] Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration example of a parameter update guarantee system according to the first embodiment. In FIG. 1, a proving device 10, a verification device 20, and a third-party device 30 are connected via a network such as the Internet.
[0017] The proving device 10 is one or more computers operated by the system provider. The proving device 10 performs inference on data received from system users and outputs inference results. The proving device 10 also executes processing for proving the proof items when the parameters of the model f are updated.
[0018] The verification device 20 is one or more computers operated by system users. The verification device 20 transmits data to be inferred to the certification device 10 and receives the inference results for said data from the certification device 10. The verification device 20 also performs processing to verify the items to be certified.
[0019] The third-party device 30 is one or more computers operated by a third party that is neither the system provider nor a system user. The third party is not just any person, but for example, a "pre-model provider" that already possesses the parameters w of model f. The system provider purchases the parameters w of model f from the third party and updates w using its own dataset D to obtain the updated parameters w'.
[0020] Figure 2 shows an example of the hardware configuration of the certification device 10 in the first embodiment. The certification device 10 in Figure 2 includes a drive device 100, an auxiliary storage device 102, a memory device 103, a processor 104, and an interface device 105, etc., which are all interconnected by bus B.
[0021] The program that enables processing in the certification device 10 is provided on a recording medium 101 such as a CD-ROM. When the recording medium 101 containing the program is set in the drive device 100, the program is installed from the recording medium 101 to the auxiliary storage device 102 via the drive device 100. However, the program does not necessarily have to be installed from the recording medium 101; it may also be downloaded from another computer via a network. The auxiliary storage device 102 stores the installed program as well as necessary files and data.
[0022] The memory device 103 reads and stores a program from the auxiliary storage device 102 when a program startup command is received. The processor 104 is either a CPU or a GPU (Graphics Processing Unit), or both a CPU and a GPU, and executes functions related to the authentication device 10 according to the program stored in the memory device 103. The interface device 105 is used as an interface for connecting to a network.
[0023] The verification device 20 and the third-party device 30 may also have the same hardware configuration as shown in Figure 2.
[0024] Figure 3 shows an example of the functional configuration of the parameter update guarantee system in the first embodiment. In Figure 3, the certification device 10 includes a data set commitment unit 11, an update unit 12, an inference unit 13, a circuit generation unit 14, and a certification unit 15. Each of these units is realized by processing that one or more programs installed in the certification device 10 cause the processor 104 to execute.
[0025] The verification device 20 includes a request unit 21 and a verification unit 22. Each of these units is realized by a process in which one or more programs installed in the verification device 20 cause the processor of the verification device 20 to execute.
[0026] The third-party device 30 has a parameter commitment unit 31. The parameter commitment unit 31 is realized by a process in which one or more programs installed on the third-party device 30 cause the processor of the third-party device 30 to execute. The following describes the processing procedures performed in the parameter update guarantee system. Figure 4 is a sequence diagram illustrating an example of the processing procedures performed in the parameter update guarantee system in the first embodiment.
[0027] In step S101, the parameter commitment unit 31 of the third-party device 30 makes a commitment to the parameter w using, for example, a key pp generated by a third-party trust organization and a random number r generated by the third-party device 30. com w =Commit(w,pp,r) Here, com w This is data where w is concealed by commitment.
[0028] At any time after the execution of step S101, the parameter commitment unit 31 will com w The data is sent to the verification device 20 (S102).
[0029] In step S103, the dataset commitment unit 11 of the proof device 10 makes a commitment to dataset D using, for example, the key pp and a random number r' generated by the proof device 10. com D =Commit(D,pp,r') Here, com D This is data where D has been concealed by a commitment.
[0030] At any time after the execution of step S103, the dataset commitment unit 11 will D This is sent to the verification device 20 (S104).
[0031] Steps S101 and S102 may be performed by the proofing device 10. That is, the proofing device 10 may have a parameter commitment unit 31. In this case, the random number r is generated by the proofing device 10. In other words, the random number used for the commitment is generated by the person performing the commitment.
[0032] In step S105, the update unit 12 of the proof device 10 updates the parameters w of model f to w' based on an arbitrary update algorithm A, using dataset D as training data, so that model f fits dataset D. w'=A(w,D) Note that the execution timing of steps S101, S103, and S105 is not in any particular order.
[0033] At any time thereafter, the request unit 21 of the verification device 20 sends an inference request including data x to the proof device 10 (S106).
[0034] The inference unit 13 of the proofing device 10 inputs the data x into the model f based on the updated parameter w', and obtains the inference result y=f(w',x) of the model f (S107). The inference unit 13 transmits the inference result y to the verification device 20 (S108).
[0035] Next, the circuit generation unit 14 (GenerateCircuit) of the proof device 10 generates a software-like circuit C using y, x, w', w, and D, which calculates the inference result y=f(w',x) using the updated parameter w', in order to reduce the problem to a circuit satisfaction problem (S109). C=GenerateCirucuit(y,x,w',w,D) A "circuit" refers to a program that functions as a circuit.
[0036] Circuit C consists of "Circuit C1, which calculates y using w' and x," and "Circuit C2, which calculates w' using w and D." Therefore, y, x, w', w, and D are input to GenerateCircuit.
[0037] However, the circuit generation unit 14 may generate only a circuit C2 that calculates w' using w and D as inputs, excluding the circuit C1 that calculates y using w' and x. C2=GenerateCircuit(w',w,D) In this case, subsequent circuits C can be replaced by circuit C2.
[0038] Subsequently, the proving unit 15 (Prove) of the proving device 10 generates data π (hereinafter simply referred to as "certificate") that functions as a certificate for the proof statement based on a zero-knowledge proof using the circuit C, public key pp, and random numbers r and r' (S110). π=Prove(C,pp,r,r') The certificate can be generated using, for example, a method based on zero-knowledge proof disclosed in References 1, 2, and 3. The system provider receives the random number r along with the parameter w from a third party.
[0039] Subsequently, the proving unit 15 transmits the certificate π to the verification device 20 (S111).
[0040] Subsequently, the verification unit 22 (Verify) of the verification device 20 uses the committed pre-update parameter w (com w ), the committed dataset D (com D ), the certificate π, y, the data x, and the public key pp to verify the proof statement (that w' = A(w, D) holds and y = f(w', D) holds) (S112). {0,1}=Verify(com w ,com D ,π,y,x,pp) However, if the circuit C2 is generated, {0,1}=Verify(com w ,com D ,π,pp) it becomes.
[0041] The verification unit 22 (Verify) outputs 1 if the proof statement holds, and outputs 0 otherwise.
[0042] The verification method can also use, for example, a method based on zero-knowledge proof disclosed in References 1, 2, and 3.
[0043] As described above, according to the first embodiment, the system provider can prove the proof to the system user while keeping the parameters of model f confidential. Therefore, transparency regarding updates to the machine learning model can be improved while keeping the parameters of the machine learning model confidential.
[0044] [Second Embodiment] Next, a second embodiment will be described. The differences between the second embodiment and the first embodiment will be described. Points not specifically mentioned in the second embodiment may be the same as in the first embodiment.
[0045] In the second embodiment, an example is disclosed in which the certificate generation time of the first embodiment is reduced while guaranteeing that the parameters of model f have been partially updated. In the second embodiment, in order to reduce the proof time of the first embodiment, proof that parameter w' was updated from w using update algorithm A is omitted, and the system provider proves that a certain number of parameters have the same value before and after the update, and that the inference result was obtained using the updated parameters (hereinafter referred to as "proof items" in the second embodiment), and the system user verifies this. By proving that a certain number of parameters have the same value before and after the update, it is possible to prove, paradoxically, that a certain number of (i.e., at least some) model parameters have been updated.
[0046] Figure 5 shows an example of the functional configuration of the parameter update guarantee system in the second embodiment. In Figure 5, the same or corresponding parts as in Figure 3 are denoted by the same reference numerals.
[0047] In Figure 5, the certification device 10 does not have a data set commitment unit 11 and a circuit generation unit 14.
[0048] Figure 6 is a sequence diagram illustrating an example of a processing procedure performed in the parameter update guarantee system according to the second embodiment. In Figure 6, steps identical to those in Figure 4 are given the same step numbers, and their explanations are omitted.
[0049] In the second embodiment, the certification device 10 does not have a data set commitment unit 11 and a circuit generation unit 14, so in Figure 6, steps S103, S104 and S109 are not executed. Also, steps S105, S110 and S112 are replaced by steps S105a, S110a or S112a.
[0050] In step S105a, the update unit 12 uses the dataset D as training data and employs an update algorithm (PartialUpdate) that fixes some (k) of the parameters w and updates the remaining parameters (i.e., some of the parameters w) to obtain a w' in which some of the parameters w have been updated, so that the model f fits the dataset D. w'=PartialUpdate(w,k,D) Specific examples of PartialUpdate will be discussed later.
[0051] In step S110a, the proof unit 15 (PartialProve) of the proof device 10 generates a certificate π that proves the item to be proven, based on a zero-knowledge proof (partial zero-knowledge proof) technique that proves it is partially known, using the parameter w before the update, the parameter w' after the update, the data x, the inference result y, the key pp, and r. π=PartialProve(w',w,x,y,k,pp,r) The proof unit 15 may also generate a certificate π2 that proves that k of the parameters w' after the update match the parameters w before the update, the parameters w' after the update, the keys pp and r. π² = PartialProve(w',w,k,pp,r) In this case, you should replace π with π2 in subsequent certificates.
[0052] Any partial zero-knowledge proof can be used as a PartialProve.
[0053] In step S112a, the verification unit 22 (Verify) of the verification device 20 checks the committed pre-update parameter w(com w The proof is verified using data x, inference results y and k, certificate π, and key pp. {0,1}=Verify(com w ,x,y,k,π,pp) However, if certificate π2 is generated, {0,1}=Verify(com w ,k,π,pp) This is the result.
[0054] The verification unit 22 (Verify) outputs 1 if the proof is true, and 0 otherwise.
[0055] Next, we will explain some specific examples of PartialUpdate.
[0056] <Transfer Learning> Transfer Learning is a learning method that uses previously learned knowledge to solve a different problem. This reduces the learning cost and improves the performance of the model. In Transfer Learning, when the model is a neural network, it is generally known that the model parameters up to a certain layer are fixed, and the remaining parameters are trained using a dataset that solves the target problem. The system provider can prove with this embodiment that it is using parameters w' which are nk of the pre-committed parameters w that have been updated by Transfer Learning.
[0057] <fine-tuning> Fine-tuning is the process of training a pre-trained model to be tailored to each task. In fine-tuning, similar to transfer learning, the pre-trained model is not updated, but the parameters of the added layers are updated. The system provider can demonstrate that, in this embodiment, they are using parameters w' obtained by updating a set of nk newly added parameters through fine-tuning with respect to the pre-committed parameters w.
[0058] <Continual Learning(incremental learning, lifelong learning)> Continual Learning is a method that continuously learns new data and tasks while retaining previously learned knowledge. One type of Continual Learning is parameter isolation, which assigns parameters to a neural network for each task being learned. In this method, when learning a new task, the parameters that have already been learned are fixed, and the set of parameters assigned to the task is updated. The system provider can prove, through this embodiment, that they are using model parameters w' which are obtained by updating only the set of nk parameters that have been assigned from the pre-committed parameters w.
[0059] <pruning> Pruning is a technique for reducing the size of a neural network by compressing model parameters while minimizing the loss of accuracy. Specifically, it involves selecting neurons that are unnecessary for maintaining the accuracy of the neural network using some algorithm and setting their weights to 0. The system provider can demonstrate through this embodiment that they are using model parameters w' which are obtained by updating only the nk parameters that are unnecessary for maintaining accuracy from the pre-committed parameters w.
[0060] As described above, according to the second embodiment, the system provider can prove the proof to the system user while keeping the parameters of model f confidential. Therefore, transparency regarding updates to the machine learning model can be improved while keeping the parameters of the machine learning model confidential.
[0061] Furthermore, according to the second embodiment, the generation time and verification time of the certificate guaranteeing updates can be accelerated compared to the first embodiment. Therefore, it is particularly suitable when parameter updates are performed frequently.
[0062] In the above embodiment, circuit C2 is an example of a first circuit. Circuit C is an example of a second circuit.
[0063] [References] [Reference 1] Bryan Parno and Craig Gentry, "Pinocchio: Nearly Practical Verifiable Computation", IEEE S & P 2013 [Reference 2] Jens Groth and Amit Sahai, "Efficient Non-interactive Proof Systems for Bilinear Groups", IACR 2007 [Reference 3] Bunz et al., "Bulletproofs: Short Proofs for Confidential Transactions and More", IEEE S&P 2018 Although embodiments of the present invention have been described in detail above, the present invention is not limited to these specific embodiments, and various modifications and changes are possible within the scope of the gist of the present invention as described in the claims. [Explanation of symbols]
[0064] 10. Proof device 11. Dataset Commitment Section 12 Update section 13 Reasoning part 14 Circuit generation section 15 Certification Section 20 Verification device 21 Request part 22 Verification Department 30 Third party equipment 31 Parameter Commitment Section 100 drive unit 101 Recording media 102 Auxiliary storage 103 Memory device 104 Processors 105 Interface device B Bus< / pruning>
Claims
1. A parameter update assurance system including a certification device and a verification device, The aforementioned certification device is An update unit configured to update the parameters of a machine learning model based on a certain dataset and a certain update algorithm, An inference unit configured to obtain the inference result for certain data using the updated machine learning model, A circuit generation unit is configured to generate a first circuit that calculates the updated parameters using the pre-update parameters and the dataset as inputs, based on the parameters before and after the update, and the dataset. A proof unit configured to generate a certificate using the first circuit and key based on zero-knowledge proof, It has, The verification device is A verification unit configured to verify the parameters before and after the update committed using the key, the certificate, that the update has been performed, and that the inference result has been obtained based on the updated parameters, A parameter update guarantee system characterized by having the following features.
2. The circuit generation unit is configured to generate a second circuit, which includes the first circuit, based on the inference result, the data, the parameters before and after the update, and the dataset, and calculates the same inference result for the data as the machine learning model after the parameter update. The proofing unit is configured to generate a certificate using the second circuit and key based on zero-knowledge proof. The parameter update guarantee system according to claim 1, characterized in that it is a parameter update guarantee system as described in claim 1.
3. A parameter update assurance system including a certification device and a verification device, The aforementioned certification device is An update unit configured to update some parameters of a machine learning model based on a certain dataset and a certain update algorithm, An inference unit configured to obtain the inference result for certain data using the updated machine learning model, A proof unit is configured to generate a certificate based on zero-knowledge proofs using the parameters before and after the update, the data, the inference result, and the key, It has, The verification device is A verification unit configured to verify that the inference result was obtained based on the updated parameters, based on the pre-update parameters, certificate, inference result, data, and key committed using the key, A parameter update guarantee system characterized by having the following features.
4. An update unit that updates the parameters of a machine learning model based on a certain dataset and a certain update algorithm, An inference unit that obtains the inference result for certain data using the updated machine learning model, A circuit generation unit generates a first circuit that calculates the updated parameters using the pre-update parameters and the dataset as inputs, based on the parameters before and after the update, and the dataset. A proof unit that generates a certificate using the first circuit and key based on zero-knowledge proof, and transmits the certificate to a verification device that verifies the pre- and post-update parameters committed using the key, the certificate, that the update has been performed, and that the inference result has been obtained based on the updated parameters, A certification device characterized by having the following features.
5. An update unit that updates some parameters of a machine learning model based on a certain dataset and a certain update algorithm, An inference unit that obtains the inference result for certain data using the updated machine learning model, A proof unit generates a certificate using the parameters, data, inference results, and key before and after the update, based on zero-knowledge proofs, and transmits the certificate to a verification device that verifies that the inference results were obtained based on the updated parameters, based on the pre-update parameters, certificate, inference results, data, and key committed using the key. A certification device characterized by having the following features.
6. The certification device, An update procedure for updating the parameters of a machine learning model based on a certain dataset and an update algorithm, An inference procedure for obtaining an inference result for certain data using the updated machine learning model, A circuit generation procedure for generating a first circuit that calculates the updated parameters using the pre-update parameters and the dataset as inputs, based on the parameters before and after the update, and the dataset; A proof procedure that generates a certificate using the first circuit and key based on a zero-knowledge proof, Execute, The verification device, A verification procedure for verifying that the inference result was obtained based on the parameters before and after the update committed using the key, the certificate, that the update was performed, and the updated parameters. Execute A parameter update guarantee method characterized by the following features.
7. The certification device, An update procedure for updating some parameters of a machine learning model based on a certain dataset and an update algorithm, An inference procedure for obtaining an inference result for certain data using the updated machine learning model, A proof procedure that generates a certificate based on zero-knowledge proofs using the parameters before and after the update, the data, the inference result, and the key, Execute, The verification device, A verification procedure for verifying that the inference result was obtained based on the updated parameters, using the pre-update parameters, certificate, inference result, data, and key committed using the aforementioned key. Execute A parameter update guarantee method characterized by the following features.
8. A program characterized by causing a computer to function as a certification device according to claim 4 or 5.
Citation Information
Patent Citations
Method for verifying convolutional neural network model and device thereof
US20210406436A1
