Object processing method and device based on pre-training and two-stage deployment, equipment and medium

Through the two-stage model architecture, a general model is used for pre-training and individual models are trained based on the features generated by it, which solves the problem of low training efficiency of machine learning models in multi-task scenarios and improves the flexibility and generalization ability of the model.

CN118780331APending Publication Date: 2024-10-15BEIJING YOUZHUJU NETWORK TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310363149.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In multi-task scenarios, the efficiency of training multiple machine learning models separately is poor, and different models require different training data, resulting in high model training costs and poor generalization capabilities.

Method used

A two-stage model architecture is adopted. First, a general model is used for pre-training, and then individual models are trained based on the features generated by the general model and sample annotation information of the target category to improve model training efficiency and generalization ability.

Benefits of technology

Through the two-stage deployment method, the flexibility of model application and training efficiency are improved, the generalization ability of the model is improved, and the training data requirements are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780331A_ABST
    Figure CN118780331A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an object processing method and device, equipment and a storage medium. The object processing method comprises the following steps: selecting at least one universal model in response to a received predetermined operation of a user on a first selection control for at least one pre-trained universal model presented in a user interface; at least one universal feature which is generated through at least one universal model and is associated with a sample of an object of a target category in the multiple categories is obtained; and training an individual model for processing the object of the target category at least based on the at least one general feature and the annotation information of the sample of the object of the target category. Therefore, the model training efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to object processing methods, apparatuses, devices, and computer-readable storage media. Background Art

[0002] With the development of machine learning technology, machine learning models can be used to perform tasks in a variety of application environments. Since different tasks have different processing requirements, using a fixed machine learning model for processing will not be able to meet the processing requirements in different scenarios. Therefore, different tasks require different machine learning models (for example, image recognition tasks require image processing models, image classification tasks require image classification models, etc.). However, machine learning models need to spend a lot of time to train based on a large amount of data, resulting in poor efficiency in training multiple machine learning models separately in multi-task scenarios. Therefore, how to improve the efficiency of model training is a technical problem that needs to be solved urgently. Summary of the invention

[0003] In a first aspect of the present disclosure, a method for object processing is provided. The method includes: in response to receiving a predetermined operation of a user on a first selection control for at least one pre-trained general model presented in a user interface, selecting at least one general model; obtaining at least one general feature associated with a sample of an object of a target category among multiple categories generated by the at least one general model; and training an individual model for processing the object of the target category based on at least the at least one general feature and the annotation information of the sample of the object of the target category.

[0004] In a second aspect of the present disclosure, an object processing device is provided. The device includes: a model selection module, configured to select at least one general model in response to receiving a predetermined operation of a user on a first selection control for at least one pre-trained general model presented in a user interface; a feature acquisition module, configured to at least acquire at least one general feature associated with a sample of an object of a target category among multiple categories generated by the at least one general model; and a model training module, configured to train an individual model for processing an object of the target category based on at least the at least one general feature and the annotation information of the sample of the object of the target category.

[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.

[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.

[0007] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0009] Figure 1 A schematic diagram of a model training and application environment in which embodiments of the present disclosure can be implemented is shown;

[0010] Figure 2 A flowchart showing a process of object processing according to some embodiments of the present disclosure;

[0011] Figure 3 A schematic diagram showing a process of model selection according to some embodiments of the present disclosure;

[0012] Figure 4 A schematic diagram showing a user interface according to some embodiments of the present disclosure;

[0013] Figure 5 A schematic diagram showing a process of generating fusion features according to some embodiments of the present disclosure;

[0014] Figure 6 A schematic diagram showing the process of model training according to some embodiments of the present disclosure;

[0015] Figure 7 A schematic diagram showing models corresponding to different downstream tasks according to some embodiments of the present disclosure;

[0016] Figure 8 A schematic diagram of a pre-trained general model according to some embodiments of the present disclosure is shown;

[0017] Fig. 9 A block diagram showing an apparatus for object processing according to some embodiments of the present disclosure; and

[0018] Fig.10 A block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". The following may also include other explicit and implicit definitions. As used herein, the term "model" can represent the association relationship between various data. For example, the above-mentioned association relationship can be obtained based on a variety of technical solutions currently known and / or to be developed in the future.

[0021] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0022] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0023] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0024] As an optional but non-limiting embodiment, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0025] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation to the embodiments of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the embodiments of the present disclosure.

[0026] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.

