Multi-stage field fine tuning method and system for capability addition and co-occurrence

Through data fusion and multi-stage fine-tuning strategies, the 'disastrous forgetting' and 'seesaw' problems of large language models when adding new domain capabilities are solved, and the method of improving evaluation scores while maintaining the original capabilities is realized. It is suitable for Multi-stage domain fine-tuning of large language models.

CN118966280APending Publication Date: 2024-11-15NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935810.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing fine-tuning algorithms are difficult to effectively add new domain capabilities in large language models and maintain their original capabilities, which often leads to 'catastrophic forgetting' and 'seesaw' phenomena, and the evaluation scores are reduced.

Method used

The data fusion strategy and multi-stage fine-tuning strategy are adopted to pre-process and label new field data, integrate data with general data, and inject Q&A data and instruction data in stages to control data conflict, and achieve new and co-occurring capabilities.

Benefits of technology

With the same amount of training data, the field fine-tuning effect is improved, the ‘catastrophic forgetting’ and ‘seesaw’ phenomena are avoided, the stability of the original ability is maintained, and knowledge and abilities in specific fields are added.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966280A_ABST
    Figure CN118966280A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-stage field fine adjustment method and system for capacity addition and co-occurrence, and belongs to the technical field of natural language process.The method comprises the steps that data preprocessing and management are conducted on newly-added field data, and field data marked under various division rules are obtained; performing data matching and screening on the field data and the existing general data according to the requirements of field capability addition and co-occurrence and labels to obtain fused data; and a multi-stage fine tuning strategy is constructed for two fine tuning targets of domain capability addition and domain capability co-occurrence, and during general large model training, control of infused data, infused question and answer data, instruction data and fusion data are carried out on different stages, so that multi-stage domain fine tuning of capability addition and co-occurrence is realized. Through the data fusion strategy and the multi-stage fine tuning strategy, the field fine tuning effect can be improved through the data matching and the staged training strategy under the condition of the same training data magnitude.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of natural language processing technology, and more specifically to a multi-stage domain fine-tuning method and system for capability addition and co-occurrence. Background Art

[0002] The big language model is a model in natural language processing technology, such as ChatGPT, etc. It belongs to the text generation mode and can achieve high-quality natural language understanding and generation. With the support of "big model + big data + big computing power", the big language model can complete a variety of tasks through natural language interaction, and has multi-scenario, multi-purpose, and interdisciplinary task processing capabilities. It can play an important role in many fields such as economy, law, and society. Through the process of pre-training and fine-tuning, the big language model can understand and generate natural language text, and play a role in various application scenarios, such as automatic question and answer, intelligent customer service, speech recognition, machine translation, etc., pushing artificial intelligence technology to a new height.

[0003] When large models are adapting their capabilities to specific task areas, fine-tuning technology is usually used to achieve low-cost, high-quality, rapid implementation solutions. The goal of fine-tuning is to inject domain capabilities into the base model based on a certain scale of domain data, and then further unlock and stimulate the target capabilities through instructions. Fine-tuning can help the model better adapt to specific needs, improve deployment efficiency, and reduce computing resource requirements. We can use the evaluation scores of large models on evaluation sets in various fields to measure its capabilities. However, adjusting a certain capability of the large model alone and learning new domain capabilities through fine-tuning algorithms while maintaining the original capabilities are two difficulties. Existing fine-tuning algorithms, such as Adapter adjustment, Prefix adjustment, Prompt adjustment, and LoRA, focus on reducing training parameters and injecting new capabilities. However, the fine-tuned models often have "catastrophic forgetting" problems, such as Figure 5 Fine-tuning model II, after fine-tuning, medical knowledge was added, and the evaluation scores of other original capabilities such as language, knowledge, code, etc. were greatly reduced. If a simple multiple rounds of training are carried out, the corresponding data is injected into the model for each field where the evaluation score drops, and a new round of training is carried out, a "seesaw" phenomenon will occur. For example, if code data is injected for training, the code ability will improve, but the ability of mathematics will decrease. Fine-tuning instructions with a small amount of data will not inject new capabilities into the model. The key lies in how to use the new knowledge and capabilities brought by a certain scale of incremental data to improve the evaluation score, and how to reduce the score drop caused by the distribution difference between the domain data and the pre-training data. Summary of the invention

