A multi-agent decision-making method based on monte carlo tree search

CN116306947BActive Publication Date: 2026-11-20TONGJI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310090294.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2026-11-20
Estimated Expiration
2043-02-09

Smart Images

  • Figure CN116306947B_ABST
    Figure CN116306947B_ABST
Patent Text Reader

Abstract

The application provides a kind of multi-agent decision-making method based on Monte Carlo tree exploration, belongs to the technical field of task planning, comprising 1: based on distributed partial observation Markov decision process, multi-agent decision-making task is modeled;2: based on model initialization Monte Carlo tree;3: in the preset time, the upper confidence interval algorithm is used to explore in the tree, a random strategy is used to explore outside the tree, expand Monte Carlo tree node, and update the value of Monte Carlo tree node according to the generated reward;4: according to the Monte Carlo tree constructed, multi-agent decision-making is carried out, and the Monte Carlo tree is pruned, the belief value of the root node is updated, S3-S4 is repeated until the task is completed.In the application, an online exploration method is used, which can obtain an approximate solution of the Dec-POMDP model in a limited time;Independent Monte Carlo tree is established for different agents, which reduces the exploration space, increases the exploration depth and provides better solution quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of task planning technology, and in particular relates to a multi-agent decision-making method based on Monte Carlo tree exploration. Background Technology

[0002] With the development of science and technology and industry, robots are playing an increasingly important role in human production and life. A key goal of artificial intelligence is to create intelligent agents with autonomous decision-making and behavioral capabilities. Currently, various service robots are applied in daily life, such as robotic vacuum cleaners. While a single intelligent agent can meet the needs of many scenarios, a large number of tasks still require the collaboration of multiple intelligent agents, such as robot soccer matches and robot package sorting. These tasks require multiple intelligent agents to coordinate their respective actions to achieve specific goals. Furthermore, during task execution, uncertainties in perception due to sensor performance and instability in control leading to uncertainties in the outcome of actions are important characteristics.

[0003] Distributed Partial Observation Markov Decision Processes (Dec-POMDPs) are commonly used models to describe multi-agent sequential decision-making tasks under uncertain environments. Dec-POMDPs provide a good mathematical framework for multi-agent decision-making methods. However, each agent needs to generate a globally optimal policy based on its own local information, while also considering the possible actions of other agents. This causes the joint policy space to grow exponentially with the number of agents, making solving Dec-POMDPs extremely difficult. Furthermore, due to the partial observation nature of the Dec-POMDP model, agents cannot directly obtain the state of the environment and can only indirectly maintain their beliefs about the environment through observation. The high-dimensional nature of the belief space makes it difficult to solve Dec-POMDPs precisely. Current solution methods are mainly divided into bottom-up dynamic programming algorithms and top-down heuristic search algorithms. Dynamic programming methods start from the last decision step and iteratively build a policy tree for each agent until the current decision step; heuristic search algorithms start from the current decision step and build a policy tree until the last decision step.

[0004] Existing algorithms suffer from limitations in decision depth and long solution times. Whether it's dynamic programming or heuristic search, the backup of the joint strategy or the solution of the heuristic function consumes a large amount of memory, making it difficult to apply these algorithms to intelligent robots with performance and memory constraints. Summary of the Invention

[0005] The purpose of this invention is to provide a multi-agent decision-making method based on Monte Carlo tree exploration, characterized by the following steps:

[0006] S1: Modeling decision-making tasks based on distributed partially observed Markov decision processes;

[0007] S2: Initialize the Monte Carlo tree based on the model;

[0008] S3: Within a preset time, the upper confidence interval algorithm is used to explore within the tree, and a random strategy is used to explore outside the tree to expand the Monte Carlo tree nodes. The value of the Monte Carlo tree nodes is updated based on the generated rewards.

[0009] S4: Make multi-agent decisions based on the constructed Monte Carlo tree, prune the Monte Carlo tree, update the belief value of the root node, and repeat S3-S4 until the task is completed.

