# US 2024/0256900 A1 · Method for building blockchain-based secure aggregation in federated learning with data removal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0256900 A1
- Document ID: US20240256900A1
- Status: Published application
- Kind: A1
- Application number: 18/613,006
- Filed: 2024-03-21
- Published: 2024-08-01
- Earliest claimed: 2023-10-27
- Assignees: Jinan University
- Applicants: Jinan University
- Inventors: Jiasi WENG; Yongdong WU; Jian WENG; Ming LI; Jianan LIU; Anjia YANG; Yejian LIANG
- Web page: https://patentgrep.com/patent/US20240256900A1

## CPC

- G06N 3/098: Distributed learning, e.g. federated learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Method, device and system for building blockchain-based secure aggregation in federated learning with data removal are provided. The method includes: selecting a first quantity of client nodes, to participate in an i-th iteration; sending a list of the selected client nodes to each of the first quantity of client nodes; acquiring model training information transmitted by each of a second quantity of client nodes, the model training information being transmitted in a form of cypher text, where the cypher text is generated by performing homomorphic encryption on the model training information based on pairwise seeds computed for each of the first quantity of client nodes from a symmetric bivariate polynomial and a private seed computed from asymmetric bivariate polynomial; aggregating the cypher text to obtain an aggregate result; and broadcasting a list of the second quantity of client nodes and the aggregate result via a blockchain.

## Claims

### Claim 1

A method for building blockchain-based secure aggregation in federated learning with data removal, applied by a server in a system for building blockchain-based secure aggregation in federated learning with data removal, comprising:
selecting, from a plurality of client nodes each being provided with a unique identifier id in the system, a first quantity of client nodes, to participate in an i-th iteration of the federated learning, where i is an integer;
sending a list of the selected client nodes to each of the first quantity of client nodes;
acquiring model training information transmitted by each of a second quantity of client nodes among the first quantity of client nodes, the model training information being transmitted in a form of cypher text, and being obtained by the client nodes through training local models with local training data, wherein the cypher text is generated by performing homomorphic encryption on the model training information based on pairwise seeds computed for each of the first quantity of client nodes from a symmetric bivariate polynomial and a private seed computed from asymmetric bivariate polynomial;
aggregating the cypher text of the model training information to obtain an aggregate result; and
broadcasting a list of the second quantity of client nodes and the aggregate result via a blockchain.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
for a (i+1)-th iteration, sending a list of a third quantity of client nodes together with an aggregate result of model training information previously transmitted from the second quantity of client nodes, to each of the third quantity of client nodes, for allowing the third quantity of client nodes to reconstruct local models to be used in the (i+1)-th iteration, wherein the third quantity of client nodes are a subset of the second quantity of client nodes.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the symmetric bivariate polynomial denoted by F(x, y) and the asymmetric bivariate polynomial denoted by G(x, y) are selected and sent to the client nodes by a one-time dealer in an initialization process.

### Claim 4 (depends on 3)

The method according to claim 3, wherein for any client node id, the pairwise seed computed for another client node with identifier id′ from the symmetric bivariate polynomial is fid1(id′)=F(id, id′), where F(id, id′)=F(id′, id).

### Claim 5 (depends on 4)

