Unmanned aerial vehicle task planning method and device based on uncertainty perception

By quantifying the reward mean and uncertainty of candidate paths in UAV mission planning methods, and dynamically allocating resources for re-evaluation and expansion, the problem of being misled by a single evaluation model in UAV mission planning is solved, thereby improving accuracy and resource utilization efficiency.

CN123140209APending Publication Date: 2026-11-20INNER MONGOLIA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611110285.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing UAV mission planning methods rely on single-reward evaluation of model scores, which leads to unreliable high scores during out-of-distribution inference steps. This causes the search algorithm to expand along the wrong path, reducing the accuracy of complex inference tasks and wasting resources.

Method used

The reward mean and uncertainty quantification value of candidate paths are evaluated using a task reward evaluation model. The distribution is divided into in-distribution and out-of-distribution subsets, and the re-evaluation subset is selected. Resources are dynamically allocated for re-evaluation and extended reasoning based on optimistic confidence scores and preset conditions.

Benefits of technology

It improves the accuracy and resource utilization efficiency of complex reasoning tasks, reduces the accumulation of linear errors, and achieves effective identification and control of cognitive uncertainty in task reward evaluation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140209A_ABST
    Figure CN123140209A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of unmanned aerial vehicle task planning method and device based on uncertainty perception, method includes: for the multiple candidate paths in unmanned aerial vehicle task planning generated by large language model, the reward mean and the uncertainty quantization value of each path are obtained by evaluating each path;According to the uncertainty quantization value of each path, all paths are divided into distribution inside subset and distribution outside subset;The optimistic confidence score of each path in distribution outside subset is obtained, and the re-evaluation subset consisting of to-be-re-evaluated path is screened according to optimistic confidence score and preset condition, the preset condition is related to the reward mean of each path in distribution inside subset;The search inference of next node is carried out to each path in re-evaluation subset and each path in distribution inside subset.The above method reduces the misleading of existing unreliable high-score node to search process, improves the inference accuracy of large language model in complex scene of unmanned aerial vehicle task planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of artificial intelligence and natural language processing, and in particular to a method and apparatus for unmanned aerial vehicle (UAV) mission planning based on uncertainty perception. Background Technology

[0002] In recent years, mind chain hinting technology has significantly improved the capabilities of large language models in solving mathematical problems, code generation, and complex logical reasoning tasks. To further enhance inference performance, the industry has begun to widely adopt computational expansion strategies during inference. Among these, external search methods guided by task reward evaluation models (such as multiple-choice search, cluster search, and mind trees) have become the mainstream paradigm. This paradigm uses a fixed generative strategy model to generate multiple candidate inference paths and relies on the task reward evaluation model as a validator to score each step of the inference, thereby guiding the search tree to expand towards high-scoring paths. These methods are also beginning to be used in drone search or drone path planning.

[0003] However, existing external search frameworks suffer from a fundamental flaw: cognitive uncertainty in task reward evaluation models. Since task reward evaluation models are typically trained on fixed inference trajectory datasets, they often give unreliable scores when evaluating inference steps that deviate from their training distribution (i.e., out-of-distribution), even giving overconfident high scores to out-of-distribution steps containing serious logical errors.

[0004] Traditional search algorithms blindly rely on a single predicted score from a task reward evaluation model, ignoring the confidence level of the model itself. Theory and experiments show that if this error from out-of-distribution samples is not controlled during the search process, it will accumulate linearly with each inference step, leading the search algorithm astray and ultimately drastically reducing the accuracy of complex inference tasks, resulting in a serious waste of computational resources. Summary of the Invention

[0005] (a) Technical problems to be solved In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a UAV mission planning method and apparatus based on uncertainty perception. It solves the problem that the existing tree search method based on the task reward evaluation model usually selects and expands nodes only based on the single reward score. When the candidate reasoning steps deviate from the training distribution of the task reward evaluation model, the task reward evaluation model may give overconfident high scores to reasoning steps that are correct in form but logically wrong, causing the search algorithm to continue to expand along the wrong path, thereby reducing the accuracy of answers to complex reasoning tasks.

