Method, device, equipment and storage medium for training model

By combining the cross-entropy loss function and the AUC proxy loss function, the click-through rate prediction model solves the problem in the existing technology of being unable to perceive the actual ranking ability of the model, and achieves the simultaneous improvement of accuracy and ranking ability during the model training process, which is suitable for e-commerce applications. Personalized recommendations from business systems.

CN113780548BActive Publication Date: 2024-09-24BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110083297.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-21
Publication Date
2024-09-24
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

Existing click-through rate prediction models cannot effectively perceive the actual ranking ability of the model during the training process, resulting in differences between training supervision indicators and actual effects, and cannot accurately measure the model's ranking ability during the training process.

Method used

Adopt a method to build a click-through rate prediction model by obtaining the data set in the training sample set and the loss function of the click-through rate prediction model, combining the cross-entropy loss function and the AUC proxy loss function, and use the machine learning algorithm to train the model to ensure that the model is training In the process, the accuracy and sorting ability can be perceived at the same time, and integrated optimization can be carried out.

Benefits of technology

It realizes multi-objective optimization of the model's simultaneous perception of accuracy and sorting capabilities during the training process, improves the model's prediction accuracy and sorting capabilities, meets the needs of actual scenarios, and improves the efficiency of users and the platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113780548B
    Figure CN113780548B
Patent Text Reader

Abstract

The present application discloses a method and device for training a model, and the specific implementation scheme is as follows: obtaining a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object, and the click-through rate ranking; using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data, and taking the click-through rate and click-through rate ranking of each object corresponding to the input data set as the expected output data, and training to obtain a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object, and the second loss function is used to calculate the ranking ability of the click-through rate ranking. This scheme solves the problem that the existing click-through rate prediction model cannot perceive the actual ranking ability of the model during the training process.
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 computer technology, specifically to the field of information processing technology, and in particular to a method and device for training a model. Background Art

[0002] E-commerce systems solve the problem of information overload by integrating personalized recommendation systems, helping users quickly find products of interest and improving the efficiency of all parties including users and platforms. The click-through-rate (CTR) prediction model is a very critical part of the personalized recommendation system. When the CTR prediction model is used online, it predicts and sorts the click-through rates of all candidate products for each specific request. The recommendation system sorts them according to the predicted click-through rate values ​​and selects several products with the highest click-through rates to show to users. The academic and industry circles usually use the AUC (Area Under Curve) indicator to measure the sorting ability of the CTR prediction model. However, the model uses the cross entropy loss function or the hinge loss function as the supervision indicator during the training process, and does not directly introduce the AUC (area under the curve) as the supervision indicator. Therefore, the existing click-through rate prediction model, while ensuring the number of training logs and the accuracy of the prediction value, leads to a difference between the training supervision indicator and the actual effect measurement indicator after the model training is completed, and it is impossible to perceive the actual sorting ability of the model during the training process. Summary of the invention

[0003] The present application provides a method, apparatus, device and storage medium for training a model and a method, apparatus, device and storage medium for generating information.

[0004] According to a first aspect of the present application, a method for training a model is provided, the method comprising: obtaining a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object, the data set is used to characterize the user's behavior data for each object content collected after receiving the user's access request, and each sub-data of the data set is generated based on parsing each log corresponding to the behavior data; using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data, taking the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and training to obtain a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set.

[0005] In some embodiments, after obtaining the training sample set, the process includes: aggregating each data set in all data sets included in the training samples in the training sample set to obtain sub-data of each data set in all aggregated data sets, wherein the aggregation is used to characterize the combination of sub-data of the data set according to data features related to each object in each data set.

[0006] In some embodiments, the loss function of the click rate prediction model performs a weighted average of the loss values ​​of each data set based on the aggregated number of sub-data in each data set.

[0007] In some embodiments, the first loss function is a cross entropy loss function or a hinge loss function, and the second loss function is an AUC proxy loss function.

[0008] In some embodiments, the click-through rate prediction model includes a first prediction sub-model, a second prediction sub-model and a result integration sub-model; using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data, taking the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and training to obtain the click-through rate prediction model, including: using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data of the first prediction sub-model, taking the click-through rate of each object corresponding to the input data set as expected output data of the first prediction sub-model, and obtaining a trained first prediction sub-model, wherein the first prediction sub-model is A prediction sub-model is used to characterize a first loss function as an objective function; using a machine learning algorithm, each sub-data of each data set in all data sets is used as input data of a second prediction sub-model, and the click-through rate ranking corresponding to the input data set is used as the expected output data of the second prediction sub-model to obtain a trained second prediction sub-model, wherein the second prediction sub-model is used to characterize a second loss function as an objective function; based on the first prediction sub-model, the second prediction sub-model and a preset result integration sub-model, a click-through rate prediction model is determined, wherein the result integration sub-model is used to characterize the integration of model parameters of the first prediction sub-model of the data set and model parameters of the second prediction sub-model of the corresponding data set.