[0027] A "neural network" is a machine learning network based on deep learning. A neural network is capable of processing inputs and providing corresponding outputs, and typically includes an input layer and an output layer and one or more hidden layers between the input layer and the output layer. Neural networks used in deep learning applications typically include many hidden layers, thereby increasing the depth of the network. The layers of a neural network are connected in sequence so that the output of the previous layer is provided as input to the next layer, where the input layer receives the input of the neural network and the output of the output layer serves as the final output of the neural network. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each of which processes input from the previous layer.

[0028] Generally, machine learning can roughly include three processes, namely the training process, the testing process, and the application process (also called the reasoning process). In the training process, a given model can be trained using a large amount of training data, and the parameter values ​​are continuously updated iteratively until the model can obtain consistent reasoning that meets the expected goals from the training data. Through training, the model can be considered to be able to learn the association from input to output (also called the mapping of input to output) from the training data. The parameter values ​​of the trained model are determined. In the testing process, the test input is applied to the trained model to test whether the model can provide the correct output, thereby determining the performance of the model. In the application process, the model can be used to process the actual input based on the parameter values ​​obtained from the training to determine the corresponding output.

[0029] As briefly mentioned above, different tasks require different machine learning models. For example, different machine learning models can be built for different tasks, and the machine learning models can be trained using training data associated with the tasks that contain manually labeled information. However, this method of training multiple machine learning models separately is inefficient. Moreover, different machine learning models require different training data, which causes the machine learning models to rely on a large amount of labeled information, which in turn leads to high model training costs. In addition, the trained machine learning models have poor generalization capabilities, and the model performance decays rapidly over time.

[0030] The embodiments of the present disclosure propose a solution for object processing. In general, the solution proposes a two-stage model architecture, using different types of models in different stages. Specifically, a general model suitable for processing multiple categories of objects (e.g., images of multiple items, audio in multiple languages, or text in multiple languages, etc.) is used in one stage, and an individual model suitable for processing objects of a specific target category (e.g., images of a certain item, audio in a certain language, or text in a certain language, etc.) is used in another stage. According to the solution, after pre-training the general model, for samples of objects of the target category, the general features generated by the pre-trained general model are obtained, and then the individual model is trained based on the general features and the annotation information of the samples.

[0031] It will be understood from the following description that by adopting a two-stage deployment method, in which a general model is used as one stage and an individual model is used as another stage, for any downstream task, there is a uniformly deployed general model and a separately deployed individual model associated with the downstream task, thereby improving the flexibility of model application. In this way, the efficiency and generalization ability of model training can be improved.

[0032] Figure 1 Schematic diagram of a model training and application environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 In the environment 100, three different processes of model processing are shown, including a pre-training process 102, a fine-tuning process 104, and an application process 106. In some cases, after the pre-training or fine-tuning process is completed, there may also be a testing process (not shown in the figure) for testing the output results of the fine-tuned model.

[0033] In the pre-training process 102, the model pre-training system 110 is configured to perform pre-training of the general model 105 using the training data set 112. At the beginning of the pre-training, the general model 105 may have initial parameter values. The purpose of the pre-training process is to update the parameter values ​​of the general model 105 to the expected values ​​based on the training data. During the pre-training process, one or more pre-training tasks may be designed, each of which is used to help update the parameters of the general model 105. In some examples, in the case where the general model 105 includes an image encoder, one or more pre-training tasks may require connecting the general model 105 to an image decoder associated with the pre-training task.

[0034] In the pre-training process 102, the general model 105 can learn generalization ability through large-scale training data. After the pre-training is completed, the parameter values ​​of the general model 105 are updated with the pre-trained parameter values. Compared with the original state without training, the pre-trained general model 105 can more accurately realize the extraction of feature representation.

[0035] The model fine-tuning system 120 can fine-tune the pre-trained general model 105 accordingly in the fine-tuning process 104 for different downstream tasks. In some embodiments, the downstream tasks may involve various types of visual tasks, examples of which include but are not limited to image classification, object detection, semantic segmentation, and the like. Of course, this is just an example and is not intended to limit the scope of the present disclosure; any other type of downstream task may be applicable to the ideas and principles described herein. In some embodiments, considering that different downstream tasks may have different inputs, the pre-trained general model 105 may be associated or "connected" with the individual models 125 required by the downstream task according to the specific downstream task.