[0006] (II) Technical Solution To achieve the above objectives, the main technical solutions adopted by the present invention include: In a first aspect, embodiments of the present invention provide a UAV mission planning method based on uncertainty perception, comprising: S100. For multiple candidate paths in the UAV mission planning generated by the large language model, a mission reward evaluation model is used to evaluate each candidate path and obtain the average reward and uncertainty quantification value of each candidate path. S200. Based on the uncertainty quantification value of each candidate path and the preset threshold τ, divide all candidate paths into an in-distribution subset and an out-of-distribution subset. S300. Obtain the optimistic confidence score of each candidate path in the off-distribution subset, and filter the re-evaluation subset composed of candidate paths to be re-evaluated based on the optimistic confidence score and preset conditions. The preset conditions are related to the mean reward of each candidate path in the on-distribution subset. S400. Perform search and reasoning for the next node for each candidate path in the re-evaluation subset and each candidate path in the distribution subset.

[0007] Optionally, if the large language model search and inference is in the resource-constrained stage, and the resources of each candidate path are in a balanced state in the initial stage, then S400 includes: S401. Obtain the new mean reward and uncertainty quantification value for each candidate path in the re-evaluation subset; S402. Obtain the latest average reward of all candidate paths in the subset within the distribution and the re-evaluation subset, as well as the given temperature parameter for adjusting the resource allocation balance. Obtain the resource budget for the extended inference of the next node of each candidate path, and perform the next stage of search inference based on their respective resource budgets.

[0008] Optionally, S401 includes: S4011, Obtain the first temperature parameter Normalized exponential distribution of control The first temperature parameter is used to adjust the balance of resource allocation. S4012. Allocate the reassessment budget to the reassessment subset. Candidate paths in Reassessment of budget resources , ,in, Candidate paths for allocating assessment budget resources Total weight assessment budget, It is an exponential function with the natural constant as its base. Indicates the rounding operation; S4013, Based on candidate paths Reassessment of budget resources The task reward evaluation model was used to evaluate the candidate path. An evaluation was conducted to obtain a new average reward and a quantified value for uncertainty.

[0009] Optionally, S402 includes: S4021, Obtain second temperature parameter control Normalized exponential distribution , S4022, Based on each candidate path in the distribution subset and the re-evaluation subset Given the remaining resources and the number of steps remaining at the termination condition, obtain the budget resources for extended inference of the next node in each candidate path as the extended resources of the child node. ; ,in The total extended budget corresponding to the remaining steps of each candidate path. This is the set of all candidate paths in the subset within the distribution and the re-evaluation subset; Candidate paths The average reward; Candidate paths The average reward.

[0010] Optionally, obtaining the optimistic confidence score of each candidate path h in the out-of-distribution subset in S300 includes: ,in To explore the coefficient, This represents the current number of steps in the search and reasoning process. This represents the current number of samples taken for this inference candidate path. It is the natural logarithm. Let h be the average reward for each candidate path h in the outer subset of the distribution.

[0011] Optionally, the re-evaluation subset composed of candidate paths to be re-evaluated, selected in step S300 based on optimistic confidence scores and preset conditions, includes: Candidate paths whose optimistic confidence scores meet preset conditions are selected from the out-of-distribution subset, forming a re-evaluation subset S. The preset condition is: the optimistic confidence score of the candidate path in the out-of-distribution subset is greater than or equal to the mean maximum reward in the in-distribution subset minus the given retention margin. .

[0012] Optionally, prior to step S400, the method further includes: Based on the mean reward, uncertainty quantification, current search inference steps, termination condition, and remaining resources of each candidate path in the in-distribution subset and re-evaluation subset, an action vector is obtained through a trained adaptive controller. The hyperparameters used in the current inference step are dynamically adjusted based on the action vector; The hyperparameters include: a first temperature parameter, a second temperature parameter, and a retention margin. , preset threshold τ, budget resource cap for extended inference of the next node, re-evaluate budget resource cap.

[0013] Optionally, in step S100, each candidate path is evaluated using a task reward evaluation model to obtain the average reward and uncertainty quantification value for each candidate path, including: S101. A random deactivation mechanism is adopted in the inference process of the task reward evaluation model, for each candidate path conduct Each forward propagation with a different random mask is used to obtain... A random reward score; S102, Calculate the above The average of the random reward scores is used as the average reward for the current candidate path. and calculate the The sample variance of each random reward score is used as the quantification value of the cognitive uncertainty. , ,in, For the first The random reward score obtained by forward propagation with random inactivation, k belongs to K.

[0014] In a second aspect, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program in the memory and performs the steps of the unmanned aerial vehicle mission planning method based on uncertainty perception described in any of the first aspects.

