Algorithm relation preprocessing method and device suitable for large model

By expressing the dependencies of algorithm modules as tuple vectors and training the model, the problem of difficult determination of relationships and sequences between multiple algorithms for large models is solved, and the accurate identification of algorithm category dependencies and the optimization of execution sequences are achieved.

CN118657231AInactive Publication Date: 2024-09-17AEROSPACE INFORMATION RES INST CAS
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410799084.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When applying multiple algorithms to a large model, it is difficult to determine the relationship between algorithms and the order of execution, making it difficult to mine and apply algorithm relationships.

Method used

By expressing the dependencies between algorithm modules as tuple vectors and training the model based on these tuple vectors, the model is able to identify the relationships and execution order between algorithm modules.

Benefits of technology

It enables large models to accurately identify dependencies and execution sequences between algorithm categories when processing tasks, and improves the efficiency of mining algorithm relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657231A
    Figure CN118657231A
Patent Text Reader

Abstract

The invention provides an algorithm relation preprocessing method and device suitable for a large model, and the method comprises the steps: obtaining a processing stream when the large model processes a task, the processing stream comprises a plurality of algorithm modules, and the algorithm modules are instances corresponding to algorithm types needed for processing the task; taking names corresponding to the plurality of algorithm modules and a name corresponding to the task as a first common token, and combining the first common token and a preset connection token into a tuple vector based on a dependency relationship among the plurality of algorithm modules; and training the large model based on the tuple vector, so that the large model learns a dependency relationship between the algorithm categories when the task is processed. The dependency relationship among various algorithm modules is expressed as the tuple vector, and then the model is trained based on the tuple vector, so that the model can accurately identify the relationship among various algorithm categories and the execution sequence of the algorithm categories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for algorithmic relationship preprocessing suitable for large models. Background Art

[0002] As the output of scientific research, scientific data is an objective description of the research object. It includes scientific observations, laboratory processing results, model simulation output results, descriptions and statistics of phenomena or behaviors, etc. In traditional scientific research, these data are often collected manually, with high value density but slow collection speed. With the improvement of the automation of scientific data collection equipment, data can now be generated more quickly, and the complexity of data has also increased significantly. These changes mark the arrival of the big data era, and scientific data has become big data in the scientific field. Scientific big data mainly consists of data that has been automatically collected, stored and analyzed, and also includes other products derived from these data. These data are high-dimensional and strongly correlated, hiding a lot of undiscovered knowledge. How to quickly mine knowledge from them is a hot topic in the scientific research community. Due to the critical importance of scientific big data, it is increasingly emerging as a key strategic resource to promote scientific progress, and has therefore received high attention and vigorous construction from many countries and organizations.

[0003] The premise of extracting knowledge from data is to organize the data. Therefore, when data accumulates to a certain volume, it will promote the development of data management technology. Algorithms are generated based on data research. As a "new type of data", when the number of algorithms reaches a certain scale, the knowledge hidden between algorithms will also increase. Therefore, it is necessary to organize algorithms to lay the foundation for mining knowledge between algorithms.

[0004] Taking the remote sensing field as an example, at present, the number of algorithms in the remote sensing field is huge but the organizational form is limited. Common large-scale remote sensing cloud platforms such as Google Earth Engine, Descartes Laboratory platform and domestic remote sensing and geographic information cloud service platform PIE-ENGINE, although they store various remote sensing algorithms, they only organize the algorithms to a certain extent, such as algorithm classification and storage of algorithm dependencies. Simple algorithm organization directly leads to the difficulty in mining the relationship between algorithms. Therefore, further scientific organization of algorithms and further application of the relationship between algorithms still play an important role. Summary of the invention

[0005] The present invention provides a method and device for algorithm relationship preprocessing suitable for large models, so as to solve the defect in the prior art that it is difficult to determine the relationship between algorithms and the execution order when a large model applies multiple algorithms. The method achieves this by representing the dependency relationship between various algorithm modules as a tuple vector, and then training the model based on the tuple vector, so that the model can accurately identify the relationship between various algorithm modules and the execution order of the algorithm modules.