[0036] In the fine-tuning process 104, in some embodiments, the training data set 122 may be in a two-tuple format and include samples 123 and label information 124 related to the samples. In such an embodiment, the model fine-tuning system 120 may perform model training using the training data set 122 including the samples 123 and the label information 124. Specifically, the training process may be iteratively performed using the training data.

[0037] The general model 105 can extract the general features of the samples 123 in the training data set 122, and provide the extracted general features to the individual model 125 to be trained. At the beginning of fine-tuning, the individual model 125 has an initial parameter value or a pre-trained parameter value. The individual model 125 performs the processing required for the downstream task based on the feature. The difference between the obtained processing result and the annotation information 124 is used to update the parameter value of the model. In some embodiments, in the fine-tuning process 104, the respective parameter values ​​of the general model 105 and the individual model 125 can be updated to the expected values ​​corresponding to the downstream task based on the training data. In some embodiments, the parameter values ​​of the pre-trained general model 105 remain unchanged, and the fine-tuning process only updates the parameter values ​​of the individual model 125.

[0038] In the application process 106, the individual model 125 with the trained parameter value can be provided to the model application system 130 for use. In the application process 106, the general model 105 and the individual model 125 can be used to process the corresponding input in the actual scene and provide corresponding output. For example, the general model 105 extracts the general features corresponding to the target object 132. The extracted general features are provided to the individual model 125 to determine the corresponding task output.

[0039] exist Figure 1In the present invention, the model pre-training system 110, the model fine-tuning system 120 and the model application system 130 may include any computing system with computing capabilities, such as various computing devices / systems, terminal devices, servers, etc. The terminal device may involve any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. Servers include but are not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.

[0040] It should be understood that Figure 1 The components and arrangements in the environment 100 shown are merely examples, and a computing system suitable for implementing the exemplary implementations described in the present disclosure may include one or more different components, other components, and / or different arrangements. For example, although shown as separate, the model pre-training system 110, the model fine-tuning system 120, and the model application system 130 may be integrated in the same system or device. Moreover, one or more of the model pre-training system 110, the model fine-tuning system 120, and the model application system 130 may be implemented in a distributed manner in multiple systems or devices. Implementations of the present disclosure are not limited in this respect.

[0041] In some embodiments, the training process of the general model 105 and the individual model 125 may not be divided into Figure 1 Instead of the pre-training and fine-tuning process shown in the figure, the downstream task model can be directly built based on the task and a large amount of training data can be used to train the feature extraction model.

[0042] The following will continue to refer to Figures 2 to 7 Some example embodiments of the present disclosure are described.

[0043] Figure 2 A flowchart of a process 200 for object processing according to some embodiments of the present disclosure is shown. In some embodiments, the process 200 may be performed in Figure 1 The model fine-tuning system 120 shown in FIG. 1 is implemented at 120. For ease of discussion, reference will be made to Figure 1 The process 200 is described with reference to the environment 100 of FIG.

[0044] In block 210 , in response to receiving a predetermined operation of a user on a first selection control presented in a user interface for at least one pre-trained generic model, at least one generic model is selected.

[0045] In some embodiments, a pre-trained general model provided by the model pre-training system 110 may be used, and, due to differences in training data sets, multiple general models provided by the model pre-training system 110 may be used.

[0046] In some embodiments, the model pre-training system 110 may directly provide multiple general models, which are pre-trained using different training data sets. Alternatively, in other embodiments, the model pre-training system 110 may also provide only a specific portion of the general model based on corresponding instructions (e.g., from the model fine-tuning system 120).

[0047] In some embodiments, since downstream tasks may require multiple general features extracted from multiple general models, a user interface for model configuration may be presented, and a selection control associated with model selection (i.e., a first selection control) may be presented in the user interface. In some embodiments, the user interface may present multiple first selection controls so that the user can select multiple general models. In this way, it is possible to assist the user in selecting and configuring multiple general models more intuitively and conveniently.

[0048] In response to receiving a predetermined operation of the user on the first selection control, at least one target universal model is selected from the multiple universal models provided by the model pre-training system 110. In some embodiments, the predetermined operation may be, for example, a touch operation on the first selection control, such as but not limited to a click operation, a long press operation, a slide operation, etc. In some embodiments, when the first selection control includes an input entry associated with a universal model, the predetermined operation may also be a related operation on the input entry, and at least one target universal model may be determined based on the user input received at the input entry.