[0009] In some embodiments, the AUC proxy loss function is used to represent the goal of maximizing the AUC value and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each data set.

[0010] In some embodiments, the model construction methods of the click rate prediction model, the first prediction sub-model and the second prediction sub-model include constructing them based on each sub-data of the data set, constructing them based on pairs of sub-data of the data set and constructing them based on the data list corresponding to the data set.

[0011] According to a second aspect of the present application, a method for generating information is provided, the method comprising: in response to receiving an access request from a user, obtaining user behavior data corresponding to the access request; parsing each log corresponding to the behavior data to obtain each sub-data corresponding to each log, and generating a data set including each sub-data; inputting each sub-data in the data set into a trained click-through rate prediction model to generate click-through rates for each object corresponding to each sub-data in the data set and a click-through rate ranking corresponding to the click-through rate of each object, wherein the click-through rate prediction model is trained by a method such as any embodiment of the method for training a model described above.

[0012] In some embodiments, the method further includes: selecting a target object based on click rate sorting, and displaying the target object to the user.

[0013] According to a third aspect of the present application, a device for training a model is provided, the device comprising: an acquisition unit, configured to acquire a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object, the data set is used to characterize the user's behavior data for each object content collected after receiving the user's access request, and each sub-data of the data set is generated based on parsing each log corresponding to the behavior data; a training unit, configured to use a machine learning algorithm, take each sub-data of each data set in all data sets as input data, take the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and train to obtain a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set.

[0014] In some embodiments, the device also includes: an aggregation unit, configured to aggregate each data set in all data sets included in the training samples in the training sample set to obtain each sub-data of each data set in all the aggregated data sets, wherein the aggregation is used to characterize the combination of each sub-data of the data set according to data features related to each object in each data set.

[0015] In some embodiments, the loss function of the click rate prediction model in the training unit performs a weighted average of the loss values ​​of each data set based on the aggregated number of sub-data in each data set.

[0016] In some embodiments, the first loss function in the training unit is a cross entropy loss function or a hinge loss function, and the second loss function is an AUC proxy loss function.

[0017] In some embodiments, the click-through rate prediction model in the training unit includes a first prediction sub-model, a second prediction sub-model and a result integration sub-model; the training unit includes: a first training module, configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of the first prediction sub-model, and take the click-through rate of each object corresponding to the input data set as the expected output data of the first prediction sub-model, to obtain a trained first prediction sub-model, wherein the first prediction sub-model is used to characterize the first loss function as the objective function; a second training module, configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of the second prediction sub-model, and take the click-through rate ranking corresponding to the input data set as the expected output data of the second prediction sub-model, to obtain a trained second prediction sub-model, wherein the second prediction sub-model is used to characterize the second loss function as the objective function; a determination module, configured to determine the click-through rate prediction model based on the first prediction sub-model, the second prediction sub-model and a preset result integration sub-model, wherein the result integration sub-model is used to characterize the integration of model parameters of the first prediction sub-model of the data set and model parameters of the second prediction sub-model of the corresponding data set.

[0018] In some embodiments, the AUC proxy loss function in the training unit is used to represent the goal of maximizing the AUC value, and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each data set.

[0019] In some embodiments, the model construction methods of the click-through rate prediction model, the first prediction sub-model and the second prediction sub-model in the training unit include constructing them based on each sub-data of the data set, constructing them based on pairs of sub-data of the data set and constructing them based on the data list corresponding to the data set.

[0020] According to a fourth aspect of the present application, a device for generating information is provided, the device comprising: an acquisition unit, configured to, in response to receiving an access request from a user, acquire user behavior data corresponding to an access request; a parsing unit, configured to parse each log corresponding to the behavior data, obtain each sub-data corresponding to each log, and generate a data set including each sub-data; a generation unit, configured to input each sub-data in the data set into a trained click-through rate prediction model, generate click-through rates for each object corresponding to each sub-data in the data set and a click-through rate ranking corresponding to the click-through rate of each object, wherein the click-through rate prediction model is trained by a method such as any embodiment of the method for training a model described above.

[0021] In some embodiments, the device further includes: a display unit configured to select a target object based on click rate sorting and display the target object to the user.

[0022] According to the fifth aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any implementation manner of the first aspect or the second aspect.

[0023] According to the sixth aspect of the present application, the present application provides a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute a method described in any implementation of the first aspect or the second aspect.

