Large model auxiliary learning processing method and device, electronic equipment and storage medium

By acquiring knowledge base data and processing expert rules, pre-training and fine-tuning large models solves the problem of low accuracy search results of language models in niche application fields, and achieves high-accuracy search results for large models in specific fields. , ensuring the consistency and accuracy of knowledge.

CN118708689AInactive Publication Date: 2024-09-27GUANGDONG POLYTECHNIC NORMAL UNIV +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410811739.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The accuracy of language model search results in existing technology in niche application fields is not high, especially the language model corresponding to large documents with knowledge conflicts, which makes it difficult to effectively improve the accuracy of search results.

Method used

By obtaining the knowledge base data and expert rules, process and generate the data set to be trained, pre-train and fine-tune the preset large model, adjust its parameters, deploy it to the cloud server, use expert rules to resolve knowledge conflicts, and ensure data consistency and accuracy, thereby improving the accuracy of search results of large models in specific fields.

Benefits of technology

It effectively improves the accuracy of search results when large models are applied in specific fields, ensures the consistency and accuracy of knowledge, is suitable for language models in niche knowledge fields, and provides higher-quality services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708689A
    Figure CN118708689A
Patent Text Reader

Abstract

The invention discloses a large model auxiliary learning processing method and device, electronic equipment and a storage medium, and can be widely applied to the technical field of model processing. According to the method, after the data of the at least one knowledge base is obtained to form the original data set, the original data set is processed based on the expert rule, so that the contradictory points of knowledge between different knowledge bases can be solved through the expert rule, proper processing judgment is performed, and the consistency and accuracy of the data in the to-be-trained data set are ensured; then, after the preset large model is pre-trained through the to-be-trained data set, the parameters of the pre-trained preset large model are adjusted through the preset task data set, and therefore the accuracy of the search result when the target large model is applied in the specific field can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of model processing technology, and in particular to a large model-assisted learning processing method and device, electronic equipment and storage medium. Background Art

[0002] In the related technology, large language models (Large Language Model l, referred to as large models) are widely used in natural language processing, text generation, and intelligent dialogue. Large language models improve the accuracy of large language models in the application process by combining technologies such as knowledge base mounting and retrieval enhancement generation. However, this processing method is only applicable to general large models. For language models in niche application fields, such as language models corresponding to multiple large documents that rely on specific knowledge bases and have knowledge conflicts, the accuracy of language model search results assisted by existing technologies is not high.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a large-model assisted learning processing method and device, an electronic device and a storage medium, which can effectively improve the accuracy of search results when the large model is applied in a specific field.

[0005] To achieve the above purpose, one aspect of an embodiment of the present application proposes a large model assisted learning processing method, the method comprising the following steps:

[0006] Acquire an original data set, wherein the original data set includes data of at least one knowledge base;

[0007] Obtaining expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies, or knowledge consistency verification rules;

[0008] Processing the original data set based on the expert rules to obtain a data set to be trained;

[0009] Pre-training a preset large model using the data set to be trained;

[0010] Get the preset task data set;

[0011] Adjusting the parameters of the pre-trained preset large model through the preset task data set to obtain a target large model;

[0012] Deploy the target large model to a cloud service end;

[0013] Get the request information of the target object;

[0014] According to the request information, knowledge prediction is performed through the deployed target large model to obtain a target knowledge prediction result.

[0015] In some embodiments, obtaining the original data set includes:

[0016] Acquire a first data set, wherein the first data set includes text data, conversation data, or document data;

[0017] The first data set is preprocessed to obtain the original data set, wherein the preprocessing includes data cleaning, noise processing, missing data processing, or number or format processing.

[0018] In some embodiments, the processing of the original data set based on the expert rules to obtain the data set to be trained includes:

[0019] Analyze and judge the data in the original data set based on the expert rules, and generate a judgment result and a solution corresponding to the judgment result;

[0020] The original data set is updated with knowledge according to the judgment result and the solution to obtain the data set to be trained.

[0021] In some embodiments, the pre-training of the preset large model by using the to-be-trained data set includes:

[0022] Convert part of the data in the training data set into mask marks to generate input data to be processed and target output data;

[0023] Performing format conversion on the input data to be processed to obtain target input data;

[0024] Decomposing the target input data into a plurality of batches of training input data;

[0025] Inputting the training input data into the preset large model to obtain predicted output data;

[0026] The parameters of the preset large model are adjusted according to the target input data and the predicted output data until the preset large model meets the first preset requirement.

[0027] In some embodiments, adjusting the parameters of the pre-trained preset large model by using the preset task data set to obtain the target large model includes:

[0028] Inputting the preset task data into the pre-trained preset large model to obtain the forward propagation prediction task output data;

[0029] Calculate the loss value according to the predicted task output data and the real data in the preset task data;

[0030] The parameters of the preset large model are reversely updated according to the loss value until the loss value meets the second preset requirement, thereby obtaining the target large model.

[0031] In some embodiments, deploying the target large model to a cloud service end includes:

[0032] Saving the target large model as a target model file;

[0033] Obtaining the dependent environment file of the target large model;

[0034] The target model file and the dependent environment file are synchronously deployed to the cloud service end.

[0035] In some embodiments, the method further comprises the following steps:

[0036] Obtaining prediction performance information of the target large model, wherein the prediction performance information includes response time, accuracy or throughput;

[0037] The parameters of the target large model are updated according to the predicted performance information and a preset time interval.

[0038] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides a large model-assisted learning processing device, the device comprising:

[0039] A first module is used to obtain an original data set, wherein the original data set includes data of at least one knowledge base;

[0040] The second module is used to obtain expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies or knowledge consistency verification rules;

[0041] The third module is used to process the original data set based on the expert rules to obtain a data set to be trained;

[0042] The fourth module is used to pre-train the preset large model using the data set to be trained;

[0043] The fifth module is used to obtain the preset task data set;

[0044] The sixth module is used to adjust the parameters of the pre-trained preset large model through the preset task data set to obtain a target large model;

[0045] The seventh module is used to deploy the target large model to the cloud service end;

[0046] The eighth module is used to obtain the request information of the target object;

[0047] The ninth module is used to perform knowledge prediction based on the request information through the deployed target large model to obtain the target knowledge prediction result.

[0048] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides an electronic device / computer device, comprising:

[0049] at least one processor;

[0050] at least one memory for storing at least one program;

[0051] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0052] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0053] The embodiments of the present application include at least the following beneficial effects: The present application provides a large model-assisted learning processing method and device, an electronic device and a storage medium. The scheme obtains data from at least one knowledge base to form an original data set, and then processes the original data set based on expert rules, so that the contradictions in knowledge between different knowledge bases can be resolved through expert rules, and appropriate processing judgments can be made, thereby ensuring the consistency and accuracy of the data in the data set to be trained; then, the preset large model is pre-trained with the data set to be trained, and then the parameters of the pre-trained preset large model are adjusted with the preset task data set, so as to improve the accuracy of search results when the target large model is applied in a specific field. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a flow chart of a large model-assisted learning processing method provided in an embodiment of the present application;

[0055] Figure 2 It is an application flow chart of the large model assisted learning processing method provided in the embodiment of the present application;

[0056] Figure 3 It is a structural schematic diagram of a large model assisted learning processing device provided in an embodiment of the present application;

[0057] Figure 4 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application, they are only examples of devices and methods consistent with some aspects of the embodiments of the present application.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0060] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0061] Large Language Model (Large Model): Usually a natural language processing model with large-scale parameters and computing power, such as OpenA l's GPT-3 model. These models can be trained with a large amount of data and parameters to generate human-like text or answer natural language questions. Large language models are widely used in natural language processing, text generation, and intelligent dialogue.

[0062] Retrieval-Augmented Generation (RAG): is a technique that combines information retrieval and generation models to improve the quality and accuracy of generation results in natural language processing tasks. The RAG model first retrieves relevant information and then uses this information to generate more accurate and detailed answers or text. This method is particularly suitable for generation tasks that require a large amount of external knowledge or contextual information, such as question-answering systems, dialogue systems, and text generation.