[0049] Figure 3 A schematic diagram of a process 300 of model selection according to some embodiments of the present disclosure is shown. As shown, a user interface 320 for model selection 330 is presented to a user. Based on a predetermined operation of a first selection control received in the user interface 320, at least one target generic model 340 may be determined.

[0050] Return to reference Figure 2 At block 220 , at least one general feature generated by at least one general model and associated with samples of objects of a target category among a plurality of categories is obtained.

[0051] In some embodiments, at least one general feature generated by a target general model selected by a user in a user interface and associated with a sample of an object of a target category may be directly acquired.

[0052] General features have strong semantic information, but low resolution, so the perception of details is poor. In order to enable the features obtained by the individual models required for downstream tasks to be multi-scale and multi-level features, in some embodiments, at least one intermediate feature generated by the target general model and associated with the sample of the object of the target category can also be obtained. Compared with general features, intermediate features have higher resolution and contain more position and detail information.

[0053] In some embodiments, in the user interface for model configuration, a selection control for at least one intermediate feature of the target generic model is further included, referred to as a "second selection control". In some embodiments, the second selection control may be presented in the user interface together with the first selection control. In this case, the first selection control and the second selection control may be presented in different areas of the user interface.

[0054] Alternatively, in some other embodiments, the second selection control may not be presented initially. If a predetermined operation of the user on the corresponding first selection control of the target generic model in the at least one generic model is received, a second selection control for at least one intermediate feature of the target generic model is presented in the user interface. In some embodiments, the user interface may present multiple second selection controls so that the user can select multiple intermediate features.

[0055] Continue to refer Figure 3 After determining at least one target general model, at least one intermediate feature provided to the individual model 360 can be determined in response to a predetermined operation of a second selection control received in the user interface 320. This process is referred to as feature selection 350.

[0056] Similar to the first selection control, the predetermined operation of the second selection control may be, for example, a touch operation, such as a click operation, a long press operation, a slide operation, etc. In some embodiments, when the second selection control includes an input entry associated with an intermediate feature, the predetermined operation may also be a related operation on the input entry, and at least one intermediate feature may be determined based on the user input received at the input entry.

[0057] Figure 4 A schematic diagram of a user interface 400 according to some embodiments of the present disclosure is shown. An area 410 including a plurality of first selection controls and an area 420 including a second selection control are presented in the user interface 400. At least one target generic model may be determined in response to a predetermined operation associated with the first selection control received in area 410 of the user interface 400, and at least one intermediate feature associated with the target generic model may be determined in response to a predetermined operation associated with the second selection control received in area 420.

[0058] In some embodiments, after obtaining the universal features and at least one intermediate feature generated by the target universal model, the fusion features of the target universal model can be generated based on the universal features and at least one intermediate feature, based on at least one intermediate feature and the universal features.

[0059] Figure 5 A schematic diagram of a process 500 for generating fused features according to some embodiments of the present disclosure is shown. For an acquired sample 510, a general feature 520 and a plurality of intermediate features 530 associated with the sample 510 are generated by a pre-trained target general model 340. The general feature 520 and the plurality of intermediate features 530 are subjected to feature fusion 540 to obtain a fused feature associated with the sample 510.

[0060] Compared with the "single feature + linear classification" solution that only uses common features, the "multi-feature + feature fusion + linear classification" solution that uses fused features obtained by fusing common features with intermediate features helps to improve the accuracy of features acquired by individual models, thereby improving the accuracy of processing by individual models.

[0061] Return to reference Figure 2 In block 230 , an individual model for processing an object of the target category is trained based on at least the at least one common feature and the labeling information of the samples of the object of the target category.

[0062] The annotation information is the true value of the processing result indicated by the downstream task, that is, the expected value of the processing result associated with the sample generated by the individual model 120. The annotation information of the sample can be obtained at the same time as the sample is obtained.

[0063] In some embodiments, when only at least one common feature associated with a sample generated by at least one common model is obtained, a processing result of processing the common feature by an individual model is obtained, and a difference between the processing result and the annotation information is determined.

[0064] In some embodiments, when a fused feature generated based on a common feature and at least one intermediate feature is obtained, an individual model may be trained based on the fused feature and the annotation information. Specifically, a processing result obtained by processing the fused feature by the individual model is obtained, and the difference between the processing result and the annotation information is determined.