[0024] According to the technology of the present application, a training sample set is obtained, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object. A machine learning algorithm is used to take each sub-data of each data set in all data sets as input data, and the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object are taken as the expected output data, and a click-through rate prediction model is obtained by training, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, and the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, which solves the problem that the existing click-through rate prediction model cannot perceive the actual ranking ability of the model during the training process. The fitting accuracy of the click-through rate is guaranteed by the first loss function, and the model is guaranteed to have a good ranking ability by the second loss function, so as to complete the multi-objective optimization based on the CTR model. On the basis of the existing CTR model, the model accuracy and the actual ranking ability of the model can be perceived at the same time during the model training process, and learning is carried out in the direction of improving the accuracy and ranking ability. The model makes predictions based on data sets, and one data set corresponds to one user request, thereby achieving the perception of the model accuracy and model sorting ability for a single request, which is more in line with actual scenarios, further helping users quickly find the products they are interested in, and improving the efficiency of all parties including users and platforms.

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

[0026] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0027] Figure 1 is a schematic diagram of a first embodiment of a method for training a model according to the present application;

[0028] Figure 2 It is a scene diagram that can implement the method for training a model in an embodiment of the present application;

[0029] Figure 3 is a schematic diagram of a second embodiment of a method for training a model according to the present application;

[0030] Figure 4 is a schematic diagram of a first embodiment of a method for generating information according to the present application;

[0031] Figure 5 is a structural schematic diagram of an embodiment of a device for training a model according to the present application;

[0032] Figure 6 is a structural schematic diagram of an embodiment of a device for generating information according to the present application;

[0033] Figure 7 It is a block diagram of an electronic device used to implement the embodiment of the present application. DETAILED DESCRIPTION

[0034] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0036] Figure 1 A schematic diagram 100 of a first embodiment of a method for training a model according to the present application is shown. The method for training a model comprises the following steps:

[0037] Step 101: Obtain a training sample set.

[0038] In this embodiment, the execution subject (such as a server or a terminal device) can obtain the training sample set from other electronic devices or locally through a wired connection or a wireless connection. The training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object. The data set is used to characterize the user's behavior data collected for each object content after receiving the user's access request. The sub-data of the data set is generated based on the analysis of each log corresponding to the behavior data. For example, a batch is generally 64 data sets, that is, 64 user requests, and each request has 4 to 10 logs.

[0039] In some optional implementations of this embodiment, each object is selected based on the prediction result of an existing click rate prediction model.

[0040] Here, the above behavior data may be data of various operation behaviors of users on various displayed objects (several estimated commodities that may be of interest), and the operation behaviors may include: visiting, placing orders, etc. The number of the above behavior data may be one or more. In this regard, the technicians may set it by themselves, and the embodiments of the present application do not limit it.

[0041] It should be noted that the above-mentioned wireless connection methods may include but are not limited to 3G, 4G, 5G connections, WiFi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra wideband) connections, and other wireless connection methods currently known or to be developed in the future.

[0042] In some optional implementations of this embodiment, after obtaining the training sample set, it includes: aggregating each data set in all data sets included in the training samples in the training sample set to obtain each sub-data of each data set in all aggregated data sets, wherein the aggregation is used to characterize the combination of each sub-data of the data set according to the data features related to each object in each data set. The data features related to the object may include: object content, user information, contextual information of the object, etc. Here, the number of the above data features can be one or more, and the technician can set it by himself, and the embodiment of the present application does not limit it. By aggregating the training data according to the request granularity, the model training is more accurate and more in line with the recommendation scenario.

[0043] Step 102, using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data, taking the click rate of each object corresponding to the input data set and the click rate ranking corresponding to the click rate of each object as expected output data, and training to obtain a click rate prediction model.

[0044] In this embodiment, the execution subject can use a machine learning algorithm, take each sub-data of each data set in all data sets obtained in step 101 as input data, take the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as the expected output data, and train to obtain a click-through rate prediction model. Among them, the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function calculates the accuracy of the click-through rate of each object corresponding to the data set in the output data with the accuracy maximization as the optimization goal, the second loss function calculates the sorting ability of the click-through rate ranking corresponding to the data set in the output data with the sorting number maximization as the optimization goal, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set. The integration method can be an adaptive combination method, that is, the loss result of the first loss function and the loss result of the second loss function are controlled by hyperparameters, and the hyperparameters can be manually adjusted or a value with the best performance can be found through grid search.

[0045] It should be noted that the above-mentioned click-through rate prediction model can be constructed based on well-known technologies that are currently widely studied and applied, such as Factorization Machines, DeepCross Network or xDeepFM. Technical personnel can set the model structure of the click-through rate prediction model according to actual needs, and the embodiments of the present disclosure are not limited to this.