[0015] Thirdly, embodiments of the present invention also provide a computer storage medium, comprising: a computer program stored in the computer storage medium, characterized in that, when the computer program is executed by a processor, it implements the steps of the unmanned aerial vehicle mission planning method based on uncertainty perception as described in any of the first aspects.

[0016] (III) Beneficial Effects The uncertainty-aware UAV mission planning method of the present invention can quantify the cognitive uncertainty of the scoring results of the mission reward evaluation model in the UAV mission planning process implemented by tree search reasoning method, and dynamically allocate the re-evaluation budget and the child node expansion budget according to the reward mean and uncertainty of the candidate path, thereby reducing the misleading effect of unreliable high-scoring nodes on the search process, improving the reasoning accuracy of large language models and the utilization efficiency of remaining energy in complex scenarios.

[0017] The method of this invention breaks the blind faith mechanism and improves robustness. Specifically, it introduces the estimation of cognitive uncertainty of task reward evaluation model into the external search framework for the first time, effectively identifying erroneous reasoning steps that appear to be high-scoring but are actually unreliable, and avoiding the misleading effect of false high scores on the search tree.

[0018] Furthermore, the method of this invention achieves theoretically guaranteed error reduction, theoretically proves and solves the linear error accumulation problem faced by traditional greedy search, and reduces the regret bound of the search process to a sublinear level through confidence upper bound and uncertainty-driven resampling mechanism.

[0019] Under limited experimental resources, this method enables efficient utilization of computing power (corresponding to the remaining energy or resources of the UAV). This is achieved by finely dividing the limited computing power into evaluation computing power and generation computing power. The method only re-evaluates the most promising and highly uncertain fuzzy nodes, while the remaining computing power is concentrated on expanding highly deterministic nodes, significantly improving the return on investment of resources during inference.

[0020] In particular, the method of the present invention improves dynamic adaptive capabilities. For example, the adaptive controller based on reinforcement learning can automatically adjust the budget according to the difficulty of the current UAV scenario and the information of the current obstacles, overcoming the rigidity problem of static hyperparameters when facing complex and variable reasoning scenarios.

[0021] Applicable scenarios include drone inspection, search and rescue, target tracking, target interception, and multi-drone collaborative tasks. It can also solve mathematical problems and generate code. For example, in the scenario of automatically solving mathematical word problems, the large language model generates multiple intermediate reasoning steps. While a candidate step may have a standardized formula and complete reasoning format, its actual logical derivation may contain errors. Traditional tree search methods might continue to expand this erroneous step due to a single high score in the task reward evaluation model. This invention performs multiple randomized scoring on the candidate step. If its reward score fluctuates significantly, it determines that the node has high cognitive uncertainty and reduces the expansion budget for its child nodes or prioritizes re-evaluation. Simultaneously, more expansion budget is allocated to candidate paths with higher mean and lower uncertainty, thus allowing the search process to continue along a more reliable reasoning path. Attached Figure Description

[0022] Figure 1 A flowchart illustrating an uncertainty-aware UAV mission planning method provided in an embodiment of the present invention; Figure 2 A schematic diagram of the structure of an unmanned aerial vehicle (UAV) mission planning device based on uncertainty perception provided in an embodiment of the present invention; Figure 3 A flowchart illustrating an uncertainty-aware UAV mission planning method provided in an embodiment of the present invention; Figure 4 Based on Figure 3 The flowchart shown illustrates a specific application example of the method. Detailed Implementation

[0023] To better explain and facilitate understanding of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] For complex reasoning applications involving large language models, such as UAV inspection, search and rescue, target tracking, target interception, or multi-UAV collaborative tasks, which require the step-by-step generation and filtering of candidate task paths / candidate trajectory sequences / candidate action sequences, existing search methods based on task reward evaluation models typically rely solely on single reward scores for node selection and extended reasoning. When candidate reasoning steps deviate from the training distribution of the task reward evaluation model, the model may overconfidently assign high scores to formally correct but logically flawed reasoning steps, causing the search algorithm to continue expanding along incorrect paths. This reduces the accuracy of answers for complex reasoning tasks and wastes inference computational resources. To address these issues, this invention provides a UAV task planning method based on uncertainty awareness, which effectively solves the aforementioned shortcomings, improves answer accuracy, and makes rational use of inference computational resources.

