Data processing method, commodity information processing method, model training method, equipment, storage medium and program product

By introducing the adaptation module into the large model and freezing its parameters, and using incremental parameters to train the adaptation module, the complexity of data processing for different task types is solved, and the wide applicability and efficiency of the data processing model are achieved.

CN118708968APending Publication Date: 2024-09-27ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410812681.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the prior art, data processing tasks of different task types require different models, resulting in complex model construction and training processes, and making it difficult to achieve broad applicability and efficiency of the data processing model.

Method used

The data processing method of a large model plus an adaptation module is adopted. By freezing the parameters of the large model, the incremental parameters of the adaptation module are used to train different task types, and the incremental parameters corresponding to the task types are generated to realize multi-task type data processing.

Benefits of technology

A data processing model is implemented to complete the input data processing of different task types, which increases the scope of application of the model, avoids interference between task types, and improves the accuracy and efficiency of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708968A
    Figure CN118708968A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method, a commodity information processing method, a model training method, equipment, a storage medium and a program product, and the method comprises the steps: obtaining input data; determining a target task type corresponding to the input data; determining a data processing model; the data processing model comprises a large model and a plurality of adaptive modules added in the large model; the large model and the plurality of adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing model parameters of the large model and performing training by using first training data sets corresponding to the plurality of adaptation modules respectively, so as to generate increment parameters corresponding to the plurality of adaptation modules respectively; and based on the target task type, processing the input data by using the large model and the target adaptation module to obtain output data. According to the technical scheme provided by the embodiment of the invention, data processing of different task types is realized by adopting one data processing model, and the model training degree is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular, to a data processing method, a commodity information processing method, a model training method, a device, a storage medium, and a program product. Background Art

[0002] As Internet data grows, people's demands and expectations for data processing are also increasing.

[0003] In practical applications, data processing tasks of different types in different application scenarios usually have different data processing requirements. In traditional solutions, different models are used to process them, and model training is more complicated. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, a commodity information processing method, a model training method, a device, a storage medium and a program product to solve the problem that different models are used to process data processing tasks of different task types in the prior art, and the model construction and training process are relatively complicated.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:

[0006] Get input data;

[0007] Determine the target task type corresponding to the input data;

[0008] Determine a data processing model; the data processing model includes a large model and a plurality of adaptation modules added to the large model; the large model and the plurality of adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large model and training using the first training data sets corresponding to the plurality of adaptation modules respectively, so as to generate incremental parameters corresponding to the plurality of adaptation modules respectively;

[0009] Based on the target task type, the input data is processed using the large model and the target adaptation module to obtain output data.

[0010] In a second aspect, an embodiment of the present application provides a method for processing commodity information, including:

[0011] Obtain product information provided by users;

[0012] Determine the target task type corresponding to the product information;

[0013] Determine a data processing model; the data processing model includes a large language model and a plurality of adaptation modules added to the large language model; the large language model and the plurality of adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large language model and training using the first training data sets corresponding to the plurality of adaptation modules respectively, so as to generate incremental parameters corresponding to the plurality of adaptation modules respectively;

[0014] Based on the target task type, the commodity information is processed using the large language model and the target adaptation module to obtain a commodity description text.

[0015] In a third aspect, an embodiment of the present application provides a model training method, including:

[0016] Determine a first training data set of a target task type;

[0017] Injecting a target adaptation module corresponding to the target task type into a data processing model; the data processing model includes a large model and at least one adaptation module;

[0018] Freezing the model parameters of the large model, and training the data processing model using the first training data set to generate incremental parameters corresponding to the target adaptation module;

[0019] The large model and the target adaptation module are used to process input data of the target task type to obtain output data.

[0020] In a fourth aspect, an embodiment of the present application provides a computing device, comprising a storage component and a processing component; the storage component stores one or more computer program instructions, the computer program instructions are called and executed by the processing component, and the processing component executes the one or more computer program instructions to implement the data processing method described in the first aspect, or the commodity information processing method described in the second aspect, or the model training method described in the third aspect.

[0021] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program is executed by a computer to implement the data processing method described in the first aspect, or the commodity information processing method described in the second aspect, or the model training method described in the third aspect.

[0022] In a sixth aspect, an embodiment of the present application provides a computer program product storing a computer program, which, when executed by a computer, implements the data processing method described in the first aspect, or the commodity information processing method described in the second aspect, or the model training method described in the third aspect.

[0023] In the embodiment of the present application, after obtaining the input data, the target task type corresponding to the data can be determined, and the data model can be determined. The data processing model may include a large model and multiple adaptation modules added to the large model, wherein the large model and the multiple adaptation modules correspond to different task types respectively. The data processing model can be obtained by freezing the model parameters of the large model and training with the first training data set corresponding to the multiple adaptation modules respectively to generate the incremental parameters corresponding to the multiple adaptation modules respectively. Then, based on the target task type, the large model and the target adaptation module can be used to process the input data to obtain the output data. Through training to obtain multiple adaptation modules, the data processing model is constructed in combination with the large model, and the processing of input data of different task types is realized by using one data processing model, which increases the scope of application of the data processing model, and each adaptation module is independent of each other to avoid interference with the data processing of other task types, and the data isolation of different task types is realized, which improves the accuracy of data processing, and in the training process, the model parameters of the large model can be frozen, and the incremental parameters of the adaptation module can be obtained by training, which reduces the degree of model training and improves the efficiency of data processing.

[0024] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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.

[0026] Figure 1 A flow chart of an embodiment of a model training method provided by the present application is shown;

[0027] Figure 2 A schematic diagram of the structure of an embodiment of a model training provided by the present application is shown;

[0028] Figure 3 A flowchart of another embodiment of a model training method provided by the present application is shown;

[0029] Figure 4 A flow chart showing an embodiment of a data processing method provided by the present application is shown;

[0030] Figure 5 A flowchart of an embodiment of a commodity information processing method provided by the present application is shown;

[0031] Figure 6A schematic diagram showing the structure of an embodiment of a model training device provided by the present application is shown;

[0032] Figure 7 A schematic diagram showing the structure of an embodiment of a data processing device provided by the present application is shown;

[0033] Figure 8 A schematic diagram showing an embodiment of an e-commerce data processing scenario provided by the present application is shown;

[0034] Fig. 9 A schematic diagram of the structure of an embodiment of a computing device provided by the present application is shown. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0036] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0037] This application is applicable to the field of data processing. With the growth of Internet data, people's demand and expectations for data processing are also increasing.

[0038] In practical applications, data processing tasks of different types in different application scenarios usually have different data processing requirements. In traditional solutions, different models are used to process them, and model construction and training are relatively complex.

