|
Algorithm 1 Model extraction attack algorithm. Given a data set X, a substitute model with initial parameters , and a target model G, return a substitute model with similar functionality to G. Notice that the update of Z and can also be placed in the inner loop; here, it is placed outside for the sake of brevity: |
|
|
|
|
|
|
▹ Query substitute model |
|
▹ Initialize the consistency regularization |
|
|
▹ Leave high confidence data |
-
10:
for t in [1, epochs] do
|
|
▹ Train substitute model |
-
12:
|
▹ supervised loss |
-
13:
|
▹ unsupervised loss |
|
|
|
▹ accumulate ensemble predictions |
|
▹ bias correction |
|
|