[0063] Knowledge base mounting: generally refers to the process of integrating or linking a knowledge base to a system or platform so that it can be accessed and used in that environment. This can include connecting a database or information repository so that it can be queried, updated, and managed as part of the overall system.

[0064] BERT (Bidirectional Encoder Representation from Transformers) is a pre-trained language representation model. It emphasizes that it no longer uses the traditional unidirectional language model or the shallow concatenation of two unidirectional language models for pre-training as in the past, but instead uses a new masked language model l (MLM) to generate deep bidirectional language representation.

[0065] The large model-assisted learning processing method provided in the embodiment of the present application relates to the field of model processing technology. The large model-assisted learning processing method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The cloud server, the server can also be a node server in the blockchain network; the software can be an application that implements the large model-assisted learning processing method, etc., but is not limited to the above forms.

[0066] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0067] Figure 1 is an optional flowchart of the large model assisted learning processing method provided in the embodiment of the present application, Figure 1 The method may include but is not limited to steps S110 to S190:

[0068] Step S110: obtaining an original data set, wherein the original data set includes data of at least one knowledge base;

[0069] Step S120: Obtain expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies or knowledge consistency verification rules;

[0070] Step S130, processing the original data set based on the expert rules to obtain a data set to be trained;

[0071] Step S140, pre-training a preset large model using the data set to be trained;

[0072] Step S150, obtaining a preset task data set;

[0073] Step S160: adjusting the parameters of the pre-trained preset large model through the preset task data set to obtain the target large model;

[0074] Step S170: deploy the target large model to the cloud service end;

[0075] Step S180, obtaining request information of the target object;

[0076] Step S190: Based on the request information, knowledge prediction is performed using the deployed target large model to obtain target knowledge prediction results.

[0077] In an embodiment of the present application, the preset large model may include but is not limited to a BERT model, a logistic regression model, and a decision tree. In this embodiment, obtaining the original data set is a basic step for training or executing the preset large model. It is understandable that in this embodiment, after obtaining a first data set including text data, conversation data, or document data, the first data set may be preprocessed to obtain the original data set. Among them, the preprocessing includes but is not limited to data cleaning, noise processing, missing data processing, or number or format processing. It is also possible to annotate the data in the original data set, such as annotating the classification label, question-answer pairs, etc., to provide high-quality training data for the training and fine-tuning of the preset large model.

[0078] In an embodiment of the present application, the expert rule may be a rule input by the target object in the terminal according to the corresponding data, or it may be an expert rule generated by the server according to a preset data type. The expert rules of this embodiment include but are not limited to priority judgment rules, conflict resolution strategies or knowledge consistency verification rules. Among them, the priority judgment rule may be a judgment order of different types. The knowledge consistency verification rule may be a consistency judgment method between corresponding knowledge in different knowledge bases. The conflict resolution strategy may include but is not limited to the corresponding solution when there are contradictions and conflicts in the corresponding knowledge in different knowledge bases. For example, voting: weighted voting of the opinions of different experts in the field; negotiation and discussion: analyzing the discussion content of experts through natural language processing (NLP), extracting common knowledge points and controversial points, and automatically generating negotiation suggestions; specifying standards and rules: automatic evaluation and decision-making according to pre-established judgment standards and rules to reduce the influence of subjective factors. This embodiment systematizes the knowledge and experience of experts to ensure that the model can accurately parse and judge the conflicting knowledge in the knowledge base.

[0079] In an embodiment of the present application, after obtaining the expert rules, the original data set is processed based on the expert rules. Specifically, the present embodiment can process the original data set composed of data from different knowledge bases based on the expert rules through the retrieval enhancement generation technology to obtain the data set to be trained. For example, when new knowledge is obtained, the information in the knowledge base that conflicts with the new knowledge is retrieved through the retrieval enhancement technology, and after parsing and judging the conflicting information based on the expert rules, the judgment result and the solution corresponding to the judgment result are output, and then the relevant entries of the knowledge base corresponding to the original data set are updated according to the judgment result and the solution to obtain the data set to be trained, thereby ensuring the consistency and accuracy of the knowledge in the data set to be trained.