[0039] In order to solve the above technical problems, the inventors proposed the solution of the present application, including obtaining input data; determining the target task type corresponding to the input data; determining a data processing model; the data processing model includes a large model and multiple adaptation modules added to the large model; the large model and the multiple adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large model and training with the first training data sets corresponding to the multiple adaptation modules respectively, so as to generate incremental parameters corresponding to the multiple adaptation modules respectively; based on the target task type, the input data is processed using the large model and the target adaptation module to obtain output data.

[0040] By obtaining multiple adaptation modules through training, and combining them with the large model to construct a data processing model, it is possible to use one data processing model to process input data of different task types, thereby increasing the scope of application of the data processing model. Moreover, each adaptation module is independent of each other to avoid interference with data processing of other task types, thus achieving data isolation of different task types and improving the accuracy of data processing. In addition, during the training process, the model parameters of the large model can be frozen, and only the incremental parameters of the adaptation module can be obtained through training, thereby reducing the degree of model training and improving data processing efficiency.

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0042] The technical solution of the embodiment of the present application can be applied to a system architecture including a user end and a server end, and a connection is established between the user end and the server end through a network. The network provides a medium for a communication link between the user end and the server end. The network can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0043] The client can interact with the server through the network to receive or send messages, etc.

[0044] Among them, the user end can be a browser, an APP (Application), or a web application such as H5 (HyperText Markup Language 5, Hypertext Markup Language Version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The user end can be deployed in an electronic device and needs to rely on the device to run or some apps in the device to run, etc. The electronic device can, for example, have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications can usually be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0045] The server side may include servers that provide various services, such as a server for background training that provides support for the model used, or a server that processes information sent by the user side.

[0046] It should be noted that the server can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with blockchain. The server can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0047] It should be noted that the data processing method and model training method provided in the embodiments of the present application are generally executed by the server, and the corresponding data processing device and model training device are generally arranged in the server. However, in other embodiments of the present application, the user end may also have similar functions to the server, so as to execute the data processing method and model training method provided in the embodiments of the present application. In other embodiments, the data processing method and model training method provided in the embodiments of the present application may also be jointly executed by the user end and the server.

[0048] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0049] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0050] It should be noted that the technical solution of the embodiment of the present application is applicable to a network virtual environment. The users described generally refer to "virtual users". Real users can register a user account in the server through registration to obtain a user identity in the network environment.

[0051] The technical solution of the embodiment of the present application is implemented through a data processing model. The following is a brief description of the model training process. Figure 1 As shown, it is a flowchart of an embodiment of a model training method provided in an embodiment of the present application, and the method may include the following steps:

[0052] 101: Determine a first training data set of a target task type.

[0053] Among them, the first training data set can be composed of training sample pairs of input data and output data. The input data can be used as training samples and input into the model to be trained. The output data can be used as training labels, and the model is trained in combination with the output results.

[0054] In this embodiment, the model can be trained using first training data sets of different task types, so that the model obtained by training can realize data processing of different task types. Taking the data processing task of text generation as an example, it can include multiple task types such as title text generation, summary text generation, and full text generation. The type and format of the output data corresponding to different task types may be different. Therefore, for the task type to be trained, that is, the target task type, the corresponding first training data set can be determined for training.

[0055] The first training data set may be provided by a user, or may be constructed and obtained. The specific construction process will be described in subsequent embodiments.

[0056] 102: Inject a target adaptation module corresponding to the target task type into the data processing model.

[0057] The data processing model may include a large model and at least one adaptation module.

[0058] In the embodiment of the present application, a large model (Large Model) refers to a machine learning model with a large number of parameters and a complex structure, which can process massive data and complete various complex tasks, such as natural language processing, computer vision, speech recognition, etc. It is an AI (Artificial Intelligence, artificial intelligence) model. The large model can be implemented using LLM (Large Language Model, large language model) or MLM (Multimodal Large Model, multimodal large model), for example, GPT-3 (Generative Pre-Trained Transformer-3, third generation generative pre-training model), GPT-4 (Generative Pre-Trained Transforme-4, fourth generation generative pre-training model), Palm (Pathways Language Model, pre-training model based on Pathway), LLama (Large Language Model Meta AI, large language model developed by Meta), BERT (Bidirectional Encoder Representation from Transformers, a bidirectional encoder model based on Transformers), TuringNLG (Turing Natural language Generation, Turing Natural Language Generation), etc. This application is not limited to this.

[0059] The adaptation module may refer to a model parameter adjustment module, and the incremental parameters of the adaptation module may be used to adjust the model parameters of the large model. In this embodiment, the data processing model may include one or more adaptation modules, and the incremental parameters of different adaptation modules are different, and the corresponding task types are also different, so that after adjusting the model parameters of the large model using the incremental parameters of the adaptation module of a task type, the input data of the task type can be processed.

[0060] Therefore, based on the target task type, the corresponding target adaptation module can be determined and injected into the data processing model. At this time, the data processing model can at least include the large model and the target adaptation module.

[0061] Optionally, the adaptation module can be implemented as a low-rank adaptation matrix (Low-Rank Adaptation, LoRA for short). LoRA is a parameter adjustment method for deep learning models. It freezes the pre-trained model weights and injects the trainable low-rank matrix into the model to achieve fine-tuning of model parameters. For example, the matrix dimension of the original weight matrix W0 can be n×m, and the low-dimensional matrix B (the dimension can be n×r) and A (the dimension can be r×m) are trained. ΔW is constructed by matrix multiplication. The parameter amount of ΔW is lower than that of the original matrix. W0+ΔW is used as the adjusted model parameter to achieve efficient and lightweight model training.

[0062] 103: Freeze the model parameters of the large model, and use the first training data set to train the data processing model to generate incremental parameters corresponding to the target adaptation module.

[0063] Among them, the large model and the target adaptation module can be used to process the input data of the target task type to obtain output data.

[0064] When the model is trained, the model parameters of the large model can be frozen, that is, they are in a fixed state during the training process of this step and are no longer adjusted. That is, when the first training data set is used for training, the input data in the training sample pair is input into the data processing model, and after the output result is obtained, the output result is compared with the output data in the training sample pair to generate the incremental parameters of the target adaptation module and adjust the incremental parameters until the training is completed.

[0065] For ease of understanding, Figure 2 FIG. 2 shows a schematic diagram of an embodiment of model training. Figure 2 As shown, the data processing model may include a large model 2010 and three adaptation modules, namely, adaptation module 2011, adaptation module 2012, and adaptation module 2013. The adaptation modules correspond to three task types, namely, task type 1, task type 2, and task type 3. Taking the target task type as task type 1 as an example, the first training data set of task type 1 may be determined, the corresponding adaptation module 2011 may be injected into the data processing model 201, the input data X in the first training data set of task type 1 may be input into the data processing model 201, and the model parameter W0 of the large model 2011 may be frozen, W0∈R d×d , the large model 2010 and the adaptation module 2011 are used to process it, and the output result H=W0X+B1A1X is obtained, where B1 and A1 represent the incremental parameters of the adaptation module 2011. The output data in the first training data set of task type 1 is compared with the output result, and the incremental parameters of the adaptation module 2011 are adjusted based on the comparison result until the training is completed.

