Method for training recommendation model, method for recommending resource and apparatus thereof
By dividing the training data into two parts, the actual conversion rate and the predicted conversion rate, and using a correction factor to correct the initial conversion rate, the problem of poor training performance of recommendation models when the actual conversion rate cannot be obtained is solved, achieving more accurate recommendations and lower costs.
Patent Information
- Application Number
- CN202211098044.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-08
AI Technical Summary
Existing recommendation models perform poorly when real conversion rates cannot be obtained, resulting in poor user experience and high recommendation costs.
The training data is divided into two parts: one part is the data of the first type of users who provide the actual conversion rate, and the other part is the predicted conversion rate data of the second type of users who do not provide the actual conversion rate. The initial conversion rate is corrected by a correction factor to improve the prediction accuracy.
It improves the prediction accuracy and generalization of recommendation models, enhances user experience, and reduces recommendation costs.
Smart Images

Figure CN115391661B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of this disclosure relate to the field of data processing, and more specifically, to methods for training recommendation models, methods for recommending resources, apparatus, electronic devices, and computer-readable storage media. Background Technology
[0002] With the rapid development of the internet, the amount of information people receive is exploding. Recommendation systems need to recommend resources of interest to users in the face of information overload, thereby improving user experience and resource distribution efficiency. When faced with the distribution of massive amounts of resources, recommendation systems can apply various types of models to recommend resources of interest to users from a resource library of tens of millions of resources within milliseconds. Therefore, a recommendation model is needed to achieve accurate resource recommendations. Summary of the Invention
[0003] The embodiments of this disclosure provide a recommended model training scheme.
[0004] In a first aspect of this disclosure, a method for training a recommendation model is provided. The method may include acquiring a first set of training data comprising actual conversion rates of a first type of user to a target resource, wherein the first type of user provides actual conversion rates. The method may further include acquiring a second set of training data comprising predicted conversion rates of a second type of user to the target resource, wherein the second type of user does not provide actual conversion rates. Furthermore, the method may further include using the first set of training data and the second set of training data to train the recommendation model.
[0005] In a second aspect of this disclosure, a method for training a recommendation model is provided. The method may include determining initial conversion rates for multiple users to a target resource, where no actual conversion rate is provided for any single user. The method may further include determining a correction factor based on the total conversion rate of the multiple users to the target resource and the initial conversion rate. The method may also include determining a predicted conversion rate for a user to the target resource based on the correction factor and the initial conversion rate. Furthermore, the method may further include training the recommendation model based at least on the predicted conversion rate.
[0006] In a third aspect of this disclosure, a method for recommending resources is provided. This method may include obtaining user characteristics and resource characteristics. The method may further include determining a user's conversion rate for a resource based on the user characteristics and resource characteristics using a conversion rate model trained according to the methods of the first and second aspects. Furthermore, the method may further include recommending resources to the user based on the conversion rate.
[0007] In a fourth aspect of this disclosure, an apparatus for training a recommendation model is provided. The apparatus may include: a first training data acquisition module configured to acquire a first set of training data including the actual conversion rates of a first type of user to a target resource, wherein the first type of user provides the actual conversion rates; a second training data acquisition module configured to acquire a second set of training data including the predicted conversion rates of a second type of user to the target resource, wherein the second type of user does not provide the actual conversion rates; and a first model training module configured to train a recommendation model using the first set of training data and the second set of training data.
[0008] In a fifth aspect of this disclosure, an apparatus for training a recommendation model is provided, the apparatus comprising: an initial conversion rate determination module configured to determine initial conversion rates for a plurality of users to a target resource, wherein no single user provides a true conversion rate; a correction factor determination module configured to determine a correction factor based on the total conversion rate of the plurality of users to the target resource and the initial conversion rate; a predicted conversion rate determination module configured to determine a predicted conversion rate for a user to the target resource based on the correction factor and the initial conversion rate; and a second model training module configured to train the recommendation model based at least on the predicted conversion rate.
[0009] In a sixth aspect of this disclosure, an apparatus for recommending resources is provided, the apparatus comprising: a feature acquisition module configured to acquire user features of a user and resource features of a resource; a conversion rate determination module configured to determine the user's conversion rate for the resource based on the user features and resource features using a conversion rate model trained by the method of the first or second aspect; and a recommendation module configured to recommend resources to the user based on the conversion rate.
[0010] In a seventh aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions, when executed by the processor, causing the electronic device to perform any step of the method according to the first aspect, the second aspect, or the third aspect.
[0011] In the eighth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements any step of the method according to the first, second, or third aspect.
[0012] This content section is provided for the purpose of presenting a simplified form of the chosen concepts, which will be further described in the detailed embodiments below. This content section is not intended to identify key or major features of this disclosure, nor is it intended to limit the scope of this disclosure. Attached Figure Description
[0013] The above and other objects, features, and advantages of this disclosure will become more apparent from the accompanying drawings, in which the same or similar reference numerals generally represent the same or similar parts. In the drawings:
[0014] Figure 1 A schematic diagram of an example environment in which several embodiments of the present disclosure can be implemented is shown;
[0015] Figure 2 A schematic diagram of a detailed example environment for training and applying a model according to embodiments of the present disclosure is shown;
[0016] Figure 3 A flowchart is shown for a process of training a recommendation model according to an embodiment of the present disclosure;
[0017] Figure 4 A flowchart of a process for training a recommendation model according to another embodiment of the present disclosure is shown;
[0018] Figure 5 A general flowchart of a scheme for training a recommendation model according to embodiments of the present disclosure is shown;
[0019] Figure 6 A schematic diagram of an apparatus for training a recommendation model according to an embodiment of the present disclosure is shown;
[0020] Figure 7 A schematic diagram of an apparatus for training a recommendation model according to another embodiment of the present disclosure is shown; and
[0021] Figure 8 A schematic block diagram of an example device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0022] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0023] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0024] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0025] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0026] It is understood 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 related provisions.
[0027] The principles of this disclosure will now be described with reference to several exemplary embodiments illustrated in the accompanying drawings. In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0028] In the description of embodiments of this disclosure, the term "model" refers to a model that learns the relationship between corresponding inputs and outputs from training data, thereby processing a given input to generate a corresponding output based on the trained parameter set after training is complete. "Model" may also be referred to as a "neural network," "learning model," "learning network," or simply "network." These terms are used interchangeably herein.
[0029] The term "feature" refers to representing a resource or user as a vector. The property of this feature vector is that vectors that are close in distance correspond to objects with similar meanings. For example, if two resources, a car and a digital product, both belong to the technology category, then the feature vectors of the car and the digital product are spatially close. Similarly, if user A and user B both select entertainment information as their tags of interest, then the features of user A and user B are spatially close. The ability to encode objects using vectors while retaining their meaning using the concept of "features" is well-suited for deep learning. The term "recommendation" refers to the act of presenting or exposing various resources or content to users in appropriate formats.
[0030] As described above, a recommendation model is needed to achieve accurate resource recommendations. Traditionally, the decision to recommend a resource to a user is usually based on the user's conversion rate. However, due to the requirements of different operating systems and user settings, it is often impossible to obtain the true conversion rate as a ground truth label for training the recommendation model. In conventional operations, some initial conversion rates can be used to train the recommendation model. However, because there is a significant difference between the initial conversion rate and the true conversion rate, the training effect is poor, thus failing to obtain an accurate recommendation model. This leads to a poor user experience and excessively high recommendation costs for the recommender.
[0031] According to embodiments of this disclosure, a recommendation model training scheme is proposed. This scheme divides the training data into two parts. For a first type of user who provides a true conversion rate, a first set of training data including the true conversion rate is obtained for recommendation model training. For a second type of user who does not provide a true conversion rate, a second set of training data including the predicted conversion rate is obtained for recommendation model training. Thus, by using data related to different types of users as different training data for recommendation model training, the generalization ability of the model can be improved. Furthermore, training the recommendation model based on the predicted conversion rate that best approximates the true conversion rate can improve the accuracy of the recommendation model's predicted conversion rate, thereby addressing the aforementioned problems and / or other potential issues.
[0032] The embodiments of this disclosure will be described in detail below with reference to example scenarios. It should be understood that this is for illustrative purposes only and is not intended to limit the scope of this disclosure in any way.
[0033] Figure 1 A block diagram of an example system 100 for training a recommendation model according to an embodiment of the present disclosure is shown. It should be understood that... Figure 1 The system 100 shown is merely one example of an embodiment that can be implemented according to this disclosure and is not intended to limit the scope of this disclosure. The embodiments of this disclosure are equally applicable to other systems or architectures.
[0034] like Figure 1 As shown, system 100 may include computing device 120. Computing device 120 may be configured to receive input 110, which may include data associated with users and resources, such as user characteristics and resource characteristics. Computing device 120 generates a user-to-resource conversion rate 130 based on the input 110. Specifically, computing device 120 may generate conversion rate 130 through a recommendation model 140 arranged therein.
[0035] Users can be users of various types of applications, including applications with recommendation systems, such as shopping applications, short video applications, music applications, dating applications, news applications, forum applications, cloud storage applications, and search applications. This disclosure makes no restrictions.
[0036] Resources can include products, live streams, short videos, images, music, and personal information from the aforementioned applications within the recommendation system. Users receive recommended videos, images, text, audio, or combinations thereof associated with these resources within these applications. For example, after entering a news application, a user receives recommended news cover images, headline text information, or video information on the display interface. In this document, "resource," "content," and "object" all refer to physical or virtual items that may be presented or exposed to the user, and this disclosure does not impose any limitations.
[0037] Users in the aforementioned applications will experience the following process: First, the user sees the resource; then, the user may select (e.g., click) a resource of interest. Next, the user may take further action on the resource, such as purchasing, saving, adding to cart, downloading, or sharing; this behavior is called conversion. Predicting the probability that a user will convert after a resource is shown to them is called conversion rate prediction.
[0038] It's understandable that after a user selects a resource, they will leave the application's interface and enter the resource-related page, after which the user's actions will be invisible. Depending on the user's settings, the type of operating system, and the settings of the resource-related parties, the actual conversion rate of some users for that resource will be provided to the application (hereinafter, we will refer to them as Type 1 users), while the actual conversion rate of other users for that resource will not be provided to the application (hereinafter, we will refer to them as Type 2 users).
[0039] In this disclosure, the recommendation model 140 can be designed to perform recommendation tasks. Examples of recommendation models include, but are not limited to, various deep neural networks (DNNs), convolutional neural networks (CNNs), support vector machines (SVMs), decision trees, random forest models, and so on. In implementations of this disclosure, the recommendation model may also be referred to as a "neural network," "learning model," "learning network," "model," and "network," which are used interchangeably.
[0040] In some embodiments, the computing device 120 may include, but is not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, personal digital assistants (PDAs), media players, etc.), consumer electronics, minicomputers, mainframe computers, cloud computing resources, etc.
[0041] It should be understood that the devices and / or units included in system 100 are exemplary only and are not intended to limit the scope of this disclosure. It should be understood that system 100 may also include additional devices and / or units not shown. For example, in some embodiments, the computing device 120 of system 100 may further include a storage unit (not shown) for storing pre-input hyperparameters, etc.
[0042] The following will refer to Figure 2 The training and use of the model in computing device 120 are described. Figure 2 A schematic diagram of a detailed example environment 200 according to an embodiment of the present disclosure is shown. Figure 1 Similarly, example environment 200 may include computing device 220, input 210 to computing device 220, and conversion rate 230 output from computing device 220. The difference is that example environment 200 may generally include model training system 260 and model application system 270. As an example, model training system 260 and / or model application system 270 may be configured as follows: Figure 1 The computing device 120 shown or such Figure 2 The example environment 200 is implemented in the computing device 220 shown. It should be understood that the description of the structure and function of the example environment 200 is for illustrative purposes only and is not intended to limit the scope of the subject matter described herein. The subject matter described herein may be implemented in different structures and / or functions.
[0043] As mentioned earlier, the process of processing the model's input to determine the user's conversion rate for resources can be divided into two phases: the model training phase and the model application phase. For example, ... Figure 2 As shown, during the model training phase, the model training system 260 can use training data 250 to train model 240. It should be understood that training data 250 can be a triple of (user features; resource features; user-to-resource conversion rate). In some embodiments, training data 250 may include a first set of training data 252 associated with a first type of user, wherein the user's true conversion rate to the resource is provided. In some other embodiments, training data 250 may include a second set of training data 254 associated with a second type of user, wherein the user's true conversion rate to the resource is not provided. In this case, the true conversion rate needs to be predicted for training model 240, and the prediction process will be described in detail below. Alternatively, in some embodiments, training data 250 may include both the first set of training data 252 and the second set of training data 242.
[0044] During the model application phase, the model application system 270 can receive the trained model 240. Thus, the model 240 loaded into the computing device 220 of the model application system 270 can determine the conversion rate 230 based on the input 210.
[0045] In other embodiments, model 240 can be constructed as a learning network. In some embodiments, the learning network may include multiple networks, each of which may be a multi-layer neural network composed of a large number of neurons. Through a training process, the corresponding parameters of the neurons in each network can be determined. The parameters of the neurons in these networks are collectively referred to as the parameters of model 240.
[0046] The training process of model 240 can be performed iteratively until at least some of the parameters of model 240 converge or until a predetermined number of iterations is reached, thereby obtaining the final model parameters.
[0047] The technical solutions described above are for illustrative purposes only and are not intended to limit this disclosure. It should be understood that other networks can also be arranged in different ways and with different connections. To more clearly explain the principles of the above solutions, references will be made below. Figure 3 Let's describe the recommendation model training process in more detail.
[0048] Figure 3 A flowchart of a process 300 for training a recommendation model according to an embodiment of the present disclosure is shown. In some embodiments, process 300 may be performed at... Figure 1 The computing device 120 and Figure 2 This is implemented in computing device 220. Now refer to... Figure 3 The process 300 for training a recommendation model according to an embodiment of this disclosure is described below. For ease of understanding, the specific examples mentioned in the following description are exemplary and are not intended to limit the scope of protection of this disclosure.
[0049] At 302, computing device 120 can acquire a first set of training data including the actual conversion rates of the first type of users to the target resource, where the first type of users provide the actual conversion rates. For example, based on the operating system category, user settings, and resource provider settings, computing device 120 can acquire the actual conversion rates of the first type of users to the target resource. Computing device 120 can then train a model based on these actual conversion rates.
[0050] In some embodiments, the computing device 120 can determine the user characteristics of the first type of user and the resource characteristics of the target resource, and then obtain the actual conversion rate of the first type of user to the target resource. For example, the training data for user i can be represented as (x i ,y i ,z i ). Where x i Represents user characteristics and resource characteristics; y i Different values represent whether the user selected (clicked) the target resource displayed to that user, y iIt can be a value between 0 and 1, for example, 0 represents no selection, and 1 represents selection; z i This indicates whether the user's conversion rate occurred after making a selection, i.e., whether the target behavior was implemented. This target behavior is the behavior that is considered to have resulted in a conversion for the user in the corresponding scenario. i It can be a value between 0 and 1, for example, 0 indicates that a transformation has occurred, and 1 indicates that no transformation has occurred. Please note that the training data above is merely exemplary, and different forms of training data may exist, which are not limited herein.
[0051] In some embodiments, the computing device 120 can determine user characteristics and resource characteristics separately for determining user characteristics and resource characteristics. For example, the computing device 120 can determine user characteristics based on a user's historical selection of resources. The computing device 120 can determine resource characteristics based on one or more of the following: resource category, resource publisher, and user characteristics of users who have historically selected resources. The above methods for determining characteristics are merely exemplary; the computing device 120 can determine user characteristics and resource characteristics based on other suitable inherent characteristics of users and resources to accurately represent the complex nonlinear relationship between users and resources.
[0052] Alternatively, in some embodiments, user characteristics and resource characteristics can be determined through user-resource interaction information. For example, a node graph can be constructed based on the relationships between user actions such as clicking, sharing, and publishing on resources, where each node represents a user and a resource. User characteristics and resource characteristics are then determined by traversing this node graph. It is understood that by accurately representing the characteristics of users and resources, the feature capacity and generalization of the recommendation model to be trained can be improved.
[0053] The above describes the acquisition and determination of training data for users with known true prediction rates. The following describes the acquisition and determination of training data for users with unknown true prediction rates. At 304, computing device 120 can acquire a second set of training data including the predicted conversion rates of the second type of users for the target resource, where no true conversion rate has been provided. It is understood that for some types of operating systems, dual authorization from both the user and the resource-related party is sometimes required to obtain the true conversion rate for a single user. In this case, computing device 120 needs to predict the conversion rate based on existing data.
[0054] In one example, computing device 120 can first determine the user characteristics of the second type of user and the resource characteristics of the target resource. The methods for determining user characteristics and resource characteristics are described above and will not be repeated here. Computing device 120 can then determine the predicted conversion rate based on the user behavior after the second type of user selects the target resource. For example, although computing device 120 cannot directly obtain the user's actual conversion rate, it can predict the conversion rate based on the user's interaction with the target resource.
[0055] In some embodiments, the computing device 120 can determine an initial conversion rate as a predicted conversion rate based on the action relationship between the second type of user and the target resource. It is understood that the more actions a user performs on the resource, or the longer the time it takes for a user to select the resource in the application, enter another interface, and then return to the application, the greater the probability that the user has performed a conversion behavior. For example, the computing device 120 can determine the initial conversion rate as the predicted conversion rate based on one or more of the following: whether the user likes the target resource, whether the user shares the target resource, the time it takes for the user to switch back to the resource display interface after clicking on the target resource, and whether the user downloads the target resource. The initial conversion rate can be a value between 0 and 1. Based on the action relationship between the user and the resource within the application, the conversion rate can be accurately predicted.
[0056] Alternatively, in some embodiments, the computing device 120 can train a machine learning model using the action relationship between the first type of users providing the actual conversion rate and the target resource, as well as their actual conversion rates, to obtain a trained initial conversion rate model. The computing device 120 can then use this trained initial conversion rate model to predict the initial conversion rate of the second type of users. It is understood that since the training data used (i.e., the first type of users, the target resource, and their actual conversion rates) and the data used for prediction (i.e., the second type of users, the target resource, and their initial conversion rates) are both for the same target resource, this allows for more accurate prediction of the initial conversion rate, i.e., a closer approximation of the actual conversion rate.
[0057] Understandably, relying solely on user interaction behavior is sometimes not accurate enough. The initial conversion rate can be corrected based on other data to obtain a predicted conversion rate that is closer to the true conversion rate.
[0058] Additionally or alternatively, in some embodiments, although the conversion rate of a single user to the target resource is not provided due to various factors, the total conversion rate of all (or a portion of) users to the target resource in a plan can be obtained. In this case, the computing device 120 can determine a correction factor based on the total conversion rate of the first type of users and the second type of users to the resource, the actual conversion rate, and the initial conversion rate. For example, the correction factor C can be determined according to the following equation (1):
[0059] C = (TR) / I Equation (1)
[0060] Where the total conversion rate T is the ratio between the number of users who converted from the first type of users and the total number of users from the second type of users, the actual conversion rate R is the ratio between the number of users who converted from the first type of users and the total number of users from the first type of users and the total number of users from the second type of users, and the initial conversion rate I can be the average of the predicted initial conversion rates of all users from the second type of users. By multiplying both the numerator and denominator of equation (1) by the total number of users from the first type of users and the second type of users, equation (1) can also be presented in the form of equation (2):
[0061] C = (TN - FN) / IN Equation (2)
[0062] Where TN is the total number of conversions, FN is the number of users who converted from the first type of users, and IN is the initial number of conversions corresponding to the initial conversion rate.
[0063] The computing device 120 then applies a correction factor to the initial conversion rate to obtain a corrected initial conversion rate as the predicted conversion rate. For example, the computing device 120 can multiply the initial conversion rate of each second-type user by the correction factor to obtain the predicted conversion rate. It can be understood that correcting the predicted initial conversion rate based on the obtained total conversion rate can make the predicted conversion rate more accurate, thereby improving the prediction accuracy of the subsequently trained recommendation model.
[0064] After identifying and acquiring training data for different types of users, at step 306, computing device 120 can use the first set of training data and the second set of training data to train a recommendation model. As described above, the training data includes user features, resource features, and conversion rates. Computing device 120 can, for example, input user features and resource features into the initial model to obtain the predicted conversion rate. Then, the error between the predicted conversion rate and the conversion rate used as the ground truth label is determined, and computing device 120 propagates this error in the opposite direction (i.e., from the output layer to the input layer of the model to be trained). During backpropagation, the values of the parameters in each layer of the model to be trained can be adjusted using a gradient descent algorithm. Through multiple rounds of training, the error between the predictions and actual values of the model to be trained will decrease until the model converges, and the training process is complete. Thus, computing device 120 obtains the recommendation model.
[0065] Through the above embodiments, this disclosure can accurately predict user conversion rates based on user behavior and overall conversion rates, even when individual user conversion rates for resources are unavailable. Furthermore, by using the obtained accurate conversion rates to train a recommendation model, this disclosure can improve the predictive accuracy and generalization of the recommendation model. Consequently, the trained recommendation model can be used to accurately recommend resources to users, improving user experience and reducing costs for resource stakeholders.
[0066] The above describes a scheme where two types of users exist simultaneously. The following describes a scheme where only the second type of user exists. Figure 4 A flowchart of a process for training a recommendation model according to another embodiment of the present disclosure is shown.
[0067] At 402, computing device 120 determines the initial conversion rate for the target resource for multiple users, with no actual conversion rate provided for any single user. The process for determining the initial conversion rate is similar to the steps described in 304 and will not be repeated here.
[0068] At step 404, computing device 120 determines a correction factor based on the total conversion rate and initial conversion rate of multiple users for the target resource. Unlike the steps described in step 304, there is no first-type user. Computing device 120 can determine the correction factor C according to the following equation (3):
[0069] Equation (3) is C = T / I
[0070] The total conversion rate T is the ratio between the number of users who converted in the second type of users and the total number of users in the second type of users. The initial conversion rate I can be the average of the predicted initial conversion rates of all users in the second type of users.
[0071] At 406, computing device 120 determines the predicted conversion rate of a user for the target resource based on a correction factor and an initial conversion rate. Computing device 120 can apply the correction factor to the initial conversion rate to obtain a corrected initial conversion rate as the predicted conversion rate. For example, computing device 120 can multiply the initial conversion rate of each second-type user by the correction factor to obtain the predicted conversion rate. It can be understood that correcting the predicted initial conversion rate based on the obtained total conversion rate makes the predicted conversion rate more accurate, thereby improving the prediction accuracy of the subsequently trained recommendation model.
[0072] At 408, computing device 120 trains the recommendation model based at least on the predicted conversion rate. The process of training the model is similar to the steps described in 306 and will not be repeated here.
[0073] Through the above process, this disclosure can accurately predict user conversion rates based on user behavior and overall conversion rates even when only the second type of user exists. Furthermore, this disclosure uses the obtained accurate conversion rates to train a recommendation model, which improves the predictive accuracy and generalization of the recommendation model. Consequently, the trained recommendation model can be used to accurately recommend resources to users, improving user experience and reducing resource-related costs.
[0074] Figure 5 A general flowchart of a scheme for training a recommendation model according to an embodiment of this disclosure is shown. First, training data 510 is divided into training data for a first type of user and training data for a second type of user. The training data for the first type of user includes the actual conversion rate 540. The conversion rate of the training data for the second type of user needs to be determined according to processes 330 and 400 described above, wherein the actual conversion rate 550, the correction factor 570, and the predicted conversion rate 560 are determined respectively. Then, the training data for the first type of user and the training data for the second type of user can be input into the value model 520 for training, and the output of model 520 is the conversion rate 530. Specific steps are described above and will not be repeated here.
[0075] The training process of the recommendation model has been described in detail above. The application process of the recommendation model is described below. First, the computing device 120 obtains the user's characteristics and the resource's characteristics. For example, the computing device 120 can determine the user characteristics and resource characteristics; the process of determining the user characteristics and resource characteristics is described above and will not be repeated here. In some embodiments, the computing device 120 can also retrieve pre-stored user characteristics and resource characteristics from the database based on the user identifier and resource identifier.
[0076] The computing device 120 can then determine the user's conversion rate for a resource based on user and resource characteristics, according to the conversion rate model trained in processes 300 and 400. For example, the computing device 120 can use user and resource characteristics as input to a recommendation model to derive a predicted conversion rate. The computing device 120 then recommends resources to the user based on the conversion rate. For example, the computing device 120 can rank a user's conversion rates for multiple resources and recommend resources that are ranked higher than those in a predetermined order to the user.
[0077] This disclosure also provides a model training apparatus. Specifically, Figure 6 A schematic diagram of an apparatus 600 for training a recommendation model according to an embodiment of the present disclosure is shown. Figure 6 As shown, the device 600 may include at least: a first training data acquisition module 602, configured to acquire a first set of training data including the actual conversion rate of a first type of user to the target resource, wherein the first type of user provides the actual conversion rate; a second training data acquisition module 604, configured to acquire a second set of training data including the predicted conversion rate of a second type of user to the target resource, wherein the second type of user does not provide the actual conversion rate; and a first model training module 606, configured to train a recommendation model using the first set of training data and the second set of training data.
[0078] In some embodiments, the second training data acquisition module 604 may include: a first feature determination module configured to determine user features of the second type of user and resource features of the target resource; and a first prediction module configured to determine the predicted conversion rate based on user behavior after the second type of user selects the target resource.
[0079] In some embodiments, the first prediction module may include a second prediction module configured to determine an initial conversion rate as a predicted conversion rate based on the action relationship between the second type of user and the target resource.
[0080] In some embodiments, the action relationship between the second type of user and the target resource includes at least one of the following: whether the user likes the target resource, whether the user forwards the target resource, the time it takes for the user to switch back to the resource display interface after clicking on the target resource, and whether the user downloads the target resource.
[0081] In some embodiments, the apparatus 600 may further include: a correction factor module configured to determine a correction factor based on the total conversion rate of the first type of users and the second type of users to the resource, the actual conversion rate and the initial conversion rate; and a correction application module configured to apply the correction factor to the initial conversion rate to obtain a corrected initial conversion rate as a predicted conversion rate.
[0082] In some embodiments, the first training data acquisition module 602 may include: a second feature determination module configured to determine user features of the first type of user and resource features of the target resource; and a conversion rate acquisition module configured to acquire the actual conversion rate.
[0083] In some embodiments, the first feature determination module and the second feature determination module may include: a user feature determination module configured to determine user features based on the user's historical selection of resources.
[0084] In some embodiments, the first feature determination module and the second feature determination module may include: a resource feature determination module, configured to determine resource features based on at least one of resource category, resource publisher, and user features of users who have historically selected resources.
[0085] Figure 7 A schematic diagram of an apparatus 700 for training a recommendation model according to another embodiment of the present disclosure is shown. Figure 7 As shown, the apparatus 700 may include at least: an initial conversion rate determination module 702, configured to determine the initial conversion rate of multiple users for the target resource, where no single user provides a true conversion rate; a correction factor determination module 704, configured to determine a correction factor based on the total conversion rate of multiple users for the target resource and the initial conversion rate; a predicted conversion rate determination module 706, configured to determine the predicted conversion rate of a user for the target resource based on the correction factor and the initial conversion rate; and a second model training module 708, configured to train a recommendation model based at least on the predicted conversion rate.
[0086] In addition, although not shown, this disclosure also provides an apparatus for recommending resources, which may include: a feature acquisition module configured to acquire user features of a user and resource features of a resource; a conversion rate determination module configured to determine the user's conversion rate to the resource based on the user features and resource features using a conversion rate model trained according to methods 300 and 400; and a recommendation module configured to recommend resources to the user based on the conversion rate.
[0087] Figure 8 A schematic block diagram of an example device 800 that can be used to implement embodiments of the present disclosure is shown. For example, such as Figure 1 The computing device 120 shown and Figure 2The computing device 220 shown can be implemented by device 800. As shown, device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 802 or loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 900. CPU 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0088] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks. It should be understood that this disclosure can utilize output unit 807 to display real-time dynamic changes in user satisfaction, key factor identification information for group or individual users of satisfaction, optimization strategy information, and strategy implementation effectiveness evaluation information, etc.
[0089] Processing unit 801 may be implemented by one or more processing circuits. Processing unit 801 may be configured to perform the various processes and procedures described above, such as processes 300, 400, and 500. For example, in some embodiments, processes 300, 400, and 500 may be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by CPU 801, one or more steps of processes 300, 400, and 500 described above may be performed.
[0090] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of this disclosure.
[0091] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0092] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0093] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0094] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0095] 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 apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0096] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0098] According to one or more embodiments of this disclosure. Example 1. A method for training a recommendation model, comprising: acquiring a first set of training data including true conversion rates of a first type of user to a target resource, wherein the first type of user provides the true conversion rates; acquiring a second set of training data including predicted conversion rates of a second type of user to the target resource, wherein the second type of user does not provide the true conversion rates; and using the first set of training data and the second set of training data to train the recommendation model.
[0099] Example 2. According to the method described in Example 1, obtaining the second set of training data includes: determining the user characteristics of the second type of user and the resource characteristics of the target resource; and determining the predicted conversion rate based on the user behavior of the second type of user after selecting the target resource.
[0100] Example 3. According to the method described in Examples 1-2, determining the predicted conversion rate includes: determining an initial conversion rate as the predicted conversion rate based on the action relationship between the second type of user and the target resource.
[0101] Example 4. According to the method described in Examples 1-3, the action relationship between the second type of user and the target resource includes at least one of the following: whether the user likes the target resource, whether the user forwards the target resource, the time when the user switches back to the resource display interface after clicking on the target resource, and whether the user downloads the target resource.
[0102] Example 5. The method according to Examples 1-4 further includes determining a correction factor based on the total conversion rate of the first type of users and the second type of users to the resource, the actual conversion rate and the initial conversion rate; and applying the correction factor to the initial conversion rate to obtain a corrected initial conversion rate as a predicted conversion rate.
[0103] Example 6. According to the method described in Examples 1-5, obtaining the first set of training data includes: determining the user characteristics of the first type of user and the resource characteristics of the target resource; and obtaining the actual conversion rate.
[0104] Example 7. The method according to Examples 1-6, wherein determining user characteristics includes: determining the user characteristics based on the user's historical selection of resources.
[0105] Example 8. The method according to Examples 1-7, wherein determining the resource characteristics of the target resource includes: determining the resource characteristics based on at least one of resource category, resource publisher, and user characteristics of users who have historically selected the resource.
[0106] Example 9. A method for training a recommendation model, comprising: determining initial conversion rates for a plurality of users to a target resource, wherein no actual conversion rate is provided by a single user; determining a correction factor based on the total conversion rate of the plurality of users to the target resource and the initial conversion rate; determining a predicted conversion rate of a user to the target resource based on the correction factor and the initial conversion rate; and training the recommendation model based at least on the predicted conversion rate.
[0107] Example 10. A method for recommending resources, comprising: obtaining user characteristics of a user and resource characteristics of a resource; using a conversion rate model trained according to any one of Examples 1 to 9, determining a conversion rate of the user for the resource based on the user characteristics and the resource characteristics; and recommending resources to the user based on the conversion rate.
[0108] Example 11. An apparatus for training a recommendation model, comprising: a first training data acquisition module configured to acquire a first set of training data including actual conversion rates of a first type of user to a target resource, wherein the first type of user provides the actual conversion rates; a second training data acquisition module configured to acquire a second set of training data including predicted conversion rates of a second type of user to the target resource, wherein the second type of user does not provide the actual conversion rates; and a first model training module configured to train the recommendation model using the first set of training data and the second set of training data.
[0109] Example 12. According to the apparatus of Example 11, the module for acquiring the second training data includes: a first feature determination module configured to determine user features of the second type of user and resource features of the target resource; and a first prediction module configured to determine the predicted conversion rate based on user behavior after the second type of user selects the target resource.
[0110] Example 13. The apparatus according to Example 11 or 12, wherein the first prediction module includes: a second prediction module configured to determine an initial conversion rate as a predicted conversion rate based on the action relationship between the second type of user and the target resource.
[0111] Example 14. The apparatus according to Examples 11-13, wherein the action relationship between the second type of user and the target resource includes at least one of the following: whether the user likes the target resource, whether the user forwards the target resource, the time when the user switches back to the resource display interface after clicking on the target resource, and whether the user downloads the target resource.
[0112] Example 15. The apparatus according to Examples 11-14, the apparatus further comprising: a correction factor module configured to determine a correction factor based on the total conversion rate of the first type of user and the second type of user to the resource, the actual conversion rate and the initial conversion rate; and a correction application module configured to apply the correction factor to the initial conversion rate to obtain a corrected initial conversion rate as a predicted conversion rate.
[0113] Example 16. According to the apparatus described in Examples 11-15, the first training data acquisition module includes: a second feature determination module configured to determine user features of the first type of user and resource features of the target resource; and a conversion rate acquisition module configured to acquire the actual conversion rate.
[0114] Example 17. According to the apparatus described in Examples 11-16, the first feature determination module and the second feature determination module may include: a user feature determination module configured to determine the user features based on the user's historical selection of resources.
[0115] Example 18. The apparatus according to Examples 11-17, wherein the first feature determination module and the second feature determination module may include: a resource feature determination module configured to determine the resource feature based on at least one of resource category, resource publisher, and user features of users who have historically selected the resource.
[0116] Example 19. An apparatus for training a recommendation model, comprising: an initial conversion rate determination module configured to determine initial conversion rates for a plurality of users to a target resource, wherein a single user does not provide a true conversion rate; a correction factor determination module configured to determine a correction factor based on the total conversion rate of the plurality of users to the target resource and the initial conversion rate; a predicted conversion rate determination module configured to determine a predicted conversion rate of a user to the target resource based on the correction factor and the initial conversion rate; and a second model training module configured to train the recommendation model based at least on the predicted conversion rate.
[0117] Example 20. An apparatus for recommending resources, comprising: a feature acquisition module configured to acquire user features of a user and resource features of a resource; a conversion rate determination module configured to determine, based on the user features and the resource features, a conversion rate model trained according to any one of Examples 1 to 10; and a recommendation module configured to recommend resources to the user based on the conversion rate.
[0118] Example 21. An electronic device includes: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions including: acquiring a first set of training data including true conversion rates of a first type of user to a target resource, the first type of user providing the true conversion rates; acquiring a second set of training data including predicted conversion rates of a second type of user to the target resource, the second type of user not providing the true conversion rates; and training a recommendation model using the first set of training data and the second set of training data.
[0119] Example 22. An electronic device includes: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions including: determining initial conversion rates for a plurality of users to the target resource, wherein no true conversion rate is provided by a single user; determining a correction factor based on the total conversion rate of the plurality of users to the target resource and the initial conversion rate; determining a predicted conversion rate for a user to the target resource based on the correction factor and the initial conversion rate; and training the recommendation model based at least on the predicted conversion rate.
[0120] Example 23. An electronic device includes: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions including: acquiring user characteristics of a user and resource characteristics of a resource; determining a conversion rate of the user for a resource based on the user characteristics and the resource characteristics using a conversion rate model trained according to any one of Examples 1 to 9; and recommending resources to the user based on the conversion rate.
[0121] Example 24. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of Examples 1-10.
[0122] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for training a recommendation model, comprising: Acquire a first set of training data, including the actual conversion rates of the first type of users to the target resource, where the actual conversion rates are provided by the first type of users. A second set of training data is obtained, including the predicted conversion rate of the second type of users for the target resource. The second type of users did not provide the actual conversion rate. The predicted conversion rate is obtained by: determining a correction factor based on the total conversion rate of the first type of users and the second type of users for the resource, the actual conversion rate, and the initial conversion rate; applying the correction factor to the initial conversion rate of the second type of users to obtain the corrected initial conversion rate as the predicted conversion rate. as well as The recommendation model is trained using the first set of training data and the second set of training data. The target resource refers to a physical or virtual item that is presented or exposed.
2. The method according to claim 1, wherein obtaining the second set of training data includes: Determine the user characteristics of the second type of user and the resource characteristics of the target resource; as well as The predicted conversion rate is determined based on user behavior after the second type of user selects the target resource.
3. The method of claim 2, wherein determining the predicted conversion rate comprises: Based on the action relationship between the second type of user and the target resource, the initial conversion rate is determined as the predicted conversion rate.
4. The method according to claim 3, wherein the action relationship between the second type of user and the target resource includes at least one of the following: Whether a user likes the target resource, whether a user shares the target resource, the time it takes for a user to switch back to the resource display interface after clicking on the target resource, and whether a user downloads the target resource.
5. The method of claim 1, wherein obtaining the first set of training data comprises: Determine the user characteristics of the first type of user and the resource characteristics of the target resource; as well as Obtain the actual conversion rate.
6. The method according to claim 2 or 5, wherein determining the user characteristic comprises: The user characteristics are determined based on the user's historical choices of resources.
7. The method according to claim 2 or 5, wherein determining the resource characteristics of the target resource includes: The resource characteristics are determined based on at least one of the following: resource category, resource publisher, and user characteristics of users who have historically selected the resource.
8. A method for training a recommendation model, comprising: Determine the initial conversion rate of multiple users for the target resource, where some of these users did not provide actual conversion rates; A correction factor is determined based on the total conversion rate of the multiple users for the target resource and the initial conversion rate; Based on the correction factor and the initial conversion rate, determine the predicted conversion rate of the user for the target resource; as well as The recommendation model should be trained based at least on the predicted conversion rate. The target resource refers to a physical or virtual item that is presented or exposed.
9. A method for recommending resources, comprising: Obtain user characteristics and resource characteristics; Using the conversion rate model trained according to any one of claims 1 to 8, the conversion rate of the user to the resource is determined based on the user characteristics and the resource characteristics; as well as Based on the conversion rate, resources are recommended to the user.
10. An apparatus for training a recommendation model, comprising: The first training data acquisition module is configured to acquire a first set of training data including the real conversion rate of a first type of user to the target resource, wherein the real conversion rate is provided by the first type of user. The second training data acquisition module is configured to acquire a second set of training data including the predicted conversion rate of the second type of users for the target resource. The second type of users did not provide the actual conversion rate. The predicted conversion rate is obtained by: determining a correction factor based on the total conversion rate of the first type of users and the second type of users for the resource, the actual conversion rate, and the initial conversion rate; applying the correction factor to the initial conversion rate of the second type of users to obtain the corrected initial conversion rate as the predicted conversion rate. as well as The first model training module is configured to train the recommendation model using the first set of training data and the second set of training data. The target resource refers to a physical or virtual item that is presented or exposed.
11. An apparatus for training a recommendation model, comprising: The initial conversion rate determination module is configured to determine the initial conversion rate of multiple users for the target resource, with no actual conversion rate provided for a single user; The correction factor determination module is configured to determine a correction factor based on the total conversion rate of the multiple users to the target resource and the initial conversion rate; The predicted conversion rate determination module is configured to determine the predicted conversion rate of the user for the target resource based on the correction factor and the initial conversion rate; as well as The second model training module is configured to train the recommendation model based at least on the predicted conversion rate. The target resource refers to a physical or virtual item that is presented or exposed.
12. An apparatus for recommending resources, comprising: The feature acquisition module is configured to acquire user features and resource features. A conversion rate determination module is configured to determine the user's conversion rate to the resource based on the user characteristics and the resource characteristics using a conversion rate model trained according to any one of claims 1 to 9. as well as The recommendation module is configured to recommend resources to the user based on the conversion rate.
13. An electronic device, comprising: processor; as well as A memory coupled to the processor, the memory having instructions stored therein, which, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1-9.
14. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1-9.
Citation Information
Patent Citations
Target detection model training method, target detection method and device
CN112784691A
Medical term automatic standardization system and method integrating self-supervision and active learning
CN113436698A
Information recommendation method and device, equipment and computer readable storage medium
CN113761355A