[0010] Furthermore, in S1, the multi-agent decision-making method is modeled as a Dec-POMDP model, which is defined as a tuple.<I,S,A,T,Z,O,R> Where I = {1, ..., n} represents the combination of finite agents; n is the number of agents; S = {s1, ..., s n} is the set of finite states of the agent; Z = {z1, ..., z2} n} is the set of finite observations of the agent; A = {a1, ..., a n} represents the joint action of the agents; T is the state transition function, representing the probability that the agent cluster will execute the joint action in the current state to reach the next state; O is the observation function, representing the probability that the agent cluster will execute the joint action in the current state to obtain a certain observation; R is the reward function, representing the reward obtained by the agent cluster in the current state for executing the joint action.

[0011] Furthermore, in S2, according to the Dec-POMDP model, an independent Monte Carlo tree is built for each agent, generating a root node, where H t ={A0,Z1,…,A t-1 Z t} represents the historical action-observation sequence experienced by the agent cluster; The historical action-observation sequence that represents the actions experienced by agent i; The node is represented by j, which indicates the node's index; Q represents the node's value, which is initially set to 0; the tree is divided into observation nodes and action nodes.

[0012] Furthermore, in S3, sampling is performed synchronously within the tree for each agent within a finite time, and exploration is completed. Specifically, based on the belief of the root node, the state of each agent is sampled. Starting from the root node, feasible actions are executed according to the Dec-POMDP model. The environmental feedback observations and the next state are sampled. The tree exploration balances exploration and greedy strategies according to the upper bound confidence algorithm, as expressed by the formula:

[0013]

[0014] in, Indicates at node The number of times action 'a' is accessed; Indicates access node The number of iterations; c is a constant used to balance the exploration and greedy strategies, utilizing the updated Q. * Execute a greedy strategy and select an action within the tree.

[0015] Furthermore, in S3, when all nodes within the tree have been explored and a leaf node is reached, exploration begins at nodes outside the tree. This external exploration employs a random strategy, randomly executing selectable actions and quickly evaluating potential rewards. Specifically, based on the selected action and observed data, a new child node is created under the leaf node. The node's value is derived from the random action exploration, calculated using the following formula:

[0016]

[0017] Where T is the decision depth; r represents the discount factor, a constant between 0 and 1; t is the current exploration depth; and R... T Rewards earned by multiple agents for performing joint actions in the environment.

[0018] Furthermore, in S3, updating the Monte Carlo tree node value based on the generated reward specifically involves: assigning the collective reward to all agents during the execution process; when a new node is created, updating the value of all nodes from bottom to top based on the value of the new node through backpropagation, as expressed by the formula:

[0019]

[0020]

[0021] Furthermore, in S4, an upper limit K is set for the exploration time or number of explorations. The expression for K is:

[0022] K = m|A||Z|T 2

[0023] Where |A| is the number of joint actions; |Z| is the number of joint observations; T represents the decision step size; and m is a constant.

[0024] Furthermore, in S4, after updating the value of all nodes, it is necessary to determine whether the exploration time or number of explorations has reached the limit. If so, proceed to the next step; if not, repeat S3 until the exploration time or number of explorations reaches the limit.

[0025] Further, the next step is as follows: at the root node of the generated Monte Carlo tree, a greedy algorithm is used to select the action to be taken based on the value of different actions, and the multi-agent interaction is controlled to obtain observations in the environment. Then, the Monte Carlo tree is pruned based on the actions taken and the observations obtained.

[0026] Furthermore, after pruning is completed, it is determined whether the task is completed. If the task is completed, the multi-agent decision-making ends; if the task is not completed, the belief value of the node is updated, and S3-S4 are repeated until the task is completed.

[0027] Compared with the prior art, the beneficial effects of the present invention are mainly reflected in:

[0028] 1. This invention uses an online exploration method, which can obtain an approximate solution to the Dec-POMDP model within a limited time.

[0029] 2. This invention establishes independent Monte Carlo trees for different agents, which reduces the exploration space and increases the exploration depth while keeping the model unchanged, thus better ensuring the quality of the solution. Attached Figure Description

[0030] Figure 1 This is a flowchart of a multi-agent decision-making method based on Monte Carlo tree exploration, according to an embodiment of the present invention.

[0031] Figure 2 A schematic diagram of a Monte Carlo tree for multiple agents;

[0032] Figure 3 A diagram illustrating the pruning of a Monte Carlo tree. Detailed Implementation