[0004] In view of this, the present invention provides a multi-stage domain fine-tuning method and system for capability addition and co-occurrence that at least solves some of the above-mentioned technical problems. The fine-tuning method is based on a general large model, and a data fusion strategy is adopted to ensure that the distribution difference between domain data and pre-training data is reduced. A multi-stage fine-tuning strategy is adopted to control the data injected at different stages to reduce the conflict between data. When new domain capabilities are needed and similar capabilities need to be co-occurred in specific task scenarios, the domain fine-tuning effect can be improved through data matching and phased training strategies under the same training data level.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] In a first aspect, the present invention provides a multi-stage domain fine-tuning method for capability addition and co-occurrence, the method comprising:

[0007] Preprocess and manage the newly added domain data to obtain the domain data labeled under various division rules;

[0008] Domain data and existing general data are matched and screened according to the requirements of domain capabilities and co-occurrence, and fused data is obtained by annotation.

[0009] Aiming at the two fine-tuning goals of adding domain capabilities and co-occurrence of domain capabilities, a multi-stage fine-tuning strategy is constructed. When training a general large model, the data input at different stages is controlled to input question and answer data, instruction data, and the fusion data to achieve multi-stage domain fine-tuning for adding capabilities and co-occurrence.

[0010] Preferably, the data preprocessing includes: deduplication, detoxification, cleaning, classification, and labeling.

[0011] Preferably, the division rules include: conflict category, task type, capability type, and knowledge coverage.

[0012] Preferably, for the newly added fine-tuning target of domain capability, a three-stage fine-tuning strategy for the model with newly added functions of domain capability is constructed, specifically:

[0013] The first stage is to input the question and answer data of specific scenarios;

[0014] The second stage is to inject specific scene command data;

[0015] The fusion data is fed in at three stages and then mixed with a preset amount of specific scenario command data.

[0016] Preferably, for the fine-tuning goal of domain capability co-occurrence, a three-stage fine-tuning strategy for the model with domain capability co-occurrence function is constructed, specifically:

[0017] In the first stage, the question-answering data of specific scenarios and the same or similar scenarios are fed in;

[0018] In the second stage, new scenarios and representative instruction data of multiple identical or similar business scenarios are injected;

[0019] The fusion data is fed in at three stages and then mixed with a preset amount of specific scenario command data.

[0020] In a second aspect, the present invention further provides a multi-stage domain fine-tuning system for capability addition and co-occurrence, which is applied to the above-mentioned multi-stage domain fine-tuning method for capability addition and co-occurrence to improve the domain fine-tuning effect, and the system includes:

[0021] The data preprocessing and management module is used to preprocess and manage the newly added domain data and obtain the domain data labeled under various division rules;

[0022] The data fusion module is used to match and filter domain data and existing general data according to the requirements of domain capabilities and co-occurrence, and obtain fused data according to the annotations;

[0023] The multi-stage fine-tuning strategy module is used to construct a multi-stage fine-tuning strategy for the two fine-tuning goals of adding domain capabilities and co-occurring domain capabilities. When training a general large model, it controls the data input at different stages, inputs question and answer data, instruction data, and the fusion data, and realizes multi-stage domain fine-tuning for adding and co-occurring capabilities.

[0024] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement a multi-stage domain fine-tuning method capable of executing the above-mentioned capability addition and co-occurrence.