[0066] It is understandable that the model parameters of the large model can be obtained by pre-training. Optionally, the above method may also include:

[0067] Obtain a second training data set;

[0068] The large model is trained using the second training data set to adjust model parameters of the large model.

[0069] The second training data set may also be composed of training sample pairs of input data and output data. The second training data set may be obtained by manual annotation or from an open source database, and the task type of the second training data set may be different from that of the first training data set.

[0070] In an embodiment of the present application, after determining the first training data set of the target task type, a target adaptation module corresponding to the target task type can be injected into the data processing model, wherein the data processing model can include a large model and at least one adaptation module, and then the model parameters of the large model can be frozen, and the data processing model can be trained using the first training data set to generate incremental parameters corresponding to the target adaptation module, and the large model and the target adaptation module can be used to process the input data of the target task type to obtain output data. The adaptation module corresponding to the task type is obtained through training, and the data processing model is constructed in combination with the large model, so that the input data of different task types can be processed using one data processing model, which increases the scope of application of the data processing model, and each adaptation module is independent of each other to avoid interference with the data processing of other task types, so that data isolation of different task types is achieved, and the accuracy of data processing is improved. In the training process, the model parameters of the large model can be frozen, and the incremental parameters of the adaptation module can be obtained through training, which reduces the degree of model training and improves data processing efficiency.

[0071] In order to further improve the training efficiency, in some embodiments, the above method may further include:

[0072] Determine first input test data corresponding to the target task type;

[0073] Processing the first input test data using the large model to obtain first output test data;

[0074] When the first output test data fails to meet the test requirements, a first training data set of the target task type is constructed.

[0075] In this embodiment, the target task type may be a new task type that has not been processed by the data processing model. The first input test data corresponding to the target task type may be determined, input into the data processing model, and processed using the large model to obtain the first output test data.

[0076] Among them, a prompt message can be generated based on the first input test data and the target task type. The prompt message is a form of input used to prompt or guide the data processing model to give an expected output, indicating what action the data processing model should take or what output it should generate when performing a specific task. The prompt message is a natural language input, similar to a command or instruction, to let the data processing model know what it needs to do. For example, the prompt message can be: Please output the data corresponding to the target task type based on the first input test data.

[0077] Afterwards, the prompt information can be input into the data processing model to prompt the data processing model to output the first output test data corresponding to the target task type. In this process, the generated prompt information can be continuously debugged to improve the accuracy of the first output test data.

[0078] According to the obtained first output test data, it can be determined whether the test requirements are met. The test requirements can be set according to the actual application scenario. Taking text generation as an example, the test requirements may include that the format of the output text is a preset format and the length is within a preset range.

[0079] If the test requirements are not met, indicating that the large model is unable to perform data processing of this task type, a corresponding first training data set can be constructed, and the corresponding adaptation module can be trained according to the training method described in the above embodiment.

[0080] If the test requirements are met, it indicates that the large model can perform data processing for this task type without the need to train an adaptation module.

[0081] By preferentially utilizing the large model to process the first input test data of the target task type, the first output test data is obtained. Only when it is determined that the first output test data does not meet the test requirements, a first training data set is constructed to train and obtain the corresponding adaptation module. When the test requirements are met, there is no need to train the adaptation module, thereby avoiding the waste of training resources by still training the adaptation module when the large model is capable of executing the data processing task of the target task type, saving training resources and improving training efficiency.

[0082] Optionally, the above method may further include:

[0083] When the first output test data meets the test requirements, a prompt template corresponding to the target task type is generated according to the first input test data.

[0084] The prompt template can be used to generate corresponding prompt information based on the input data of the target task type. After continuously debugging the prompt information, when the first output test data that meets the test requirements is obtained, it indicates that the prompt information debugging is reasonable, and the prompt template can be generated based on this.

[0085] By generating a prompt template for the target task type when the first output test data meets the test requirements, it is possible to combine the input data and generate reasonable prompt information according to the prompt template, so as to input the prompt information into the data processing model to guide the data processing model to output the data corresponding to the target task type, thereby facilitating the data processing model to smoothly execute the data processing task.

[0086] In combination with the description of the foregoing embodiments, it can be seen that when the first input test data of the target task type is processed using a large model and the output test data that meets the test requirements cannot be obtained, a first training data set can be constructed to train the adaptation module. The process of constructing the first training data set is explained below.

[0087] In some embodiments, the method of constructing a first training data set of a target task type may include:

[0088] Processing the first input test data using the general large model to obtain second output test data;

[0089] Based on the second output test data that meets the test requirements and the corresponding first input test data, a first training data set of the target task type is constructed.

[0090] In this embodiment, the general large model may refer to a machine learning model such as GPT that has a large number of parameters and a complex structure and can process massive data. The general large model is used to process the first input test data to obtain the second output test data.

[0091] Optionally, prompt information can be generated based on the first input test data and the target task type, and the prompt information can be input into the general large model to prompt the general large model to output second output test data corresponding to the target task type. In addition, the prompt information can be continuously debugged until the second output test data that meets the test requirements is obtained.

[0092] Based on the second output test data that meets the test requirements and the corresponding first input test data, a first training data set of the target task type can be constructed. The second output test data that meets the test requirements can be used as training labels, and the corresponding first input test data can be used as training samples to construct training sample pairs and obtain the first training data set.

[0093] By leveraging the data processing capabilities of the general large model and using the general large model to process the first input test data, it is possible to obtain second output test data that meets the test requirements when the large model in the data processing model cannot obtain output test data that meets the test requirements. Based on the second output test data that meets the test requirements and the corresponding first input test data, the construction of the first training data set is successfully completed, which facilitates the smooth execution of subsequent training processes.

[0094] On this basis, in order to improve the efficiency and accuracy of constructing the first training data set, in some embodiments, debugging the prompt information until obtaining the second output test data that meets the test requirements may include:

[0095] Compare the second output test data corresponding to the previous debugging with the preset output data corresponding to the test requirement to obtain adjustment information for the second output test data;

[0096] The adjustment information is added to the prompt information until the second output test data that meets the test requirements is obtained.

[0097] Among them, during the debugging process of the prompt information, after the corresponding second output test data is obtained in the previous debugging, it can be compared with the preset output data corresponding to the test requirement to obtain adjustment information. Taking text generation as an example, the second output test data can be, for example, a text with a length of 40 characters, and the preset output data corresponding to the test requirement can be, for example, a text with a length of 32 characters. The adjustment information can be, for example, to continue to shorten the character length of the output data, or to shorten the length of the output data by 8 characters, etc.

[0098] The adjustment information is added to the prompt information for debugging, and the debugged prompt information is input into the general large model to prompt the general large model to continue to shorten the character length of the output data, or shorten the length of the output data by 8 characters until the second output test data that meets the test requirements is obtained.