[0033] The following will describe in more detail a multi-agent decision-making method based on Monte Carlo tree exploration according to the present invention, with reference to the schematic diagrams, which illustrate preferred embodiments of the present invention. It should be understood that those skilled in the art can modify the present invention described herein while still achieving the advantageous effects of the present invention. Therefore, the following description should be understood as being of general knowledge to those skilled in the art and is not intended to limit the present invention.

[0034] A multi-agent decision-making method based on Monte Carlo tree search. This method solves complex multi-agent decision-making tasks online using Monte Carlo tree search. Figure 1 This is a flowchart of a multi-agent decision-making method based on Monte Carlo tree exploration, according to an embodiment of the present invention.

[0035] The multi-agent decision-making method is modeled as a Dec-POMDP model, which can be defined as a tuple.<I,S,A,T,Z,O,R> Where I = {1, ..., n} is the set of finite agents, and n represents the number of agents; S = {s1, ..., s n} represents the set of finite states of an agent, Z = {z1, ..., z2} n} represents the set of finite observations of an agent, A = {a1, ..., a2} n Let} represent the joint action of the agents, T represent the state transition function, which indicates the probability that the agent cluster will execute the joint action in the current state to reach the next state. O represent the observation function, which indicates the probability that the agent cluster will obtain a certain observation by executing the joint action in the current state. R represent the reward function, which indicates the reward obtained by the agent cluster by executing the joint action in the current state.

[0036] Establish an independent Monte Carlo tree for each agent. i Each tree is initialized by generating a root node. t ={A0,Z1,…,A t-1 Z t} represents the set of historical action-observation sequences experienced by a cluster of intelligent agents. This represents the set of historical action-observation sequences experienced by a single agent i. Represents Tree i The node is located at exploration depth t, and j represents the node's index. Q represents the node's value. Figure 2 The numbers in the nodes shown represent the node's value, initially set to 0. The tree is divided into observation nodes and action nodes.

[0037] Within a finite timeframe, sampling is performed synchronously within the tree for each agent. Based on the root node's belief, the state of each agent is sampled. Starting from the root node, feasible actions are executed according to the Dec-POMDP model, and environmental feedback observations and the next state are sampled. Tree exploration is balanced between exploration and a greedy strategy using an upper bound confidence algorithm, as shown in the following formula:

[0038]

[0039] in, Represents at the node The number of times action 'a' is accessed. Representative access node The number of iterations, where c is a constant, is set to 0.5 to balance the exploration and greedy strategies. Using the updated Q... * Execute a greedy strategy and select an action within the tree.

[0040] Once all nodes within the tree have been explored and a leaf node is reached, exploration begins on nodes outside the tree. This external exploration employs a randomized strategy, randomly executing selectable actions and quickly evaluating potential rewards. Based on the selected actions and observed data, new child nodes are created under the leaf nodes. The value of each node is derived from the randomized exploration, calculated using the following formula:

[0041]

[0042] Where T represents the decision depth, r represents the discount factor (a constant between 0 and 1), t represents the current exploration depth, and R... T This refers to the reward obtained by multiple agents in performing joint actions in the environment. The collective reward is shared among all agents involved in the execution process. When a new node is created, the value of all nodes is updated from bottom to top through backpropagation based on the new node's value. The formula is as follows:

[0043]

[0044]

[0045] Sampling stops when the exploration time limit is reached or the number of samples reaches a limit K. K can be represented as:

[0046] K = m|A||Z|T 2

[0047] Where |A| represents the number of joint actions, |Z| represents the number of joint observations, T represents the decision step size, and m is a constant. At the root node of the generated Monte Carlo tree, a greedy algorithm selects the action to be taken based on the value of different actions. This controls the interaction of multiple agents in the environment and obtains observations from the environment. Figure 3 As shown, based on the actions taken and the observations obtained, the Monte Carlo tree is pruned, and the selected action and observation node are used as the new root node, updating the beliefs. Return to step 2 to make the next decision, continuing until the decision-making task is completed.

[0048] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the technical solutions and content disclosed in the present invention without departing from the scope of the present invention shall be deemed to have remained within the protection scope of the present invention.

Claims