[0025] In a fourth aspect, the present invention also provides a storage medium having stored thereon one or more programs readable by a computing device, wherein the one or more programs include instructions which, when executed by the computing device, enable the computing device to perform a multi-stage domain fine-tuning method for capability addition and co-occurrence as described above.

[0026] Compared with the prior art, the present invention has at least the following beneficial technical effects:

[0027] The present invention provides a multi-stage domain fine-tuning method and system for capability addition and co-occurrence. The present invention is based on a fine-tuning method of a general large model, adopts a data fusion strategy, ensures that the distribution difference between domain data and pre-training data is reduced, and adopts a multi-stage fine-tuning strategy to control the data injected at different stages to reduce the conflict between data; when new domain capabilities need to be added and similar capabilities need to co-occur in specific task scenarios, the domain fine-tuning effect can be improved through data matching and phased training strategies under the condition of the same training data level.

[0028] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0029] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0031] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0032] Figure 1 A flowchart of a multi-stage domain fine-tuning method for capability addition and co-occurrence provided in an embodiment of the present invention.

[0033] Figure 2 A schematic diagram of a data fusion strategy provided by an embodiment of the present invention.

[0034] Figure 3 A schematic diagram of a multi-stage fine-tuning strategy for a model with newly added domain capability functionality provided in an embodiment of the present invention.

[0035] Figure 4 A schematic diagram of a multi-stage fine-tuning strategy for a model with domain capability co-occurrence function provided in an embodiment of the present invention.

[0036] Figure 5 A schematic diagram of the impact of the newly added domain capabilities (medicine) brought about by different fine-tuning strategies provided in an embodiment of the present invention on the original capabilities.

[0037] Figure 6A schematic diagram of a model training curve under a multi-stage fine-tuning strategy provided in an embodiment of the present invention.

[0038] Figure 7 A schematic diagram of the basic capabilities of the original model provided in an embodiment of the present invention.

[0039] Figure 8 A schematic diagram of newly added medical field capabilities for the model provided in an embodiment of the present invention.

[0040] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0042] In the description of the present invention, it should be noted that: in some processes described in the specification and drawings of this application, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be performed in the order in which they appear in this document or may be performed in parallel. In addition, various serial numbers are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0043] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.

[0044] Embodiment 1:

[0045] See also Figure 1 As shown, an embodiment of the present invention provides a multi-stage domain fine-tuning method for capability addition and co-occurrence, the method mainly includes:

[0046] Preprocess and manage the newly added domain data to obtain the domain data labeled under various division rules;

[0047] Domain data and existing general data are matched and screened according to the requirements of domain capabilities and co-occurrence, and fused data is obtained by annotation.

[0048] Aiming at the two fine-tuning goals of adding new domain capabilities and co-occurrence of domain capabilities, a multi-stage fine-tuning strategy is constructed. During the training of the general large model, the data input at different stages is controlled, and question and answer data, instruction data, and fusion data are injected to achieve multi-stage domain fine-tuning for adding new capabilities and co-occurrence.

[0049] 1. The relevant principles and specific implementation methods involved in the method of the present invention are introduced below:

[0050] In this embodiment, based on the fine-tuning method of the traditional general large model, a data fusion strategy and a multi-stage fine-tuning strategy are designed. When new domain capabilities and co-occurrence of similar capabilities are required in specific task scenarios, we strive to improve the domain fine-tuning effect through data matching and phased training strategies under the same level of training data.

[0051] The goals of fine-tuning specific tasks are to add new capabilities through new data and to achieve co-occurrence of capabilities through similar tasks. With these two goals in mind, the accumulated local data will be successively sent to pre-processing modules such as data cleaning and labeling to prepare for data fusion in subsequent model training. Subsequently, according to business needs, the data fusion strategy and multi-stage fine-tuning strategy modules will be entered respectively.

[0052] like Figure 2 As shown, after the newly added domain data undergoes data preprocessing and management modules, clean, non-toxic domain data labeled under multiple division rules can be obtained, and the existing data pool is expanded.