[0025] Example 1 like Figure 1 As shown, Figure 1 The flowchart illustrates a UAV mission planning method based on uncertainty perception provided by an embodiment of the present invention. The execution subject of this embodiment can be any computing device, the ground control station of the UAV, or the airborne equipment of the UAV, etc., and includes the following steps: Step 100: For the multiple candidate paths to be analyzed generated by the large language model, the task reward evaluation model is used to evaluate each candidate path and obtain the average reward and uncertainty quantification value of each candidate path.

[0026] Each candidate path in this embodiment can be determined based on the UAV's current position, speed, remaining energy, and / or current environmental information (such as the target being tracked or a no-fly zone).

[0027] For example, a random deactivation mechanism is used in the inference process of the task reward evaluation model for each candidate path. conduct Each forward propagation with a different random mask is used to obtain... A random reward score; Calculate the The average of the random reward scores is used as the average reward for the current candidate path. and calculate the The sample variance of each random reward score is used as the quantification value of the cognitive uncertainty. , ,in, For the first The random reward score obtained by forward propagation with random inactivation, k belongs to K.

[0028] Step 200: Based on the uncertainty quantification value of each candidate path and the preset threshold τ, divide all candidate paths into an in-distribution subset and an out-of-distribution subset.

[0029] The preset threshold here can be an uncertain threshold.

[0030] Step 300: Obtain the optimistic confidence score of each candidate path in the out-of-distribution subset, and select a re-evaluation subset composed of candidate paths to be re-evaluated based on the optimistic confidence score and preset conditions. The preset conditions are related to the mean reward of each candidate path in the in-distribution subset.

[0031] For example, the optimistic confidence score of each candidate path h in the out-of-distribution subset. for ,in To explore the coefficient, This represents the current number of steps in the search and reasoning process. This represents the number of times the model has sampled the candidate path for this inference (which can be understood as the number of times the model has repeatedly evaluated the same candidate path h, i.e., the number of re-evaluations). It is the natural logarithm. Let h be the average reward for each candidate path h in the outer subset of the distribution.

[0032] In the embodiments of this application, h is used to represent any candidate path, mainly appearing in general definitions or scenarios describing a single path; h i Used to represent the i-th candidate path in a set of candidate paths, mainly appearing in scenarios such as budget allocation, set summation, or comparison of multiple candidate paths.

[0033] Candidate paths whose optimistic confidence scores meet preset conditions are selected from the subset outside the distribution to form a re-evaluation subset S.

[0034] The preset condition in this embodiment can be: the optimistic confidence score of the candidate path in the out-of-distribution subset is greater than or equal to the mean of the maximum reward in the in-distribution subset minus the given retention margin. .

[0035] This step is primarily to prevent potentially viable paths from being mistakenly rejected, by introducing an optimistic confidence score that includes a confidence cap. and set a reserve margin Candidate paths within out-of-distribution subsets that are within the retention margin and have high uncertainty may not be excluded from the next stage of search and reasoning.

[0036] Step 400: Perform search and reasoning for the next node for each candidate path in the re-evaluation subset and each candidate path in the distribution subset.

[0037] The method in this embodiment quantifies the cognitive uncertainty of the scoring results of the task reward evaluation model, and dynamically allocates the re-evaluation budget and the sub-node expansion budget according to the average reward and uncertainty of the candidate path, thereby reducing the misleading effect of unreliable high-scoring nodes on the search process and improving the reasoning accuracy and computational resource utilization efficiency of large language models in complex reasoning scenarios.

[0038] In practical applications, the aforementioned candidate paths or the candidate inference paths described below can all be understood as candidate task paths, candidate trajectory sequences, or candidate action sequences in a UAV scenario. When the candidate inference path is a candidate trajectory sequence, the task reward evaluation model in step 100 can be a trajectory quality evaluation model. It can realize collaborative tasks such as UAV inspection or search and rescue, target tracking / interception, etc.

[0039] In this embodiment, the specific candidate path of the drone can be associated with the drone's current position, speed, obstacles in the drone's operating area, no-fly zones, etc.

[0040] One of the core aspects of this embodiment is to effectively reduce the misleading nature of the low-confidence, high-score mission planning / track planning process through uncertainty quantification and re-evaluation mechanisms, thereby improving the safety, reliability, and resource utilization of UAV mission planning.