The method according to claim 4, wherein the cypher text cid generated by the client node id is generated by:
c
id
←
x
id
+
∑
id
⁢
′
∈
U
1
⁢
\
⁢
id
Δ
·
PRG
⁡
(
f
id
1
(
id
′
)
)
+
PRG
⁡
(
g
id
2
(
0
)
⁢

1
)
⁢
(
mod
⁢
p
)
where
Δ
=
{
1
⁢
if
⁢
id
<
id
′
-
1
⁢
if
⁢
id
>
id
′
wherein xid represents the model training information obtained by the client node id, U1 represents a set of identities of the first quantity of client nodes, PRG represents a Pseudo-Random Generator, gid2(0) represents the private seed computed from the asymmetric bivariate polynomial G(0, id), p represents a roughly λ-bit prime, and λ is a security parameter.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
acquiring the cipher text cid and a tag tagid transmitted by each of the second quantity of client nodes, wherein the cipher text cid and the tag tagid are computed by MaskAndMAC(pp, sk, id, xid)→(cid, tagid), wherein pp represents a public parameter component available to the server and the client nodes, sk represents secret key secretly shared among the client nodes, and xid represents the model training information of the client node id;
aggregating respective tags into an aggregate tag; and
broadcasting the aggregate tag associated with the aggregate result via the blockchain.

### Claim 7

A method for building blockchain-based secure aggregation in federated learning with data removal, applied by a first client node in a system for building blockchain-based secure aggregation in federated learning with data removal, comprising:
receiving, from a server in the system, a list of selected client nodes, wherein the selected client nodes are in a first quantity and are selected to participate in an i-th iteration of the federated learning by the server from a plurality of client nodes in the system, each of the selected client nodes is provided with a unique identifier id, and the first client node is one of the first quantity of the selected client nodes, i is an integer;
acquiring model training information by training a local model with local training data;
generating cypher text of the model training information by performing homomorphic encryption on the model training information based on pairwise seeds computed for each of the first quantity of client nodes from a symmetric bivariate polynomial and a private seed computed from asymmetric bivariate polynomial; and
sending the cypher text of the model training information to the server.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the symmetric bivariate polynomial F(x, y) and the asymmetric bivariate polynomial G(x, y) are selected and sent to the client nodes by a one-time dealer in an initialization process.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
computing, for the identifier id of the first client node, the cipher text cid and a tag tagid by MaskAndMAC(pp, sk, id, xid)→(cid, tagid), wherein pp represents a public parameter component available to the server and the client nodes, sk represents secret key secretly shared among the client nodes, and xid represents the model training information of the first client node id;
sending the cipher text cid and the tag tagid to the server.

### Claim 10 (depends on 8)

The method according to claim 8, wherein for the first client node id, the pairwise seed computed for another client node with identifier id′ from the symmetric bivariate polynomial is fid1(id′)=F(id, id′), where F(id, id′)=F(id′, id).

### Claim 11 (depends on 10)

The method according to claim 10, wherein the cypher text cid generated by the client node id is generated by:
c
id
←
x
id
+
∑
id
⁢
′
∈
U
1
⁢
\
⁢
id
Δ
·
PRG
⁡
(
f
id
1
(
id
′
)
)
+
PRG
⁡
(
g
id
2
(
0
)
⁢

1
)
⁢
(
mod
⁢
p
)
where
Δ
=
{
1
⁢
if
⁢
id
<
id
′
-
1
⁢
if
⁢
id
>
id
′
wherein xid represents the model training information obtained by the client node id, U1 represents a set of identities of the first quantity of client nodes, PRG represents a Pseudo-Random Generator, gid2(0) represents the private seed computed from the asymmetric bivariate polynomial G(0, id), p represents a roughly λ-bit prime, and λ is a security parameter.

### Claim 12 (depends on 8)

The method according to claim 8, further comprising,
for an (i+1)-th iteration:
acquiring, from the server, a list of a third quantity of client nodes together with an aggregate result of model training information previously transmitted from the second quantity of client nodes; and
reconstructing a local model to be used in the (i+1)-th iteration by using the list of the third quantity of client nodes together with the aggregate result of model training information previously transmitted from the second quantity of client nodes.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the reconstructing the local model to be used in the (i+1)-th iteration comprises:
computing private seeds (gid1(id′), gid2(id′)), for each of the third quantity of client nodes, which is of identifier id′, wherein gid1(id′)=G(id, id′), gid2(id′)=G(id′, id), id′∈U3\id, U3 represents a set of the identifiers of the third quantity of client nodes;
transmitting Lagrange Components of shares {gid′2(id)·Lid′}id′∈U2 for recovering each gid′2(0) and corresponding shares for {fid′2(id″)}id″∈U2\U3∧id″∈U1\U2 via one-time encryption with previous pairwise shared keys, wherein Lid′ represents Lagrange Component, U1 represents a set of the identifiers of the first quantity of client nodes, and U2 represents a set of the identifiers of the second quantity of client nodes;
reconstructing the local model using the shares above from id′∈U3.

### Claim 14 (depends on 8)

The method according to claim 8, further comprising:
acquiring, from the block-chain, an aggregate tag associated with the aggregate result of model training information previously transmitted from the third quantity of client nodes, and
before reconstructing the local model, verifying correctness of the aggregate result by checking validity of the aggregate tag against the aggregate result,
wherein the aggregate tag is aggregated by the server from tags of the client nodes.

### Claim 15 (depends on 1)

A server comprising a processor configured to implement the method according to claim 1.

### Claim 16 (depends on 7)

A client device comprising a processor configured to implement the method according to claim 7.

### Claim 17

A system for building blockchain-based secure aggregation in federated learning with data removal, comprising a server, a plurality of client nodes, and a block chain, wherein:
the server is configured for:
selecting, from the plurality of client nodes each being provided with a unique identifier id in the system, a first quantity of client nodes, to participate in an i-th iteration of the federated learning, where i is an integer;
sending a list of the selected client nodes to each of the first quantity of client nodes;
acquiring model training information transmitted by each of a second quantity of client nodes among the first quantity of client nodes, the model training information being transmitted in a form of cypher text;
aggregating the cypher text of the model training information to obtain an aggregate result; and
broadcasting a list of the second quantity of client nodes and the aggregate result via the blockchain; and
each of the plurality of client nodes is configured for:
receiving, from a server in the system, the list of selected first quantity client nodes;
acquiring model training information by training a local model with local training data;
generating cypher text of the model training information by performing homomorphic encryption on the model training information based on pairwise seeds computed for each of the first quantity of client nodes from a symmetric bivariate polynomial and a private seed computed from asymmetric bivariate polynomial; and
sending the cypher text of the model training information to the server.

### Claim 18 (depends on 17)

The system according to claim 17, wherein the symmetric bivariate polynomial is F(x, y) and the asymmetric bivariate polynomial is G(x, y), the pairwise seed computed for another client node with identifier id′ from the symmetric bivariate polynomial is fid1(id′)=F(id, id′), where F(id, id′)=F(id′, id), the cypher text cid generated by the client node id is generated by:
c
id
←
x
id
+
∑
id
⁢
′
∈
U
1
⁢
\
⁢
id
Δ
·
PRG
⁡
(
f
id
1
(
id
′
)
)
+
PRG
⁡
(
g
id
2
(
0
)
⁢

1
)
⁢
(
mod
⁢
p
)
where
Δ
=
{
1
⁢
if
⁢
id
<
id
′
-
1
⁢
if
⁢
id
>
id
′
wherein xid represents the model training information obtained by the client node id, U1 represents a set of identities of the first quantity of client nodes, PRG represents a Pseudo-Random Generator, gid2(0) represents the private seed computed from the asymmetric bivariate polynomial G(0, id), p represents a roughly λ-bit prime, and λ is a security parameter.
