Backdoor-based federated deep reinforcement learning method for intellectual property protection
By embedding a watermark key and modifying the reward value in federated deep reinforcement learning, combined with a black-box watermark verification scheme, the problem of the lack of a reinforcement learning watermark framework in existing technologies is solved, and the intellectual property protection and privacy guarantee of the model are achieved.
Patent Information
- Application Number
- CN202311350234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-18
AI Technical Summary
Most existing federated learning model watermarking is based on image classification. There is no federated deep reinforcement learning watermarking framework for reinforcement learning. Furthermore, existing white-box model watermarking requires access to the model's internal structure and parameters, making it unsuitable for black-box environments.
A backdoor-based federated deep reinforcement learning approach is adopted. The watermark key is distributed by the coordination server, the client embeds the watermark key and modifies the reward value during the interaction, and the coordination server performs model aggregation and verification to achieve black-box watermark embedding and ownership declaration.
It achieves intellectual property protection for federated deep reinforcement learning models without accessing the model's internal structure, resists the "lazy" behavior of training nodes, and ensures the uniqueness and privacy of model ownership.
Smart Images

Figure CN117350372B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intellectual property protection, and more particularly to a method for protecting intellectual property based on backdoor-based federated deep reinforcement learning. Background Technology
[0002] Reinforcement learning is a branch of machine learning that studies how agents learn optimal behavioral policies through interaction with their environment to maximize cumulative rewards. The core idea of reinforcement learning is based on trial-and-error learning. The agent interacts with its environment, takes actions based on the current state, and observes the environment's feedback, thereby continuously adjusting its policy to maximize long-term cumulative rewards.
[0003] Federated learning, a machine learning solution addressing data silos and privacy protection, was first proposed by H. Brendan McMahan et al. and applied to Google's Gboard input method for predicting candidate words. In contrast to centralized learning, where the model remains stationary while the data moves, federated learning operates on a "data-stationary, model-moving" model. During federated learning, participants do not exchange sample data or its variants; they only exchange intermediate data related to the model and its variants. The main server then securely aggregates the intermediate data and feeds it back to the participants. The participants are then responsible for updating their own models based on the aggregated model information, effectively ensuring the security and privacy of sensitive data from each participant. This achieves the goal of protecting privacy while integrating the knowledge contained in the data from multiple participants.
[0004] Federated deep reinforcement learning, as a special type of distributed reinforcement learning, has attracted much attention due to its privacy-preserving characteristics and is gradually being applied in fields with certain privacy protection needs, such as the Internet of Things, communications, robotics, and personalized services. Currently, most federated learning model watermarking research is based on image classification models, and there is still no federated deep reinforcement learning watermarking framework specifically for reinforcement learning.
[0005] The existing technology, "A Method and Application for Watermarking and Strengthening of Federated Learning Models Based on Blockchain Technology," generates watermark information based on the convolution kernel information obtained from the model and a randomly generated projection matrix. This watermark information, combined with identity information, is added as a regularization term to the original loss function. The model parameters are then optimized using this new loss function with the added regularization term to embed the watermark and identity information into the model. This approach is white-box based. Meanwhile, "A Federated Learning Method for Artificial Intelligence Models Combining Homomorphic Encryption and Model Watermarking" also embeds watermarks into the model parameters, and is also a white-box watermark embedding method. White-box model watermarking: a technique for watermark embedding and verification under the premise of access to the model's internal structure and parameters. Summary of the Invention
[0006] The purpose of this invention is to provide an intellectual property protection method for federated deep reinforcement learning based on backdoors, so as to protect the federated deep reinforcement learning model.
[0007] The technical solution adopted in this invention is:
[0008] A backdoor-based approach to intellectual property protection in federated deep reinforcement learning includes the following steps:
[0009] Step S1: The coordination server distributes the initial global model to online data nodes and distributes a network-unique watermark key to each online data node;
[0010] Step S2: In each round of federated deep reinforcement learning, the online data node uses a deep reinforcement learning agent to interact with the environment, randomly embeds the watermark key from the next training state obtained from the environment, and modifies the reward value corresponding to the state, thereby gaining experience data and optimizing its own policy, i.e. updating the local model parameters.
[0011] Step S3: After the coordination server collects local model parameters that are no less than the set threshold and not all of the participating agents, it executes the model aggregation algorithm to form a global model, thus completing this round of federated deep reinforcement learning.
[0012] Step S4: Until the global model meets the requirements or the federated deep reinforcement learning rounds reach the specified number, each node is required to upload the final model and obtain the global model through aggregation and distribute it to each client;
[0013] Step S5: For suspicious models, embed the unique key of the entire network into the state of interaction with the environment to obtain the agent's score and action execution ratio in the watermark state;
[0014] Step S6: When the performance of the suspicious model agent drops sharply and it performs a watermarking action while in a state with the embedded watermark key, the suspicious model can be considered a protected model.
[0015] Furthermore, the reward value corresponding to the state in step S2 is obtained by the interaction between the environment and the agent of the initial state corresponding to the watermark seed.
[0016] Furthermore, step S2 employs the WMEMB algorithm, which comprises two stages: a state watermark embedding stage and a state reward modification stage; the details are as follows:
[0017] During the state watermark embedding stage, several states are randomly selected from the standard training states, and a specific watermark is added to the selected states.
[0018] During the state reward modification phase, the reward value of the watermarked state is modified and the agent is trained to learn the corresponding watermark. During the training process on each client, the selected state is watermarked, the action of the corresponding selected state is modified to the watermark action, and then the corresponding reward value is set to 1.
[0019] Furthermore, the STAEMB watermark state embedding algorithm is used in the state watermark embedding stage, specifically as follows:
[0020] During the state watermark embedding stage, a watermark key is used to embed the watermark. Sum of coefficients The watermark is embedded into the normal state. The specific expression is as follows:
[0021]
[0022] in, The coordinates of the watermarked state are ( The pixels of ) Indicates a watermark; The coordinates under normal conditions are ( (pixels).
[0023] Furthermore, as a feasible implementation method, the key area of each state is... Fixed at 1, other areas All are 0.
[0024] Further, the specific method of step S5 is as follows: First, obtain the initial state from the environment, embed the watermark key into the obtained state to obtain the watermark state, let the agent of the suspicious model derive the next action based on the watermark state, record it as the watermark action, and let the environment execute this action to obtain the next state and reward value, then repeat the state watermark embedding, the agent derives the action, and the action is executed until the game ends.
[0025] Furthermore, step S5 specifically involves this patent using two indicators to verify the existence of the watermark.
[0026] 1. Performance Gap: The performance gap is used to measure the performance difference between the watermarked model and the standard model. In evaluating the performance gap, this paper sets all the states required for interaction by the watermarked model as watermarked states, allowing the watermarked model to autonomously choose its next action based on these watermarked states, while simultaneously observing the performance of the watermarked model under the standard state. The cumulative reward at the end of the game is a key indicator for measuring model performance. By comparing the cumulative reward of the watermarked model under the watermarked state with the cumulative reward of the standard model under the standard state, the performance gap between the watermarked model and the standard model can be evaluated. This comparison helps to understand the impact of watermarking on model performance.
[0027] 2. Watermarking Action Implementation Ratio: This patent proposes a novel evaluation metric for watermarking in federated deep reinforcement learning models. To calculate this ratio, the patent first statistically analyzes the proportion of watermarked models performing watermarking actions in the watermarked state, and then compares this ratio with the proportion of unwatermarked models performing watermarking actions in the watermarked state. This comparison helps determine whether the watermark embedding was successful and whether the watermark influences the agent's decision-making.
[0028] In this federated DRL model, any node's trainer only has its own key, which allows it to claim partial ownership of the model but not complete ownership. The aggregation server, on the other hand, possesses all keys and can claim complete ownership of the model relative to any other node. Furthermore, this verification scheme is resistant to the "laziness" of training nodes. When a model node has not trained a model and submits the original model directly upon submission, the watermark cannot be detected based on the key during ownership verification.
[0029] This invention employs the above technical solution to apply watermarking to federated deep reinforcement learning. Since each client only possesses its own watermark key, each client cannot individually claim ownership of the model. The server possesses all the watermark keys, thereby enabling it to claim ownership of the federated deep reinforcement learning model. Attached Figure Description
[0030] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments;
[0031] Figure 1 This is a schematic diagram illustrating the principle framework of the backdoor-based federated deep reinforcement learning intellectual property protection method of this invention.
[0032] Figure 2 This is a flowchart illustrating the intellectual property protection method of the backdoor-based federated deep reinforcement learning of this invention. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0034] This invention primarily focuses on federated deep reinforcement learning watermarking. Unlike typical federated learning watermarking, which targets image classification tasks, federated deep reinforcement learning watermarking considers embedding watermarks into reinforcement learning models. Reinforcement learning is a learning method where an agent learns the optimal policy through a series of interactions with its environment, and its watermark embedding method differs from ordinary classification learning. This invention, specifically for federated reinforcement learning, aims to acquire the optimal policy.
[0035] like Figure 1 As shown in Figure 2, this invention discloses an intellectual property protection method for backdoor-based federated deep reinforcement learning, comprising the following steps:
[0036] Step S1: The coordination server distributes the initial global model to online data nodes and distributes a network-unique watermark key to each online data node;
[0037] Step S2: In each round of federated deep reinforcement learning, the online data node uses a deep reinforcement learning agent to interact with the environment, randomly embeds the watermark key from the next training state obtained from the environment, and modifies the reward value corresponding to the state, thereby gaining experience data and optimizing its own policy, i.e. updating the local model parameters.
[0038] Step S3: After the coordination server collects local model parameters that are no less than the set threshold and not all of the participating agents, it executes the model aggregation algorithm to form a global model, thus completing this round of federated deep reinforcement learning.
[0039] Specifically, a threshold for the number of participating agents is set on the coordination server side. When the number of agents collected by the coordination server reaches or exceeds the threshold, it can be considered that a sufficient number of local model parameters have been collected.
[0040] Step S4: Until the global model meets the requirements or the federated deep reinforcement learning rounds reach the specified number, each node is required to upload the final model and obtain the global model through aggregation and distribute it to each client;
[0041] Step S5: For a suspicious model, embed the network-wide unique key into the state of interaction with the environment to obtain the agent's score and action execution ratio in the watermarked state; The purpose of this invention is to protect the intellectual property rights of federated reinforcement learning. After a federated learning model is leaked, when the owner of the model suspects that a similar external model is a protected model (i.e., a suspicious model), a backdoor is used to verify the ownership of the model.
[0042] Specifically, a score typically refers to the cumulative reward an agent earns in a specific task or round. It can be used to evaluate an agent's performance in a specific environment. A higher score indicates better performance in the task, while a lower score indicates worse performance.
[0043] Watermarking Action Implementation Ratio: This patent proposes a novel evaluation metric for watermarking in federated deep reinforcement learning models. To calculate this ratio, the patent first statistically analyzes the proportion of watermarked models performing watermarking actions in the watermarked state, and then compares this ratio with the proportion of unwatermarked models performing watermarking actions in the watermarked state. This comparison helps determine whether the watermark embedding was successful and whether the watermark influences the agent's decision-making.
[0044] Step S6: When the performance of the suspicious model agent drops sharply and it performs a watermarking action while in a state with the embedded watermark key, the suspicious model can be considered a protected model.
[0045] Furthermore, the reward value corresponding to the state in step S2 is obtained by the interaction between the environment and the agent of the initial state corresponding to the watermark seed.
[0046] Furthermore, step S2 employs the WMEMB algorithm, which comprises two stages: a state watermark embedding stage and a state reward modification stage; the details are as follows:
[0047] During the state watermark embedding stage, several states are randomly selected from the standard training states, and a specific watermark is added to the selected states.
[0048] During the state reward modification phase, the reward value of the watermarked state is modified and the agent is trained to learn the corresponding watermark. During the training process on each client, the selected state is watermarked, the action of the corresponding selected state is modified to the watermark action, and then the corresponding reward value is set to 1.
[0049] Furthermore, the STAEMB watermark state embedding algorithm is used in the state watermark embedding stage, specifically as follows:
[0050] During the state watermark embedding stage, a watermark key is used to embed the watermark. Sum of coefficients The watermark is embedded into the normal state. The specific expression is as follows:
[0051]
[0052] in, A state is a scene at a certain moment.
[0053] Furthermore, as a feasible implementation method, the state key area is divided into... Fixed at 1, other areas All are 0.
[0054] Further, the specific method of step S5 is as follows: First, obtain the initial state from the environment, embed the watermark key into the obtained state to obtain the watermark state, let the agent of the suspicious model derive the next action based on the watermark state, record it as the watermark action, and let the environment execute this action to obtain the next state and reward value, then repeat the state watermark embedding, the agent derives the action, and the action is executed until the game ends.
[0055] Furthermore, step S5 specifically involves this patent using two indicators to verify the existence of the watermark.
[0056] 1. Performance Gap: The performance gap is used to measure the performance difference between the watermarked model and the standard model. In evaluating the performance gap, this paper sets all the states required for interaction by the watermarked model as watermarked states, allowing the watermarked model to autonomously choose its next action based on these watermarked states, while simultaneously observing the performance of the watermarked model under the standard state. The cumulative reward at the end of the game is a key indicator for measuring model performance. By comparing the cumulative reward of the watermarked model under the watermarked state with the cumulative reward of the standard model under the standard state, the performance gap between the watermarked model and the standard model can be evaluated. This comparison helps to understand the impact of watermarking on model performance.
[0057] 2. Watermarking Action Implementation Ratio: This patent proposes a novel evaluation metric for watermarking in federated deep reinforcement learning models. To calculate this ratio, the patent first statistically analyzes the proportion of watermarked models performing watermarking actions in the watermarked state, and then compares this ratio with the proportion of unwatermarked models performing watermarking actions in the watermarked state. This comparison helps determine whether the watermark embedding was successful and whether the watermark influences the agent's decision-making.
[0058] In this federated DRL model, any node's trainer only has its own key, which allows it to claim partial ownership of the model but not complete ownership. The aggregation server, on the other hand, possesses all keys and can claim complete ownership of the model relative to any other node. Furthermore, this verification scheme is resistant to the "laziness" of training nodes. When a model node has not trained a model and submits the original model directly upon submission, the watermark cannot be detected based on the key during ownership verification.
[0059] This invention employs the above technical solution to apply watermarking to federated deep reinforcement learning. Since each client possesses only its own watermark key, no client can individually claim ownership of the model. The server, however, possesses all watermark keys, thus enabling it to claim ownership of the federated deep reinforcement learning model. Furthermore, this invention embeds watermarks using a model backdoor approach, which is a black-box method. Black-box model watermarking is a technique that embeds and verifies watermarks without needing access to the model's internal structure and parameters.
[0060] Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Without conflict, the embodiments and features in the embodiments of this application can be combined with each other. The components of the embodiments of this application described and illustrated herein can generally be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of this application is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
Claims
1. A backdoor-based federated deep reinforcement learning intellectual property protection method, characterized by: It includes the following steps: Step S1: The coordination server distributes the initial global model to online data nodes and distributes a network-unique watermark key to each online data node; Step S2: In each round of federated deep reinforcement learning, the online data node uses a deep reinforcement learning agent to interact with the environment, randomly embeds the watermark key from the next training state obtained from the environment and modifies the reward value corresponding to the state, thereby obtaining empirical data and optimizing its own policy based on the empirical data, that is, updating the local model parameters. Step S2 employs the WMEMB algorithm, which consists of two phases: a state watermark embedding phase and a state reward modification phase; the details are as follows: In the state watermark embedding stage, the STAEMB watermark state embedding algorithm is used to randomly select several states from the standard training states and add a specific watermark to the selected states; the STAEMB watermark state embedding algorithm is as follows: During the state watermark embedding stage, a watermark key is used to embed the watermark. Sum of coefficients The watermark is embedded into the normal state. The specific expression is as follows: ; in, The coordinates of the watermarked state are ( The pixels of ) Indicates a watermark; The coordinates under normal conditions are ( (pixels); During the state reward modification phase, the reward value of the watermarked state is modified and the agent is trained so that it can learn the corresponding watermark. Step S3: After the coordination server collects local model parameters that are no less than the set threshold and not all of the participating agents, it executes the model aggregation algorithm to form a global model, thus completing this round of federated deep reinforcement learning. Step S4: Until the global model meets the requirements or the federated deep reinforcement learning rounds reach the specified number, each node is required to upload the final model and obtain the global model through aggregation and distribute it to each client; Step S5: For suspicious models, embed the unique watermark key into the state of interaction with the environment to obtain the agent's score and action execution ratio in the watermarked state; the specific steps are as follows: Step S5-1: Obtain the initial state from the environment, and embed the watermark key into the obtained initial state to obtain the watermark state; Step S5-2: The agent of the suspicious model determines the next action based on the watermark state, which is recorded as the watermark action. The environment is then made to execute this action to obtain the next state and reward value. Step S5-3: Repeat steps S5-1 and S5-2 until the game ends; Step S6: When the performance of the suspicious model agent drops sharply and it performs a watermarking action while in a state with the embedded watermark key, the suspicious model can be considered a protected model.
2. The intellectual property protection method based on backdoor-based federated deep reinforcement learning according to claim 1, characterized in that: In step S2, the reward value corresponding to the state is obtained by the interaction between the environment and the agent in the initial state corresponding to the watermark seed.
3. The intellectual property protection method based on backdoor-based federated deep reinforcement learning according to claim 1, characterized in that: Within the key area of each state Fixed at 1, other areas All are 0.
4. The intellectual property protection method based on backdoor-based federated deep reinforcement learning according to claim 1, characterized in that: During the training process of each client in the state reward modification phase, watermarks are embedded in the selected state, the action of the corresponding selected state is modified to the watermark action, and then the corresponding reward value is set to 1.
5. The intellectual property protection method based on backdoor-based federated deep reinforcement learning according to claim 1, characterized in that: Step S5 uses two metrics, performance gap and watermark action implementation ratio, to verify the presence of watermark. Performance gap measures the performance difference between the watermarked model and the standard model. When evaluating performance gap, all states that the watermarked model needs to interact with are set to watermarked states, allowing the watermarked model to autonomously choose the next action based on these watermarked states, while observing the performance of the watermarked model in the standard state. The cumulative reward at the end of the game is a key indicator for measuring model performance. By comparing the cumulative reward of the watermarked model in the watermarked state with the cumulative reward of the standard model in the standard state, the performance gap between the watermarked model and the standard model is evaluated. The specific method for achieving the watermark ratio is as follows: First, the proportion of watermarked models performing watermarking actions in the watermarked state is counted. Then, this proportion is compared with the proportion of unwatermarked models performing watermarking actions in the watermarked state to determine whether the watermark embedding is successful and whether the watermark affects the agent's decision-making.
Citation Information
Patent Citations
Deepfake traceability system based on big data federated learning architecture
CN113723220A
Watermark detection method and system based on federated learning model, and electronic equipment
CN113901405A