[0080] In the embodiment of the present application, after obtaining the data set to be trained, the preset large model is pre-trained by the data set to be trained. It is understandable that the pre-training process of this embodiment includes but is not limited to the following steps:

[0081] Convert part of the data in the training data set into mask tags to generate input data to be processed and target output data;

[0082] Perform format conversion on the input data to be processed to obtain the target input data;

[0083] Decompose the target input data into multiple batches of training input data;

[0084] Input the training input data into the preset large model to obtain the predicted output data;

[0085] The parameters of the preset large model are adjusted according to the target input data and the predicted output data until the preset large model meets the first preset requirement.

[0086] Specifically, in the pre-training stage of this embodiment, the data set to be trained obtained by annotating expert rules is used for model training. Among them, the data set to be trained includes data from a large-scale general text corpus. The annotated data includes the judgment results and solutions of conflicting information. Model training is performed through annotated data so that the model can effectively learn and apply the judgment logic of experts. It can be understood that the pre-training tasks of this embodiment include masked language tasks and next sentence prediction tasks, which can help the preset large model learn the basic structure and semantic relationship of the language. The pre-training process is usually performed on large-scale computing resources (such as TPU, GPU) to ensure that the model can efficiently process massive data and optimize parameters.

[0087] In the embodiment of the present application, after the pre-training process of the preset large model is completed, the model parameters of the preset large model can be fine-tuned according to the specific task. It is understood that the fine-tuning process of this embodiment includes but is not limited to the following steps:

[0088] Input the preset task data into the pre-trained preset large model to obtain the forward propagation prediction task output data;

[0089] Calculate the loss value based on the predicted task output data and the real data in the preset task data;

[0090] The parameters of the preset large model are reversely updated according to the loss value until the loss value meets the second preset requirement, thereby obtaining the target large model.

[0091] Specifically, the preset task data includes the data of the current specific task. The preset large model is supervised trained using the data of the specific task. After adjusting the parameters of the preset large model, the performance of the preset large model on the specific task can be optimized. The performance of the fine-tuned model is then evaluated through the validation set, and the hyperparameters of the preset large model can be adjusted in reverse to ensure the effect of the preset large model in actual applications.

[0092] In an embodiment of the present application, after completing the fine-tuning of the preset large model, the large model can be deployed to the cloud service end for use in practical applications. Specifically, in this embodiment, the target large model is first saved as a target model file in a deployable format, such as TensorFlowSavedModel, PyTorch model file. And by developing an API interface, it is convenient for the application to call the large model for reasoning. Specifically, in order to ensure the flexibility and portability of deployment, this embodiment can use container technologies such as Docker to package the model and dependent environment, and finally, deploy the model to a cloud service end (such as AWS, GoogleCloud, Azure) to achieve large-scale, high-concurrency reasoning services.

[0093] In the embodiment of the present application, when the target large model is successfully deployed to the cloud service end, the online reasoning stage is entered. First, the query or request information corresponding to the task input by the target object is received, and the input data is pre-processed such as retrieval enhancement generation. Then, the deployed target large model is called for reasoning to generate prediction results. The output of the target large model is post-processed, the results are formatted, filtered and optimized to ensure the accuracy and readability of the results. Finally, the processed results are returned to the terminal device or application of the target object to achieve instant response.

[0094] In the embodiment of the present application, in order to ensure the stability and performance of the target large model in practical applications, continuous monitoring and maintenance are required. Obtain the predicted performance information of the target large model in real time, including indicators such as response time, accuracy, and throughput, so as to promptly discover and solve potential problems. Record and analyze model errors, and make necessary corrections and optimizations. And regularly update and retrain the large model at preset time intervals based on the predicted performance information, actual needs or new data to ensure that the performance of the large model continues to improve and maintain adaptability to the latest information. Through these maintenance measures, the reliability and effectiveness of the large model in long-term use can be guaranteed.

[0095] Reference Figure 2 The overall application process of the embodiment of the present application includes but is not limited to the following steps:

