IP Library › Granted Patent US 12,316,737
Granted Patent B2
US 12,316,737 · App. 18/084,773 · Granted May 27, 2025

Method for verifying model update

Inventors: Chih-Fan Hsu (Taipei, TW); Wei-Chao Chen (Taipei, TW); Jing-Lun Huang (Taipei, TW); Ming-Ching Chang (Taipei, TW); Feng-Hao Liu (Taipei, TW)
Assignees: Inventec (Pudong) Technology Corporation; INVENTEC CORPORATION
H04L9/008G06N20/00H04L9/14H04L9/3242
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,316,737
App. No.
18/084,773
Granted
May 27, 2025
Kind
B2
Abstract

The federated learning system includes a moderator and client devices. Each client device performs a method for verifying model update as follows: receiving a hash function and a general model; training a client model according to the general model and raw data; calculating a difference as an update parameter between the general model and the client model, sending the update parameter to the moderator; inputting the update parameter to the hash function to generate a hash value; sending the hash value to other client devices, and receiving other hash values; summing all the hash values to generate a trust value; receiving an aggregation parameter calculated according to the update parameters; inputting the aggregation parameter to the hash function to generate a to-be-verified value; and updating the client model according to the aggregation parameter when the to-be-verified value equals the trust value.

Claims (45)

1. A method for verifying model update applicable to a federated learning system having a moderator and a plurality of client devices, wherein the method comprises a plurality of steps performed by each of the plurality of client devices and the plurality of steps comprises:

receiving a hash function and a general model from the moderator;

training a client model according to the general model and raw data;

calculating a difference between the general model and the trained client model as an update parameter;

sending the update parameter to the moderator;

inputting the update parameter to the hash function to generate a hash value;

sending the hash value to the plurality of client devices other than the client device performing the method and receiving a plurality of other hash values;

summing the hash value and the plurality of other hash values to generate a trust value;

receiving an aggregation parameter from the moderator, wherein the aggregation parameter is calculated by the moderator according to the update parameter from each of the plurality of client devices;

inputting the aggregation parameter to the hash function to generate a to-be-verified value;

comparing the to-be-verified value and the trust value, and updating the trained client model according to the aggregation parameter when the to-be-verified value equals the trust value.

2. The method for verifying model update of claim 1 , wherein the hash function is additively homomorphic hash function.

3. The method for verifying model update of claim 1 , wherein calculating the difference between the general model and the trained client model as the update parameter by each of the plurality of client devices comprises:

calculating the difference between the general model and the trained client model; and

performing a quantization procedure to convert the difference from a floating-point type to an integer type.

4. The method for verifying model update of claim 1 , wherein:

calculating the difference between the general model and the trained client model as the update parameter by each of the plurality of client devices comprises: encrypting the difference according to a public key to generate the update parameter by each of the plurality of client devices; and

updating the trained client model according to the aggregation parameter comprises: decrypting the aggregation parameter according to a private key and updating the trained client model according to the decrypted aggregation parameter by each of the plurality of client devices.

5. The method for verifying model update of claim 4 , further comprising: performing a KeyGen protocol of a threshold additive homomorphic encryption to generate the public key and the private key by each of the plurality of client devices.

6. A method for verifying model update applicable to a federated learning system having a plurality of moderators and a plurality of client devices, wherein the method comprises a plurality of steps performed by each of the plurality of client devices and the plurality of steps comprises:

receiving a general model from the federated learning system;

training a client model according to the general model and raw data;

calculating a difference between the general model and the trained client model;

generating an update parameter by encrypting the difference with a public key;

sending the update parameter to the plurality of moderators;

receiving a plurality of aggregation parameters from the plurality of moderators, wherein each of the plurality of aggregation parameters is calculated by each of the plurality of moderators according to the update parameter;

searching a mode in the plurality of aggregation parameters;

generating a decrypted result according to the mode and a private key when a number of modes exceeds half of a number of aggregation parameters; and

updating the trained client model according to the decrypted result.

7. The method for verifying model update of claim 6 , wherein each of the plurality of client devices performs a KeyGen protocol of a threshold additive homomorphic encryption to generate the public key and the private key.

8. A method for verifying model update applicable to a federated learning system having a plurality of moderators and a plurality of client devices, wherein the method comprises a plurality of steps performed by each of the plurality of client devices and the plurality of steps comprises:

receiving a hash function and a general model from one of the plurality of moderators;

training a client model according to the general model and raw data;

calculating a difference between the general model and the trained client model;

generating an update parameter by encrypting the difference with a public key;

sending the update parameter to the plurality of moderators;

inputting the update parameter to the hash function to generate a hash value;

sending the hash value to the plurality of client devices other than the client device performing the method and, receiving a plurality of other hash values;

summing the hash value and the plurality of other hash values to generate a trust value;

receiving a plurality of aggregation parameters from the plurality of moderators, wherein each of the plurality of aggregation parameters is calculated by each of the plurality of moderators according to the update parameter;

inputting each of the plurality of aggregation parameters to the hash function to generate a plurality of to-be-verified values;

comparing each of the plurality of to-be-verified values and the trust value sequentially; and

when one of the plurality of to-be-verified values equal to the trust value is found, decrypting one of the plurality of aggregation parameters corresponding to the one of the plurality of to-be-verified values equal to the trust value according to a private key and updating the trained client model according to the decrypted one of the plurality of aggregation parameters.

9. The method for verifying model update of claim 8 , wherein the hash function is additively homomorphic hash function.

10. The method for verifying model update of claim 8 , wherein each of the plurality of client devices performs a KeyGen protocol of a threshold additive homomorphic encryption to generate the public key and the private key.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 20, 2022
From: HSU, CHIH-FAN; CHEN, WEI-CHAO; HUANG, JING-LUN; CHANG, MING-CHING; LIU, FENG-HAO
To: INVENTEC (PUDONG) TECHNOLOGY CORPORATION; INVENTEC CORPORATION
Reel/Frame 062156/0303 →
Priority Claims (1)
CN 202211049547.1 · Aug 30, 2022 · national
Continuity (1)
Related Publication 20240080180A1 · Mar 7, 2024
References Cited (4)
US 11227187B1 · Weinberger · 2022 [cited by examiner]
US 11580535B2 · Snow · 2023 [cited by examiner]
US 20090279699A1 · Noda · 2009 [cited by examiner]
US 20180316502A1 · Nadeau · 2018 [cited by examiner]