[0099] By comparing the second output test data corresponding to the previous debugging with the preset output data corresponding to the test requirements, adjustment information for the second output test data is obtained, and it is added to the prompt information for continuous debugging, which can improve the efficiency and accuracy of obtaining the second output test data that meets the test requirements, thereby improving the efficiency and accuracy of constructing the first training data set.

[0100] For ease of understanding, Figure 3 A flowchart of another embodiment of a model training method is shown, and the method may include the following steps:

[0101] 301: Determine first input test data corresponding to a target task type.

[0102] The target task type may refer to a new task type that has not been processed by the data processing model.

[0103] 302: Process the first input test data using the large model to obtain first output test data.

[0104] Among them, prompt information can be generated based on the first input test data and the target task type, and the prompt information can be input into the data processing model to prompt the data processing model to output the first output test data corresponding to the target task type, and the accuracy of the first output test data can be improved by continuously debugging the prompt information.

[0105] 303: Determine whether the first output test data meets the test requirements. If the determination result is yes, execute the operation of step 309; if the determination result is no, execute the operation of step 305.

[0106] 304: Process the first input test data using the general large model to obtain second output test data.

[0107] 305: Determine whether the second output test data meets the test requirements. If the determination result is yes, execute the operation of step 306; if the determination result is no, return to step 304 and continue execution.

[0108] Among them, prompt information can be generated based on the first input test data and the target task type, and the prompt information can be input into the general large model to prompt the general large model to output second output test data corresponding to the target task type, and the prompt information can be continuously debugged until the second output test data that meets the test requirements is obtained.

[0109] Optionally, after obtaining the corresponding second output test data in the previous debugging, compare it with the preset output data corresponding to the test requirements to obtain adjustment information, add the adjustment information to the current prompt information for debugging, and input the debugged prompt information into the general large model to improve the efficiency and accuracy of obtaining the second output test data that meets the test requirements.

[0110] 306: Construct a first training data set of the target task type based on the second output test data and the corresponding first input test data.

[0111] 307: Inject the target adaptation module corresponding to the target task type into the data processing model.

[0112] 308: Freeze the model parameters of the large model, and use the first training data set to train the data processing model to generate incremental parameters corresponding to the target adaptation module.

[0113] 309: Generate a prompt template corresponding to the target task type according to the first input test data.

[0114] In this embodiment, for the first input test data corresponding to the target task type, the large model can be used to process it first to obtain the first output test data. When the first output test data meets the test requirements, there is no need to train the adaptation module, which saves training resources and improves training efficiency. In addition, a prompt template corresponding to the target task type can be generated according to the first input test data to realize the combination of input data and generate reasonable prompt information according to the prompt template, so as to input the prompt information into the data processing model to guide the data processing model to output the data corresponding to the target task type, so as to facilitate the data processing model to smoothly execute the data processing task. In the case where the first output test data does not meet the test requirements, the general large model can be used to process the first input test data, generate prompt information and continuously debug until the second output test data that meets the test requirements is obtained. Based on the second output test data that meets the test requirements and the corresponding first input test data, a first training data set is constructed, and the corresponding adaptation module is obtained by training to realize the data processing model for the data processing of the target task type, which expands the scope of application of the data processing model, and in the training process, by freezing the model parameters of the large model, the incremental parameters of the adaptation module are obtained by training, which reduces the degree of model training and improves data processing efficiency.

[0115] In practical applications, when using a trained data processing model to perform data processing tasks, the data processing model can also be adjusted in real time based on the task execution status.

[0116] Therefore, in some embodiments, the above method may further include:

[0117] Collecting feedback information on output data generated using the data processing model;

[0118] When the feedback information meets the training conditions, the input data and the output data are used as training sample pairs;

[0119] The large model is trained using the training sample pairs to adjust the model parameters of the large model.

[0120] Among them, feedback information can be provided by users. Taking the output data as output text as an example, the feedback information can include click data, browsing data, etc. for the output text. The click data can include the number of clicks, the number of clickers, etc. The browsing data can include the number of views, the number of viewers, the browsing time, etc.

[0121] Different training conditions can be set for different feedback information. For example, the number of clicks is greater than the preset number threshold, the number of clicks exceeds the preset number threshold, etc. Feedback information that meets the training conditions can be considered to be positive feedback information. The corresponding input data and output data are used as training sample pairs, and the large model in the data processing model can be optimized and trained to improve the model parameters of the large model, so as to further improve the accuracy of the large model.

[0122] By collecting feedback information on output data and using the input data and output data corresponding to the feedback information that meets the training conditions as training sample pairs, the large model in the data processing model is optimized and trained, thereby achieving dynamic adjustment and optimization of the large model and improving the accuracy of the large model.

[0123] In addition to the above adjustment methods, in some embodiments, the above method may also include:

[0124] When a plurality of output data corresponding to input data is obtained by using a data processing model, preference data of training sample pairs are determined based on feedback information.

[0125] At this time, using the training sample pairs to train the large model to adjust the model parameters of the large model may include:

[0126] The large model is trained using the training sample pairs and the preference data to adjust the model parameters of the large model.

[0127] In the case where the input data corresponds to multiple output data, feedback information for each output data can be obtained and preference data can be determined. Taking the output data including output text 1 and output text 2 as an example, the number of clicks for output text 1 can be, for example, 200 times, and the number of clicks for output text 2 can be, for example, 150 times, and it can be determined that the user prefers output text 1. Therefore, the training sample pairs of input data and output text 1, the training sample pairs of input data and output text 2, and the preference data for output text 1 can be used to optimize the training of the large model in the data processing model.

[0128] By using training sample pairs and preference data to optimize the training of the big model in the data processing model, dynamic adjustment and optimization of the big model is achieved. In addition, by combining the user's preference data, the big model is prompted to output data that better meets user needs, further improving the accuracy of the big model and improving the user experience.

[0129] It is understandable that after optimizing and adjusting the large model, the adaptation module in the data processing model can also be optimized and adjusted. The model parameters of the optimized large model can be frozen, and the incremental parameters of the adaptation module can be adjusted to further improve the overall accuracy of the data processing model. I will not go into details.

[0130] The technical solution of the embodiment of the present application is explained below from the perspective of data processing.

[0131] like Figure 4 FIG. 1 is a flowchart of an embodiment of a data processing method provided in an embodiment of the present application. The method may include the following steps:

[0132] 401: Get input data.

[0133] 402: Determine the target task type corresponding to the input data.

[0134] Among them, the input data and the target task type can be provided by the user.

[0135] 403: Determine a data processing model, where the data processing model includes a large model and multiple adaptation modules added to the large model.

[0136] The large model and multiple adaptation modules may correspond to different task types respectively. Based on the target task type, the corresponding large model and target adaptation module may be determined preferentially.