[0046] In some optional implementations of this embodiment, the model construction methods of the click rate prediction model include constructing the model based on each sub-data of the data set, i.e., Point-wise Model, constructing the model based on each sub-data of the data set, i.e., Pair-wise Model, and constructing the model based on the data list corresponding to the data set, i.e., List-wise Model. Flexible and diverse model training is achieved, thereby achieving targeted model training and improving the accuracy of model training.

[0047] In some optional implementations of this embodiment, the first loss function may be a cross entropy loss function or a hinge loss function, and the second loss function may be an AUC proxy loss function. This solves the problem in the prior art that when using the AUC proxy loss function, the ranking capabilities of all objects (i.e., the candidate product set) of the request cannot be predicted in a single request, resulting in inconsistency with the actual scenario and inaccurate prediction, and realizes an innovative transformation of the existing AUC proxy loss function to be more suitable for recommendation scenarios.

[0048] In some optional implementations of this embodiment, the loss function of the click-through rate prediction model performs a weighted average of the loss values ​​of each data set based on the aggregated number of sub-data in each data set, thereby implementing a model training method based on aggregated training samples and improving the accuracy of model training.

[0049] Continue to see Figure 2 , the method 200 for training a model in this embodiment runs in a server 201. The server 201 first obtains a training sample set 202, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object. Then, the server 201 uses a machine learning algorithm, takes each sub-data of each data set in all data sets as input data, takes the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and trains to obtain a click-through rate prediction model 203, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set.

[0050] The method for training a model provided by the above-mentioned embodiment of the present application adopts the method of obtaining a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object, and utilize a machine learning algorithm, use each sub-data of each data set in all data sets as input data, use the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and train to obtain a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, and the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, thereby solving the problem that the existing click-through rate prediction model cannot perceive the actual ranking ability of the model during the training process. The first loss function is used to ensure the fitting accuracy of the click-through rate, and the second loss function is used to ensure that the model has good sorting capabilities, completing multi-objective optimization based on the CTR model. On the basis of the existing CTR model, the model accuracy and the actual sorting capabilities of the model can be perceived simultaneously during the model training process, and learning is carried out in the direction of improving accuracy and sorting capabilities. The model makes predictions based on data sets, and one data set corresponds to one user request, thereby realizing the perception of the model accuracy and model sorting capabilities for a single request, which is more in line with actual scenarios, further helping users quickly find the products they are interested in, and improving the efficiency of all parties including users and platforms.

[0051] Further references Figure 3 , which shows a schematic diagram 300 of a second embodiment of a method for training a model. The process of the method includes the following steps:

[0052] Step 301: Obtain a training sample set.

[0053] Step 302, using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data of the first prediction sub-model, taking the click rate of each object corresponding to the input data set as the expected output data of the first prediction sub-model, and obtaining a trained first prediction sub-model.

[0054] In this embodiment, the execution subject pre-stores a click-through rate prediction model, and the click-through rate prediction model includes a first prediction sub-model, a second prediction sub-model, and a result integration sub-model. The execution subject can use a machine learning algorithm to use each sub-data of each data set in all data sets acquired in step 301 as input data of the first prediction sub-model, and use the click-through rate of each object corresponding to the input data set as the expected output data of the first prediction sub-model, adjust the model parameters of the first prediction sub-model, and obtain the trained first prediction sub-model. The first prediction sub-model is used to characterize the first loss function as the objective function. The first loss function calculates the accuracy of the click-through rate of each object corresponding to the data set in the output data with accuracy maximization as the optimization goal. The first loss function can be a cross entropy loss function or a hinge loss function.

[0055] Step 303, using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data of the second prediction sub-model, taking the click rate ranking corresponding to the input data set as the expected output data of the second prediction sub-model, and obtaining a trained second prediction sub-model.

[0056] In this embodiment, the execution subject can use each sub-data of each data set in all data sets obtained in step 301 as the input data of the second prediction sub-model, use the click-through rate ranking corresponding to the input data set as the expected output data of the second prediction sub-model, adjust the model parameters of the second prediction sub-model, and obtain the trained second prediction sub-model. The second prediction sub-model is used to characterize the second loss function as the objective function. The second loss function calculates the sorting ability of the click-through rate ranking corresponding to the data set in the output data with the maximization of the sorting quantity as the optimization goal, and the second loss function can be an AUC proxy loss function.

[0057] In some optional implementations of this embodiment, the AUC proxy loss function is used to characterize the goal of maximizing the AUC value, and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each data set. While introducing the AUC proxy loss function as a supervision indicator, an innovative transformation of the existing AUC proxy loss function is achieved to be more suitable for recommendation scenarios.