[0006] The present invention provides a method for algorithm relationship preprocessing suitable for large models, comprising the following steps.

[0007] Obtaining a processing flow when a large model processes a task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; Using the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and combining the first common token and a preset connection token into a tuple vector based on the dependency relationship between the multiple algorithm modules; The large model is trained based on the tuple vectors so that the large model learns dependencies between the algorithm categories when processing the task.

[0008] According to an algorithmic relationship preprocessing method applicable to a large model provided by the present invention, the preset connection token includes a start token, an interval token and an end token; The combining the first common token and the preset connection token into a tuple vector based on the dependency relationship between the multiple algorithm modules comprises: Combine the first common token and the preset connection token in the following order to obtain a tuple: a name corresponding to the task, a start token, an interval token, names corresponding to the multiple algorithm modules, and an end token; The first common token and the preset connection token are respectively subjected to feature encoding processing to obtain a tuple vector corresponding to the tuple.

[0009] According to an algorithm relationship preprocessing method applicable to a large model provided by the present invention, the algorithm category includes at least one sub-algorithm category, and the method further includes: Using the name corresponding to the algorithm category and the name corresponding to the sub-algorithm category as a second common token; Based on the inclusion relationship between the algorithm category and the sub-algorithm category, the second common token and the preset inclusion token are combined into a first triple vector.

[0010] According to an algorithm relationship preprocessing method applicable to a large model provided by the present invention, the task includes at least one subtask, and the method further includes: Using the name corresponding to the task and the name corresponding to the subtask as a third common token; Based on the inclusion relationship between the task and the subtask, the third common token and the preset inclusion token are combined into a second triple vector.

[0011] According to an algorithmic relationship preprocessing method applicable to a large model provided by the present invention, the algorithmic relationship preprocessing method applicable to a large model according to claim 1 is characterized in that the processing flow is associated with the task, and the method further comprises: Using the name corresponding to the task and the name corresponding to the processing flow as a fourth common token; Based on the association relationship between the task and the processing flow, the fourth common token and the preset inclusion token are combined into a third triple vector.

[0012] According to an algorithm relationship preprocessing method applicable to a large model provided by the present invention, the method further comprises: using the name corresponding to the algorithm module and the name corresponding to the algorithm category as a fifth common token; Based on the inclusion relationship between the algorithm module and the algorithm category, the fifth common token and the preset inclusion token are combined into a fourth triplet vector.

[0013] According to an algorithm relationship preprocessing method applicable to a large model provided by the present invention, the method further comprises: when a dependency relationship exists between two algorithm modules under the action of the processing flow, using the names corresponding to the two algorithm modules having the dependency relationship and the name corresponding to the processing flow as a sixth common token; Based on the dependencies between the multiple algorithm modules, the sixth common token and the preset intervention token are combined into a four-tuple vector.

[0014] According to an algorithm relationship preprocessing method suitable for a large model provided by the present invention, the method also includes: training the large model based on the tuple vector, the first triple vector, the second triple vector, the third triple vector, the fourth triple vector and the quadruple vector, so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0015] The present invention also provides a device for algorithmic relationship preprocessing suitable for large models, comprising the following modules: An acquisition module, used for acquiring a processing flow when a large model is processing a task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required for processing the task; A combining module, configured to use the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and based on the dependency relationship between the multiple algorithm modules, combine the first common token with a preset connection token into a tuple vector; A training module is used to train the large model based on the tuple vector so that the large model learns the dependencies between the algorithm categories when processing the task.

[0016] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for algorithmic relationship preprocessing applicable to large models as described in any one of the above is implemented.

[0017] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for algorithmic relationship preprocessing applicable to large models.

[0018] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-described methods for algorithmic relationship preprocessing applicable to large models.