[0096] Step S210: Collect the original data set related to the task. The data in the original data set can be in the form of text, dialogue, document, etc. After cleaning, denoising and standardization, the data in the original data set is labeled according to the task requirements to provide a high-quality data set for model training and fine-tuning.

[0097] Step S220: Acquire knowledge judgment rules participated in and defined by domain experts, including priority judgment, conflict resolution strategy and knowledge consistency verification, so as to parse and judge the conflicting information in the knowledge base.

[0098] Step S230: When there is conflicting information between the new knowledge and the knowledge in the knowledge base, expert rules are used to judge and resolve these conflicts, output the judgment results and solutions, update the knowledge base entries, and ensure the consistency and accuracy of knowledge.

[0099] Step S240: Use expert rules to annotate the training data set, select a suitable machine learning model for training, and optimize parameters. Use a large-scale general text corpus for pre-training to learn the basic structure and semantic relationship of the language, ensure that the large model can efficiently process massive data and optimize parameters.

[0100] Step S250: After pre-training is completed, fine-tune the large model, prepare a dataset specifically for the task, conduct supervised training, and adjust parameters to optimize task performance. Evaluate the performance of the fine-tuned model through the validation set, and further adjust the model parameters to ensure the best effect in practical applications.

[0101] Step S260: Save the fine-tuned large model in a deployable format and develop an API interface for easy calling. Use containers such as Docker to package the model and dependencies and deploy them to the cloud server to achieve high-concurrency reasoning services.

[0102] Step S270: After deployment, receive the query or task request information input by the target object and perform preprocessing. Call the deployed large model for reasoning, generate prediction results, and post-process the output to ensure the accuracy and readability of the results, and finally return the results to the target object or application to achieve instant response.

[0103] Step S280: Continuously monitor the reasoning performance of the large model, including response time, accuracy, throughput, etc., to promptly discover and resolve potential problems. Record and large model errors, make necessary corrections and optimizations, and regularly update and retrain the model to ensure continuous performance improvement and adaptability to the latest information, and to ensure reliability and effectiveness in long-term use.

[0104] From the above, it can be seen that the embodiment of the present application combines multiple knowledge bases, expert rules and supervised BERT models, which can effectively solve the problem of knowledge conflicts and realize the integration of own knowledge bases. Expert rules can identify and parse conflicting information in different knowledge bases and make appropriate judgments to ensure the consistency and accuracy of knowledge; through the supervised BERT model, the data for specific tasks and fields are fine-tuned, and the performance of the large model in specific knowledge fields is further optimized, thereby reducing data noise, improving the performance of retrieval enhancement generation and large models in processing specific knowledge fields, ensuring the generation of more accurate and reliable answers in niche knowledge fields, and providing higher quality services to target objects.

[0105] Reference Figure 3 , the embodiment of the present application proposes a large model assisted learning processing device, the device comprising:

[0106] The first module 310 is used to obtain an original data set, wherein the original data set includes data of at least one knowledge base;

[0107] The second module 320 is used to obtain expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies or knowledge consistency verification rules;

[0108] The third module 330 is used to process the original data set based on expert rules to obtain a data set to be trained;

[0109] The fourth module 340 is used to pre-train the preset large model using the training data set;

[0110] The fifth module 350 is used to obtain a preset task data set;

[0111] The sixth module 360 ​​is used to adjust the parameters of the pre-trained preset large model through the preset task data set to obtain the target large model;

[0112] The seventh module 370 is used to deploy the target large model to the cloud service end;

[0113] The eighth module 380 is used to obtain the request information of the target object;

[0114] The ninth module 390 is used to perform knowledge prediction based on the request information through the deployed target large model to obtain the target knowledge prediction result.

[0115] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0116] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned large model-assisted learning processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0117] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0118] See also Figure 4 , Figure 4 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0119] The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0120] The memory 420 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 420 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 420, and the processor 410 calls and executes the large model-assisted learning processing method of the embodiment of this application;

[0121] Input / output interface 430, used to implement information input and output;

[0122] Communication interface 440, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0123] bus 450 , which transmits information between the various components of the device (e.g., processor 410 , memory 420 , input / output interface 430 , and communication interface 440 );

