Diversified imitation learning method and device based on diffusion model and agent
By combining the DiffBIL algorithm with a diffusion model and a conventional policy model, and using adversarial reward signals to train the policy, the stability problem of the diffusion model under diverse human behaviors and environmental changes is solved, and the agent achieves efficient decision-making and adaptability in complex environments.
Patent Information
- Application Number
- CN202311511401.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-13
AI Technical Summary
Existing diffusion models perform poorly in handling diverse human behaviors and exhibit poor stability under dynamic or uncertain environmental conditions, relying heavily on manual feature engineering.
The two-layer imitation learning algorithm (DiffBIL) is adopted, which combines a diffusion model and a regular policy model. The high-level policy and the regular policy model are trained through adversarial reward signals, and the agent selects the appropriate model to execute actions under different environmental states.
It improves the ability of intelligent agents to imitate diverse human behaviors and adapt to the environment, enhances the practicality and scalability of the system, and makes multi-agent systems more flexible and human-like in complex environments, making them suitable for collaborative work with humans.
Smart Images

Figure CN117494789B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a diversified imitation learning method, device and intelligent agent based on a diffusion model. Background Technology
[0002] Diffusion Model (DM) has shown great potential in fields such as image generation, audio generation, and video generation. It can generate high-fidelity and diverse data by being trained on large-scale and diverse datasets. Therefore, diffusion models can be applied to train policy models to describe diverse human behaviors.
[0003] In related technologies, diffusion models can be introduced into the field of decision-making problems. On a behavioral dataset, the action sequence or state sequence over a future period is used as the training target. Then, suboptimal actions are selected by value evaluation or by using the target state as a condition, thereby deriving the expected optimal action.
[0004] However, while diffusion models in related technologies can generate high-fidelity actions in states similar to the dataset, when the state is outside the distribution of the dataset, the actions generated by the diffusion model may lead to inaccurate estimates and perform poorly when dealing with diverse human behaviors. Furthermore, the models in related technologies are unstable in the face of dynamic environmental changes or uncertainties, which limits their feasibility in practical applications. At the same time, the methods of related technologies rely on manually designed feature engineering, which requires a large amount of manual work. Summary of the Invention
[0005] This application provides a diversified imitation learning method, device, agent, and storage medium based on a diffusion model to solve the problems in related technologies, such as the agent having a single strategy, making it difficult to process diverse human behavior data, and the agent having poor adaptability to environmental changes, resulting in low stability under different environmental conditions.
[0006] The first aspect of this application provides a diversified imitation learning method based on a diffusion model, comprising the following steps: detecting the current state of an agent; generating a reference action for the current state using a diffusion model, and selecting a target model based on the reference action and the current state, wherein the target model includes a diffusion model or a conventional policy model; if the target model is the diffusion model, controlling the agent to execute the reference action; if the target model is the conventional policy model, controlling the agent to execute the action generated by the conventional policy model.
[0007] Optionally, selecting a target model based on the reference action and the current state includes: obtaining the target behavior dataset of the diffusion model; identifying whether the reference action and the current state are within the distribution of the target behavior dataset; if they are within the distribution of the target behavior dataset, then determining the target model as the diffusion model; otherwise, determining the target model as the conventional strategy model.
[0008] Optionally, obtaining the target behavior dataset of the diffusion model includes: obtaining trajectory data of the agent; identifying each trajectory in the trajectory data; and constructing the target behavior dataset by combining each trajectory in the form of historical and future preset time periods.
[0009] Optionally, before generating the reference action of the current state using the diffusion model, the method includes: obtaining the training target of the diffusion model, wherein the training target is the action of a preset target historical trajectory at a preset time in the future; and training the diffusion model based on the target behavior dataset and the training target.
[0010] Optionally, before selecting a target model based on the reference action and the current state, the method further includes: acquiring an adversarial reward signal; and training a high-level policy and a regular policy model using the adversarial reward signal, wherein the high-level policy is used to select the target model.
[0011] A second aspect of this application provides a diversified imitation learning device based on a diffusion model, comprising: a detection module for detecting the current state of an agent; a selection module for generating a reference action for the current state using a diffusion model, and selecting a target model based on the reference action and the current state, wherein the target model includes a diffusion model or a conventional policy model; and a control module for controlling the agent to execute the reference action if the target model is the diffusion model, and controlling the agent to execute the action generated by the conventional policy model if the target model is the conventional policy model.
[0012] Optionally, the selection module is further configured to: obtain the target behavior dataset of the diffusion model; identify whether the reference action and the current state are within the distribution of the target behavior dataset; if they are within the distribution of the target behavior dataset, then determine that the target model is the diffusion model, otherwise determine that the target model is the conventional policy model.
[0013] Optionally, the selection module is further configured to: acquire trajectory data of the intelligent agent; identify each trajectory in the trajectory data; and construct the target behavior dataset by combining each trajectory in the form of historical and future preset time trajectories.
[0014] Optionally, the selection module is further configured to, before generating a reference action for the current state using the diffusion model, include: obtaining the training target of the diffusion model, wherein the training target is the action of a preset target historical trajectory at a preset time in the future; and training the diffusion model based on the target behavior dataset and the training target.
[0015] Optionally, the selection module is further configured to: acquire adversarial reward signals; and train high-level policy and conventional policy models using the adversarial reward signals, wherein the high-level policy is used to select the target model.
[0016] A third aspect of this application provides an intelligent agent, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the diversified imitation learning method based on the diffusion model as described in the above embodiments.
[0017] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the diffusion-based diversified imitation learning method as described in the above embodiments.
[0018] Therefore, this application has at least the following beneficial effects:
[0019] This application embodiment can effectively enhance the diversity of strategies by introducing a diffusion model, enabling agents to better mimic multi-style human behavior. Furthermore, the adversarial reward mechanism ensures that layered strategies intelligently select models based on the distribution of environmental states, improving performance stability in different scenarios. Therefore, by combining a diffusion model and adversarial imitation learning, this application embodiment improves the system's practicality and scalability, making multi-agent systems more flexible and human-like. This improves the decision-making process of multi-agent systems in complex environments, enhances the performance and adaptability of agents in various scenarios, and makes them more suitable for collaborative work with humans, meeting practical application needs.
[0020] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0021] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0022] Figure 1 A flowchart illustrating a diversified imitation learning method based on a diffusion model, as described in an embodiment of this application;
[0023] Figure 2This is an example diagram of a diversified imitation learning device based on a diffusion model according to an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of the structure of an intelligent agent according to an embodiment of this application. Detailed Implementation
[0025] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0026] Training AI systems to make behavioral decisions like humans is a major challenge in the field of artificial intelligence. Related methods can be divided into two categories: Reinforcement Learning (RL) and Imitation Learning (IL). Reinforcement Learning uses artificially designed reward functions to obtain high-reward strategies, but these strategies are often too simplistic and lack diversity compared to human behavior. Imitation Learning aims to learn human behavior from data, but related research focuses on single tasks and assumes that human behavior is close to optimal. In reality, human behavior is usually diverse, not close to optimal. Therefore, imitation learning methods are difficult to apply to diverse, large-scale human behavior datasets.
[0027] Diffusion models have shown great potential in fields such as image generation, audio generation, and video generation: by being trained on large-scale, diverse datasets, diffusion models can generate high-fidelity and diverse data, which can then be used to train policy models to describe diverse human behaviors.
[0028] In related technologies, diffusion models can be introduced into the field of decision-making problems. First, the action sequence or state sequence over a future period is used as the training target on the behavior dataset. Then, the suboptimal action is filtered by value evaluation or by using the target state as a condition, thereby deriving the expected optimal action.
[0029] However, while the training frameworks in related technologies have achieved experimental success in scenarios with relatively simple state spaces and well-defined task objectives, they have not yet been effectively applied to datasets with complex state spaces and diverse behaviors. The drawback is that although diffusion models can generate high-fidelity actions in states similar to those in the dataset, when the state is outside the distribution of the dataset's states, the actions generated by the diffusion model may lead to inaccurate estimations.
[0030] The methods in the related technologies also have the following drawbacks: First, the models in the related technologies are unstable in the face of dynamic changes or uncertainties in the environment, which limits their feasibility in practical applications; second, the related methods rely on manually designed feature engineering, which requires a lot of manual work and performs poorly when dealing with diverse human behaviors.
[0031] To address the aforementioned problems, this application provides a diversified imitation learning method, device, intelligent agent, and storage medium based on a diffusion model:
[0032] (1) This application integrates diffusion model with adversarial imitation learning and proposes DiffBIL (DiffusionModel Based Bi-level Imitation Learning). DiffBIL adopts a two-level policy model, in which the bottom policy includes a diffusion model and a regular policy model, while the high-level policy selects a model from the bottom policy for inference during execution;
[0033] (2) This application can use an adversarial reward mechanism to train the high-level policy and the regular policy model in the low-level policy in DiffBIL; wherein, the adversarial reward signal encourages the high-level policy to choose the diffusion model in the state within the behavior dataset distribution, and to choose the regular policy model in the state outside the behavior dataset distribution, while requiring the regular policy model to maximize the probability of entering the behavior dataset distribution.
[0034] The following describes a diversified imitation learning method based on a diffusion model, according to embodiments of this application, with reference to the accompanying drawings.
[0035] Specifically, Figure 1 This is a flowchart illustrating a diversified imitation learning method based on a diffusion model, provided in an embodiment of this application.
[0036] like Figure 1 As shown, this diffusion-based diversified imitation learning method includes the following steps:
[0037] In step S101, the current state of the agent is detected.
[0038] It is understood that the embodiments of this application can detect the current state of the intelligent agent; wherein, the detection of the current state of the intelligent agent can be accomplished in at least one way, and no specific limitation is made thereto.
[0039] In step S102, a reference action for the current state is generated using a diffusion model, and a target model is selected based on the reference action and the current state. The target model includes a diffusion model or a conventional policy model.
[0040] It is understood that embodiments of this application can use a diffusion model to generate a reference action for the agent's current state, and use the current state and the reference action to select a target model; wherein, embodiments of this application can use at least one method to determine and select the type of the target model, as follows:
[0041] In this embodiment of the application, selecting a target model based on a reference action and the current state includes: obtaining a target behavior dataset of a diffusion model; identifying whether the reference action and the current state are within the distribution of the target behavior dataset; if they are within the distribution of the target behavior dataset, then the target model is determined to be a diffusion model; otherwise, the target model is determined to be a regular policy model.
[0042] It is understood that, in this embodiment of the application, after obtaining the target behavior dataset of the diffusion model, the reference action and the current state can be identified. If the reference action and the current state are within the distribution of the target behavior dataset, the target model can be determined to be a diffusion model; if the reference action and the current state are not within the distribution of the target behavior dataset, the target model can be determined to be a conventional policy model. Specifically, this embodiment of the application can use at least one method to obtain the target behavior dataset of the diffusion model, as follows:
[0043] In this embodiment of the application, obtaining the target behavior dataset of the diffusion model includes: obtaining trajectory data of the agent; identifying each trajectory in the trajectory data; and constructing the target behavior dataset by combining each trajectory in the form of historical and future preset time periods.
[0044] The preset time can be set according to the actual situation, and there are no specific limitations on it.
[0045] It is understood that the embodiments of this application can construct a target behavior dataset, identify the trajectory data of the acquired intelligent agent, process each trajectory in the form of historical and future preset time trajectories, thereby constructing a target behavior dataset.
[0046] Specifically, suppose we have a large-scale behavioral dataset It contains trajectory data The training dataset constructed in this embodiment consists of a historical trajectory as model input and a future trajectory as prediction target, i.e. Where H is the length of the historical trajectory, and F is the length of the future trajectory used as the prediction target.
[0047] In this embodiment of the application, before generating a reference action for the current state using the diffusion model, the method includes: obtaining a training target for the diffusion model, wherein the training target is the action of a preset target historical trajectory at a preset time in the future; and training the diffusion model based on the target behavior dataset and the training target.
[0048] It is understood that, in the embodiments of this application, the diffusion model can be trained before generating the reference action of the current state using the diffusion model; wherein, in the embodiments of this application, the diffusion model can be trained using the obtained training target and target behavior dataset of the diffusion model.
[0049] Specifically, in the embodiments of this application, the training task of the diffusion model can be set to be given a historical trajectory. Predicting actions at a future point in time In this embodiment, the DiffBIL two-layer imitation learning algorithm can be used to predict the action at a single time point, and the following embodiments are based on this.
[0050] In this embodiment, the diffusion model in DiffBIL can be denoted as π. diff Diffusion model π diff Based on historical trajectory diffusion time step t diff The target action with added Gaussian noise is used as input to predict the added Gaussian noise; the training loss function of the diffusion model is:
[0051]
[0052] In this embodiment of the application, before selecting the target model based on the reference action and the current state, the method further includes: acquiring an adversarial reward signal; and training a high-level policy and a regular policy model using the adversarial reward signal, wherein the high-level policy is used to select the target model.
[0053] It is understood that embodiments of this application may use adversarial reward signals to train high-level policy models and regular policy models to encourage high-level policies to select the correct model and regular policy models to maximize the probability of subsequent entry into the behavior dataset distribution.
[0054] Specifically, embodiments of this application can perform adversarial training: DiffBIL uses adversarial reward signals to train a high-level policy model π. high And conventional strategy model π actoor The adversarial reward signal encourages higher-level strategies to select the correct model and the conventional strategy model to maximize the probability of subsequent entry into the behavioral dataset distribution.
[0055] This application embodiment can train a discriminator D to provide adversarial reward signals while training the policy model. The discriminator's role is to determine the similarity between a specific sample and the behavior dataset, thereby providing reward signals for training high-level policy and regular policy models. The training loss function of the discriminator is... High-level strategy model π high And conventional strategy model πactor The PPO algorithm is optimized using a proximal policy optimization method. The reward signal is provided by the discriminator D, i.e., log D(s, a), and the high-level policy model π is used. high And conventional strategy model π actor During training, maximize the trajectory reward of the adversarial reward signal, i.e.:
[0056]
[0057] In step S103, if the target model is a diffusion model, the agent is controlled to execute a reference action; if the target model is a conventional policy model, the agent is controlled to execute an action generated by the conventional policy model.
[0058] Understandably, a diffusion model, trained on a behavior dataset, can characterize the distribution of actions within the behavior dataset's state distribution. However, there is still a possibility that the actions it generates may be outside the behavior dataset's state distribution. In this case, it is necessary to determine whether the actions generated by the diffusion model are consistent with the behavior dataset, i.e., to determine whether the target model is a diffusion model. If the target model is determined to be a diffusion model, the agent is controlled to execute the reference action. If the target model is determined to be a regular policy model, the agent is instructed to execute the actions generated by the regular policy model.
[0059] Specifically, embodiments of this application may use a two-layer policy model: DiffBIL's policy model adopts a two-layer structure, with the bottom layer policy including a set of policy models, which contains a diffusion model π trained on the behavior dataset. diff and the re-initialized regular policy model π actoor Conventional strategy model π ctoor With state s t The high-level policy model takes a single action as input and outputs a single policy model π. high During the execution process, each state s t The upper level selects a model from the set of lower-level policies to generate an action.
[0060] During execution, when a new state S is reached... t At that time, the diffusion model π was first used. diff Generate reference action a ref The higher-level policy selects either the diffusion model or the conventional policy model π based on the reference action and the current state. high (s t a ref )∈{π diff , π actor If the current state is similar to the reference action [s] t a refIf the behavior dataset distribution is within a given range, then the higher-level policy should select a diffusion model and execute the reference action a. ref Otherwise, the conventional strategy model should be selected, and the action execution should be generated by the conventional strategy model. The conventional strategy model will select the one that maximizes the probability of subsequent entry into the distribution of the behavior dataset.
[0061] The high-level strategy model π in this application embodiment high And conventional strategy model π actor Joint optimization is performed during adversarial training to ensure that high-level policies select the correct model and that regular policy models maximize the probability of subsequently entering the behavior dataset distribution.
[0062] It should be noted that this application can also be evaluated in the multiplayer adversarial simulator "Party Animals" to conduct comprehensive ablation experiments; the experimental results show that DiffBIL can learn diverse strategies from multi-style human behavioral data. Furthermore, this application can also evaluate the similarity between the strategies obtained by the DiffBIL method and human behavioral data based on real test subjects, thereby assessing the degree of humanization of the strategies obtained by the DiffBIL method.
[0063] In summary, the diversified imitation learning method based on the diffusion model proposed in this application can effectively enhance the diversity of strategies by introducing the diffusion model, enabling agents to better imitate multi-style human behavior. Furthermore, the adversarial reward mechanism ensures that layered strategies can intelligently select models based on the distribution of environmental states, improving performance stability in different scenarios. Therefore, by combining the diffusion model and adversarial imitation learning, this application improves the system's practicality and scalability, making multi-agent systems more flexible and human-like. This improves the decision-making process of multi-agent systems in complex environments, enhances the performance and adaptability of agents in various scenarios, and makes them more suitable for collaborative work with humans, meeting practical application needs.
[0064] Next, referring to the accompanying drawings, a diversified imitation learning device based on a diffusion model is described according to an embodiment of this application.
[0065] Figure 2 This is a block diagram of a diversified imitation learning device based on a diffusion model according to an embodiment of this application.
[0066] like Figure 2 As shown, the diffusion-based diversified imitation learning device 10 includes:
[0067] The detection module 100 is used to detect the current state of the agent; the selection module 200 is used to generate a reference action for the current state using a diffusion model, and select a target model based on the reference action and the current state, wherein the target model includes a diffusion model or a conventional policy model; the control module 300 is used to control the agent to execute the reference action if the target model is a diffusion model, and to control the agent to execute the action generated by the conventional policy model if the target model is a conventional policy model.
[0068] Optionally, the selection module 200 is further configured to: obtain the target behavior dataset of the diffusion model; identify whether the reference action and the current state are within the distribution of the target behavior dataset; if they are within the distribution of the target behavior dataset, determine that the target model is a diffusion model, otherwise determine that the target model is a regular policy model.
[0069] Optionally, the selection module 200 is further configured to: acquire trajectory data of the intelligent agent; identify each trajectory in the trajectory data; and construct a target behavior dataset by combining each trajectory in the form of historical and future preset time trajectories.
[0070] Optionally, the selection module 200 is further configured to, before generating a reference action for the current state using the diffusion model, include: obtaining a training target for the diffusion model, wherein the training target is the action of a preset target historical trajectory at a preset time in the future; and training the diffusion model based on the target behavior dataset and the training target.
[0071] Optionally, the selection module 200 is further configured to: acquire adversarial reward signals; and train high-level policy and regular policy models using the adversarial reward signals, wherein the high-level policy is used to select the target model.
[0072] It should be noted that the foregoing explanation of the embodiment of the diffusion model-based diversified imitation learning method also applies to the diffusion model-based diversified imitation learning device of this embodiment, and will not be repeated here.
[0073] The diversified imitation learning device based on the diffusion model proposed in this application can effectively enhance the diversity of strategies by introducing the diffusion model, enabling agents to better imitate human behaviors of various styles. Furthermore, the adversarial reward mechanism ensures that layered strategies can intelligently select models based on the distribution of environmental states, improving performance stability in different scenarios. Therefore, by combining the diffusion model and adversarial imitation learning, this application improves the practicality and scalability of the system, making multi-agent systems more flexible and human-like. This improves the decision-making process of multi-agent systems in complex environments, enhances the performance and adaptability of agents in various scenarios, and makes them more suitable for collaborative work with humans, meeting practical application needs.
[0074] Figure 3A schematic diagram of the structure of an intelligent agent provided in an embodiment of this application. The intelligent agent may include:
[0075] The memory 301, the processor 302, and the computer program stored on the memory 301 and capable of running on the processor 302.
[0076] When the processor 302 executes the program, it implements the diversified imitation learning method based on the diffusion model provided in the above embodiments.
[0077] Furthermore, intelligent agents also include:
[0078] Communication interface 303 is used for communication between memory 301 and processor 302.
[0079] The memory 301 is used to store computer programs that can run on the processor 302.
[0080] The memory 301 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0081] If the memory 301, processor 302, and communication interface 303 are implemented independently, then the communication interface 303, memory 301, and processor 302 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0082] Optionally, in a specific implementation, if the memory 301, processor 302, and communication interface 303 are integrated on a single chip, then the memory 301, processor 302, and communication interface 303 can communicate with each other through an internal interface.
[0083] Processor 302 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of this application.
[0084] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described diversified imitation learning method based on a diffusion model.
[0085] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0086] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0087] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0088] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (FPGAs), field-programmable gate arrays (FPGAs), etc.
[0089] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0090] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A diffusion model based diverse imitation learning method, characterized in that, Includes the following steps: Detect the current state of the agent; A reference action for the current state is generated using a diffusion model, and a target model is selected based on the reference action and the current state, wherein the target model includes a diffusion model or a conventional policy model; If the target model is the diffusion model, then the agent is controlled to execute the reference action; if the target model is the conventional policy model, then the agent is controlled to execute the action generated by the conventional policy model. The step of selecting a target model based on the reference action and the current state includes: Obtain the target behavior dataset of the diffusion model; Identify whether the reference action and the current state are within the distribution of the target behavior dataset; If the target model is within the distribution of the target behavior dataset, then the target model is determined to be the diffusion model; otherwise, the target model is determined to be the conventional policy model.
2. The diffusion model based diverse imitation learning method of claim 1, wherein, The process of obtaining the target behavior dataset of the diffusion model includes: Acquire trajectory data of the intelligent agent; Identify each trajectory in the trajectory data; The target behavior dataset is constructed by taking each trajectory as a historical and future preset time frame.
3. The diversified imitation learning method based on a diffusion model according to claim 1 or 2, characterized in that, Before generating the reference action for the current state using the diffusion model, the following steps are included: Obtain the training target of the diffusion model, wherein the training target is the action of the historical trajectory of the preset target at a preset time in the future; The diffusion model is trained based on the target behavior dataset and the training objective.
4. The diversified imitation learning method based on the diffusion model according to claim 1, characterized in that, Before selecting a target model based on the reference action and the current state, the process also includes: Obtain the signal for adversarial rewards; The adversarial reward signal is used to train a high-level policy and a regular policy model, wherein the high-level policy is used to select the target model.
5. A diversified imitation learning device based on a diffusion model, characterized in that, include: The detection module is used to detect the current state of the intelligent agent; The selection module is used to generate a reference action for the current state using a diffusion model, and select a target model based on the reference action and the current state, wherein the target model includes a diffusion model or a conventional policy model. The control module is configured to control the agent to execute the reference action if the target model is the diffusion model, and to control the agent to execute the action generated by the conventional policy model if the target model is the conventional policy model. The selection module is further configured to: acquire the target behavior dataset of the diffusion model; identify whether the reference action and the current state are within the distribution of the target behavior dataset; if they are within the distribution of the target behavior dataset, then determine that the target model is the diffusion model, otherwise determine that the target model is the conventional policy model.
6. The diversified imitation learning device based on the diffusion model according to claim 5, characterized in that, The selection module is further configured to: acquire trajectory data of the intelligent agent; identify each trajectory in the trajectory data; and construct the target behavior dataset by combining each trajectory in the form of historical and future preset time trajectories. The selection module is further configured to, before generating the reference action of the current state using the diffusion model, include: obtaining the training target of the diffusion model, wherein the training target is the action of a preset target historical trajectory at a preset time in the future; and training the diffusion model based on the target behavior dataset and the training target.
7. The diversified imitation learning device based on the diffusion model according to claim 5, characterized in that, The selection module is further configured to: acquire adversarial reward signals; and train high-level policy and conventional policy models using the adversarial reward signals, wherein the high-level policy is used to select the target model.
8. An intelligent agent, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the diffusion-based diversified imitation learning method as described in any one of claims 1-4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the diversified imitation learning method based on the diffusion model as described in any one of claims 1-4.
Citation Information
Patent Citations
Control strategy imitation learning method and device based on adversarial learning
CN111488988A
Reinforcement learning decision-making method for heterogeneous multi-agent simulation confrontation environment
CN115542777A