[0053] Furthermore, the domain data and the existing general data pool data are screened according to the annotations based on the new and co-occurring needs of domain capabilities, and the optimal fused data with high coverage of demand capabilities and small data distribution differences is obtained, which is sent to the subsequent multi-stage fine-tuning module.

[0054] In this embodiment, the multi-stage fine-tuning strategy of the model with added domain capabilities is as follows Figure 3 As shown. The multi-stage fine-tuning strategy (preferably a three-stage fine-tuning strategy) aims to avoid "catastrophic forgetting" on the basis of maintaining the general capabilities of the model, and to learn the new capabilities brought by the new data to the greatest extent. If the above fused data is simultaneously fed into the model for training and multi-task learning, the model will retain its unique capabilities to a great extent, but the original general capabilities will decrease significantly; if the fused data is serialized and trained according to the capability type, it will cause catastrophic forgetting of specific capabilities. The multi-stage fine-tuning strategy improves the learning ability of specific capabilities, and even optimizes general capabilities to a certain extent.

[0055] See also Figure 3As shown, in the first stage, question-and-answer data of specific scenarios are injected to expand the model knowledge. In order to ensure that the paradigm brought by the new data is incrementally learned and absorbed, representative instruction data in specific scenarios are injected in the second stage to align the model with human intentions, give standardized answers according to user instructions, and activate the model's inherent paradigm-like capabilities. In order to awaken the model's existing general capabilities and avoid catastrophic forgetting, fused data is injected in the third stage, namely: a data subset with high coverage of required capabilities and small data distribution differences that is matched and screened from the existing general data pool, and then mixed with a small amount of representative instruction data for specific scenarios to achieve fine-tuning and empowerment of special tasks.

[0056] In this embodiment, if the new tasks in the business scenario are similar to the existing tasks, the data fusion strategy and the model fine-tuning strategy can be optimized based on the multi-stage fine-tuning strategy of the model with new domain capabilities by tracking the same and similar tasks, so as to achieve the co-occurrence of the same and similar task capabilities and avoid the "seesaw" phenomenon.

[0057] See also Figure 4 As shown, in order to increase the probability of co-occurrence of model capabilities, the present invention designs and optimizes a multi-stage fine-tuning strategy. First, in the first stage, question-and-answer data of specific scenarios and the same or similar scenarios are injected to expand and integrate the knowledge of multiple business scenario models; in order to ensure the migration of existing same or similar scenario task capabilities and paradigms to the scenarios brought by new data, in the second stage, new scenarios and representative instruction data of multiple same or similar business scenarios are injected to align the model with human intentions, give standardized answers according to user instructions, and activate and migrate the inherent paradigm-like capabilities of the model at the same time; in order to awaken the existing general capabilities of the model without causing catastrophic forgetting, in the third stage, fusion data and a small amount of new scenarios, a small amount of representative instruction data of the same or similar scenarios are injected to achieve special task fine-tuning empowerment.

[0058] This method can be used to conduct multi-scenario and multi-task learning with high quality and efficiency. During this process, data is fed into the model in stages for training to maintain and improve the target capabilities while avoiding catastrophic forgetting of general capabilities.

[0059] Further, see Figure 5 As shown, Figure 5 The figure shows the impact of different fine-tuning strategies on the original capabilities by adding new domain capabilities (medicine). Figure 5 Traditional Chinese medicine is a newly added domain capability. At this time, "common sense" in general data and "biology" in domain data are co-occurring similar capabilities; Figure 5 The fine-tuned model II added medical knowledge after fine-tuning, and the evaluation scores of other original capabilities such as language, knowledge, and code were greatly reduced; Figure 5The medium fine-tuning model I adopts the method of the present invention, adopts the data fusion strategy and the multi-stage fine-tuning strategy, so that the fine-tuned large model can add medical field capabilities while maintaining the original capabilities.