[0058] Step 304: Determine a click rate prediction model based on the first prediction sub-model, the second prediction sub-model and the preset result integration sub-model.

[0059] In this embodiment, the execution subject can determine the model parameters of the click rate prediction model based on the first prediction sub-model, the second prediction sub-model and the preset result integration sub-model to generate the click rate prediction model. The result integration sub-model is used to represent the integration of the model parameters of the first prediction sub-model of the data set and the model parameters of the second prediction sub-model of the corresponding data set.

[0060] In some optional implementations of this embodiment, the model construction methods of the first prediction sub-model and the second prediction sub-model include construction based on each sub-data of the data set, construction based on two sub-data of the data set, and construction based on the data list corresponding to the data set. Flexible and diverse model training is achieved, thereby achieving targeted model training and improving the accuracy of model training.

[0061] from Figure 3 It can be seen that Figure 1 Compared with the corresponding embodiment, the schematic diagram 300 of the method for training the model in this embodiment adopts the method of obtaining a training sample set, using a machine learning algorithm, taking each sub-data of each data set in all data sets as the input data of the first prediction sub-model, and taking the click rate of each object corresponding to the input data set as the expected output data of the first prediction sub-model to obtain a trained first prediction sub-model, using a machine learning algorithm, taking each sub-data of each data set in all data sets as the input data of the second prediction sub-model, and taking the click rate ranking corresponding to the input data set as the expected output data of the second prediction sub-model to obtain a trained second prediction sub-model, and determining the click rate prediction model based on the first prediction sub-model, the second prediction sub-model and the preset result integration sub-model, and on the basis of the existing CTR model, realizing that the model accuracy and the actual ranking ability of the model can be perceived simultaneously during the model training process, and learning is performed in the direction of improving the accuracy and the ranking ability.

[0062] Further references Figure 4 , which shows a schematic diagram 400 of a first embodiment of a method for generating information according to the present application. The method for generating information comprises the following steps:

[0063] Step 401: in response to receiving an access request from a user, obtain user behavior data corresponding to the access request.

[0064] In this embodiment, the execution subject (eg, a server or a terminal device) may obtain the user behavior data corresponding to the access request from other electronic devices or locally through a wired connection or a wireless connection.

[0065] Step 402: parse each log corresponding to the behavior data, obtain each sub-data corresponding to each log, and generate a data set including each sub-data.

[0066] In this embodiment, the execution subject may parse each log corresponding to the behavior data acquired in step 401, obtain each sub-data corresponding to each log, and generate a data set including each sub-data.

[0067] Step 403: Input each sub-data in the data set into the trained click rate prediction model to generate the click rate of each object corresponding to each sub-data in the data set and the click rate ranking corresponding to the click rate of each object.

[0068] In this embodiment, the execution subject can input each sub-data in the data set generated in step 402 into the trained click rate prediction model to generate the click rate of each object corresponding to each sub-data in the data set and the click rate ranking corresponding to the click rate of each object. The click rate prediction model is trained by the method of any embodiment of the method for training a model as described above.

[0069] In some optional implementations of this embodiment, the method further includes: selecting a target object based on click-through rate sorting, and displaying the target object to the user, so as to help the user quickly find the product of interest.

[0070] from Figure 4 It can be seen that Figure 1 Compared with the corresponding embodiment, the process 400 of the method for generating information in this embodiment highlights the step of using the trained click rate prediction model to generate the click rate of each object corresponding to each sub-data in the data set and the click rate ranking corresponding to the click rate of each object. Therefore, the solution described in this embodiment can generate more accurate click rates and click rate rankings of each object.

[0071] Further references Figure 5 , as a response to the above Figures 1 to 3 The present application provides an embodiment of a device for training a model, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 1 The same or corresponding features of the method embodiment shown, and the generation of Figure 1 The method embodiment shown has the same or corresponding effects, and the device can be specifically applied to various electronic devices.

[0072] like Figure 5As shown, the device 500 for training a model in this embodiment includes: an acquisition unit 501 and a training unit 502, wherein the acquisition unit is configured to acquire a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object, the data set is used to represent the user's behavior data collected for each object content after receiving the user's access request, and each sub-data of the data set is generated based on parsing each log corresponding to the behavior data; the training unit is configured to use a machine learning algorithm to obtain each data set in all data sets. The various sub-data are used as input data, and the click-through rates of various objects corresponding to the input data set and the click-through rate rankings corresponding to the click-through rates of various objects are used as expected output data, and a click-through rate prediction model is trained, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rates of various objects corresponding to the data set in the output data, the second loss function is used to calculate the ranking ability of the click-through rate rankings corresponding to the data set in the output data, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss results of the first loss function of the data set and the loss results of the second loss function of the corresponding data set.