[0041] In the specific implementation process, before step 400 above, Figure 1 The method shown also includes: S00. Based on the mean reward, uncertainty quantification value, current search inference steps, termination condition, and remaining resources of each candidate path in the in-distribution subset and re-evaluation subset, obtain the action vector through the trained adaptive controller; dynamically adjust the hyperparameters used in the current inference step based on the action vector. The hyperparameters include: a first temperature parameter, a second temperature parameter, and a retention margin. The system includes a preset threshold τ, a budget resource cap for extended inference at the next node, and a re-evaluation of the budget resource cap. These hyperparameters aim to achieve an optimal balance between search inference in the next stage and the utilization of candidate paths at the current node.

[0042] It is understood that the action vector in step S00 above can be a set of adjustment instructions output by the adaptive controller, used to dynamically adjust the key hyperparameters in the current search step. In this embodiment, the adaptive controller can be a policy network pre-trained using a reinforcement learning algorithm.

[0043] The following steps can be applied to the adjusted hyperparameters under resource constraints, which ensures dynamic adaptive performance. For example, the adaptive controller based on reinforcement learning can automatically adjust the budget according to the difficulty of the current problem and the degree of ambiguity of the current inference step, overcoming the rigidity problem of static hyperparameters when facing complex and variable inference scenarios.

[0044] The adaptive controller trained as described above can be generated in advance through reinforcement learning. This embodiment does not limit the training process and can be selected according to the actual situation.

[0045] The focus of this embodiment is to perform multiple randomized scoring and quantify cognitive uncertainty during the reasoning stage, and to introduce cognitive uncertainty into processes such as candidate node screening, re-evaluation of budget allocation, and expansion of budget allocation.

[0046] In this embodiment, when applying to UAV mission planning, the reassessment budget resources can be determined based on the UAV's remaining energy.

[0047] In one alternative implementation, the above method is in the experimental stage. During this stage, to ensure the balance and resource fairness of each path—that is, the large language model search and inference is in a resource-constrained stage—the resources of each candidate path are balanced in the initial stage. Step 400 may include: Sub-step 401: Obtain the new mean reward and uncertainty quantification value for each candidate path in the re-evaluation subset; For example, sub-step 401 above may include: 4011. Obtain the first temperature parameter Normalized exponential distribution of control The first temperature parameter is used to adjust the balance of resource allocation. As explained in step S00 above, the first temperature parameter can be a parameter pre-given by the adaptive controller during task planning, or a parameter determined according to the process in the previous step. Here, the temperature parameter is denoted by "lower," indicating that the steeper the distribution, the higher the temperature parameter and the smoother the distribution.

[0048] 4012. Allocate the reassessment budget to the reassessment subset. Candidate paths in Reassessment of budget resources , ,in, Candidate paths for allocating assessment budget resources Total weight assessment budget, It is an exponential function with the natural constant as its base. This indicates the rounding operation.

[0049] Understandably, the budget allocation here applies to each candidate path in the re-evaluation subset.

[0050] For example, suppose there are 3 candidate paths in the re-evaluation subset S, and they are given a total of 10 re-evaluation opportunities. First, determine the optimistic confidence score of each of the 3 paths. The higher the score, the more worthy the path is of further confirmation, and therefore the more re-evaluation opportunities it receives.

[0051] For example, if the relative values ​​of the three paths are roughly "high, medium, and low", then the 10 reassessment opportunities could be divided into 5, 3, and 2 opportunities. Here, the 10 opportunities represent the total reassessment budget B, while the 5, 3, and 2 opportunities represent the reassessment budget Bi obtained for each candidate path.

[0052] 4013. Based on candidate paths Reassessment of budget resources The task reward evaluation model was used to evaluate the candidate path. An evaluation was conducted to obtain a new average reward and a quantified value for uncertainty.

[0053] Sub-step 402: Obtain the latest mean reward of all candidate paths in the in-distribution subset and the re-evaluation subset, as well as the given temperature parameter for adjusting the resource allocation balance. Obtain the resource budget for the extended inference of the next node of each candidate path, and perform the next stage of search inference based on their respective resource budgets.

[0054] For example, sub-step 402 may include: 4021. Obtain the second temperature parameter for control. Normalized exponential distribution , 4022. Based on each candidate path in the in-distribution subset and the re-evaluation subset Given the remaining resources and the number of steps remaining at the termination condition, obtain the budget resources for extended inference of the next node in each candidate path as the extended resources of the child node. ; ,in The total extended budget corresponding to the remaining steps of each candidate path. This is the set of all candidate paths in the subset within the distribution and the re-evaluation subset; Candidate paths The average reward; Candidate paths The average reward.