[0137] The data processing model can be obtained by freezing the model parameters of the large model and training with the first training data sets corresponding to the multiple adaptation modules to generate the incremental parameters corresponding to the multiple adaptation modules. Figure 1 The corresponding description has been given in the illustrated embodiment and will not be repeated here.

[0138] 404: Based on the target task type, the input data is processed using the large model and the target adaptation module to obtain output data.

[0139] Optionally, prompt information may be generated according to the input data and a prompt template corresponding to the target task type;

[0140] The prompt information is input into the data processing model to generate output data using the large model and the target adaptation module.

[0141] Among them, the prompt template can be generated during the training process of the data processing model. Figure 1 The corresponding description has been made in the illustrated embodiment and will not be repeated here. Different task types have different prompt templates. Based on the target task type, a corresponding prompt template can be determined and prompt information can be generated in combination with input data. The prompt information is then input into the data processing model to prompt the data processing model to output output data corresponding to the target task type.

[0142] Optionally, the output data may also be output, such as feeding the output data back to a user, or displaying it in a display interface, etc.

[0143] In the embodiment of the present application, after obtaining the input data, the target task type corresponding to the data data can be determined, and the data model can be determined. The data processing model may include a large model and multiple adaptation modules added to the large model, wherein the large model and the multiple adaptation modules correspond to different task types respectively. The data processing model can be obtained by freezing the model parameters of the large model and training with the first training data set corresponding to the multiple adaptation modules respectively to generate the incremental parameters corresponding to the multiple adaptation modules respectively. Then, based on the target task type, the large model and the target adaptation module can be used to process the input data to obtain the output data. Through training to obtain multiple adaptation modules, the data processing model is constructed in combination with the large model, and the processing of input data of different task types is realized by using one data processing model, which increases the scope of application of the data processing model, and each adaptation module is independent of each other to avoid interference with the data processing of other task types, and the data isolation of different task types is realized, which improves the accuracy of data processing, and in the training process, the model parameters of the large model can be frozen, and the incremental parameters of the adaptation module can be obtained by training, which reduces the degree of model training and improves the efficiency of data processing.

[0144] In some embodiments, based on the target task type, processing the input data using the large model and the target adaptation module to obtain output data may include:

[0145] When the target task type corresponds to a large model, the input data is processed using the large model to obtain output data. It can be understood that at this time, the target adaptation module is empty.

[0146] When the target task type corresponds to the target adaptation module, the input data is processed using the large model and the target adaptation module to obtain output data.

[0147] By utilizing the data processing capabilities of the big model and the adaptation module, when the big model is capable of processing data processing tasks of the target task type, the big model is used for data processing; when the target adaptation module is capable of processing data processing tasks of the target task type, the big model and the target adaptation module are used for data processing, thereby improving the rationality of data processing.

[0148] In practical applications, after the output data is output, the data processing model can be adjusted in real time in combination with the feedback information of the output data. In some embodiments, the above method can also include:

[0149] Collect feedback on output data;

[0150] When the feedback information meets the training conditions, the input data and the output data are used as training sample pairs;

[0151] The large model is trained using the training sample pairs to adjust the model parameters of the large model.

[0152] Among them, the setting of training conditions and the process of using training samples to train large models are Figure 1 The corresponding description has been given in the illustrated embodiment and will not be repeated here.

[0153] By collecting feedback information on output data and using the input data and output data corresponding to the feedback information that meets the training conditions as training sample pairs, the large model in the data processing model is optimized and trained, thereby achieving dynamic adjustment and optimization of the large model and improving the accuracy of the large model.

[0154] In some embodiments, the above method may further include:

[0155] When a plurality of output data corresponding to the input data is obtained by using the data processing model, preference data of the training sample pairs is determined based on the feedback information;

[0156] At this time, using the training sample pairs to train the large model to adjust the model parameters of the large model may include:

[0157] The large model is trained using the training sample pairs and the preference data to adjust the model parameters of the large model.

[0158] Among them, the selection of preference data and the process of using training sample pairs and preference data to train the large model are Figure 1 There are corresponding descriptions in the illustrated embodiment, which will not be repeated here.

[0159] By using training sample pairs and preference data to optimize the training of the big model in the data processing model, dynamic adjustment and optimization of the big model is achieved. In addition, by combining the user's preference data, the big model is prompted to output data that better meets user needs, further improving the accuracy of the big model and improving the user experience.

[0160] It is understandable that after optimizing and adjusting the large model, the adaptation module in the data processing model can also be optimized and adjusted. The model parameters of the optimized large model can be frozen, and the incremental parameters of the adaptation module can be adjusted to further improve the overall accuracy of the data processing model. I will not go into details.

[0161] In practical applications, the data processing model can be applied to data processing in e-commerce scenarios. The following takes commodity information processing as an example to illustrate the technical solution of the embodiment of the present application.

[0162] like Figure 5 FIG. 1 is a flowchart of an embodiment of a method for processing commodity information provided by an embodiment of the present application. The method may include the following steps:

[0163] 501: Get product information provided by the user.

[0164] 502: Determine the target task type corresponding to the product information.

[0165] The target task type may be provided by the user.

[0166] 503: Determine the data processing model.

[0167] The data processing model may include a large language model and multiple adaptation modules added to the large language model; the large language model and the multiple adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large language model and training using the first training data sets corresponding to the multiple adaptation modules respectively, so as to generate incremental parameters corresponding to the multiple adaptation modules respectively.

[0168] The model training process is Figure 1 to Figure 3 Corresponding descriptions have been given in the embodiments and will not be repeated here.

[0169] In this embodiment, the commodity information processing method can be executed by the server, and the data processing model can be deployed on the server. The server can obtain the commodity information processing request sent by the user, including commodity information and target task type.

[0170] Optionally, the target task type may include a product title generation task, a promotional copy generation task, or a product details content generation task.

[0171] 504: Based on the target task type, the product information is processed using a large language model and a target adaptation module to obtain a product description text.

[0172] Optionally, prompt information may be generated according to the product information and a prompt template corresponding to the target task type;

[0173] The prompt information is input into the data processing model to use the large language model and the target adaptation module to generate product titles, promotional copy or product details.

[0174] And, the above method may further include:

[0175] Output product titles, promotional copy or product details.

[0176] For example, the output content can be sent to the user end, and the product title, promotional copy, or product details content can be published on the specified page.

[0177] Through training, multiple adaptation modules are obtained, and a data processing model is constructed in combination with a large language model. It is possible to use one data processing model to process product information of different task types in e-commerce application scenarios, thereby increasing the scope of application of the data processing model. Each adaptation module is independent of each other, avoiding interference with data processing in other application scenarios, achieving data isolation in different application scenarios, and improving the accuracy of data processing.

[0178] like Figure 6 As shown, it is a structural schematic diagram of an embodiment of a model training device provided in an embodiment of the present application, and the device may include the following modules:

[0179] A first determination module 601 is used to determine a first training data set of a target task type;

[0180] An injection module 602 is used to inject a target adaptation module corresponding to a target task type into a data processing model; the data processing model includes a large model and at least one adaptation module;

[0181] The first training module 603 is used to freeze the model parameters of the large model and use the first training data set to train the data processing model to generate incremental parameters corresponding to the target adaptation module; the large model and the target adaptation module are used to process the input data of the target task type to obtain output data.

[0182] The model training device of this embodiment can be used to implement Figure 1 The model training method shown, after determining the first training data set of the target task type, can inject the target adaptation module corresponding to the target task type into the data processing model, wherein the data processing model can include a large model and at least one adaptation module, and then the model parameters of the large model can be frozen, and the data processing model is trained using the first training data set to generate incremental parameters corresponding to the target adaptation module, and the large model and the target adaptation module can be used to process the input data of the target task type to obtain output data. The adaptation module corresponding to the task type is obtained through training, and the data processing model is constructed in combination with the large model, so that the input data of different task types can be processed using one data processing model, which increases the scope of application of the data processing model, and each adaptation module is independent of each other to avoid interference with the data processing of other task types, so that data isolation of different task types is achieved, and the accuracy of data processing is improved. In the training process, the model parameters of the large model can be frozen, and the incremental parameters of the adaptation module can be obtained through training, which reduces the degree of model training and improves data processing efficiency.

[0183] In some embodiments, the above apparatus may further include:

[0184] A second determination module, used to determine first input test data corresponding to the target task type;

[0185] A first processing module, used to process first input test data using the large model to obtain first output test data;

[0186] A construction module is used to construct a first training data set of the target task type when the first output test data does not meet the test requirements.

[0187] In some embodiments, the above apparatus may further include:

[0188] The first generation module is used to generate a prompt template corresponding to the target task type according to the first input test data when the first output test data meets the test requirements. The prompt template is used to generate corresponding prompt information based on the input data of the target task type, and the prompt information is used to input the data processing model to generate output data using the large model and the target adaptation module.

[0189] In some embodiments, the building blocks may include:

[0190] A first processing unit, configured to process first input test data using a general large model to obtain second output test data;

[0191] A construction unit is used to construct a first training data set of a target task type based on second output test data that meets the test requirements and the corresponding first input test data.

[0192] In some embodiments, the construction unit may be specifically configured to generate prompt information based on the first input test data and the target task type; input the prompt information into the general large model to prompt the general large model to output second output test data corresponding to the target task type;

[0193] The construction module may further include a debugging unit, which is used to debug the prompt information until second output test data that meets the test requirements is obtained.

[0194] In some embodiments, the debugging unit can be specifically used to compare the second output test data corresponding to the previous debugging with the preset output data corresponding to the test requirements to obtain adjustment information for the second output test data; and add the adjustment information to the prompt information until the second output test data that meets the test requirements is obtained.

[0195] A first acquisition module, used to acquire a second training data set;

[0196] The second training module is used to train the large model using the second training data set to adjust the model parameters of the large model.

[0197] In some embodiments, the above apparatus may further include:

[0198] A collection module, used for collecting feedback information on output data generated by using the data processing model;

[0199] A third determination module is used to use the input data and the output data as a training sample pair when the feedback information meets the training condition;

[0200] The second training module is also used to train the large model using the training sample pairs to adjust the model parameters of the large model.

[0201] In some embodiments, the above apparatus may further include:

[0202] A fourth determination module is used to determine preference data of the training sample pair based on feedback information when a plurality of output data corresponding to the input data is obtained by using the data processing model;

[0203] The second training module can be specifically used to train the large model using the training sample pairs and the preference data to adjust the model parameters of the large model.

[0204] like Figure 7 FIG. 1 is a schematic diagram of a structure of an embodiment of a data processing device provided in an embodiment of the present application. The device may include the following modules:

[0205] The second acquisition module 701 is used to acquire input data;

[0206] A fifth determination module 702 is used to determine the target task type corresponding to the input data;

[0207] The sixth determination module 703 is used to determine a data processing model; the data processing model includes a large model and multiple adaptation modules added to the large model; the large model and the multiple adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large model and training with the first training data sets corresponding to the multiple adaptation modules respectively, so as to generate incremental parameters corresponding to the multiple adaptation modules respectively;

[0208] The processing module 704 is used to process the input data based on the target task type using the large model and the target adaptation module to obtain output data.

[0209] The data processing device of this embodiment can be used to implement Figure 4The data processing method shown, after obtaining the input data, can determine the target task type corresponding to the data data, and determine the data model, the data processing model can include a large model and multiple adaptation modules added in the large model, wherein the large model and the multiple adaptation modules correspond to different task types respectively, the data processing model can be obtained by freezing the model parameters of the large model, using the first training data set corresponding to the multiple adaptation modules to train, so as to generate the incremental parameters corresponding to the multiple adaptation modules respectively, and then based on the target task type, the large model and the target adaptation module can be used to process the input data to obtain the output data. Through training to obtain multiple adaptation modules, the data processing model is constructed in combination with the large model, so that the input data of different task types can be processed by one data processing model, the application scope of the data processing model is increased, and each adaptation module is independent of each other, avoiding interference with the data processing of other task types, realizing the isolation of data of different task types, improving the accuracy of data processing, and in the training process, the model parameters of the large model can be frozen, and the incremental parameters of the adaptation module can be obtained by training, which reduces the degree of model training and improves the data processing efficiency.

[0210] In some embodiments, the above apparatus may further include:

[0211] A collection module, used for collecting feedback information on output data;

[0212] A third determination module is used to use the input data and the output data as a training sample pair when the feedback information meets the training condition;

[0213] The second training module is used to train the large model using the training sample pairs to adjust the model parameters of the large model.

[0214] In some embodiments, the above apparatus may further include:

[0215] A fourth determination module is used to determine preference data of the training sample pair based on feedback information when a plurality of output data corresponding to the input data is obtained by using the data processing model;

[0216] The second training module can be specifically used to train the large model using the training sample pairs and the preference data to adjust the model parameters of the large model.

[0217] In some embodiments, the processing module 704 can be specifically used to process the input data using the large model to obtain output data when the target task type corresponds to the large model; and to process the input data using the large model and the target adaptation module to obtain output data when the target task type corresponds to the target adaptation module.

[0218] In some embodiments, the processing module 704 can be specifically used to generate prompt information according to the input data and the prompt template corresponding to the target task type; input the prompt information into the data processing model to generate output data using the large model and the target adaptation module.

[0219] In some embodiments, the large model is a large language model;

[0220] The second acquisition module 701 may be specifically used to acquire the product information and target task type provided by the user; the target task type includes a product title generation task, a promotional copy generation task, or a product details content generation task;