[0073] In this embodiment, the specific processing of the acquisition unit 501 and the training unit 502 of the device 500 for training the model and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of step 101 to step 102 in the corresponding embodiment are not repeated here.

[0074] In some optional implementations of this embodiment, the device also includes: an aggregation unit, configured to aggregate each data set in all data sets included in the training samples in the training sample set to obtain each sub-data of each data set in all the aggregated data sets, wherein the aggregation is used to characterize the combination of each sub-data of the data set according to data features related to each object in each data set.

[0075] In some optional implementations of this embodiment, the loss function of the click rate prediction model in the training unit performs a weighted average of the loss values ​​of each data set based on the aggregated number of each sub-data in each data set.

[0076] In some optional implementations of this embodiment, the first loss function in the training unit is a cross entropy loss function or a hinge loss function, and the second loss function is an AUC proxy loss function.

[0077] In some optional implementations of the present embodiment, the click-through rate prediction model in the training unit includes a first prediction sub-model, a second prediction sub-model and a result integration sub-model; the training unit includes: a first training module, configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of the first prediction sub-model, and take the click-through rate of each object corresponding to the input data set as the expected output data of the first prediction sub-model, to obtain a trained first prediction sub-model, wherein the first prediction sub-model is used to characterize the first loss function as the objective function; a second training module, configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of the second prediction sub-model, and take the click-through rate ranking corresponding to the input data set as the expected output data of the second prediction sub-model, to obtain a trained second prediction sub-model, wherein the second prediction sub-model is used to characterize the second loss function as the objective function; a determination module, configured to determine the click-through rate prediction model based on the first prediction sub-model, the second prediction sub-model and a preset result integration sub-model, wherein the result integration sub-model is used to characterize the integration of model parameters of the first prediction sub-model of the data set and model parameters of the second prediction sub-model of the corresponding data set.

[0078] In some optional implementations of this embodiment, the AUC proxy loss function in the training unit is used to characterize the goal of maximizing the AUC value, and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each data set.

[0079] In some optional implementations of the present embodiment, the model construction methods of the click-through rate prediction model, the first prediction sub-model and the second prediction sub-model in the training unit include construction based on each sub-data of the data set, construction based on pairs of sub-data of the data set and construction based on the data list corresponding to the data set.

[0080] The above-mentioned embodiment of the present disclosure provides an apparatus for training a model, wherein a training sample set is acquired through an acquisition unit, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object. The training unit uses a machine learning algorithm, takes each sub-data of each data set in all data sets as input data, and takes the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and trains to obtain a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, and the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, thereby enriching the training method of the model and facilitating the generation of more accurate click-through rates and click-through rate rankings based on the trained model.

[0081] Continue to refer to Figure 6 , as a response to the above Figure 4 The present application provides an embodiment of a device for generating information. Figure 4 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 4 The same or corresponding features of the method embodiment shown, and the generation of Figure 4 The method embodiment shown has the same or corresponding effects, and the device can be specifically applied to various electronic devices.

[0082] like Figure 6 As shown, the device 600 for generating information in this embodiment includes: an acquisition unit 601, a parsing unit 602 and a generation unit 603, wherein the acquisition unit is configured to, in response to receiving an access request from the user, acquire the user's behavior data corresponding to the access request; the parsing unit is configured to parse each log corresponding to the behavior data, obtain each sub-data corresponding to each log, and generate a data set including each sub-data; the generation unit is configured to input each sub-data in the data set into the trained click-through rate prediction model, generate the click-through rate of each object corresponding to each sub-data in the data set and the click-through rate ranking corresponding to the click-through rate of each object, wherein the click-through rate prediction model is trained by the method of any embodiment of the method for training the model as described above.

[0083] In this embodiment, the specific processing of the acquisition unit 601, the parsing unit 602 and the generating unit 603 of the device 600 for generating information and the technical effects thereof can be referred to in Figure 4The relevant descriptions of steps 401 to 403 in the corresponding embodiment are not repeated here.

[0084] In some optional implementations of this embodiment, the device further includes: a display unit configured to select a target object based on click-through rate sorting and display the target object to the user.

[0085] The above-mentioned embodiments of the present disclosure provide an apparatus for training a model, wherein an acquisition unit acquires user behavior data corresponding to an access request, a parsing unit parses each log corresponding to the behavior data, obtains each sub-data corresponding to each log, and generates a data set including each sub-data, and a generation unit inputs each sub-data in the data set into a trained click-through rate prediction model to generate click-through rates of each object corresponding to each sub-data in the data set and a click-through rate ranking corresponding to the click-through rate of each object, wherein the click-through rate prediction model is trained by a method such as any embodiment of the above-mentioned method for training a model, so that the generated click-through rate and click-through rate ranking are more accurate.