[0019] The method for algorithm relationship preprocessing suitable for a large model provided by the present invention uses the names corresponding to multiple algorithm modules and the names corresponding to the tasks as the first common token, and based on the dependency relationship between the multiple algorithm modules, combines the first common token with the preset connection token into a tuple vector, and finally trains the large model based on the tuple vector, so that the large model learns the relationship between the algorithm categories when processing the task, and can enable the model to accurately identify the relationship between the various algorithm categories and the execution order of the algorithm categories. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a flow chart of the method for algorithm relationship preprocessing applicable to large models provided by the present invention.

[0022] Figure 2 It is a schematic diagram of the relationship between the algorithm organization concept sets provided by the present invention.

[0023] Figure 3It is a schematic diagram of the task processing flow provided by the present invention.

[0024] Figure 4 It is a structural schematic diagram of a device for algorithmic relationship preprocessing suitable for large models provided by the present invention.

[0025] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Figure 1 is a flow chart of a method for preprocessing algorithmic relationships applicable to large models provided by the present invention, such as Figure 1 As shown, the method includes the following steps 101 to 103.

[0028] Step 101: Obtain the processing flow of the large model processing task.

[0029] In some embodiments, see Figure 2 , Figure 2 It is a schematic diagram of the relationship between the algorithm organization concept sets provided by the present invention, such as Figure 2 As shown, the present invention defines the concept set of algorithm organization methods as {C, P, W, O}, where C is the algorithm category, P is the task, W is the processing flow, O is the algorithm module, the processing flow includes multiple algorithm modules, and the algorithm module is an instance corresponding to the algorithm category required when processing the task.

[0030] In an embodiment of the present invention, a top-down approach is adopted to construct an algorithm tuple concept set, starting from the top-level concept of the algorithm in a certain field, and refining it layer by layer. After obtaining the classification system, the algorithm module is placed in the algorithm category. In a large engineering project or task, a large number of algorithms are usually applied, and the dependencies between algorithms are usually explicitly or implicitly recorded when actual research and development is carried out. Generally speaking, a task is broken down into multiple subtasks, each of which corresponds to one or more processing flows. In actual work, each link of the processing flow is composed of algorithm modules.

[0031] Step 102: Use the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and based on the dependency relationship between the multiple algorithm modules, combine the first common token and a preset connection token into a tuple vector.

[0032] In some embodiments, the preset connection token includes a start token, an interval token and an end token; based on the dependency relationship between the multiple algorithm modules, the first ordinary token and the preset connection token are combined into a tuple vector, which can be achieved by the following method: the first ordinary token and the preset connection token are combined in the following order to obtain a tuple: the name corresponding to the task, the start token, the interval token, the names corresponding to the multiple algorithm modules respectively, and the end token; the first ordinary token and the preset connection token are respectively feature encoded to obtain a tuple vector corresponding to the tuple.

[0033] Specifically, in order to enhance the sensitivity of the large model to the order of algorithm modules, the present invention designs a method for encoding the task processing flow into a tuple, as shown in the following formula.

[0034] R flow =(P1, Start, combine, O2, O1,..., end)

[0035] Among them, R flow It represents the task processing flow, P1 represents the task name, start and end represent the starting position (that is, the above-mentioned start token) and the ending position (the above-mentioned end token) of the P1 task processing flow description information respectively, connbine is the above-mentioned interval token, O1 represents the name of algorithm module 1, O2 represents the name of algorithm module 2, and the combination of (connbine, O2, O1) indicates that algorithm module O2 depends on algorithm module O1.

[0036] Specifically, there are dependency combinations of several algorithm modules in the start token start and the end token end, which together represent the topological relationship of the task processing flow, and each dependency combination is separated by an interval token connbine.

[0037] For example, Figure 3 As shown, Figure 3 It is a schematic diagram of the task processing flow provided by the present invention. Assume that when processing task 1, algorithm modules A, B, C, and D need to be used at the same time, and algorithm modules B and C depend on algorithm module A, and algorithm module D depends on algorithm modules B and C. With the help of three special tokens (Token) of start, end, and connect, a tuple is used to represent the task processing flow, as shown in the following formula:

[0038] The above formula can be derived from the processing flow of task 1, and the processing flow of task 1 can also be restored. When the processing flow uses the same algorithm module multiple times, -k can be added after the algorithm module name in the above formula to distinguish them, for example, algorithm module C-1, algorithm module C-2.

[0039] By using special tokens such as start, end, connect, and common tokens such as task name and algorithm module name, the relationship between various algorithm modules involved in the task is represented by a tuple. Then, these tokens are encoded into feature vectors using word2vec technology, and the encoded tokens are combined to form a tuple vector corresponding to the tuple, which is used for large model learning of the relationship between algorithm modules.

[0040] Step 103: Train the large model based on the tuple vector so that the large model learns the dependencies between the algorithm categories when processing the task.

[0041] In some embodiments, since the above tuple vector contains the dependencies between various algorithm modules and the execution order between various algorithm modules, after the large model is trained based on the tuple vector, the large model can accurately identify the dependencies between algorithm categories when processing tasks.

[0042] In some embodiments, see Figure 2 , Figure 2 The algorithm category shown in includes at least one sub-algorithm category. The algorithm relationship preprocessing method suitable for large models provided in the present application also includes: taking the name corresponding to the algorithm category and the name corresponding to the sub-algorithm category as a second common token; based on the inclusion relationship between the algorithm category and the sub-algorithm category, combining the second common token with the preset inclusion token into a first triple vector.

[0043] Specifically, there is a strict hierarchical inclusion relationship between algorithm categories. For example, if algorithm category C11 is a subcategory of algorithm category C1 under a certain standard, the name C1 corresponding to algorithm category C1 and the name C11 corresponding to sub-algorithm category C11 are used as the second common token. Based on the inclusion relationship between algorithm category C1 and sub-algorithm category C11, the second common token is combined with the preset inclusion token R into the first triple R. classify , as shown below: R classify =(C1, R, C11)

[0044] Among them, the preset inclusion token R represents the inclusion relationship.

[0045] Get the first triplet R classify Afterwards, these tokens in the first triplet are respectively encoded as feature vectors, and the encoded tokens are combined to form a first triplet vector corresponding to the first triplet, which is used for the relationship between large model learning algorithm categories.

[0046] In some embodiments, see Figure 2 , Figure 2 The task shown in includes at least one subtask, and the algorithmic relationship preprocessing method suitable for large models provided in the present application also includes: taking the name corresponding to the task and the name corresponding to the subtask as a third common token; based on the inclusion relationship between the task and the subtask, combining the third common token with the preset inclusion token into a second triple vector.

[0047] Specifically, there may be a hierarchical relationship between tasks. For example, if task P1 contains subtask P11, the name P1 corresponding to task P1 and the name P11 corresponding to subtask P11 are used as the third common token. Based on the inclusion relationship between task P1 and subtask P11, the third common token is combined with the preset inclusion token R to form a second triple R. contain , as shown below: contαin =(P1, R, P11)

[0048] Similarly, when we get the second triplet R contain Afterwards, these tokens in the second triplet are encoded as feature vectors respectively, and the encoded tokens are combined to form a second triplet vector corresponding to the second triplet, which is used to learn the relationship between the large model tasks.

[0049] In some embodiments, see Figure 2 , Figure 2 The processing flow shown in is associated with the task, and the algorithm relationship preprocessing method suitable for large models provided in the present application also includes: taking the name corresponding to the task and the name corresponding to the processing flow as the fourth common token; based on the association relationship between the task and the processing flow, combining the fourth common token with the preset inclusion token into a third triple vector.

[0050] Specifically, the task processing flow is often diverse, and it has a one-to-many relationship with the processing flow. Therefore, the present invention defines this relationship as an association relationship. For example, if task P1 is associated with processing flow W1, the name P1 corresponding to task P1 and the name W1 corresponding to processing flow W1 are used as the fourth common token. Based on the association relationship between task P1 and processing flow W1, the fourth common token is combined with the preset inclusion token into a third triple R. relate , as shown below: R relare =(P1, R, W1)