[0065] Furthermore, the parameter values ​​of the individual model can be adjusted based on the difference between the processing result and the annotation information, and the training goal of the individual model is to at least make the difference smaller than the threshold. It should be noted that the pre-trained general model does not need to update the parameters at this time, only the parameter values ​​of the individual model are updated.

[0066] In some embodiments, a loss function can be used to update the parameter values ​​of the individual model. The loss function can be a distance loss function or a probability loss function. The distance loss function can include, for example, an L1 loss function, an L2 loss function, a SmoothL1 loss function, a huber loss function, etc. The probability loss function can include, for example, a KL divergence function, a cross entropy loss function, a softmax loss function, etc. The embodiments of the present disclosure are not limited in this respect.

[0067] Figure 6 A schematic diagram of a process 600 of model training according to some embodiments of the present disclosure is shown. For a sample 605, at least a common feature associated with the sample 605 generated by a general model 630 that has been pre-trained 625 is obtained, and the common feature is provided to an individual model 630 together with the annotation information 610 of the sample. The individual model 620 has random initialization parameters or pre-training parameters 615 before training. The model fine-tuning system 120 determines the difference between the processing result associated with the common feature generated by the individual model 620 and the annotation information 610, and updates the parameters of the individual model 620 based on the difference 645. Finally, the general model 630 with unchanged parameters 635 and the individual model 620 after the parameter update 645 are applied in downstream tasks.

[0068] In some embodiments, for different downstream tasks, the general model 630 is uniformly deployed 640, that is, the general model 630 corresponding to different downstream tasks is the same. For different downstream tasks, the individual model 620 is separately deployed 650, that is, the individual model 620 corresponding to different downstream tasks is different.

[0069] Figure 7 A schematic diagram of models corresponding to different downstream tasks according to some embodiments of the present disclosure is shown. For different downstream tasks, different general features corresponding to different training data sets 710 can be extracted by the same general model 720. Further, different individual models are trained based on different general features and annotation information in different training data sets 710 to obtain specific individual models 730 for downstream tasks. For example, when the downstream task is weapon feature recognition, the model fine-tuning system 120 can train to obtain a weapon model 730-1 for weapon feature recognition.

[0070] Therefore, by adopting a two-stage deployment approach, for any downstream task, there can be a uniformly deployed general model and a separately deployed individual model associated with the downstream task, which can improve the flexibility of model application.

[0071] Some example embodiments of the model fine-tuning system 120 are described above in combination with a plurality of embodiments. Some example embodiments of the model pre-training system 110 will be described below with reference to the accompanying drawings.

[0072] In some embodiments, the general model can be trained based on a training data set containing large-scale data. Specifically, when the general model includes an encoder, the parameter value of the encoder in the general model can be updated based on the training data set, and the goal of pre-training is at least to enable the encoder to extract suitable general features from the data set.

[0073] In some embodiments, in order to make the trained general model more generalizable, the pre-trained training data set contains objects of multiple categories, including but not limited to speech, images, text, and the like.

[0074] In some embodiments, when the objects included in the training data set include images, the general model includes at least an image encoder, and the general model can generate image features associated with the image through the image encoder. In the case where the general model also includes a text encoder, the general model can be trained in an image-text matching manner. In some embodiments, the image information and text information of the training image samples in the training data set can be obtained, and then the target general model in at least one general model can be pre-trained based on the matching degree between the image information and the text information.

[0075] Specifically, a plurality of image features are generated based on the image information of a plurality of training image samples by an image encoder in the general model, and a plurality of text features are generated based on the text information of a plurality of training image samples by a text encoder in the general model. Further, the matching degree between each image feature in the plurality of image features and each text feature in the plurality of text features is determined, and the image encoder and the text encoder are trained based on the matching degree. The training goal is to improve the matching degree between the image feature of a target training image sample in the plurality of training image samples and the corresponding text feature, and to reduce the matching degree between the image feature of the target image sample and the text feature of other training image samples in the plurality of training image samples.

[0076] In some embodiments, the loss function can be used to update the parameter values ​​of the image encoder and the text encoder based on the matching degree to achieve pre-training of the general model. Like the loss function in the individual model, the loss function of the general model can also be a distance loss function or a probability loss function.

