Task execution method and device, computer readable storage medium, and electronic device
By acquiring user task description information and model association information to generate scheduling strategies and dynamically matching model combinations, the problems of model silos and uneven resource utilization in smart city platforms are solved, achieving high efficiency and flexibility in task processing and meeting complex and ever-changing business needs.
Patent Information
- Application Number
- CN202510622852.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot meet complex and ever-changing business needs. Manual model selection is inefficient and makes it difficult to achieve dynamic adaptation between models and tasks. This results in low efficiency of multi-model collaboration, static and rigid scheduling strategies, uneven resource utilization, and insufficient ability to handle complex tasks in smart city platforms.
By acquiring the task description information of user tasks and combining it with the model association information of optional models, a model scheduling strategy is generated. The optimal model combination is dynamically matched, and a dynamic model collaboration mechanism is established by using adaptive inference optimization and heterogeneous resource scheduling to break down model silos and improve task processing efficiency.
It achieves intelligent matching between task requirements and model capabilities, improves the accuracy and efficiency of task processing, enhances the flexibility and adaptability of task execution, overcomes the problem of model silos, and meets complex and ever-changing business needs.
Smart Images

Figure CN123157338A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to a task execution method, a task execution device, a computer-readable storage medium, and an electronic device. Background Technology
[0002] With the development of artificial intelligence technology, various general-purpose large models and industry-specific large models are emerging in large numbers.
[0003] In related technologies, when performing user tasks, the selection of models generally relies on human experience. However, the above solutions cannot meet the complex and ever-changing business needs, and when faced with a large number of candidate models, manual selection is inefficient and it is difficult to achieve dynamic adaptation between models and tasks.
[0004] Therefore, there is an urgent need in this field to develop a new task execution method and apparatus.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure. Summary of the Invention
[0006] The purpose of this disclosure is to provide a task execution method, a task execution device, a computer-readable storage medium, and an electronic device, thereby overcoming, at least to some extent, the technical problems caused by the limitations of related technologies that prevent the fulfillment of complex and ever-changing business needs.
[0007] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0008] According to a first aspect of this disclosure, a task execution method is provided, comprising:
[0009] Obtain the task description information for the user's task;
[0010] Based on the task description information and the model association information of the optional models, a model scheduling strategy for the user task is generated; the model scheduling strategy is used to indicate at least one target model selected for the user task.
[0011] Based on the model scheduling strategy, at least one target model is scheduled to execute the user task, and the task execution result is obtained.
[0012] In an exemplary embodiment of this disclosure, generating a model scheduling strategy for the user task based on the task description information and the model association information of the optional models includes:
[0013] Feature extraction is performed on the task description information to obtain task features;
[0014] Based on the task characteristics and the model association information of the optional models, a model scheduling strategy is generated for the user task.
[0015] In an exemplary embodiment of this disclosure, the task description information includes at least one of the following: task requirements, task priority, and data type to be processed;
[0016] The model association information of the optional models includes at least one of the following: model metadata, model performance data, and a model relationship graph between the optional models; the model performance data includes model confidence weights.
[0017] In an exemplary embodiment of this disclosure, generating a model scheduling strategy for the user task based on the task characteristics and model association information of the optional models includes:
[0018] Based on the task characteristics and the model association information of the optional models, candidate models are selected from the optional models;
[0019] Based on the candidate models and the corresponding model performance data, generate multiple candidate model scheduling strategies for the user task.
[0020] The multiple candidate model scheduling strategies are adapted to multiple user policy preferences.
[0021] In an exemplary embodiment of this disclosure, when any candidate model scheduling strategy includes multiple candidate models, the candidate model scheduling strategy is further used to indicate the calling order of the multiple candidate models, the calling order being obtained based on the workflow orchestration engine.
[0022] In an exemplary embodiment of this disclosure, after generating multiple candidate model scheduling strategies for the user task, the method further includes:
[0023] Obtain the target model scheduling strategy selected by the user from the multiple candidate model scheduling strategies;
[0024] Based on the target model scheduling strategy, the corresponding target model is scheduled to execute the user task, and the task execution result is obtained.
[0025] In an exemplary embodiment of this disclosure, when there are multiple target model scheduling strategies, the step of scheduling the corresponding target model to execute the user task based on the target model scheduling strategy and obtaining the task execution result includes:
[0026] Based on the scheduling strategy for each target model, the corresponding target model is scheduled to execute the user task, and the execution result of each candidate task is obtained.
[0027] The execution results of multiple candidate tasks are integrated to obtain the task execution result.
[0028] In an exemplary embodiment of this disclosure, integrating the execution results of multiple candidate tasks to obtain the task execution result includes:
[0029] The task execution result is obtained by making a consistent decision based on the execution results of multiple candidate tasks using a voting mechanism.
[0030] Alternatively, the execution results of multiple candidate tasks can be weighted and fused to obtain the task execution result.
[0031] In an exemplary embodiment of this disclosure, after obtaining the task execution result, the method further includes:
[0032] Obtain user evaluation information regarding the model output results for the target model;
[0033] The model confidence weights of the target model are updated based on the evaluation information.
[0034] According to a second aspect of this disclosure, a task execution apparatus is provided, comprising:
[0035] The information acquisition module is used to acquire task description information of user tasks;
[0036] The strategy generation module is used to generate a model scheduling strategy for the user task based on the task description information and the model association information of the optional models; the model scheduling strategy is used to indicate at least one target model selected for the user task.
[0037] The task execution module is used to schedule at least one target model to execute the user task based on the model scheduling strategy, and obtain the task execution result.
[0038] According to a third aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the task execution method described in the first aspect above.
[0039] According to a fourth aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the task execution method described in the first aspect by executing the executable instructions.
[0040] As can be seen from the above technical solutions, the task execution method, task execution apparatus, computer-readable storage medium, and electronic device in the exemplary embodiments of this disclosure have at least the following advantages and positive effects:
[0041] In some embodiments of this disclosure, the technical solutions involve obtaining task description information of a user task; generating a model scheduling strategy for the user task based on the task description information and model association information of selectable models; the model scheduling strategy is used to indicate at least one target model selected for the user task; and scheduling the at least one target model to execute the user task based on the model scheduling strategy to obtain the task execution result. On the one hand, this enables intelligent matching between task requirements and model capabilities, improving the accuracy and efficiency of task processing; furthermore, it enhances the flexibility and adaptability of task execution, supporting automated model scheduling and collaborative execution in diverse task scenarios; on the other hand, it provides a unified technical framework and extended foundation for subsequent task scheduling optimization, overcoming the model silo problem and meeting complex and ever-changing business needs.
[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0044] Figure 1 A flowchart illustrating the task execution method in an embodiment of this disclosure is shown;
[0045] Figure 2 This illustration shows a flowchart of how a model scheduling strategy for a user task is generated based on task description information and model association information of optional models in an embodiment of this disclosure.
[0046] Figure 3 This illustration shows a flowchart of how a model scheduling strategy for a user task is generated based on task characteristics and model association information of optional models in an embodiment of this disclosure.
[0047] Figure 4 An architecture diagram of the smart city platform in an embodiment of this disclosure is shown;
[0048] Figure 5 This diagram illustrates the overall flow of the task execution method in an embodiment of the present disclosure.
[0049] Figure 6 This diagram illustrates the execution flow of the "Rainstorm and Urban Flood Emergency Response" task in an embodiment of this disclosure.
[0050] Figure 7 This diagram illustrates the structure of the task execution apparatus in an exemplary embodiment of the present disclosure.
[0051] Figure 8 A schematic diagram of the structure of an electronic device in an exemplary embodiment of this disclosure is shown. Detailed Implementation
[0052] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0053] The terms “a,” “an,” “the,” and “the” are used in this specification to indicate the presence of one or more elements / components / etc.; the terms “including” and “having” are used to indicate an open-ended inclusion and to mean that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms “first” and “second” are used only as markings and are not a limitation on the number of objects.
[0054] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0055] Current smart city platforms generally face the core pain point of low efficiency in multi-model collaboration. Through research, the inventors have discovered the following key technical bottlenecks in existing systems:
[0056] The problem of model silos is severe: each business department develops and deploys AI models independently, lacking a unified scheduling and collaboration mechanism. This makes it difficult for models to share resources and collaborate efficiently, resulting in "model silos" that severely restrict the overall system performance.
[0057] The scheduling strategy is static and rigid: Traditional systems rely on human experience to combine and configure models. The scheduling method is fixed and lacks dynamic adjustment capabilities, making it difficult to adapt to the real-time changes in task requirements during urban operation, resulting in slow system response speed and limited decision-making accuracy.
[0058] Uneven resource utilization: High-performance models are overloaded due to frequent calls, while lightweight models are idle due to insufficient adaptability, resulting in wasted computing resources and load imbalance, which affects system stability and operating efficiency.
[0059] Insufficient capability to handle complex tasks: When faced with complex urban tasks driven by multi-source heterogeneous data, single models have limitations in terms of functional coverage, reasoning ability and adaptability, making it difficult to meet the multi-dimensional and multi-objective task processing needs.
[0060] The aforementioned problems collectively restrict the level of intelligence and comprehensive service capabilities of smart city platforms in practical applications. Therefore, it is urgent to build an intelligent fusion architecture with dynamic scheduling capabilities, supporting multi-model collaboration and resource optimization, in order to improve the system's response efficiency, decision-making accuracy and resource utilization.
[0061] To address the aforementioned issues, this disclosure proposes a multi-model dynamic orchestration engine based on meta-learning. This engine aims to construct a dynamic model collaboration mechanism, dynamically matching the optimal model combination by combining task characteristics (data type, urgency) with real-time resource status, thus breaking down model silos. By introducing adaptive inference optimization, elastic scheduling of heterogeneous resources, and feedback optimization, it improves the task processing efficiency of smart city platforms, providing highly adaptive support for city-level decision-making.
[0062] In the embodiments of this disclosure, a task execution method is first provided, which at least to some extent overcomes the shortcomings of related technologies that cannot meet complex and ever-changing business needs.
[0063] Figure 1 The diagram shows a flowchart of a task execution method in an embodiment of this disclosure. The execution subject of this task execution method can be a smart city platform.
[0064] refer to Figure 1 A task execution method according to an embodiment of the present disclosure includes the following steps:
[0065] Step S110: Obtain the task description information of the user task;
[0066] Step S120: Based on the task description information and the model association information of the optional models, generate a model scheduling strategy for the user task; the model scheduling strategy is used to indicate at least one target model selected for the user task.
[0067] Step S130: Based on the model scheduling strategy, schedule at least one target model to execute the user task and obtain the task execution result.
[0068] exist Figure 1 The technical solution provided in the illustrated embodiment obtains task description information of the user task; generates a model scheduling strategy for the user task based on the task description information and the model association information of the optional models; the model scheduling strategy is used to indicate at least one target model selected for the user task; and schedules at least one target model to execute the user task based on the model scheduling strategy to obtain the task execution result. On the one hand, it can realize intelligent matching between task requirements and model capabilities, improve the accuracy and execution efficiency of task processing; furthermore, it can enhance the flexibility and adaptability of task execution, support automated model scheduling and collaborative execution in diverse task scenarios; on the other hand, it can provide a unified technical framework and extended foundation for subsequent task scheduling optimization, overcome the model silo problem, and meet complex and ever-changing business needs.
[0069] The following are Figure 1 The specific implementation process of each step in the process will be explained in detail:
[0070] In step S110, the task description information of the user task is obtained.
[0071] In this step, the task description information of the user task can be obtained. For example, the task description information can be obtained in any of the following ways:
[0072] ① User input. Specifically, this could be through a form provided by a web interface or application, where users manually fill in the relevant task information; alternatively, users could input task parameters through a command-line interface (CLI); or a third-party system or automated script could send a request to the task management system via an API, transmitting task description information.
[0073] ②Automatic data collection. Specifically, this can be based on log analysis, such as extracting task-related information from user operation logs, including recent user habits and frequently used settings; or, inferring the current task requirements based on the user's historical task records; or, in IoT applications, automatically collecting environmental data through sensors as task input.
[0074] ③ Intelligent recommendation. Specifically, this can be based on contextual information such as the user's current location, time, and device status to intelligently infer suitable task descriptions; or it can be based on analyzing a large amount of user behavior data and using machine learning algorithms to predict the user's task needs, automatically generating preliminary task description information for the user to confirm or adjust.
[0075] The aforementioned task description information refers to the task instruction information input by the user. For example, it can be in text or voice format, or it can be in image format, and can be set according to the actual situation. This disclosure does not impose any special limitations on it. For example, the task description information may include one or more of the following:
[0076] Task identifier: A unique number or name that identifies the task;
[0077] Task types: such as data processing, model training, file transfer, etc.
[0078] Data types to be processed: such as text, voice, images, etc.;
[0079] Input data: The raw data or parameters required for the task, which can be file paths, database query statements, or other forms of data sources;
[0080] Output requirements: Desired output format, storage location, and quality standards (such as accuracy, response time, etc.);
[0081] Task priority: The urgency or importance of a task, used for prioritization during scheduling;
[0082] Task requirements: These can be the core objective of the task, i.e. the specific results expected to be achieved through the task; Deadline: the time limit for completing the task; Hardware and software resources required during task execution, such as CPU, memory, GPU, network bandwidth, etc.
[0083] Dependencies: The dependencies of other tasks or data sources, ensuring that tasks are executed in the correct order.
[0084] In step S120, a model scheduling strategy for the user task is generated based on the task description information and the model association information of the optional models; the model scheduling strategy is used to indicate at least one target model selected for the user task.
[0085] In this step, a model scheduling strategy for the user task can be generated based on the task description information and the model association information of the optional models.
[0086] The aforementioned model association information refers to a set of information describing the relationships and related attributes between different models in a complex system. This information helps to better understand, manage, and schedule the collaborative work of multiple models, and is particularly important in scenarios involving multi-model integration, task scheduling, model dependency analysis, and resource optimization. Model association information may include at least one of the following: model metadata, model performance data, and a model relationship graph between optional models.
[0087] Model metadata refers to information describing the model itself and its related attributes. Specific content includes, but is not limited to:
[0088] Model name: A unique identifier or name for the model;
[0089] Creation time: The timestamp when the model was created;
[0090] Version number: Different iterations of the model;
[0091] Training dataset: Information about the dataset used to train the model;
[0092] Algorithm type: The machine learning or deep learning algorithm used (such as CNN, LSTM, etc.);
[0093] Input / output format: The format of the input data accepted by the model and the format of the output data produced;
[0094] Applicable scenarios: Application areas or task types of model design (such as image classification, text generation, etc.);
[0095] Developer Information: The developer's name, organization, or contact information.
[0096] Model performance data refers to various metrics and statistical data used to evaluate model performance. Specific content includes, but is not limited to:
[0097] Accuracy: The percentage of correct predictions made by the model;
[0098] Precision: The proportion of samples that are actually positive out of all samples predicted as positive;
[0099] Recall: The proportion of samples that are actually positive that are correctly predicted as positive.
[0100] F1 score: the harmonic mean of precision and recall;
[0101] Loss function value: A numerical measure of the model's prediction error;
[0102] Inference time: The average time required for the model to make one prediction;
[0103] Resource consumption: The amount of CPU, memory, GPU, and other resources used by the model during runtime;
[0104] Model confidence weights: The degree of confidence a model has in its predictions, usually expressed as probabilities.
[0105] A model relationship graph is a graphical representation used to show the dependencies, collaboration patterns, or other types of interactions between multiple models. Specific content includes, but is not limited to:
[0106] Node: Each node represents a model and contains basic information about the model (such as name, version, etc.);
[0107] Edges: Edges represent relationships between models, which can be dependencies, collaborations, substitutions, etc.
[0108] Dependency: The output of one model is used as the input of another model;
[0109] Collaborative relationship: Multiple models work together to complete a task;
[0110] Substitution relationship: In some cases, one model can replace another model to perform similar tasks;
[0111] Feedback relationship: The results of one model can affect the parameter adjustment or retraining process of other models.
[0112] refer to Figure 2 , Figure 2 This embodiment of the present disclosure illustrates a flowchart of how a model scheduling strategy for a user task is generated based on task description information and model association information of optional models, including steps S201-S202:
[0113] In step S201, feature extraction is performed on the task description information to obtain task features.
[0114] In this step, feature extraction can be performed on the task description information to obtain task features. For example, the task description information can first be cleaned and standardized to obtain processed task description information. Then, feature extraction can be performed on the processed task description information based on rule extraction / natural language processing / feature extraction models to obtain task features, which can be in the form of multi-dimensional feature vectors.
[0115] In step S202, a model scheduling strategy for the user task is generated based on the task characteristics and the model association information of the optional models.
[0116] In this step, a model scheduling strategy for the user task can be generated based on the task characteristics and the model association information of the optional models.
[0117] Specifically, you can refer to Figure 3 , Figure 3 This embodiment of the present disclosure illustrates a flowchart illustrating how a model scheduling strategy for a user task is generated based on task characteristics and model association information of optional models, including steps S301-S302:
[0118] In step S301, a candidate model is selected from the optional models based on the task characteristics and the model association information of the optional models.
[0119] In this step, for example, task characteristics can be parsed to obtain the user task's performance requirements (such as latency, throughput, accuracy, etc.) and resource constraints (such as CPU / GPU utilization, memory limitations, etc.). Then, information such as model metadata, model performance data, and model relationship graphs can be collected to select all candidate models that are suitable for the above task characteristics from the available models.
[0120] In step S302, based on the candidate models and their corresponding model performance data, multiple candidate model scheduling strategies are generated that are tailored to user tasks and adapted to various user strategy preferences.
[0121] In this step, multiple candidate model scheduling strategies can be generated based on the candidate models and their corresponding model performance data, tailored to user tasks and adapted to various user strategy preferences.
[0122] User strategy preference refers to the personal preferences or priorities shown by users when selecting strategies. This preference is usually based on users' different expectations for task performance, such as the degree of attention paid to factors like performance, resource utilization, and cost. For example, user strategy preferences may be high precision, low latency, efficient resource utilization, and fast response, which can be set according to actual conditions. This disclosure does not impose any special limitations on this.
[0123] Therefore, the above-mentioned candidate model scheduling strategies may include: high-precision model scheduling strategies, fast-response lightweight model scheduling strategies, etc., which can be set according to the actual situation. This disclosure does not impose any special limitations on them.
[0124] It should be noted that when any candidate model scheduling strategy contains multiple candidate models (e.g., a combination of multiple lightweight models), the aforementioned candidate model scheduling strategy is also used to indicate the calling order of multiple candidate models. Specifically, a workflow orchestration engine (e.g., a DAG generator) can be used to transform model combinations into a pipeline process that can be executed in parallel. Specifically, a DAG (Directed Acyclic Graph) generator can achieve hybrid parallel orchestration, initiating parallel inference for models with no dependencies (such as weather forecasting and traffic monitoring), and constructing a serial pipeline for models with sequential dependencies (such as pollution detection followed by health assessment), thereby transforming model combinations into a pipeline process that can be executed in parallel, forming an optimal model calling order, and reducing intermediate data transfer overhead.
[0125] Compared to existing technologies, traditional methods rely on manual experience to pre-set the model call order, which cannot be dynamically adjusted according to real-time task load. This results in excessively long waiting times for high-priority tasks or inefficient models consuming critical resources. In contrast, this solution establishes a dynamic correlation between model call order and resource status through the automated orchestration mechanism of a workflow orchestration engine. During execution, it continuously optimizes the execution chain based on resource utilization and task urgency, thus solving the problem of mismatch between static call order and dynamic task requirements.
[0126] Next, refer to Figure 1 In step S130, at least one target model is scheduled to execute user tasks based on the model scheduling strategy to obtain task execution results.
[0127] In this step, at least one target model can be scheduled to execute user tasks based on the model scheduling strategy to obtain the task execution results.
[0128] Specifically, the above-mentioned multiple candidate model scheduling strategies can be visualized and displayed to the user. Then, the user can filter from the above-mentioned multiple candidate model scheduling strategies to select the target model scheduling strategy. After that, the user can schedule the corresponding target model to execute the user task based on the target model scheduling strategy and obtain the task execution result.
[0129] In one optional implementation, when the target model scheduling strategy selected by the user is a single strategy, this disclosure can directly schedule the corresponding target model to execute the user task based on the target model scheduling strategy and obtain the task execution result. For example, the user task can be simulated in a digital twin virtual environment to obtain the task execution result.
[0130] In one optional implementation, when the user selects multiple target model scheduling strategies, this disclosure can schedule the corresponding target model to execute user tasks based on each target model scheduling strategy, obtain the execution result of each candidate task, and integrate the execution results of multiple candidate tasks to obtain the task execution result.
[0131] For example, a voting mechanism can be used to make a consistent decision on the execution results of multiple candidate tasks to obtain the task execution result. The voting mechanism refers to selecting the most frequent result as the final result by statistically analyzing the frequency of the results output by multiple models. Specifically, a majority voting algorithm can be used to implement this, thereby eliminating the interference of abnormal models and ensuring the consistency of the results.
[0132] Alternatively, the results of multiple candidate tasks can be weighted and fused to obtain the final task execution result. Weighted fusion refers to calculating a comprehensive result by weighting multiple results according to the model's confidence weights. This can be achieved using a linear weighted summation algorithm, which enhances the decision-making influence of high-confidence models and improves the reliability of the result.
[0133] By executing model combinations corresponding to different strategies in parallel, the complementarity between multiple strategies is fully utilized, avoiding the model limitations or data biases that may exist in a single strategy, thereby improving the stability and reliability of the results of complex task processing.
[0134] After obtaining the task execution result (which may consist of the model output of a single target model or the model output of multiple target models), this disclosure can also obtain user evaluation information on the model output of the target model, and update the model confidence weight of the target model based on the evaluation information. For example, if the user's evaluation is high, the confidence weight of the model is increased accordingly, indicating that it is more likely to be selected in similar tasks in the future; conversely, if the evaluation is low, its confidence weight is decreased, reducing its probability of being selected in the future. This update process can be achieved by setting a rating mapping rule (such as linear mapping, threshold judgment) or introducing an incremental learning mechanism to ensure that the model weight can be continuously optimized with user feedback, thereby improving the system's adaptability and personalized service level.
[0135] This disclosure also provides a smart city platform designed to improve the efficiency and quality of urban services and applications through intelligent model management and task execution optimization. Figure 4 This disclosure illustrates the architecture of a smart city platform as shown in the embodiments below. Figure 4 As shown, the platform mainly consists of the following core components:
[0136] Task parser, model registry, meta-learning evaluator, orchestration decision engine, and execution engine;
[0137] The task parser described above functions to parse user-submitted tasks, extract key information such as data type and urgency, and transform these requirements into multi-dimensional vectors (e.g., data dimensions, timeliness weight, error tolerance, etc.).
[0138] The aforementioned model registry center may include a multimodal model repository and a performance profiling module. The multimodal model repository stores metadata for various models, including input / output formats, computational requirements, and applicable scenario tags. The performance profiling module continuously records and updates model performance metrics, such as inference accuracy, latency, and energy consumption, forming a model performance profile. Furthermore, virtual model agents can be set up to quickly generate simulated inference results for newly registered models, helping to establish an initial performance profile.
[0139] The aforementioned meta-learning evaluator may include a cross-model relationship graph and a dynamic performance predictor. The cross-model relationship graph is used to construct the connections between different models, including functional complementarity and input-output compatibility, to support more flexible model combinations. The dynamic performance predictor combines offline historical data and online inference performance to construct a multi-dimensional model performance evaluation matrix, and introduces a time decay factor to dynamically adjust the reference weights of historical data, ensuring the accuracy and timeliness of the performance evaluation.
[0140] The orchestration decision engine described above may include a multi-objective optimization module and a DAG generator. The multi-objective optimization module balances accuracy, latency, and cost to generate a Pareto-optimal model combination, allowing users to choose between a "fast response" or "high accuracy" solution based on their needs. The DAG generator enables hybrid parallel orchestration, initiating parallel inference for models with no dependencies and constructing a serial pipeline for models with sequential dependencies, thereby forming the optimal model execution order and reducing intermediate data transfer overhead.
[0141] The aforementioned execution engine may include a heterogeneous resource scheduler, a result consistency checker, and a feedback optimization module. The heterogeneous resource scheduler allocates heterogeneous computing resources such as CPUs, GPUs, and FPGAs according to the actual needs of the model to ensure efficient execution. The result consistency checker uses a voting mechanism or confidence-weighted fusion of multiple model outputs to guarantee the consistency and accuracy of the final result. The feedback optimization module collects user evaluations of the model outputs as a basis for adjusting the model's confidence weights.
[0142] Furthermore, it should be noted that the feedback optimization module in this disclosure not only works closely with the various components within the execution engine, but can also interact with other core components:
[0143] Specifically, it can interact with the model registry center to update the model performance profile and ensure the real-time performance and accuracy of the model performance data;
[0144] It can interact with the meta-learning evaluator to optimize the association weights across model relationship graphs and improve the rationality of model combination;
[0145] It can interact with the orchestration decision engine: providing adjusted multi-objective optimization parameters and model combination strategies to further optimize task orchestration and execution processes.
[0146] Through the collaborative work of the above components, the smart city platform can intelligently analyze user tasks, select appropriate model combinations, optimize task execution processes, and continuously iterate and optimize based on user feedback, thereby providing efficient, accurate, and reliable solutions for urban services and applications.
[0147] refer to Figure 5 , Figure 5 This diagram illustrates the overall flow of the task execution method in this embodiment, including steps S501-S508:
[0148] In step S501, the city manager submits the task;
[0149] In step S502, the task parser performs task feature parsing;
[0150] In step S503, the meta-learning evaluator performs model matching: based on the feature information provided by the task parser, the meta-learning evaluator selects the most suitable combination of models for the task.
[0151] In step S504, the model orchestration decision engine generates a selection of schemes: based on the matching results, the model orchestration decision engine generates two different execution schemes, specifically, a fast response scheme (focusing on fast processing, suitable for scenarios that require rapid response) and a high-precision scheme (focusing on high-precision processing, suitable for scenarios that require high accuracy).
[0152] If the high-precision solution is selected, proceed to step S505, where the execution result of the high-precision solution is returned to the city manager for reference and decision-making.
[0153] If the fast response solution is selected, proceed to step S506, which involves resource scheduling (dynamically allocating CPU / GPU resources according to task requirements to ensure efficient execution).
[0154] In step S507, the results are fused and the final decision is output: the output results of multiple models are integrated to generate the final decision report, such as the real-time situation report of the lightweight climate model, the prediction of waterlogged areas, etc.
[0155] In step S508, feedback optimization: update the model confidence weights based on user evaluations.
[0156] For example, the following describes the specific implementation of this disclosure using the task description information "emergency response to rainstorm and urban flooding".
[0157] refer to Figure 6 , Figure 6 This diagram illustrates the execution flow of the "Rainstorm and Urban Flood Emergency Response" task in an embodiment of this disclosure, including steps S601-S613:
[0158] In step S601, the city manager submits a task request, such as "emergency response to rainstorm and urban flooding";
[0159] In step S602, the task parser extracts task features, including data types (such as weather forecasts, hydrological data, and video surveillance), urgency, and accuracy requirements, and converts these requirements into multi-dimensional vectors, which are then sent to the meta-learning evaluator.
[0160] In step S603, the meta-learning evaluator queries candidate models from the model pool, such as: weather forecasting models, drainage simulation models, path planning models, etc.
[0161] In step S604, the model pool returns a list of candidate models and model performance data for each candidate model to the meta-learning evaluator;
[0162] In step S605, the orchestration decision engine generates a candidate model scheduling scheme based on the candidate model list and the model performance data of each candidate model (for example, it may include scheme A: high-precision scheme and scheme B: fast response scheme).
[0163] In step S606, the orchestration decision engine displays candidate model scheduling schemes and performance comparison results between schemes to the city manager;
[0164] If the city manager selects option B, then proceed to step S607 to construct the model execution pipeline;
[0165] In step S608, a model invocation instruction is issued to the execution engine;
[0166] In step S609, the execution engine calls the lightweight model in the model pool;
[0167] In step S610, the model pool returns intermediate results to the execution engine;
[0168] In step S611, the result verifier determines the final result based on the intermediate results;
[0169] In step S612, the execution engine returns the emergency plan (e.g., material delivery route + traffic control area, etc.) to the city manager;
[0170] In step S613, the feedback optimization module adjusts the confidence weights of the model based on user evaluations.
[0171] Based on the above technical solution, this disclosure can achieve at least the following technical effects:
[0172] ① Meta-learning-driven model performance evaluation:
[0173] Contextualized feature encoding: By transforming user task requirements into multi-dimensional vectors (such as data dimensions, timeliness weights, error tolerance, etc.), accurate encoding of task features is achieved. Siamese networks are then used to match the model best suited for performing the task.
[0174] Dynamic performance prediction: A dynamic performance prediction mechanism is constructed by combining the model's historical performance with real-time resource status. This enables the system to predict the model's inference accuracy and latency based on specific contexts, thereby supporting adaptive adjustments in dynamic scenarios.
[0175] ② Multi-granularity model orchestration strategy
[0176] Hybrid parallel orchestration: For models with no dependencies, parallel inference is initiated to maximize computational efficiency; for models with sequential dependencies, a serial pipeline is constructed to ensure the correct processing order. This strategy not only optimizes the model execution flow but also reduces latency during intermediate data transfer.
[0177] Optimize model execution order: By conducting detailed analysis of model combinations in complex scenarios, the optimal execution order is determined, further improving the overall efficiency of task processing.
[0178] ③ Cold start and incremental learning optimization
[0179] Rapid initial performance profile establishment: A virtual model agent is used to generate simulated inference results for newly registered models, so as to quickly establish an initial performance profile and reduce the time cost of the cold start phase;
[0180] Online feedback learning: Based on user ratings of the model orchestration results, the system can continuously and dynamically adjust the model weight allocation strategy. This approach not only allows for rapid adaptation to changes in urban operation models but also continuously improves service quality and meets users' actual needs.
[0181] In summary, this disclosure significantly improves the flexibility, efficiency, and adaptability of smart city platforms in handling complex tasks through key technologies such as meta-learning-driven model performance evaluation, multi-granularity model orchestration strategies, and cold-start and incremental learning optimization. These technological advancements can drive the intelligent development of urban services and applications.
[0182] This disclosure also provides a task execution device. Figure 7 This diagram illustrates the structure of the task execution apparatus in an exemplary embodiment of this disclosure; as shown below. Figure 7 As shown, the task execution device 700 may include an information acquisition module 710, a strategy generation module 720, and a task execution module 730. Wherein:
[0183] Information acquisition module 710 is used to acquire task description information of user tasks;
[0184] The strategy generation module 720 is used to generate a model scheduling strategy for the user task based on the task description information and the model association information of the optional models; the model scheduling strategy is used to indicate at least one target model selected for the user task.
[0185] The task execution module 730 is used to schedule at least one target model to execute the user task based on the model scheduling strategy, and obtain the task execution result.
[0186] In an exemplary embodiment of this disclosure, the strategy generation module 720 generates a model scheduling strategy for the user task based on the task description information and the model association information of the optional models, including:
[0187] Feature extraction is performed on the task description information to obtain task features;
[0188] Based on the task characteristics and the model association information of the optional models, a model scheduling strategy is generated for the user task.
[0189] In an exemplary embodiment of this disclosure, the task description information includes at least one of the following: task requirements, task priority, and data type to be processed;
[0190] The model association information of the optional models includes at least one of the following: model metadata, model performance data, and a model relationship graph between the optional models; the model performance data includes model confidence weights.
[0191] In an exemplary embodiment of this disclosure, the strategy generation module 720 generates a model scheduling strategy for the user task based on the task characteristics and model association information of the optional models, including:
[0192] Based on the task characteristics and the model association information of the optional models, candidate models are selected from the optional models;
[0193] Based on the candidate models and the corresponding model performance data, generate multiple candidate model scheduling strategies for the user task.
[0194] The multiple candidate model scheduling strategies are adapted to multiple user policy preferences.
[0195] In an exemplary embodiment of this disclosure, when any candidate model scheduling strategy includes multiple candidate models, the candidate model scheduling strategy is further used to indicate the calling order of the multiple candidate models, the calling order being obtained based on the workflow orchestration engine.
[0196] In an exemplary embodiment of this disclosure, after generating multiple candidate model scheduling strategies for the user task, the task execution module 730 is configured to:
[0197] Obtain the target model scheduling strategy selected by the user from the multiple candidate model scheduling strategies;
[0198] Based on the target model scheduling strategy, the corresponding target model is scheduled to execute the user task, and the task execution result is obtained.
[0199] In an exemplary embodiment of this disclosure, when there are multiple target model scheduling strategies, the task execution module 730 schedules the corresponding target model to execute the user task based on the target model scheduling strategy, and obtains the task execution result, including:
[0200] Based on the scheduling strategy for each target model, the corresponding target model is scheduled to execute the user task, and the execution result of each candidate task is obtained.
[0201] The execution results of multiple candidate tasks are integrated to obtain the task execution result.
[0202] In an exemplary embodiment of this disclosure, the task execution module 730 integrates the execution results of multiple candidate tasks to obtain the task execution result, including:
[0203] The task execution result is obtained by making a consistent decision based on the execution results of multiple candidate tasks using a voting mechanism.
[0204] Alternatively, the execution results of multiple candidate tasks can be weighted and fused to obtain the task execution result.
[0205] In an exemplary embodiment of this disclosure, after obtaining the task execution result, the task execution module 730 is configured to:
[0206] Obtain user evaluation information regarding the model output results for the target model;
[0207] The model confidence weights of the target model are updated based on the evaluation information.
[0208] The specific details of each module in the above-mentioned task execution device have been described in detail in the corresponding task execution methods, so they will not be repeated here.
[0209] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0210] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0211] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0212] This disclosure also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device.
[0213] Computer-readable storage media can be, for example—but not limited to—electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0214] A computer-readable storage medium can be sent, propagated, or transmitted for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.
[0215] A computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0216] Furthermore, this disclosure also provides an electronic device capable of implementing the above-described method.
[0217] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."
[0218] The following reference Figure 8 To describe an electronic device 800 according to such an embodiment of the present disclosure. Figure 8 The electronic device 800 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0219] like Figure 8 As shown, the electronic device 800 is presented in the form of a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processor 810, at least one memory 820, a bus 830 connecting different system components (including memory 820 and processor 810), and a display 840.
[0220] The memory stores program code that can be executed by the processor 810, causing the processor 810 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. For example, the processor 810 can perform actions such as... Figure 1 As shown: Step S110, obtain the task description information of the user task; Step S120, generate a model scheduling strategy for the user task based on the task description information and the model association information of the optional models; The model scheduling strategy is used to indicate at least one target model selected for the user task; Step S130, schedule at least one target model to execute the user task based on the model scheduling strategy, and obtain the task execution result.
[0221] The memory 820 may include a readable medium in the form of volatile storage, such as random access memory (RAM) 8201 and / or cache memory 8202, and may further include read-only memory (ROM) 8203.
[0222] The memory 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0223] Bus 830 can represent one or more of several types of bus structures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or a local bus using any of the various bus structures.
[0224] Electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 800, and / or with any device that enables electronic device 800 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 850. Furthermore, electronic device 800 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0225] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
Claims
1. A task execution method, characterized in that, include: Obtain the task description information for the user's task; Based on the task description information and the model association information of the optional models, a model scheduling strategy for the user task is generated; the model scheduling strategy is used to indicate at least one target model selected for the user task. Based on the model scheduling strategy, at least one target model is scheduled to execute the user task, and the task execution result is obtained.
2. The method according to claim 1, characterized in that, The step of generating a model scheduling strategy for the user task based on the task description information and the model association information of the optional models includes: Feature extraction is performed on the task description information to obtain task features; Based on the task characteristics and the model association information of the optional models, a model scheduling strategy is generated for the user task.
3. The method according to claim 1, characterized in that, The task description information includes at least one of the following: task requirements, task priority, and data type to be processed; The model association information of the optional models includes at least one of the following: model metadata, model performance data, and a model relationship graph between the optional models; the model performance data includes model confidence weights.
4. The method according to claim 2 or 3, characterized in that, The step of generating a model scheduling strategy for the user task based on the task characteristics and model association information of the available models includes: Based on the task characteristics and the model association information of the optional models, candidate models are selected from the optional models; Based on the candidate models and the corresponding model performance data, generate multiple candidate model scheduling strategies for the user task. The multiple candidate model scheduling strategies are adapted to multiple user policy preferences.
5. The method according to claim 4, characterized in that, When any candidate model scheduling strategy contains multiple candidate models, the candidate model scheduling strategy is also used to indicate the calling order of the multiple candidate models, the calling order being obtained based on the workflow orchestration engine.
6. The method according to claim 4, characterized in that, After generating multiple candidate model scheduling strategies for the user task, the method further includes: Obtain the target model scheduling strategy selected by the user from the multiple candidate model scheduling strategies; Based on the target model scheduling strategy, the corresponding target model is scheduled to execute the user task, and the task execution result is obtained.
7. The method according to claim 6, characterized in that, When there are multiple target model scheduling strategies, the step of scheduling the corresponding target model to execute the user task based on the target model scheduling strategy and obtaining the task execution result includes: Based on the scheduling strategy for each target model, the corresponding target model is scheduled to execute the user task, and the execution result of each candidate task is obtained. The execution results of multiple candidate tasks are integrated to obtain the task execution result.
8. The method according to claim 7, characterized in that, The process of integrating the execution results of multiple candidate tasks to obtain the task execution result includes: The task execution result is obtained by making a consistent decision based on the execution results of multiple candidate tasks using a voting mechanism. Alternatively, the execution results of multiple candidate tasks can be weighted and fused to obtain the task execution result.
9. The method according to claim 3, characterized in that, After obtaining the task execution result, the method further includes: Obtain user evaluation information regarding the model output results for the target model; The model confidence weights of the target model are updated based on the evaluation information.
10. A task execution device, characterized in that, include: The information acquisition module is used to acquire task description information of user tasks; The strategy generation module is used to generate a model scheduling strategy for the user task based on the task description information and the model association information of the optional models; the model scheduling strategy is used to indicate at least one target model selected for the user task. The task execution module is used to schedule at least one target model to execute the user task based on the model scheduling strategy, and obtain the task execution result.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the task execution method according to any one of claims 1 to 9.
12. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the task execution method of any one of claims 1 to 9 by executing the executable instructions.