[0051] Similarly, when we get the third triplet R relate Afterwards, these tokens in the third triplet are encoded as feature vectors respectively, and the encoded tokens are combined to form a third triplet vector corresponding to the third triplet, which is used for the large model to learn the relationship between the processing flow and the task.

[0052] In some embodiments, see Figure 2 , Figure 2 The algorithm category or subcategory shown in the example includes an algorithm module. The algorithm relationship preprocessing method suitable for large models provided in the present application also includes: taking the name corresponding to the algorithm module and the name corresponding to the algorithm category as the fifth common token; based on the inclusion relationship between the algorithm module and the algorithm category, combining the fifth common token with the preset inclusion token into a fourth triplet vector.

[0053] Specifically, the algorithm category or subcategory contains an instance of the algorithm module. For example, the algorithm module O1 is an instance of the algorithm category C211. The name O1 corresponding to the algorithm module O1 and the name C211 corresponding to the algorithm category C211 are used as the fifth common token. Based on the inclusion relationship between the algorithm module O1 and the algorithm category C211, the fifth common token is combined with the preset inclusion token to form a fourth triple R. instance , as shown below: R instance =(C211, R, O1)

[0054] Similarly, we get the fourth triple R instance After that, the tokens in the fourth triplet are respectively encoded as feature vectors, and the encoded tokens are combined to form a fourth triplet vector corresponding to the fourth triplet, which is used to learn the relationship between the algorithm category and the algorithm module of the large model. R in the above formulas all means inclusion.

[0055] In some embodiments, see Figure 2 , Figure 2 There are also dependencies between the sub-processing flows and algorithm modules in the processing flow shown in the figure. The algorithm relationship preprocessing method suitable for large models provided in the present application also includes: when there is a dependency relationship between two algorithm modules under the action of the processing flow, the names corresponding to the two algorithm modules with the dependency relationship and the name corresponding to the processing flow are used as the sixth common token; based on the dependency relationship between the multiple algorithm modules, the sixth common token is combined with the preset intervention token into a four-tuple vector.

[0056] Specifically, in addition to the above-mentioned inclusion relationship, there is also a dependency relationship between the sub-processing flows in the processing flow and between the algorithm modules of the processing flow. For example, under the action of the processing flow W1, the execution of the algorithm module O2 depends on the smooth execution of the algorithm module O1. Then, the names O2 and O1 corresponding to the two algorithm modules O2 and O1 with a dependency relationship, and the name W1 corresponding to the processing flow are used as the sixth common token. Based on the dependency relationship between the two algorithm modules, the sixth common token is combined with the preset intervention token D into a four-tuple Rdepend , as shown below: R depend =(O2, D, w1, O1)

[0057] Due to the existence of processing flow W1 in the embodiment of the present application, the dependency relationship is more complicated, so the triple is expanded to a quadruple. In this formula, "D, W1" means that under the action of processing flow W1, the entire formula indicates that under the action of processing flow W1, algorithm module O1 depends on algorithm module O2.

[0058] Similarly, when we get the quaternion R depend Afterwards, these tokens in the quadruple are encoded as feature vectors respectively, and the encoded tokens are combined to form a quadruple vector corresponding to the quadruple, which is used for large model learning to explore the relationship between algorithm modules under the action of processing flow.

[0059] In some embodiments, the algorithm relationship preprocessing method suitable for a large model provided in the present application also includes: training the large model based on the tuple vector, the first triple vector, the second triple vector, the third triple vector, the fourth triple vector and the quadruple vector, so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0060] Specifically, in Figure 2 The algorithmic relationships in are all represented as tuple vectors. After obtaining the tuple vector, the first triple vector, the second triple vector, the third triple vector, the fourth triple vector and the quadruple vector, the above vectors are all used as input matrices of the large model to train the large model, so that the large model learns the dependencies between algorithm categories when processing tasks. Since the above tuple vector contains the dependencies between the various algorithm modules and the execution order between the various algorithm modules, after the large model is trained based on the tuple vector, the large model can accurately identify the dependencies between the algorithm categories when processing tasks.