[0060] Further, see Figure 6 As shown in the figure, it is a graph of the loss curve during model training. It can be seen that after the corresponding data is input according to the training strategy in each stage, the loss value represented by the vertical axis (the difference between the model output value and the true value) will drop significantly, which means that the model capability has been improved to a certain extent. Figure 7 and Figure 8 The expansion of medical capabilities based on the original LLaMA 3 model is demonstrated in Figure 7 and Figure 8 By comparison, it can be seen that the strategy of using the method of the present invention can avoid the problem of "catastrophic forgetting" and the "seesaw" phenomenon of capabilities, and add new medical field capabilities by fine-tuning the algorithm while maintaining the original basic capabilities.

[0061] From the description of the above embodiments, those skilled in the art can know that: in view of the problem that a general large model needs to add new domain capabilities and co-occur similar capabilities in a specific task scenario, this application designs a multi-stage domain fine-tuning method based on the addition and co-occurrence of capabilities of a general large model. The main technical innovations are as follows:

[0062] 1. Designed a data fusion strategy, and obtained clean, non-toxic, and multi-dimensionally annotated new domain data through data preprocessing and management modules. Use annotations to fuse new domain data and existing general data, and existing data in the same or similar fields to obtain a data subset with high coverage of new domain capabilities and small data distribution differences, laying a data foundation for subsequent fine-tuning.

[0063] 2. Aiming at the goal of fine-tuning specific tasks, a multi-stage fine-tuning strategy is designed. Aiming at the two fine-tuning goals of adding new domain capabilities and co-occurrence of domain capabilities, the conflict between data is reduced by controlling the data injected at different stages, maintaining the original capabilities of the model, adding new domain capabilities, and activating and co-occurring the original similar capabilities. It meets the needs of salesmen in different industries and scenarios to expand model capabilities and upgrade businesses using local offline incremental data, and provides technical support for specific task requirements in different business scenarios and co-occurrence of similar capabilities in similar task scenarios.

[0064] Through the above design, the present invention can improve the domain fine-tuning effect under the condition of the same amount of training data.

[0065] Embodiment 2:

[0066] The present invention further provides a multi-stage domain fine-tuning system for capability addition and co-occurrence, which is applied to a multi-stage domain fine-tuning method for capability addition and co-occurrence described in the above embodiment 1 to improve the domain fine-tuning effect. The system includes:

[0067] The data preprocessing and management module is used to preprocess and manage the newly added domain data and obtain the domain data labeled under various division rules;

[0068] The data fusion module is used to match and filter domain data and existing general data according to the requirements of domain capabilities and co-occurrence, and obtain fused data according to the annotations;

[0069] The multi-stage fine-tuning strategy module is used to construct a multi-stage fine-tuning strategy for the two fine-tuning goals of adding domain capabilities and co-occurrence of domain capabilities. When training a general large model, it controls the data input at different stages, inputs question and answer data, instruction data, and fusion data, and realizes multi-stage domain fine-tuning for adding and co-occurring capabilities.

[0070] An embodiment of the present invention provides a multi-stage domain fine-tuning system for capability addition and co-occurrence, and its implementation principle and technical effects are the same as those of the aforementioned method embodiment. For the sake of brief description, parts not mentioned in this embodiment can be referred to the corresponding contents in the aforementioned method embodiment, which will not be repeated here.

[0071] Example 3

[0072] Reference Fig. 9 As shown, an embodiment of the present invention further provides an electronic device, which may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, the processor executes the computer program to implement a multi-stage domain fine-tuning method for capability addition and co-occurrence in the above-mentioned embodiment 1.

[0073] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory 11, and calling data stored in the memory 11.

[0074] Embodiment 4:

[0075] An embodiment of the present invention also provides a storage medium on which one or more programs readable by a computing device are stored. The one or more programs include instructions. When the instructions are executed by the computing device, the computing device executes a multi-stage domain fine-tuning method for capability addition and co-occurrence in Example 1.