[0086] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0087] like Figure 7 , is a block diagram of an electronic device for a method for training a model according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0088] like Figure 7As shown, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 701 is taken as an example.

[0089] The memory 702 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the method for training a model provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for training a model provided in the present application.

[0090] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for training a model in the embodiment of the present application (for example, the attached Figure 5 The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, implements the method for training the model in the above method embodiment.

[0091] The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device for training the model, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device for training the model via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0092] The electronic device for the method of training a model may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0093] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for training the model, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0094] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0095] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0096] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0097] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0098] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0099] According to the technical solution of the embodiment of the present application, a training sample set is obtained, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, the click-through rate of each object corresponding to the data set, and the click-through rate ranking corresponding to the click-through rate of each object. A machine learning algorithm is used to take each sub-data of each data set in all data sets as input data, and the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object are taken as the expected output data, and a click-through rate prediction model is obtained by training, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, and the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, which solves the problem that the existing click-through rate prediction model cannot perceive the actual ranking ability of the model during the training process. The fitting accuracy of the click-through rate is guaranteed by the first loss function, and the model is guaranteed to have a good ranking ability by the second loss function, so as to complete the multi-objective optimization based on the CTR model. On the basis of the existing CTR model, the model accuracy and the actual ranking ability of the model can be perceived at the same time during the model training process, and learning is performed in the direction of improving the accuracy and ranking ability. The model makes predictions based on data sets, and one data set corresponds to one user request, thereby achieving the perception of the model accuracy and model sorting ability for a single request, which is more in line with actual scenarios, further helping users quickly find the products they are interested in, and improving the efficiency of all parties including users and platforms.

[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0101] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for training a model, the method include: Acquire a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, click-through rates of each object corresponding to the data set, and click-through rate rankings corresponding to the click-through rates of each object, the data set is used to represent the user's behavior data for each object content collected after receiving the user's access request, and each sub-data of the data set is generated based on parsing each log corresponding to the behavior data; Using a machine learning algorithm, each sub-data of each data set in all data sets is used as input data, and the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object are used as expected output data to train a click-through rate prediction model, wherein the loss function of the click-through rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click-through rate of each object corresponding to the data set in the output data, and the second loss function is used to calculate the ranking ability of the click-through rate ranking corresponding to the data set in the output data, and the loss function of the click-through rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set, the first loss function is a cross entropy loss function or a hinge loss function, and the second loss function is an AUC proxy loss function.

2. The method according to claim 1, in, After obtaining the training sample set, the following steps are performed: Aggregate each data set in all data sets included in the training samples in the training sample set to obtain each sub-data of each data set in all aggregated data sets, wherein the aggregation is used to characterize the combination of each sub-data of the data set according to data features related to each object in each of the data sets.

3. The method according to claim 2, in, The loss function of the click rate prediction model performs weighted averaging on the loss value of each data set based on the aggregated number of sub-data in each data set.

4. The method according to claim 1, in, The click rate prediction model includes a first prediction sub-model, a second prediction sub-model and a result integration sub-model; The method utilizes a machine learning algorithm, takes each sub-data of each data set in all data sets as input data, takes the click-through rate of each object corresponding to the input data set and the click-through rate ranking corresponding to the click-through rate of each object as expected output data, and trains to obtain a click-through rate prediction model, including: Using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data of a first prediction sub-model, taking the click rate of each object corresponding to the input data set as expected output data of the first prediction sub-model, and obtaining the first prediction sub-model after training, wherein the first prediction sub-model is used to characterize the first loss function as the objective function; Using a machine learning algorithm, taking each sub-data of each data set in all data sets as input data of a second prediction sub-model, taking the click rate ranking corresponding to the input data set as expected output data of the second prediction sub-model, and obtaining the trained second prediction sub-model, wherein the second prediction sub-model is used to characterize the second loss function as the objective function; The click-through rate prediction model is determined based on the first prediction sub-model, the second prediction sub-model and the preset result integration sub-model, wherein the result integration sub-model is used to characterize the integration of the model parameters of the first prediction sub-model of the data set and the model parameters of the second prediction sub-model of the corresponding data set.

5. The method according to claim 1, in, The AUC proxy loss function is used to characterize the goal of maximizing the AUC value and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each of the data sets.

6. The method according to claim 4, in, The model construction methods of the click rate prediction model, the first prediction sub-model and the second prediction sub-model include constructing based on each sub-data of the data set, constructing based on pairs of sub-data of the data set and constructing based on the data list corresponding to the data set.