[0061] The device for algorithmic relationship preprocessing applicable to large models provided by the present invention is described below. The device for algorithmic relationship preprocessing applicable to large models described below and the method for algorithmic relationship preprocessing applicable to large models described above can be referenced to each other.

[0062] See also Figure 4 , Figure 4 is a schematic diagram of the structure of the device for algorithmic relationship preprocessing of a large model provided by the present invention, such as Figure 4As shown, the device 400 for algorithm relationship preprocessing of a large model provided by an embodiment of the present invention includes an acquisition module 401, a combination module 402 and a training module 403, wherein the acquisition module 401 is used to obtain a processing flow when the large model processes a task, wherein the processing flow includes multiple algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; the combination module 402 is used to use the names corresponding to the multiple algorithm modules and the name corresponding to the task as the first common token, and based on the dependency relationship between the multiple algorithm modules, combine the first common token and the preset connection token into a tuple vector; the training module 403 is used to train the large model based on the tuple vector, so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0063] In an embodiment of the present invention, the combination module 402 is also used to combine the first ordinary token and the preset connection token in the following order to obtain a tuple: the name corresponding to the task, the start token, the interval token, the names corresponding to the multiple algorithm modules, and the end token; the first ordinary token and the preset connection token are respectively feature encoded to obtain a tuple vector corresponding to the tuple.

[0064] In an embodiment of the present invention, the combination module 402 is further used to use the name corresponding to the algorithm category and the name corresponding to the sub-algorithm category as a second common token; based on the inclusion relationship between the algorithm category and the sub-algorithm category, the second common token is combined with a preset inclusion token into a first triple vector.

[0065] In an embodiment of the present invention, the combination module 402 is further used to use the name corresponding to the task and the name corresponding to the subtask as a third common token; based on the inclusion relationship between the task and the subtask, the third common token is combined with the preset inclusion token into a second triple vector.

[0066] In an embodiment of the present invention, the combination module 402 is further used to use the name corresponding to the task and the name corresponding to the processing flow as a fourth common token; based on the association relationship between the task and the processing flow, the fourth common token is combined with a preset inclusion token into a third triple vector.

[0067] In an embodiment of the present invention, the combination module 402 is also used to use the name corresponding to the algorithm module and the name corresponding to the algorithm category as the fifth common token; based on the inclusion relationship between the algorithm module and the algorithm category, the fifth common token and the preset inclusion token are combined into a fourth triplet vector.

[0068] In an embodiment of the present invention, the combination module 402 is also used to, when a dependency relationship exists between two algorithm modules under the action of the processing flow, use the names corresponding to the two algorithm modules with the dependency relationship and the name corresponding to the processing flow as the sixth common token; based on the dependency relationship between the two algorithm modules, combine the sixth common token with the preset intervention token into a four-tuple vector.

[0069] In an embodiment of the present invention, the training module 403 is also used to train the large model based on the tuple vector, the first triple vector, the second triple vector, the third triple vector, the fourth triple vector and the quadruple vector, so that the large model learns the dependencies between the algorithm categories when processing the task.

[0070] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the algorithm relationship preprocessing method applicable to the large model, the method comprising: obtaining the processing flow when the large model processes the task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; using the names corresponding to the plurality of algorithm modules and the names corresponding to the task as the first common token, and combining the first common token with the preset connection token into a tuple vector based on the dependency relationship between the plurality of algorithm modules; training the large model based on the tuple vector so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0071] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0072] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the algorithm relationship preprocessing method applicable to a large model provided by the above-mentioned methods, and the method includes: obtaining a processing flow when a large model processes a task, wherein the processing flow includes multiple algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; using the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and based on the dependency relationship between the multiple algorithm modules, combining the first common token with a preset connection token into a tuple vector; training the large model based on the tuple vector so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0073] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the algorithm relationship preprocessing method suitable for a large model provided by the above-mentioned methods, the method comprising: obtaining a processing flow when a large model processes a task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; using the names corresponding to the plurality of algorithm modules and the name corresponding to the task as a first common token, and based on the dependency relationship between the plurality of algorithm modules, combining the first common token with a preset connection token into a tuple vector; training the large model based on the tuple vector so that the large model learns the dependency relationship between the algorithm categories when processing the task.