[0055] The above method breaks the blind faith mechanism and improves robustness. Specifically, it is the first time that the estimation of cognitive uncertainty of the task reward evaluation model is introduced into the external search framework, which effectively identifies erroneous reasoning steps that appear to be high but are actually unreliable, and avoids the misleading effect of false high scores on the search tree.

[0056] The above method achieves efficient utilization of computing power under limited experimental resources by finely dividing the limited computing power into evaluation computing power and generation computing power. The method only re-evaluates the most promising and highly uncertain fuzzy nodes, while the remaining computing power is concentrated on expanding highly deterministic nodes, greatly improving the input-output ratio of computing resources during inference.

[0057] Example 2 like Figure 2 and Figure 3 As shown in the diagram, this embodiment provides a structural schematic of a UAV mission planning device based on uncertainty perception. Figure 3 The nodes in the algorithm are understood as candidate paths, and the next node / child node is the next path for searching and reasoning from the candidate paths. The search and reasoning device specifically includes the following: Uncertainty estimation processing module 21: The large language model generates several candidate paths in the current inference search step. The candidate path is input into the trained task reward evaluation model, and random deactivation, random mask sampling or equivalent randomization evaluation mechanism is enabled during the inference scoring stage. The same candidate path is randomly scored K times, and the results of the K random scoring times are used to characterize the cognitive uncertainty of the task reward evaluation model on the current candidate path.

[0058] For example, through The parallel random forward propagation yields Each output score. Calculate the mean. and its sample variance At this point, not only was a prediction score obtained, but also an uncertainty measure that assesses the knowledge blind spots of the task reward evaluation model.

[0059] The task reward evaluation model in this module can adopt an existing task reward evaluation model, and this embodiment does not limit it.

[0060] Candidate path determination module 22: Uses a preset uncertainty threshold The algorithm filters out a reliable in-distribution subset and an unreliable out-of-distribution subset (the nodes in these two subsets are candidate paths). For the out-of-distribution subset, it obtains the optimistic confidence score for each candidate path and selects a re-evaluation subset consisting of candidate paths to be re-evaluated based on the optimistic confidence score and preset conditions.

[0061] Perception Search Module 23: Performs search reasoning for the next node for each candidate path in the re-evaluation subset and each candidate path in the distribution subset.

[0062] It should be noted that in actual processing, the resources of each device are limited. In order to ensure the balance of resources for each candidate path, this embodiment allocates the budget for re-evaluation resources and the resources for subsequent search inference.

[0063] (1) Reassess budget resource allocation: Identify out-of-distribution subset nodes whose optimistic confidence scores are close to the scores of the current highest in-distribution subset nodes (the difference is within the margin of preservation). High-potential fuzzy nodes (within). Application with a first temperature parameter. The normalized exponential function is used to proportionally allocate re-evaluation computing power to these nodes (i.e., add more Monte Carlo random deactivation sampling times to reduce variance) to obtain the new mean reward and uncertainty quantification value after re-evaluation.

[0064] (2) Expanded Budget Resource Allocation: After the reassessment, the node mean is updated more accurately. At this point, the average reward for each node is... The application has a second temperature parameter The normalized exponential function proportionally allocates the amount of funds used to generate extended child nodes. Large language models are based on quotas Generate the corresponding number of next-step inference sequences for each node.

[0065] Furthermore, this embodiment enhances adaptability by invoking a lightweight policy network, i.e., an adaptive controller. Before each expansion step, the adaptive controller collects statistical feature vectors (such as highest score, score variance, maximum uncertainty, current depth, remaining budget, etc.) of all candidate paths to be searched and reasoned, and outputs a set of dynamic hyperparameters for use by each module. This adaptive controller is trained offline using a policy gradient reinforcement learning algorithm, with the final correct answer as the reward signal.

[0066] The heuristic uncertainty-aware tree search in this embodiment is designed to address the problem that traditional external search methods rely solely on a single score from a task reward evaluation model and lack assessment of score reliability. This device, while retaining the basic processes of candidate node generation and tree expansion, introduces cognitive uncertainty estimation, candidate node credibility classification, re-evaluation of high-potential fuzzy nodes, and a dynamic allocation mechanism for the expanded budget.