[0077] Figure 8 FIG. 8 is a schematic diagram of a pre-trained general model 800 according to some embodiments of the present disclosure. An image encoder 810 and a text encoder 830 constitute the general model 800 . Figure 8In the example, the image information of the training image sample included in the training data set includes a cover image 802, a video frame 804, and a login page 806. The image encoder 810 can generate three first image features associated with the three, namely, a cover image projection 812, a video frame projection 814, and a login page projection 816. Further, the model pre-training system 110 fuses the three first image features 820 to obtain a fused image feature 840. At the same time, the text information of the training image sample included in the training data set is provided to the text encoder 830, which is a title 822, a text 824 obtained by optical character recognition, and a login page 806. The text encoder 830 can generate a text feature 850 associated with the three. Finally, a contrast loss 860 is performed based on the matching degree between the image feature 840 and the text feature 850, and the parameter values ​​of the image encoder 810 and the text encoder 830 are updated based on the result, that is, the parameter value of the general model 800 is updated based on the matching degree.

[0078] In some embodiments, since the data set used to train the general model contains a large data scale, the generalization ability of the pre-trained general model is stronger. Therefore, the training data set used to train the individual model can be smaller in scale. In this way, the amount of data required to train the individual model can be reduced, so that the training efficiency of the individual model is higher, and then the model training efficiency for downstream tasks is higher.

[0079] Fig. 9 A block diagram of an apparatus 900 for object processing according to some embodiments of the present disclosure is shown. The apparatus 900 may be implemented or included in, for example, a model pre-training system 110 and / or a model fine-tuning system 120. Each module / component in the apparatus 900 may be implemented by hardware, software, firmware, or any combination thereof.

[0080] As shown in the figure, the device 900 includes a model selection module 910, which is configured to select at least one general model in response to receiving a predetermined operation of a user on a first selection control for at least one pre-trained general model presented in a user interface. The device 900 also includes a feature acquisition module 920, which is configured to at least acquire at least one general feature associated with a sample of an object of a target category in a plurality of categories generated by at least one general model. The device 900 also includes a model training module 930, which is configured to train an individual model for processing an object of a target category based at least on at least one general feature and annotation information of a sample of an object of a target category.

[0081] In some embodiments, the feature acquisition module 920 can also be configured to: in response to receiving a user's predetermined operation on a corresponding first selection control of a target general model in at least one general model, present a second selection control for at least one intermediate feature of the target general model in the user interface; and in response to receiving a user's predetermined operation on the second selection control, acquire the general features and at least one intermediate feature associated with the sample of the object of the target category generated by the target general model.

[0082] In some embodiments, the model training module 930 may also be configured to: generate a fused feature based on at least one intermediate feature and a common feature; and train an individual model based on the fused feature and the annotation information.

[0083] In some embodiments, the model training module 930 may also be configured to: generate processing results for samples of objects of the target category based on at least one common feature through an individual model; and train the individual model based on the processing results and annotation information.

[0084] In some embodiments, the object includes an image, and the device 900 also includes: an information acquisition module configured to acquire image information and text information of multiple training image samples; and a model pre-training module configured to pre-train a target general model in at least one general model based on the matching degree between the image information and the text information.

[0085] In some embodiments, the target general model includes an image encoder and a text encoder, and the model pre-training module can also be configured to: generate multiple image features based on image information of multiple training image samples through the image encoder; generate multiple text features based on text information of multiple training image samples through the text encoder; determine the matching degree between each image feature in the multiple image features and each text feature in the multiple text features; and train the image encoder and the text encoder to improve the matching degree between the image features of the target training image samples in the multiple training image samples and the corresponding text features, and reduce the matching degree between the image features of the target image samples and the text features of other training image samples in the multiple training image samples.

[0086] Fig.10 1 shows a block diagram of an electronic device 1000 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Fig.10 The electronic device 1000 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Fig.10 The electronic device 1000 shown may be used to implement a model pre-training system 110 , a model fine-tuning system 120 and / or a model application system 130 .

[0087] like Fig.10 As shown, the electronic device 1000 is in the form of a general electronic device. The components of the electronic device 1000 may include, but are not limited to, one or more processors or processing units 1010, a memory 1020, a storage device 1030, one or more communication units 1040, one or more input devices 1050, and one or more output devices 1060. The processing unit 1010 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 1020. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 1000.

[0088] The electronic device 1000 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 1000, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 1020 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 1030 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 1000.

[0089] The electronic device 1000 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig.10 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 1020 may include a computer program product 1025 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.

[0090] The communication unit 1040 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 1000 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 1000 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0091] The input device 1050 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 1060 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 1000 may also communicate with one or more external devices (not shown) through the communication unit 1040 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 1000, or communicate with any device that allows the electronic device 1000 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0092] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary embodiment of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0093] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0094] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0095] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0096] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0097] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the various embodiments disclosed herein.