[0074] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for algorithmic relationship preprocessing suitable for large models, characterized in that: include: Obtaining a processing flow when a large model processes a task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; Using the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and combining the first common token and a preset connection token into a tuple vector based on the dependency relationship between the multiple algorithm modules; The large model is trained based on the tuple vectors so that the large model learns dependencies between the algorithm categories when processing the task.

2. The algorithmic relationship preprocessing method suitable for large models according to claim 1, characterized in that: The preset connection token includes a start token, an interval token and a termination token; The combining the first common token and the preset connection token into a tuple vector based on the dependency relationship between the multiple algorithm modules includes: Combine the first common token and the preset connection token in the following order to obtain a tuple: a name corresponding to the task, a start token, an interval token, names corresponding to the multiple algorithm modules, and an end token; The first common token and the preset connection token are respectively subjected to feature encoding processing to obtain a tuple vector corresponding to the tuple.

3. The algorithmic relationship preprocessing method applicable to large models according to claim 1, characterized in that: The algorithm category includes at least one sub-algorithm category, and the method further includes: Using the name corresponding to the algorithm category and the name corresponding to the sub-algorithm category as a second common token; Based on the inclusion relationship between the algorithm category and the sub-algorithm category, the second common token and the preset inclusion token are combined into a first triple vector.

4. The algorithmic relationship preprocessing method suitable for large models according to claim 1, characterized in that: The task includes at least one subtask, and the method further includes: Using the name corresponding to the task and the name corresponding to the subtask as a third common token; Based on the inclusion relationship between the task and the subtask, the third common token and the preset inclusion token are combined into a second triple vector.

5. The algorithmic relationship preprocessing method suitable for large models according to claim 1, characterized in that: The processing flow is associated with the task, and the method further comprises: Using the name corresponding to the task and the name corresponding to the processing flow as a fourth common token; Based on the association relationship between the task and the processing flow, the fourth common token and the preset inclusion token are combined into a third triple vector.

6. The algorithmic relationship preprocessing method applicable to large models according to claim 1, characterized in that: The method further comprises: Using the name corresponding to the algorithm module and the name corresponding to the algorithm category as a fifth common token; Based on the inclusion relationship between the algorithm module and the algorithm category, the fifth common token and the preset inclusion token are combined into a fourth triplet vector.

7. The algorithmic relationship preprocessing method applicable to large models according to claim 1, characterized in that: The method further comprises: When there is a dependency relationship between the two algorithm modules under the effect of the processing flow, the names corresponding to the two algorithm modules having the dependency relationship and the name corresponding to the processing flow are used as the sixth common token; Based on the dependency relationship between the two algorithm modules, the sixth common token and the preset intervention token are combined into a four-tuple vector.

8. The algorithmic relationship preprocessing method applicable to large models according to claim 7, characterized in that: The method further comprises: The large model is trained based on the tuple vector, the first triple vector, the second triple vector, the third triple vector, the fourth triple vector and the quadruple vector so that the large model learns the dependencies between the algorithm categories when processing the task.

9. A device for algorithmic relationship preprocessing suitable for large models, characterized in that: include: An acquisition module, used for acquiring a processing flow when a large model is processing a task, wherein the processing flow includes a plurality of algorithm modules, and the algorithm modules are instances corresponding to the algorithm categories required to process the task; A combining module, configured to use the names corresponding to the multiple algorithm modules and the name corresponding to the task as a first common token, and based on the dependency relationship between the multiple algorithm modules, combine the first common token with a preset connection token into a tuple vector; A training module is used to train the large model based on the tuple vector so that the large model learns the dependencies between the algorithm categories when processing the task.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for algorithmic relationship preprocessing applicable to large models as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Model training method, model prediction method and related device

    CN121614876A