[0221] The processing module 704 may be specifically used to generate prompt information according to the product information and the prompt template corresponding to the target task type; input the prompt information into the data processing model to generate the product title, promotional copy or product details content by using the large language model and the target adaptation module;

[0222] The above device may also include:

[0223] The output module is used to output product titles, promotional copy or product details.

[0224] For ease of understanding, the following takes the actual e-commerce data processing application scenario as an example. Figure 8 The scene schematic diagram shown illustrates the technical solution of the present application.

[0225] like Figure 8 As shown, it may include a server 801 and a user 802 .

[0226] The server 801 may be deployed with a data processing model, which may include a large language model and at least one adaptation module, such as a product title generation adaptation module, a promotional copy generation adaptation module, and a product details content generation adaptation module, wherein the multiple adaptation modules correspond to multiple task types. The server 801 may train the adaptation module in the data processing model according to the following process: Determine the first training data set X of the target task type i i , i = 0, 1, 2, ···, n, n is a positive integer. Among them, the target task type may include a product title generation task, a promotional copy generation task, or a product details content generation task; inject a target adaptation module corresponding to the target task type into the data processing model; freeze the model parameter W0 of the large language model, and use the first training data set to train the data processing model to generate incremental parameters corresponding to the target adaptation module, such as adding the input data X in the target training data set to the target adaptation module. i Input data processing model, use large language model and target adaptation module to process it, and obtain output result H i=W0X+B i A i X i , where B i , A i Representing the incremental parameters of the target adaptation module, comparing the training labels in the first training data set of the target task type with the output result, and adjusting the incremental parameters of the target adaptation module based on the comparison result until the training is completed.

[0227] Among them, the first input test data corresponding to the target task type can be determined, and the large language model can be used to process it preferentially to obtain the first output test data. When the first output test data meets the test requirements, there is no need to train the adaptation module, which saves training resources and improves training efficiency. In addition, a prompt template corresponding to the target task type can be generated according to the first input test data to realize combining the input data and generating reasonable prompt information according to the prompt template, so as to input the prompt information into the data processing model to guide the data processing model to output the data corresponding to the target task type, so as to facilitate the data processing model to smoothly execute the data processing task.

[0228] When the first output test data does not meet the test requirements, the first input test data can be processed using a general large model to generate prompt information and continuously debug until the second output test data that meets the test requirements is obtained. Based on the second output test data that meets the test requirements and the corresponding first input test data, a first training data set is constructed, and the corresponding adaptation module is trained to implement data processing of the target task type by the data processing model, thereby expanding the scope of application of the data processing model.

[0229] Furthermore, during the training process, by freezing the model parameters of the large language model and training the incremental parameters of the adaptation module, the degree of model training is reduced and the data processing efficiency is improved.

[0230] Furthermore, the server 801 may also train the large language model in the data processing model according to the following process: obtaining a second training data set; and training the large language model using the second training data set to adjust model parameters of the large language model.

[0231] Furthermore, the server 801 can also collect feedback information on online data, such as feedback data on product titles, promotional copy, product details, etc. When the feedback information meets the training conditions, the corresponding input data and output data are used as training sample pairs, and the training sample pairs are used to train the large language model to optimize the model parameters of the large language model. In addition, preference data of the training sample pairs can be determined, and the training sample pairs and the preference data can be used to train the large language model to optimize the model parameters of the large language model.

[0232] By using training sample pairs and preference data to optimize the training of the large language model in the data processing model, dynamic adjustment and optimization of the large language model is achieved. In addition, by combining the user's preference data, the large language model is prompted to output data that better meets user needs, further improving the accuracy of the large language model and improving the user experience.

[0233] After the data processing model training is completed, the server 801 can be deployed online to perform data processing tasks in e-commerce application scenarios.

[0234] The user may provide product information and target task type through the user terminal 802 . The target task type may include a product title generation task, a promotional copy generation task, or a product details content generation task.

[0235] The server 801 can receive information provided by the client 801, determine product information and target task type, generate prompt information according to the prompt template corresponding to the product information and target task type, and input the prompt information into the data processing model to generate product titles, promotional copy or product details content, etc. by using the large language model and the target adaptation module, and send the output content to the client, and publish the product title, promotional copy or product details content, etc. on the designated page.

[0236] By obtaining multiple adaptation modules through training and combining them with a large model to construct a data processing model, it is possible to use one data processing model to process input data of different task types in e-commerce application scenarios, thereby increasing the scope of application of the data processing model. In addition, each adaptation module is independent of each other to avoid interfering with data processing in other application scenarios, thus achieving data isolation in different application scenarios and improving the accuracy of data processing.

[0237] In addition, the server 801 can also collect feedback information on output data, and use the input data and output data corresponding to the feedback information that meets the training conditions as training sample pairs, to optimize the training of the large model in the data processing model, thereby realizing dynamic adjustment and optimization of the large model and improving the accuracy of the large model.

[0238] In addition, the server 801 can also use the training sample pairs and preference data to optimize the training of the big model in the data processing model, realize the dynamic adjustment and optimization of the big model, and combine the user's preference data to enable the big model to output data that better meets user needs, further improve the accuracy of the big model, and improve the user experience.

[0239] The present application also provides a computing device, Fig. 9 A schematic diagram of a structure of an embodiment of a computing device is shown, and the device may include a storage component 901 and a processing component 902;

[0240] The storage component 901 may be used to store one or more computer program instructions, wherein the one or more computer program instructions are invoked and executed by the processing component 902 to implement Figure 1 or Figure 3 The model training method shown, or Figure 4 The data processing method shown, or Figure 5 The product information processing method shown.

[0241] Of course, the above computing device may also include other components, such as input / output interfaces, communication components, etc.

[0242] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.

[0243] It should be noted that the above computing device implements Figure 1 or Figure 3 In the case of the model training method shown, it can be a physical device or an elastic computing host provided by a cloud computing platform, etc. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device.

[0244] The computing device described above implements Figure 4 The data processing method shown or Figure 5 In the case of the commodity information processing method shown, it can be implemented as an electronic device. The electronic device can refer to a device used by a user and has the functions of surfing the Internet, computing, communicating, etc. required by the user, such as a mobile phone, a tablet computer, a personal computer, a wearable device, etc. It is understandable that the above electronic device may also include a display component, an input / output interface, a communication component, and other components, which will not be repeated.

[0245] In one or more of the above embodiments, the processing component may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component can also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0246] The storage component is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0247] The display component may be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0248] The present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a computer, Figure 1 or Figure 3 The model training method shown, or Figure 4 The data processing method shown, or Figure 5 The commodity information processing method shown in the figure. The computer readable medium may be included in the computing device described in the above embodiment; or it may exist independently without being assembled into the computing device.

[0249] The computer-readable storage medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above.