[0124] The processor 410 , the memory 420 , the input / output interface 430 , and the communication interface 440 are connected to each other in communication within the device via the bus 450 .

[0125] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the above-mentioned large model-assisted learning processing method.

[0126] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0127] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0128] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0129] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0130] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0132] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0133] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0135] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or 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 multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0138] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A large model-assisted learning processing method, characterized in that: The method comprises the following steps: Acquire an original data set, wherein the original data set includes data of at least one knowledge base; Obtaining expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies, or knowledge consistency verification rules; Processing the original data set based on the expert rules to obtain a data set to be trained; Pre-training a preset large model using the data set to be trained; Get the preset task data set; Adjusting the parameters of the pre-trained preset large model through the preset task data set to obtain a target large model; Deploy the target large model to a cloud service end; Get the request information of the target object; According to the request information, knowledge prediction is performed through the deployed target large model to obtain a target knowledge prediction result.

2. The method according to claim 1, characterized in that The obtaining of the original data set comprises: Acquire a first data set, wherein the first data set includes text data, conversation data, or document data; The first data set is preprocessed to obtain the original data set, wherein the preprocessing includes data cleaning, noise processing, missing data processing, or number or format processing.

3. The method according to claim 1, characterized in that The processing of the original data set based on the expert rules to obtain the data set to be trained includes: Analyze and judge the data in the original data set based on the expert rules, and generate a judgment result and a solution corresponding to the judgment result; The original data set is updated with knowledge according to the judgment result and the solution to obtain the data set to be trained.

4. The method according to claim 1, characterized in that: The pre-training of the preset large model by using the data set to be trained includes: Convert part of the data in the training data set into mask marks to generate input data to be processed and target output data; Performing format conversion on the input data to be processed to obtain target input data; Decomposing the target input data into a plurality of batches of training input data; Inputting the training input data into the preset large model to obtain predicted output data; The parameters of the preset large model are adjusted according to the target input data and the predicted output data until the preset large model meets the first preset requirement.

5. The method according to claim 1, characterized in that The method of adjusting the parameters of the pre-trained preset large model by using the preset task data set to obtain the target large model includes: Inputting the preset task data into the pre-trained preset large model to obtain the forward propagation prediction task output data; Calculate the loss value according to the predicted task output data and the real data in the preset task data; The parameters of the preset large model are reversely updated according to the loss value until the loss value meets the second preset requirement, thereby obtaining the target large model.

6. The method according to claim 1, characterized in that The step of deploying the target large model to a cloud service end includes: Saving the target large model as a target model file; Obtaining the dependent environment file of the target large model; The target model file and the dependent environment file are synchronously deployed to the cloud service end.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises the following steps: Obtaining prediction performance information of the target large model, wherein the prediction performance information includes response time, accuracy or throughput; The parameters of the target large model are updated according to the predicted performance information and a preset time interval.

8. A large model-assisted learning processing device, characterized in that: The device comprises: A first module is used to obtain an original data set, wherein the original data set includes data of at least one knowledge base; The second module is used to obtain expert rules, wherein the expert rules include priority judgment rules, conflict resolution strategies or knowledge consistency verification rules; The third module is used to process the original data set based on the expert rules to obtain a data set to be trained; The fourth module is used to pre-train the preset large model using the data set to be trained; The fifth module is used to obtain the preset task data set; The sixth module is used to adjust the parameters of the pre-trained preset large model through the preset task data set to obtain a target large model; The seventh module is used to deploy the target large model to the cloud service end; The eighth module is used to obtain the request information of the target object; The ninth module is used to perform knowledge prediction based on the request information through the deployed target large model to obtain the target knowledge prediction result.

9. An electronic device / computer device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Information identification model establishment method and device and information identification method and device

    CN116414978A

  • Language large model-based scientific research literature interpretation method and device

    CN116822521A

  • Electric power professional knowledge intelligent question answering system construction method based on large language model

    CN117609421A

  • Data set construction method, language model determination method and information processing method

    CN117993504A

  • Knowledge graph updating method and device, electronic equipment and storage medium

    CN118093604A