7. A method for generating information, the method include: In response to receiving an access request from a user, obtaining behavior data of the user corresponding to the access request; Parsing each log corresponding to the behavior data to obtain each sub-data corresponding to the each log, and generating a data set including the each sub-data; Input each sub-data in the data set into the trained click-through rate prediction model to generate click-through rates of each object corresponding to each sub-data in the data set and click-through rate rankings corresponding to the click-through rates of each object, wherein the click-through rate prediction model is trained by the method described in one of claims 1-6.

8. The method according to claim 7, further comprising: include: Based on the click rate ranking, a target object is selected and displayed to the user.

9. A device for training a model, the device include: an acquisition unit configured to acquire a training sample set, wherein the training samples in the training sample set include each sub-data of each data set in all data sets of a batch, click rates of each object corresponding to the data set, and click rate rankings corresponding to the click rates of each object, the data set is used to represent the user's behavior data for each object content collected after receiving the user's access request, and each sub-data of the data set is generated based on parsing each log corresponding to the behavior data; A training unit is configured to use a machine learning algorithm, take each sub-data of each data set in all data sets as input data, take the click rate of each object corresponding to the input data set and the click rate ranking corresponding to the click rate of each object as the expected output data, and train to obtain a click rate prediction model, wherein the loss function of the click rate prediction model is constructed using a first loss function and a second loss function, the first loss function is used to calculate the accuracy of the click rate of each object corresponding to the data set in the output data, the second loss function is used to calculate the ranking ability of the click rate ranking corresponding to the data set in the output data, the loss function of the click rate prediction model is used to characterize the integration of the loss result of the first loss function of the data set and the loss result of the second loss function of the corresponding data set, the first loss function is a cross entropy loss function or a hinge loss function, and the second loss function is an AUC proxy loss function.

10. The device according to claim 9, further comprising: include: The aggregation unit is configured to aggregate each data set in all data sets included in the training samples in the training sample set to obtain each sub-data of each data set in all the aggregated data sets, wherein the aggregation is used to represent the combination of each sub-data of the data set according to the data features related to each object in each of the data sets.

11. The device according to claim 10, in, The loss function of the click-through rate prediction model in the training unit performs weighted averaging on the loss value of each data set based on the aggregated number of sub-data in each data set.

12. The device according to claim 9, in, The click rate prediction model in the training unit includes a first prediction sub-model, a second prediction sub-model and a result integration sub-model; The training unit comprises: A first training module is configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of a first prediction sub-model, and take the click rate of each object corresponding to the input data set as expected output data of the first prediction sub-model, to obtain the first prediction sub-model after training, wherein the first prediction sub-model is used to characterize the target function with the first loss function; The second training module is configured to use a machine learning algorithm to take each sub-data of each data set in all data sets as input data of a second prediction sub-model, and take the click-through rate ranking corresponding to the input data set as expected output data of the second prediction sub-model to obtain the trained second prediction sub-model, wherein the second prediction sub-model is used to characterize the second loss function as the objective function; A determination module is configured to determine the click-through rate prediction model based on the first prediction sub-model, the second prediction sub-model and the preset result integration sub-model, wherein the result integration sub-model is used to characterize the integration of the model parameters of the first prediction sub-model of the data set and the model parameters of the second prediction sub-model of the corresponding data set.

13. The device according to claim 9, in, The AUC proxy loss function in the training unit is used to characterize the goal of maximizing the AUC value and is constructed based on the hinge loss function. The AUC proxy loss is calculated using the number of all data sets in the training sample set and the number of sub-data in each data set.

14. The device according to claim 12, in, The model construction methods of the click-through rate prediction model, the first prediction sub-model and the second prediction sub-model in the training unit include constructing them based on each sub-data of the data set, constructing them based on pairs of sub-data of the data set and constructing them based on the data list corresponding to the data set.

15. A device for generating information, the device include: an acquisition unit, configured to, in response to receiving an access request from a user, acquire behavior data of the user corresponding to the access request; A parsing unit, configured to parse each log corresponding to the behavior data, obtain each sub-data corresponding to the each log, and generate a data set including the each sub-data; A generation unit is configured to input each sub-data in the data set into a trained click rate prediction model to generate click rates of each object corresponding to each sub-data in the data set and a click rate ranking corresponding to the click rates of each object, wherein the click rate prediction model is trained by the method described in one of claims 1-6.

16. The device according to claim 15, further comprising: include: The display unit is configured to select a target object based on the click rate ranking and display the target object to the user.

17. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or the method of any one of claims 7-8.

18. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method of any one of claims 1-6 or the method of any one of claims 7-8.