[0250] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium, and when the computer program is executed by a computer, it can achieve Figure 1 or Figure 3 The model training method shown, or Figure 4 The data processing method shown, or Figure 5 The product information processing method shown.

[0251] In such an embodiment, the computer program may be downloaded and installed from a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the system of the present application are performed.

[0252] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0253] 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.

[0254] 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.

[0255] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 application.

Claims

1. A data processing method, characterized in that: include: Get input data; Determine the target task type corresponding to the input data; Determine a data processing model; the data processing model includes a large model and a plurality of adaptation modules added to the large model; the large model and the plurality of adaptation modules correspond to different task types respectively; the data processing model is obtained by freezing the model parameters of the large model and training using the first training data sets corresponding to the plurality of adaptation modules respectively, so as to generate incremental parameters corresponding to the plurality of adaptation modules respectively; Based on the target task type, the input data is processed using the large model and the target adaptation module to obtain output data.

2. The method according to claim 1, characterized in that Also includes: Collecting feedback information for the output data; In the case where the feedback information satisfies the training condition, using the input data and the output data as a training sample pair; The large model is trained using the training sample pairs to adjust model parameters of the large model.

3. The method according to claim 2, characterized in that Also includes: When a plurality of output data corresponding to the input data is obtained by using the data processing model, determining preference data of the training sample pair based on the feedback information; The step of training the large model using the training sample pairs to adjust the model parameters of the large model includes: The large model is trained using the training sample pairs and the preference data to adjust model parameters of the large model.

4. The method according to claim 1, characterized in that: The processing of the input data based on the target task type by using the large model and the target adaptation module to obtain output data includes: In the case where the target task type corresponds to the large model, using the large model to process the input data to obtain output data; In the case where the target task type corresponds to a target adaptation module, the input data is processed using the large model and the target adaptation module to obtain output data.

5. The method according to claim 1, characterized in that The processing of the input data based on the target task type by using the large model and the target adaptation module to obtain output data includes: Generate prompt information according to the input data and a prompt template corresponding to the target task type; The prompt information is input into the data processing model to generate output data using the large model and the target adaptation module.

6. The method according to claim 1, characterized in that The large model is a large language model, and obtaining input data includes: Acquire product information and target task types provided by users; the target task types include product title generation tasks, promotional copy generation tasks, or product details content generation tasks; The processing of the input data based on the target task type by using the large model and the target adaptation module to obtain output data includes: Generate prompt information according to the commodity information and the prompt template corresponding to the target task type; Input the prompt information into the data processing model to generate product titles, promotional copy or product details using the large language model and the target adaptation module; The method further comprises: Output the product title, the promotional copy or the product details.

7. A commodity information processing method, characterized in that: include: Obtain product information provided by users; Determine the target task type corresponding to the product information; Determine a data processing model; the data processing model includes a large language model and a plurality of adaptation modules added to the large language model; the large language model and the plurality of adaptation modules correspond to different task types respectively; The data processing model is obtained by freezing the model parameters of the large language model and training using the first training data sets respectively corresponding to the multiple adaptation modules to generate incremental parameters respectively corresponding to the multiple adaptation modules; Based on the target task type, the commodity information is processed using the large language model and the target adaptation module to obtain a commodity description text.

8. A model training method, characterized in that: include: Determine a first training data set of a target task type; Injecting a target adaptation module corresponding to the target task type into the data processing model; The data processing model includes a large model and at least one adaptation module; Freezing the model parameters of the large model, and training the data processing model using the first training data set to generate incremental parameters corresponding to the target adaptation module; The large model and the target adaptation module are used to process input data of the target task type to obtain output data.

9. The method according to claim 8, characterized in that Also includes: Determine first input test data corresponding to the target task type; Processing the first input test data using the large model to obtain first output test data; In a case where the first output test data does not meet the test requirements, a first training data set of the target task type is constructed.

10. The method according to claim 9, characterized in that Also includes: When the first output test data meets the test requirements, a prompt template corresponding to the target task type is generated according to the first input test data. The prompt template is used to generate corresponding prompt information based on the input data of the target task type. The prompt information is used to input the data processing model to generate output data using the large model and the target adaptation module.

11. The method according to claim 9, characterized in that The constructing of the first training data set of the target task type comprises: Processing the first input test data using a universal large model to obtain second output test data; Based on the second output test data that meets the test requirements and the corresponding first input test data, a first training data set of the target task type is constructed.

12. The method according to claim 11, characterized in that The using the general large model to process the first input test data to obtain second output test data comprises: Generate prompt information based on the first input test data and the target task type; Inputting the prompt information into the general large model to prompt the general large model to output second output test data corresponding to the target task type; The method further comprises: The prompt information is debugged until second output test data that meets the test requirements is obtained.

13. The method according to claim 12, characterized in that The step of debugging the prompt information until second output test data that meets the test requirement is obtained includes: Compare the second output test data corresponding to the previous debugging with the preset output data corresponding to the test requirement to obtain adjustment information for the second output test data; The adjustment information is added to the prompt information until second output test data that meets the test requirement is obtained.

14. The method according to claim 8, characterized in that Also includes: Obtain a second training data set; The large model is trained using the second training data set to adjust model parameters of the large model.

15. The method according to claim 8, characterized in that Also includes: Collecting feedback information on output data generated using the data processing model; In the case where the feedback information satisfies the training condition, using the input data and the output data as a training sample pair; The large model is trained using the training sample pairs to adjust model parameters of the large model.

16. The method according to claim 15, characterized in that Also includes: When a plurality of output data corresponding to the input data is obtained by using the data processing model, determining preference data of the training sample pair based on the feedback information; The step of training the large model using the training sample pairs to adjust the model parameters of the large model includes: The large model is trained using the training sample pairs and the preference data to adjust model parameters of the large model.

17. A computing device, characterized in that It comprises a storage component and a processing component; the storage component stores one or more computer program instructions, the computer program instructions are called and executed by the processing component, and the processing component executes the one or more computer program instructions to implement the data processing method as described in any one of claims 1 to 6, or the commodity information processing method as described in claim 7, or the model training method as described in any one of claims 8 to 16.

18. A computer-readable storage medium, characterized in that: A computer program is stored, and the computer program is executed by a computer to implement the data processing method according to any one of claims 1 to 6, or the commodity information processing method according to claim 7, or the model training method according to any one of claims 8 to 16.

19. A computer program product, characterized in that A computer program is stored, and when the computer program is executed by a computer, it implements the data processing method according to any one of claims 1 to 6, or the commodity information processing method according to claim 7, or the model training method according to any one of claims 8 to 16.

Citation Information

Cited By

  • Detection method, system and equipment based on large model and storage medium

    CN119808826A

  • A detection method, system, device, and storage medium based on a large model.

    CN119808826B

  • Training method and device of noise reduction low-rank model, electronic equipment and storage medium

    CN120526760A

  • Data processing method and apparatus

    WO2026158277A1