1. A method for decision-making on multiple intelligent robot tasks based on Monte Carlo tree exploration, characterized in that, Includes the following steps: S1: Modeling decision-making tasks based on distributed partially observed Markov decision processes; S2: Initialize the Monte Carlo tree based on the model; S3: Within a preset time, the upper confidence interval algorithm is used to explore within the tree, and a random strategy is used to explore outside the tree to expand the Monte Carlo tree nodes. The value of the Monte Carlo tree nodes is updated based on the generated rewards. S4: Make multiple intelligent robot task decisions based on the constructed Monte Carlo tree, prune the Monte Carlo tree, update the belief value of the root node, and repeat S3-S4 until the task is completed. In S3, sampling is performed synchronously within the tree of each intelligent robot within a finite time, and exploration is completed. Specifically, based on the belief of the root node, the state of each intelligent robot is sampled. Starting from the root node, feasible actions are executed according to the Dec-POMDP model. The environmental feedback observations and the state of the next step are sampled. The tree exploration balances exploration and greedy strategies according to the upper bound confidence algorithm, as expressed by the formula: ; in, Indicates at node Access Action The number of times; Indicates access node The number of times; A constant is used to balance exploration and greedy strategies, utilizing the updated... Execute a greedy strategy and select an action within the tree; In S3, when all nodes within the tree have been explored and a leaf node is reached, exploration begins at nodes outside the tree. This external exploration employs a random strategy, randomly executing selectable actions and quickly evaluating potential rewards. Specifically, based on the selected action and observed data, a new child node is created under the leaf node. The node's value is derived from the random action exploration, calculated using the following formula: ; in, For decision-making depth; This represents the discount factor, a constant between 0 and 1; To the current depth of exploration; Rewards for multiple intelligent robots performing coordinated actions in their environment; In S3, updating the Monte Carlo tree node value based on the generated reward specifically involves: assigning the collective reward to all intelligent robots during the execution process; when a new node is created, updating the value of all nodes from bottom to top based on the value of the new node through backpropagation, as expressed by the formula: ; 。 2. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 1, characterized in that, In step S1, the decision-making tasks of multiple intelligent robots are modeled as a Dec-POMDP model, and the model is defined as a tuple. in, A combination of limited intelligent robots; The number of intelligent robots; For a set of finite states of an intelligent robot; For the set of limited observations of intelligent robots; For the coordinated actions of intelligent robots; Let be the state transition function, representing the probability that the intelligent robot swarm will perform a joint action in the current state to reach the next state; Let be the observation function, representing the probability that a cluster of intelligent robots will perform a joint action in the current state to obtain a certain observation; Let be the reward function, representing the reward obtained by the intelligent robot cluster performing joint actions in the current state.

3. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 2, characterized in that, In step S2, based on the Dec-POMDP model, an independent Monte Carlo tree is built for each intelligent robot, generating a root node. The historical action sequence experienced by an intelligent robot swarm; Represents intelligent robots The historical actions experienced – the observation sequence; Representative node, Indicates the node's sequence number; The value of a node is represented by an initial value of 0; the tree is divided into observation nodes and action nodes.

4. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 1, characterized in that, In step S4, an upper limit is set for the exploration time or the number of explorations. K , K The expression is: ; in, The number of joint actions; This refers to the number of joint observations; Represents the decision-making step size; It is a constant.

5. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 1, characterized in that, In step S4, after updating the value of all nodes, it is necessary to determine whether the exploration time or number of explorations has been reached. If so, proceed to the next step. If the limit is not reached, repeat step S3 until the exploration time or number of explorations reaches the limit.

6. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 5, characterized in that, The next step is as follows: at the root node of the generated Monte Carlo tree, a greedy algorithm is used to select the action to be taken based on the value of different actions, and multiple intelligent robots are controlled to interact in the environment to obtain observations in the environment. Then, the Monte Carlo tree is pruned based on the actions taken and the observations obtained.

7. The decision-making method for multiple intelligent robots based on Monte Carlo tree exploration according to claim 6, characterized in that, After pruning is completed, determine whether the task is completed. If the task is completed, end the task decision-making of multiple intelligent robots; if the task is not completed, update the belief value of the node and repeat S3-S4 until the task is completed.

Citation Information

Patent Citations

  • Swarm robot collaborative search method based on Monte Carlo tree search algorithm

    CN110989352A

  • Distributed multi-robot target searching method

    CN112827174A