| Algorithm 1: The embedded watermark model. |
|
Input: The model (the model level ), important parameters of , value of important parameters , neuron number set , ratio of the number of layers to be embedded c, watermark information B, translation T, precision R, random matrix D, random value k, watermark m in a level. Output: Watermarked model . Step 1: For each level to calculate the unimportance Step 2: Sort , select the top layers (a total number of L layers) in the order. Step 3: Estimate the proportion of important parameters in these selected layers by watermark information B; obtain , which represents the wet-block position. Step 4: Convert floating-point into a nonnegative integer b (watermark information B) through . Then convert nonnegative integer b to floating-point through . Step 5: Generate a random matrix D and a random value k and obtain H by D and k. Record these values. Step 6:b is divided equally, are denoted as m, X is obtained by in . Step 7: Embed watermark m; after embedding m each time, . Repeat Steps 5–7 until . |