[0067] It achieves theoretically guaranteed error reduction, theoretically proves and solves the linear error accumulation problem faced by traditional greedy search, and reduces the regret bound of the search process to a sublinear level through confidence upper bound and uncertainty-driven resampling mechanism.

[0068] Under limited experimental resources, efficient utilization of computing power can be achieved by finely dividing the limited computing power into evaluation computing power and generation computing power. In this method, only the most promising and highly uncertain fuzzy nodes are re-evaluated, while the remaining computing power is concentrated on expanding highly deterministic nodes, which greatly improves the input-output ratio of computing resources during inference.

[0069] Application examples Taking the automatic solution of mathematical word problems as an example, a user inputs a mathematical problem requiring multiple derivations. The large language model generates multiple candidate reasoning steps at each step. Traditional tree search methods typically select nodes to continue expanding based on a single score from a task reward evaluation model. When a candidate step is formally correct but logically flawed, the task reward evaluation model may assign an overconfident high score, causing the search to continue along the wrong path. The method in this embodiment performs multiple randomized scoring of candidate steps, calculates the mean reward and cognitive uncertainty, and dynamically allocates re-evaluation budgets and child node expansion budgets based on this uncertainty. This reduces the misleading influence of unreliable high-scoring nodes on the search process, improving the accuracy of the final answer and the efficiency of computational resource utilization.

[0070] That is, such as Figure 4 As shown, in a test of a mathematical reasoning problem, traditional beam search encountered a candidate node containing an incorrect formula derivation. Because this node perfectly matches the format of the training set, the task reward evaluation model gave it a high score of 0.85. Traditional search would immediately allocate most of its computing power to expanding nodes. .

[0071] In an embodiment of the present invention, the uncertainty estimation processing module 21 performs node estimation. Seven random mask forward propagations were performed to obtain the score set:

[0072] Calculation of discovery nodes The empirical mean was 0.65, and the cognitive variance was as high as 0.032 (far exceeding the threshold of 0.003). This identified it as a typical out-of-distribution misjudgment. The subsequent resource allocation module reduced the number of nodes. The expanded budget will transfer computing power to the correct node with a stable score of 0.76 and a variance of only 0.001. This avoids the collapse of the reasoning chain.

[0073] In addition, embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, the processor executes the computer program in the memory, and performs the steps of the above-described unmanned aerial vehicle mission planning method based on uncertainty perception.

[0074] This invention also provides a computer storage medium, comprising: a computer program stored in the computer storage medium, wherein the computer program, when executed by a processor, implements the steps of any of the above-described methods for unmanned aerial vehicle (UAV) mission planning based on uncertainty perception.

[0075] The application scenario for the method in this application is defined as: the search scenario during reasoning of large language models in complex reasoning tasks, specifically including automatic solution of mathematical problems, code generation and debugging, multi-step question answering, intelligent education problem-solving assistance, tool call planning, etc.

[0076] The method and apparatus of this embodiment can be natural language processing technology, a key technology in artificial intelligence. It can perform subsequent search and reasoning on the content of machine question-and-answer sessions, as well as semantic processing, machine translation, and other methods to achieve an effective search and reasoning process. In this embodiment, a large language model is used to perform multi-step reasoning and candidate reasoning path generation for natural language questions.

[0077] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions.

[0079] It should be noted that any reference numerals placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In claims that enumerate several means, several of these means may be embodied by the same hardware. The use of the terms first, second, third, etc., is merely for convenience of expression and does not indicate any order. These terms can be understood as part of the component names.

[0080] Furthermore, it should be noted that in the description of this specification, the terms "one embodiment," "some embodiments," "embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, 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.

[0081] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the claims should be interpreted to include both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0082] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, then this invention should also include these modifications and variations.

Claims

1. A UAV mission planning method based on uncertainty perception, characterized in that, include: S100. For multiple candidate paths in the UAV mission planning generated by the large language model, a mission reward evaluation model is used to evaluate each candidate path and obtain the average reward and uncertainty quantification value of each candidate path. S200. Based on the uncertainty quantification value of each candidate path and the preset threshold τ, divide all candidate paths into an in-distribution subset and an out-of-distribution subset. S300. Obtain the optimistic confidence score of each candidate path in the off-distribution subset, and filter the re-evaluation subset composed of candidate paths to be re-evaluated based on the optimistic confidence score and preset conditions. The preset conditions are related to the mean reward of each candidate path in the on-distribution subset. S400. Perform search and reasoning for the next node for each candidate path in the re-evaluation subset and each candidate path in the distribution subset.