Claims

1. An object processing method, comprising: In response to receiving a predetermined operation of a user on a first selection control for at least one pre-trained general model presented in a user interface, selecting the at least one general model; obtaining at least one universal feature generated by the at least one universal model and associated with samples of objects of a target category among the plurality of categories; as well as An individual model for processing objects of the target category is trained based at least on the at least one common feature and labeling information of samples of objects of the target category.

2. The method according to claim 1, wherein obtaining at least the at least one common feature comprises: In response to receiving a predetermined operation by the user on a corresponding first selection control of a target generic model among the at least one generic model, presenting in the user interface a second selection control for at least one intermediate feature of the target generic model; as well as In response to receiving a predetermined operation of the user on the second selection control, the general feature and at least one intermediate feature generated by the target general model and associated with the sample of the object of the target category are obtained.

3. The method of claim 2, wherein training the individual model comprises: generating a fused feature based on the at least one intermediate feature and the common feature; as well as The individual model is trained based on the fused features and the labeled information.

4. The method of claim 1, wherein training the individual model comprises: Generate, by the individual model, a processing result of a sample of an object of the target category based on the at least one common feature; as well as The individual model is trained based on the processing results and the annotation information.

5. The method of claim 1, wherein the object comprises an image, and the method further comprises: Obtaining image information and text information of multiple training image samples; as well as A target general model in the at least one general model is pre-trained based on a degree of matching between the image information and the text information.

6. The method according to claim 5, wherein the target general model comprises an image encoder and a text encoder, and pre-training the target general model comprises: generating, by the image encoder, a plurality of image features based on the image information of the plurality of training image samples; generating, by the text encoder, a plurality of text features based on the text information of the plurality of training image samples; Determining a degree of match between each image feature of the plurality of image features and each text feature of the plurality of text features; as well as The image encoder and the text encoder are trained to improve the matching degree between the image features of a target training image sample among the multiple training image samples and the corresponding text features, and to reduce the matching degree between the image features of the target image sample and the text features of other training image samples among the multiple training image samples.

7. An object processing device, comprising: a model selection module, configured to select at least one pre-trained general model in response to receiving a predetermined operation of a user on a first selection control for at least one pre-trained general model presented in a user interface; a feature acquisition module configured to acquire at least one universal feature associated with samples of objects of a target category among the plurality of categories generated by the at least one universal model; as well as The model training module is configured to train an individual model for processing objects of the target category based at least on the at least one common feature and the labeling information of samples of objects of the target category.

8. The device according to claim 7, wherein the feature acquisition module is further configured to: In response to receiving a predetermined operation by the user on a corresponding first selection control of a target generic model among the at least one generic model, presenting in the user interface a second selection control for at least one intermediate feature of the target generic model; and In response to receiving a predetermined operation of the user on the second selection control, the general feature and at least one intermediate feature generated by the target general model and associated with the sample of the object of the target category are obtained.

9. The apparatus according to claim 8, wherein the model training module is further configured to: generating a fused feature based on the at least one intermediate feature and the common feature; and The individual model is trained based on the fused features and the labeled information.

10. The apparatus according to claim 7, wherein the model training module is further configured to: Generating, by the individual model, a processing result of a sample of an object of the target category based on the at least one common feature; and The individual model is trained based on the processing results and the annotation information.

11. The apparatus of claim 7, wherein the object comprises an image, and the apparatus further comprises: An information acquisition module, configured to acquire image information and text information of a plurality of training image samples; as well as The model pre-training module is configured to pre-train a target general model in the at least one general model based on the matching degree between the image information and the text information.

12. The apparatus according to claim 11, wherein the target general model comprises an image encoder and a text encoder, and the model pre-training module is further configured to: generating, by the image encoder, a plurality of image features based on the image information of the plurality of training image samples; generating, by the text encoder, a plurality of text features based on the text information of the plurality of training image samples; Determining a degree of match between each image feature of the plurality of image features and each text feature of the plurality of text features; as well as The image encoder and the text encoder are trained to improve the matching degree between the image features of a target training image sample among the multiple training image samples and the corresponding text features, and to reduce the matching degree between the image features of the target image sample and the text features of other training image samples among the multiple training image samples.

13. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 6 when executed by the at least one processing unit.

14. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by a processor.