A large model task detection method, device, medium and equipment
By constructing positive and negative samples and task decomposition samples to train a large task detection model, the illusion problem of large language models when the task scale exceeds their capabilities is solved, realizing low-cost and automated task granularity evaluation, and improving the reliability of task processing and resource utilization efficiency.
Patent Information
- Application Number
- CN202610623743.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-08
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-05-08
AI Technical Summary
In existing technologies, large language models are prone to illusions when the task scale exceeds their capabilities, and existing evaluation methods are costly and resource-intensive, making it difficult to achieve automated and standardized task breakdown granularity evaluation.
By constructing positive and negative samples and task decomposition samples, a large task detection model is trained to learn and judge the rationality of task granularity, thereby reducing manual costs and resource consumption.
It achieves low-cost, automated task granularity evaluation, avoids the illusion risk caused by large models with excessively large task scale, and improves the reliability of task processing and resource utilization efficiency.
Smart Images

Figure CN122153374B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular to a method, apparatus, storage medium and device for detecting large model tasks. Background Technology
[0002] With the development of artificial intelligence (AI) technology, large language models (LLM) have been widely applied in various fields.
[0003] However, when the scale of the task faced by an LLM exceeds its own capabilities, or when the LLM lacks the necessary data support, or when the functions that the LLM can call are insufficient to support reasoning, the LLM can only forcibly generate answers based on existing data and capabilities, which may cause the LLM to experience "illusions" when performing tasks, thereby reducing the accuracy and reliability of the LLM in performing tasks.
[0004] In existing technologies, the rationality of task decomposition granularity in LLM task processing is generally evaluated based on human experience. That is, experts judge the logic and rationality of task decomposition by their domain knowledge, which is not only costly but also has low versatility. On the other hand, the verification method based on test datasets requires a lot of computing resources and time costs, making it difficult to implement in practice.
[0005] Therefore, how to automate and evaluate the granularity of task splitting at low cost has become an urgent problem to be solved. Thus, this specification provides a method for large-scale task detection. Summary of the Invention
[0006] This specification provides a method, apparatus, storage medium, and electronic device for detecting large model tasks, in order to partially solve the problems existing in the prior art.
[0007] The embodiments in this specification adopt the following technical solutions: This specification provides a method for detecting large model tasks, the method comprising: Obtain a single-task dataset, wherein each training sample in the single-task dataset contains the input data for the task and the information required for the large model to perform inference; The training samples are used as positive samples, and the information required for reasoning contained in the positive samples is modified to obtain negative samples. The positive samples and the negative samples are used as the first samples. Obtain the task decomposition and planning dataset, take the complete task in the task decomposition and planning dataset as the second sample, and take the sub-tasks after the complete task is decomposed and planned as the annotation; Based on the first sample and the second sample, a large-scale task detection model is trained; the large-scale task detection model is used to input the task to be executed and output the task granularity detection result, and the strategy for the business large-scale model to execute the task is determined based on the task granularity detection result.
[0008] This specification provides a large-scale model task detection device, the device comprising: The acquisition module is used to acquire a single task dataset, wherein each training sample in the single task dataset contains the input data of the task and the information required for the large model to perform inference. The residual construction module is used to take the training samples as positive samples, modify the inference information contained in the positive samples to obtain negative samples, and use the positive samples and the negative samples as the first samples. The task splitting module is used to obtain a task decomposition planning dataset, take the complete task in the task decomposition planning dataset as the second sample, and take the sub-tasks after the complete task is decomposed and planned as the label; The training and detection module is used to train a large-scale task detection model based on the first sample and the second sample; the large-scale task detection model is used to input the task to be executed and output the task granularity detection result, and to determine the strategy for the large-scale business model to execute the task based on the task granularity detection result.
[0009] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described large model task detection method.
[0010] This specification provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described large model task detection method.
[0011] The above-described at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: This specification discloses a method for detecting large model tasks. The method acquires training samples containing input data for the task and information required for the large model's inference, which are then used as positive samples. The inference-related information in the positive samples is modified to determine negative samples, thus constructing a first sample. A second sample containing the complete task and its decomposed sub-tasks is then acquired. The large model for task detection is trained using these two types of samples, learning the ability to judge the executableness of decomposed sub-tasks from task decomposition. This determines whether the input large model task has excessively large granularity and determines the task execution strategy. By constructing positive and negative samples and task decomposition samples, the model is trained to learn the ability to judge the reasonableness of task granularity, reducing manual costs and eliminating the need to set test cases and run the large model, thus reducing resource consumption. Attached Figure Description
[0012] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings: Figure 1 A flowchart of a large model task detection provided in the embodiments of this specification; Figure 2 A schematic diagram illustrating task breakdown and reasoning provided in the embodiments of this specification; Figure 3 This is a schematic diagram of a large model task detection device provided in the embodiments of this specification; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this specification. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.
[0014] Large Language Models (LLMs), also known simply as large models, are models that perform logical reasoning on input natural language text and output user-understandable natural language descriptions. When the complexity of the tasks handled by a large language model matches its capabilities, it can smoothly complete tasks such as question answering, multi-turn dialogues, and content generation, thus finding wide application in fields such as education, healthcare, law, and finance.
[0015] However, once the scale of the task exceeds the processing capacity of the model, for example, if the large model lacks the data necessary to complete the task, or if the large model itself is not capable enough to handle the task, the large model may force the generation of content instead of generating content based on facts, which is a situation of model "hallucination".
[0016] To avoid situations where tasks exceed the capabilities of a large model, it's necessary to assess whether the task size is too large or whether it needs to be broken down into finer-grained subtasks. Currently, this is generally based on human experience, where experts subjectively assess whether the task exceeds the model's processing capacity based on task complexity and domain knowledge. However, this method, heavily reliant on the evaluator's personal experience, struggles to establish standardized evaluation processes and automates the process. It is inefficient in large-scale applications, and the consistency of evaluation results is difficult to guarantee.
[0017] The method involves running large models on specific test sets and analyzing their performance metrics, such as accuracy, completeness, and frequency of hallucinations, to indirectly infer whether the task size is reasonable. This requires repeatedly running large models on massive datasets, resulting in extremely high computational and time costs. This is especially problematic when the model has a large number of parameters or diverse task types, where resource consumption becomes unacceptable, hindering practical application.
[0018] It is evident that there is currently a lack of a low-cost and lightweight method for evaluating and testing large-scale models for tasks, in order to determine whether the capabilities of a large model match the task complexity before calling it.
[0019] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0020] Figure 1 A flowchart for a large model task detection provided in this specification includes the following steps: S100: Obtain a single-task dataset, wherein each training sample in the single-task dataset contains the input data for the task and the information required for the large model to perform inference.
[0021] In the embodiments described in this specification, the following are employed: Figure 1 The device used for large model task detection using the method shown can be any electronic device, such as a computer, server, or server cluster consisting of multiple servers. For ease of description, the following explanation uses a server as an example only.
[0022] To evaluate the appropriateness of the task granularity of the large model, the task detection large model needs to possess both the ability to break down tasks and the ability to determine whether the task's "difficulty" exceeds the capabilities of the target large model. The target large model is the large model used to execute business logic in the business scenario. For example, in an intelligent customer service system, the large language model used to answer user inquiries is the target large model.
[0023] Specifically, the server acquires a single-task dataset. The training samples in this dataset are indivisible atomic tasks. The training samples contain the task's input data and the information required to complete the inference for that task.
[0024] The input data for the task represents a single, complete request initiated by the user, which does not require further decomposition into finer-grained subtasks. The external information required to complete the task can include the data upon which the model relies for inference and the available tools. These tools may include: web searches, web page access, database access, etc. Since this type of training data is generally accurate—that is, the information required for inference satisfies the task execution—it can be considered a positive sample. In other words, when labeled as supporting task execution, this training sample indicates that the provided data and tools are sufficient to complete the task; that is, given the information and capabilities, the atomic task can be executed normally.
[0025] S102: The training samples are used as positive samples, and the information required for reasoning contained in the positive samples is modified to obtain negative samples. The positive samples and the negative samples are used as the first samples.
[0026] After acquiring a single task dataset, the server can construct positive and negative sample pairs based on this dataset to train a large-scale task detection model. This enables the large-scale model to determine whether it is sufficient to complete the task given the given data and capabilities. As described in step S100, the positive samples can be directly derived from the single task dataset and are labeled as meeting the conditions for the large-scale model to execute the task. However, relying solely on positive samples for training, the large-scale task detection model cannot identify scenarios with missing information or insufficient capabilities, making it difficult to effectively warn of risks caused by excessively large task scales in practical applications. Therefore, the server can also construct negative samples, enabling the large-scale task detection model to learn that when the data content or external tools required for inference are incomplete, the task cannot be successfully executed, and the large-scale task detection model learns the ability to recognize information completeness.
[0027] Specifically, firstly, the server can extract each training sample as a positive sample from a single task dataset. Each positive sample contains the task's input data and the information required for inference. This information specifically includes the data content needed for the large model to perform inference and the external tools called for inference. The positive samples are labeled to satisfy the conditions for the large model to perform the task.
[0028] Secondly, the server performs a negative sample generation operation for each positive sample, which can be achieved by modifying the information required for inference contained in the positive sample.
[0029] The server can determine the data content entries required for inference contained in the positive sample, as well as the list of external tools to be invoked for inference. Then, it performs a deletion operation on the data content required for inference and / or the external tools to be invoked for inference.
[0030] For example, for a positive sample whose input is "Check the weather in Hangzhou tomorrow," the data required for inference includes the current date and location information, and the external tool called for inference is a weather query application programming interface (API). The server can remove the weather query API, keeping only the data content, thus generating a negative sample. Alternatively, the server can remove the location information from the data content, keeping only the tool, also generating a negative sample.
[0031] Of course, the server can also delete some data content and external tools at the same time, generating negative samples with more severe information loss.
[0032] In the embodiments described in this specification, the generated negative samples retain the original task input data unchanged, ensuring that the changes only affect the information required for inference. The server assigns a label to each negative sample indicating that the conditions for executing the large model's task are not met. Thus, the server obtains a set of training data consisting of positive samples and corresponding negative samples, i.e., the first sample. Positive samples indicate executable states in scenarios with complete information, while negative samples indicate non-executable states in scenarios with missing information. This first sample will be used to subsequently train the large detection model, enabling it to determine whether the execution conditions are met based on the input task content and currently available data and tools.
[0033] Additionally, it should be noted that the first sample is constructed based on training samples from a single task dataset, and this training sample consists of indivisible atomic tasks. By constructing the first sample using atomic tasks, the server enables the task detection model to learn, during the training phase, an accurate judgment of the causal relationship between information completeness and task executability, rather than a vague perception of task complexity.
[0034] S104: Obtain the task decomposition and planning dataset, take the complete task in the task decomposition and planning dataset as the second sample, and take the sub-tasks after the complete task is decomposed and planned as the annotation.
[0035] Because a mismatch between the capabilities of a large model and the difficulty of a task is more likely to occur when dealing with complex tasks, a second sample is needed to train the task decomposition planning capability of the large task detection model. This allows the large task detection model to decompose complex tasks into ordered atomic subtasks, thus forming a complete processing chain from task-level evaluation to dynamic decomposition. Therefore, the server can obtain a dataset used to train the task decomposition planning capability, i.e., a task decomposition planning dataset, to determine the second sample.
[0036] Specifically, the server acquires a task decomposition and planning dataset. This dataset can be obtained by collecting successfully processed complex requests and their corresponding decomposition records from historical interaction logs. These decomposition records reflect how user intent is translated into an executable sequence of steps in actual business operations. Alternatively, it can be obtained from publicly available open-source datasets, such as the AgentSynth dataset, which uses an automated process to synthesize over six thousand high-quality tasks and their corresponding execution trajectories. Each task consists of multiple subtasks combined according to difficulty levels, with a one-to-one correspondence between the complete task and the decomposed subtask sequence. Regardless of the source, the task decomposition and planning dataset ultimately obtained by the server contains a large number of complete task samples, with each complete task corresponding to multiple decomposed subtasks.
[0037] The server processes the acquired task decomposition and planning dataset, extracting each complete task as a second sample. This second sample is essentially the original, undecomposed input, preserving the complete semantics and complexity of the user request. Simultaneously, the server labels the corresponding decomposition and planning result of this complete task in the dataset, with the decomposition and planning result representing a series of subtasks arranged in execution order.
[0038] For example, in the AgentSynth dataset, each task is composed of multiple subtasks according to difficulty level. Difficulty level 1 corresponds to a single subtask, while difficulty level 6 consists of a sequence of multiple subtasks with dependencies. These subtask sequences are the decomposition planning results that the model needs to learn.
[0039] Through the above operations, the server constructs a second sample for training the task decomposition capability. Each second sample contains a complete task to be decomposed as input and its corresponding subtask sequence as annotation.
[0040] S106: Based on the first sample and the second sample, train a large-scale task detection model; the large-scale task detection model is used to input the task to be executed and output the task granularity detection result, and the strategy for the business large-scale model to execute the task is determined based on the task granularity detection result.
[0041] In the embodiments of this specification, after the construction of the first sample and the second sample is obtained, the server can jointly train the task detection model, so that the task detection model can decompose complex tasks and determine whether the decomposed sub-tasks meet the execution conditions, thereby giving a detection result on whether the task granularity is reasonable.
[0042] Specifically, the server merges the first and second samples as training data to perform supervised fine-tuning on the task detection model to be trained. This task detection model can be a pre-defined general model. During training, the task detection model learns to determine whether a given task input, along with available tools and information, is decomposable. If it is decomposable, it generates a corresponding sequence of subtasks and evaluates whether the execution conditions for each subtask in the sequence are met.
[0043] After training, the task detection model can be applied to business processes to check whether the task granularity is reasonable before inputting the task into the target model. The application process can also be implemented through a server, specifically the same device as the server used in the training process, or another server called by the business process; this specification does not impose any restrictions.
[0044] Specifically, in response to a detection request for a task to be executed, the server first extracts the input data of the task from the request. Simultaneously, the server determines the currently available tool information and the knowledge base content of the business model to be detected, combining these into a set of available information. The available tool information includes external application programming interfaces (APIs), database query interfaces, and online search services accessible to the business model. The knowledge base content refers to the structured and unstructured data stored internally by the business model or available for real-time retrieval. The server then inputs the input data of the task to be executed and the currently available information into the trained task detection model.
[0045] The large-scale detection model then decomposes the task to be executed into inferences, generating one or more subtasks based on the task's semantics and complexity. If the task itself is an atomic task, the decomposition result only includes that task itself.
[0046] Subsequently, the task detection big model sequentially examines each identified subtask and, based on the available information in the input, infers whether the subtask meets the conditions for the business big model to execute the subtask, namely, whether the required data content is complete and whether the required external tools are available.
[0047] If the conditions for a subtask are met, the task detection model continues to identify the next subtask until all subtasks have been verified. When all subtasks meet the execution conditions, the task granularity detection result for the task to be executed is determined to be normal.
[0048] If, during the verification process, it is found that any data required for a subtask is missing or the required external tools are unavailable, the task detection model can stop subsequent verification and determine that the task granularity detection result is granularity abnormal.
[0049] Finally, based on the task granularity detection results output by the task detection big model, the server determines the execution strategy for the business big model. When the detection result indicates normal granularity, the server directly hands over the original task to the business big model for execution, allowing the business big model to successfully complete the user request using the available information. When the detection result indicates abnormal granularity, the server determines that the current task scale is too large or the conditions are insufficient, making it unsuitable for direct execution, and triggers a preset exception handling strategy.
[0050] For example, the server can provide supplementary information to the user regarding any unmet conditions in the decomposed subtask sequence, or guide the user to refine the request into more specific sub-problems, or execute the executable subtasks first and return interim results. Through the above process, utilizing the large-scale task detection model, the server can achieve lightweight evaluation of task granularity without running the large-scale business model, effectively avoiding the illusion risk caused by excessive task size, and improving the reliability and resource utilization efficiency of complex task processing.
[0051] based on Figure 1 The large-scale task detection method described herein acquires training samples containing the task's input data and information required for the large model's inference as positive samples. The inference-related information in the positive samples is then modified to determine negative samples, forming the first sample. A second sample containing the complete task and its decomposed subtasks is then acquired. This second sample is used to train the large-scale task detection model, learning its ability to judge the feasibility of each subtask after task decomposition. This helps determine if the input task granularity is too large and to determine the appropriate task execution strategy. By constructing positive and negative samples and task decomposition samples, the model is trained to judge the reasonableness of task granularity, reducing manual costs and eliminating the need to set test cases or run the large model, thus reducing resource consumption.
[0052] In the embodiments of this specification, during the process of constructing positive and negative samples in step S102, the server can not only generate negative samples that do not meet the execution conditions, but also specifically determine the specific reasons for not meeting the conditions, so that the task detection model can learn the fine-grained correlation between information loss and task non-executability.
[0053] To improve the interpretability and interactivity of the task detection model, in the subsequent step S106, the task detection model can also output the specific reasons for unreasonable task granularity, which can then provide users with more accurate prompts.
[0054] Specifically, the server can delete the data content and external tools required for inference, and then determine negative samples based on the remaining information needed for inference and the original input data. Simultaneously, the server extracts the deleted information from this operation and uses it as the annotation content for the negative sample.
[0055] For example, for an original positive sample, the task input data is to query the weather in Hangzhou tomorrow. The data required for inference includes the current date and location information, and the external tool called for inference is a weather query application interface. The server performs a deletion operation, removing the weather query application interface from the list of external tools, retaining only the data content. Based on the information required for inference after deletion and the input data, the server identifies a negative sample and marks the deleted weather query application interface as a label for the negative sample, indicating that the negative sample cannot perform the task due to the lack of this tool.
[0056] Alternatively, the server can simultaneously remove location information and external tools from the data content. In this case, the labeling of the negative sample would include both location information and weather query application interface, indicating that the absence of both renders the task unexecutable.
[0057] Therefore, the negative samples constructed by the server not only carry labels that do not meet the execution conditions, but also include specific missing information annotations, enabling the task detection model to establish a correspondence between missing items and non-executable items during the training process.
[0058] In one or more embodiments of this specification, in step S106, after the task detection big model has completed training and been deployed in the business system, the server determines the strategy for the business big model to execute tasks based on the task granularity detection results output by the task detection big model.
[0059] When the detection result indicates that the granularity is normal, the server directly hands over the original task to the business big model for execution.
[0060] When the detection result indicates an abnormal granularity, the server can further return specific feedback information, enabling users to optimize and adjust the task. If the server returns an abnormal task granularity without specifying which part of the process is causing the problem, it will be difficult to modify the request or supplement the information, reducing task execution efficiency.
[0061] Among them, granularity anomalies may stem from two different types of problems: one is that the subtask itself is still a complex task that needs to be further broken down, and the other is that the granularity of the subtask is reasonable but the execution conditions are not met.
[0062] For the former, the subtasks that specifically cause abnormal task granularity, although already components separated from the original task, are still judged as unexecutable in the current detection because they are still complex tasks with granularity not yet at the atomic level, requiring further decomposition. The task detection model learns task decomposition planning capabilities through second samples during the training phase, thus enabling it to identify which subtasks still have room for further decomposition during the inference phase.
[0063] It's important to note that the function of the task detection model is to perform granular evaluation of the input task and output detection results, not to replace the user in performing all the decomposition operations. During the training phase, it learns task decomposition planning capabilities through second samples, enabling it to identify which subtasks still have room for further decomposition. However, the task detection model lacks the complete context of the user's intent and cannot replace the user's decision-making power regarding business needs. When the task detection model determines that a subtask still needs further decomposition, it means that the granularity of that subtask has not yet reached the atomic level. However, the specific decomposition method and the finer-grained subtasks to be decomposed often depend on the user's business goals and domain knowledge, information that cannot be obtained from within the task detection model. Therefore, the server returns the subtask to the user, allowing the user to perform targeted decomposition based on their own intent, avoiding blind decomposition due to a lack of context that could lead to results deviating from the user's expectations.
[0064] Therefore, the server retrieves the information for the subtask, returns it to the user, and simultaneously informs the user that the current business model cannot execute the subtask, guiding the user to further break it down. For example, in an enterprise resource planning scenario, the user submits a request to process expense reimbursement applications from all departments this quarter. The task detection model breaks this request down into multiple subtasks, such as processing expense reimbursement applications from the finance department, the marketing department, and the technology department. When verifying the subtask of processing expense reimbursement applications from the finance department, the model determines that this subtask cannot be executed directly because the finance department's expense reimbursement applications include multiple different types, such as travel expense reimbursement, office supply purchase reimbursement, and meeting expense reimbursement, requiring further breakdown into more granular subtasks based on expense type. The server retrieves the information for the subtask of processing expense reimbursement applications from the finance department and returns a prompt to the user: "The subtask of processing expense reimbursement applications from the finance department cannot be executed at present. This subtask still needs to be further broken down. Please refine it further according to expense type or departmental structure."
[0065] For the latter, the server identifies subtasks that do not meet the execution conditions from the output of the task detection model. Since the task detection model learns negative samples labeled with missing information during training, it can identify whether the missing information for an insufficiently defined subtask is data content or an external tool during the inference phase. The server retrieves the information for the subtask and its missing items, then returns the subtask to the user, simultaneously informing the user that the current business model cannot execute the subtask and guiding the user to further break down the subtask.
[0066] For example, in a travel planning scenario, a user requests to book a flight and check the weather at their destination. The task detection model breaks this request down into a flight booking subtask and a weather query subtask. During the verification process, it discovers that the external tools required for the weather query subtask are unavailable. Based on the detection results, the server determines the granularity anomaly and identifies the weather query subtask as an unexecuted subtask, while also obtaining the missing tool information for this subtask. The server returns a message to the user: "Unable to execute the weather query subtask because the weather query tool is currently unavailable. Please further break down the weather query subtask into more specific operations, such as opening a weather website and manually entering the location, or trying again later."
[0067] In the embodiments described in this specification, through the above process, the server not only identifies anomalies in task granularity, but also provides users with clear directions for improvement, enabling users to participate in the refinement and supplementation of tasks, thereby improving the success rate of complex task processing and user experience.
[0068] Figure 2This is a schematic diagram of the task decomposition and reasoning process provided in the embodiments of this specification. In this process, the server inputs the task to be executed into the task detection model. The task detection model decomposes the task and determines whether it can be further decomposed layer by layer until the decomposition is completed. Then, it determines whether each decomposed subtask is missing data or capability. If it is determined that it is missing, it returns a result with too large a granularity. Otherwise, it continues to determine until each subtask is free of missing data and capability, and then returns a result with normal granularity.
[0069] The above is an example of a large model task detection method provided in this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.
[0070] Figure 3 This is a schematic diagram of a large model task detection device provided in an embodiment of this specification. The device includes: The acquisition module 201 is used to acquire a single task dataset, wherein each training sample in the single task dataset contains the input data of the task and the information required for the large model to perform inference. The residual construction module 202 is used to take the training sample as a positive sample, modify the inference information contained in the positive sample to obtain a negative sample, and use the positive sample and the negative sample as the first sample; The task splitting module 203 is used to obtain a task splitting and planning dataset, take the complete task in the task splitting and planning dataset as the second sample, and take the sub-tasks after the complete task is split and planned as the annotation; The training and detection module 204 is used to train a large-scale task detection model based on the first sample and the second sample; the large-scale task detection model is used to input the task to be executed and output the task granularity detection result, and to determine the strategy for the large-scale business model to execute the task based on the task granularity detection result.
[0071] Optionally, the information required for the inference includes the data content required for the large model to perform inference and the external tools called for the inference; The residual construction module 202 is used to determine the data content required for inference and the external tools called for inference contained in the positive sample; and to delete the data content required for inference and / or the external tools called for inference to obtain the negative sample.
[0072] Optionally, the positive samples are labeled to meet the conditions for executing the large model task, and the negative samples are labeled to not meet the conditions for executing the large model task.
[0073] Optionally, the residual construction module 202 is used to delete the data content required for the inference and / or the external tools called for the inference; and to determine negative samples based on the information required for the inference after deletion and the input data, using the deleted information as the label of the negative samples.
[0074] Optionally, the training detection module 204 is configured to, in response to a detection request for a task to be executed, determine the input data of the task to be executed; determine the tool information that the business big model to be detected can call, and the knowledge base of the business big model, and determine the information that can be provided; input the input data of the task to be executed and the information that can be provided into the task detection big model, so that the task detection big model first performs reasoning decomposition on the task to be executed to determine at least one sub-task; sequentially for each determined sub-task, through the task detection big model, identify whether the information that can be provided satisfies the business big model to execute the sub-task; if so, continue to identify the next sub-task until it is determined that the information that can be provided satisfies the execution of each sub-task, and determine that the task granularity detection result is normal; if not, determine that the task granularity detection result is abnormal.
[0075] Optionally, the training detection module 204 is used to execute the task when the task granularity detection result is determined to be normal; when the task granularity detection result is determined to be abnormal, identify the sub-tasks output by the task detection big model that do not meet the execution requirements; return the sub-tasks, prompt the user that the business big model cannot execute the sub-tasks, and prompt the user to continue to break down the sub-tasks.
[0076] Optionally, the training detection module 204 is further configured to determine the missing data content and / or invoke tools for executing the sub-task output by the task detection large model; and return a prompt to the user indicating the missing data content and / or invoke tools for executing the sub-task.
[0077] This specification also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can be used to perform the large model task detection method provided above.
[0078] based on Figure 1 The large model task detection method shown in this specification also provides the embodiments. Figure 4 The diagram shows the structure of the electronic device. Figure 4 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to implement the large-scale model task detection method described above.
[0079] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.
Claims
1. A method for detecting large model tasks, the method comprising: Obtain a single-task dataset, wherein each training sample in the single-task dataset contains input data for the task in the form of natural language text, as well as information required for the large model to perform inference; The training samples are used as positive samples, and the information required for reasoning contained in the positive samples is modified to obtain negative samples. The positive samples and the negative samples are used as the first samples, and the training samples in the first samples are indivisible atomic tasks. Obtain the task decomposition and planning dataset, take the complete task in natural language form in the task decomposition and planning dataset as the second sample, and take the sub-tasks after the complete task is decomposed and planned as the annotation; Based on the first sample and the second sample, the first sample and the second sample are merged as training data, and the preset general large model is subjected to supervised fine-tuning to obtain the task detection large model. In response to a detection request for a task to be executed in natural language form, the input data of the task to be executed is determined, and a set of available information of the business model to be detected is obtained; The input data of the task to be executed and the set of available information are input into the task detection model, so that the task detection model can decompose the task to be executed to determine at least one sub-task, and identify whether each sub-task meets the execution conditions. Based on the recognition results, output the task granularity detection results; Based on the task granularity detection results, a strategy for executing tasks in the large business model is determined.
2. The method as described in claim 1, wherein the information required for inference includes the data content required for the large model to perform inference and the external tools called for inference; The information required for reasoning contained in the positive samples is modified to obtain negative samples, specifically including: Determine the data content required for inference contained in the positive sample and the external tools required for inference; The data content required for the inference and / or the external tools called for the inference are deleted to obtain negative samples.
3. The method as described in claim 1, wherein the positive samples are labeled to meet the conditions for executing the large model task, and the negative samples are labeled to not meet the conditions for executing the large model task.
4. The method as described in claim 2, wherein the data content required for the inference and / or the external tools invoked for the inference are deleted to obtain negative samples, specifically includes: The data content required for the inference and / or the external tools invoked for the inference are deleted; Based on the information required for reasoning after deletion and the input data, negative samples are determined, and the deleted information is used as the label for the negative samples.
5. The method as described in claim 1, obtaining a set of available information for the business model to be detected; inputting the input data of the task to be executed and the set of available information into the task detection model, so that the task detection model decomposes the task to be executed to determine at least one sub-task, and identifies whether each sub-task meets the execution conditions respectively. Based on the recognition results, the task granularity detection results are output, specifically including: Determine the tool information that can be called by the business model to be tested, as well as the knowledge base of the business model, and determine the information that can be provided; The input data of the task to be executed and the available information are input into the task detection model, so that the task detection model first performs reasoning decomposition on the task to be executed and determines at least one sub-task. For each identified subtask, the task detection model is used to determine whether the available information satisfies the business model before executing the subtask. If so, continue to identify the next subtask until it is determined that the available information satisfies the execution of each subtask, and then determine that the task granularity detection result is normal. If not, then the task granularity detection result is determined to be granularity abnormal.
6. The method as described in claim 4, wherein determining the strategy for executing tasks based on the task granularity detection results of the large business model specifically includes: When the task granularity detection result is determined to be normal, the task is executed. When the task granularity detection result is determined to be granularity abnormal, the sub-tasks that do not meet the execution requirements output by the task detection big model are identified. The subtask is returned, and the user is prompted that the main business model cannot execute the subtask, and the user is prompted to continue to break down the subtask.
7. The method of claim 6, further comprising: Determine the missing data content and / or invoke tools for the sub-tasks output by the large model for task detection; Return a prompt to the user, indicating the missing data and / or required tools for executing the subtask.
8. A large model task detection device, the device comprising: The acquisition module is used to acquire a single task dataset, wherein each training sample in the single task dataset contains input data for the task in the form of natural language text and information required for the large model to perform inference. The residual construction module is used to take the training samples as positive samples, modify the inference information contained in the positive samples to obtain negative samples, and take the positive samples and the negative samples as the first samples, wherein the training samples in the first samples are indivisible atomic tasks. The task decomposition module is used to obtain a task decomposition planning dataset, take the complete task in natural language form in the task decomposition planning dataset as the second sample, and take the sub-tasks after the complete task decomposition and planning as the annotation; The training and detection module is used to combine the first sample and the second sample as training data, and to perform supervised fine-tuning on a preset general large model to obtain a task detection large model. In response to a detection request for a task to be executed in natural language form, the system determines the input data of the task to be executed and obtains a set of available information of the business model to be detected. The system inputs the input data of the task to be executed and the set of available information into the task detection model, so that the task detection model decomposes the task to be executed to determine at least one sub-task and identifies whether each sub-task meets the execution conditions. Based on the recognition results, output the task granularity detection results; Based on the task granularity detection results, a strategy for executing tasks in the large business model is determined.
9. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method described in any one of claims 1-7.
Citation Information
Patent Citations
Method and device for improving large language model agent evaluation accuracy through fine-grained classification modeling
CN119025416A
Question reply method, model training method, equipment, storage medium and product
CN120031130A
Intention recognition method based on thinking chain guidance
CN120338107A
Multi-modal large model-based scientific research data fusion analysis method and system
CN121483565A