[0076] Examples of computer-readable storage media include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, DVD-ROM, Blu-ray or optical disk storage, hard disk drive (HDD), solid-state drive (SSD), card-type memory (such as a multimedia card, a secure digital (SD) card, or an extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage system, optical data storage system, hard disk, solid-state disk, and any other system configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be executed in an environment deployed in a computer device such as a client, a host, an agent system, a server, etc. In addition, in one example, the computer program and any associated data, data files, and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner by one or more processors or computers.

[0077] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products, etc. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] It should be noted that the word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several distinct components, and by means of a suitably programmed computer.

[0079] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0080] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A multi-stage domain fine-tuning method for capability addition and co-occurrence, characterized in that: The method includes: Preprocess and manage the newly added domain data to obtain the domain data labeled under various division rules; Domain data and existing general data are matched and screened according to the requirements of domain capabilities and co-occurrence, and fused data is obtained by annotation. Aiming at the two fine-tuning goals of adding domain capabilities and co-occurrence of domain capabilities, a multi-stage fine-tuning strategy is constructed. When training a general large model, the data input at different stages is controlled to input question and answer data, instruction data, and the fusion data to achieve multi-stage domain fine-tuning for adding capabilities and co-occurrence.

2. A multi-stage domain fine-tuning method for capability addition and co-occurrence according to claim 1, characterized in that: The data preprocessing includes: deduplication, detoxification, cleaning, classification, and labeling.

3. A multi-stage domain fine-tuning method for capability addition and co-occurrence according to claim 1, characterized in that: The division rules include: conflict category, task type, capability type, and knowledge coverage.

4. A multi-stage domain fine-tuning method for capability addition and co-occurrence according to claim 1, characterized in that: Aiming at the newly added fine-tuning goal of domain capabilities, a three-stage fine-tuning strategy for the model with newly added functions of domain capabilities is constructed, specifically: The first stage is to input the question and answer data of specific scenarios; The second stage is to inject specific scene command data; The fusion data is fed in at three stages and then mixed with a preset amount of specific scenario command data.

5. A multi-stage domain fine-tuning method for capability addition and co-occurrence according to claim 1, characterized in that: Aiming at the fine-tuning goal of domain capability co-occurrence, a three-stage fine-tuning strategy for the model with domain capability co-occurrence function is constructed, specifically: In the first stage, the question-answering data of specific scenarios and the same or similar scenarios are fed in; In the second stage, new scenarios and representative instruction data of multiple identical or similar business scenarios are injected; The fusion data is fed in at three stages and then mixed with a preset amount of specific scenario command data.

6. A multi-stage domain fine-tuning system for capability addition and co-occurrence, characterized in that: When applied, a multi-stage domain fine-tuning method for capability addition and co-occurrence as described in any one of claims 1 to 5 is performed to improve the domain fine-tuning effect, and the system includes: The data preprocessing and management module is used to preprocess and manage the newly added domain data and obtain the domain data labeled under various division rules; The data fusion module is used to match and filter domain data and existing general data according to the requirements of domain capabilities and co-occurrence, and obtain fused data according to the annotations; The multi-stage fine-tuning strategy module is used to construct a multi-stage fine-tuning strategy for the two fine-tuning goals of adding domain capabilities and co-occurring domain capabilities. When training a general large model, it controls the data input at different stages, inputs question and answer data, instruction data, and the fusion data, and realizes multi-stage domain fine-tuning for adding and co-occurring capabilities.

7. An electronic device, characterized in that: It includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement a multi-stage domain fine-tuning method for capability addition and co-occurrence as described in any one of claims 1-5.

8. A storage medium having stored thereon one or more programs readable by a computing device, characterized in that: The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform a multi-stage domain fine-tuning method for capability addition and co-occurrence as described in any one of claims 1-5.