2. The method according to claim 1, characterized in that, If the large language model search and inference is in the resource-constrained stage, and the resources of each candidate path are in a balanced state in the initial stage, then S400 includes: S401. Obtain the new mean reward and uncertainty quantification value for each candidate path in the re-evaluation subset; S402. Obtain the latest average reward of all candidate paths in the subset within the distribution and the re-evaluation subset, as well as the given temperature parameter for adjusting the resource allocation balance. Obtain the resource budget for the extended inference of the next node of each candidate path, and perform the next stage of search inference based on their respective resource budgets.

3. The method according to claim 2, characterized in that, The 401 includes: S4011, Obtain the first temperature parameter Normalized exponential distribution of control The first temperature parameter is used to adjust the balance of resource allocation. S4012. Allocate the reassessment budget to the reassessment subset. Candidate paths in Reassessment of budget resources , ,in, Candidate paths for allocating assessment budget resources Total weight assessment budget, It is an exponential function with the natural constant as its base. Indicates the rounding operation; h i and h j All are elements belonging to the re-evaluation subset S, where i and j are both integers greater than 0; S4013, Based on candidate paths Reassessment of budget resources The task reward evaluation model was used to evaluate the candidate path. An evaluation was conducted to obtain a new average reward and a quantified value for uncertainty.

4. The method according to claim 2, characterized in that, S402 includes: S4021, Obtain second temperature parameter control Normalized exponential distribution , S4022, Based on each candidate path in the distribution subset and the re-evaluation subset Given the remaining resources and the number of steps remaining at the termination condition, obtain the budget resources for extended inference of the next node in each candidate path as the extended resources of the child node. ; ,in The total extended budget corresponding to the remaining steps of each candidate path. The set of all candidate paths is a subset of the distribution and the re-evaluation subset; Candidate paths The average reward; Candidate paths The average reward.

5. The method according to claim 1 or 2, characterized in that, The process of obtaining the optimistic confidence score for each candidate path h in the out-of-distribution subset in S300 includes: ,in To explore the coefficient, This represents the current number of steps in the search and reasoning process. This represents the number of re-evaluations for the current inference candidate path. It is the natural logarithm. Let h be the average reward for each candidate path h in the outer subset of the distribution.

6. The method according to claim 5, characterized in that, The re-evaluation subset in S300, which is composed of candidate paths to be re-evaluated selected based on optimistic confidence scores and preset conditions, includes: Candidate paths whose optimistic confidence scores meet preset conditions are selected from the out-of-distribution subset, forming a re-evaluation subset S. The preset condition is: the optimistic confidence score of the candidate path in the out-of-distribution subset is greater than or equal to the mean maximum reward in the in-distribution subset minus the given retention margin. .

7. The method according to any one of claims 2 to 4, characterized in that, Prior to step S400, the method further includes: Based on the mean reward, uncertainty quantification, current search inference steps, termination condition, and remaining resources of each candidate path in the in-distribution subset and re-evaluation subset, an action vector is obtained through a trained adaptive controller. The hyperparameters used in the current inference step are dynamically adjusted based on the action vector; The hyperparameters include: a first temperature parameter, a second temperature parameter, and a retention margin. , preset threshold τ, budget resource cap for extended inference of the next node, re-evaluate budget resource cap.

8. The method according to claim 1, characterized in that, In step S100, a task reward evaluation model is used to evaluate each candidate path, obtaining the average reward and uncertainty quantification value for each candidate path, including: S101. A random deactivation mechanism is adopted in the inference process of the task reward evaluation model, for each candidate path conduct Each forward propagation with a different random mask is used to obtain... A random reward score; S102, Calculate the above The average of the random reward scores is used as the average reward for the current candidate path. and calculate the The sample variance of each random reward score is used as the quantification value of the cognitive uncertainty. , ,in, For the first The random reward score obtained by forward propagation with random inactivation, k belongs to K.

9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program in the memory and performs the steps of the uncertainty-aware UAV mission planning method according to any one of claims 1 to 8.

10. A computer storage medium, characterized in that, include: The computer storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, it implements the steps of the unmanned aerial vehicle mission planning method based on uncertainty perception as described in any one of claims 1 to 8.