Object recommendation method and device, equipment, medium and program product
By obtaining and predicting all object characteristics of the source object and the target object, the social willingness matching degree is generated, which solves the problem of low object recommendation accuracy in the existing technology and improves the success rate of establishing a social relationship chain.
Patent Information
- Application Number
- CN202310248871.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-13
AI Technical Summary
Existing object recommendation algorithms only consider the source object's interest in the target object, resulting in low recommendation accuracy, poor object recommendation effect, and failure to successfully establish a social relationship chain between the source object and the target object.
By obtaining all object features of the source object and the target object, including explicit features and implicit features, the social willingness needs between the two are predicted, and the degree of willingness matching is generated. The recommendation results are used to indicate the social interaction between the source object and the target object. Willingness matching.
It improves the success rate of establishing a social relationship chain between the source object and the target object, and improves the accuracy and effect of object recommendation.
Smart Images

Figure CN118643223A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, in particular to the field of machine learning, and specifically to an object recommendation method, an object recommendation device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Object recommendation is involved in many application scenarios; object recommendation can refer to recommending candidate target objects to source objects, so that the source objects can actively request to establish a social relationship chain with the target objects. At present, the recommendation principle of object recommendation algorithms is to explore the interest of the source objects to be recommended in the target objects, and give priority to recommending the target objects that the source objects are interested in.
[0003] It can be seen that the existing object recommendation algorithm only considers whether the source object is interested in the target object; for example, it only considers the interests and hobbies of the source object and recommends objects with similar interests and hobbies to the source object as target objects to the source object. This means that when the target object is not interested in the source object, it is impossible to successfully establish a social relationship chain between the source object and the target object, that is, it is impossible to successfully convert the source object's request behavior (or click behavior) to the target object. It can be seen that the recommendation accuracy of the existing object recommendation algorithm is low and the object recommendation effect is poor. Summary of the invention
[0004] The embodiments of the present application provide an object recommendation method, apparatus, device, medium and program product, which can accurately recommend target objects to source objects, improve the success rate of establishing social relationship chains, and enhance the object recommendation effect.
[0005] On the one hand, an embodiment of the present application provides an object recommendation method, the method comprising:
[0006] Obtain all object features of the source object and the target object to be recommended; the full object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access;
[0007] Based on the full object features of the source object and the explicit features of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain a source willingness result; the source willingness result is used to indicate the willingness degree of the source object to request to establish a social relationship chain with the target object;
[0008] Based on the full object features of the target object and the explicit features of the source object, the target object's social willingness demand for the source object is predicted and processed to obtain a target willingness result; the target willingness result is used to indicate the degree of willingness of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object;
[0009] According to the source intention result and the target intention result, a recommendation result is generated, and the recommendation result is used to indicate the degree of social intention matching between the source object and the target object.
[0010] On the other hand, an embodiment of the present application provides an object recommendation device, the device comprising:
[0011] An acquisition unit, used to acquire full object features of the source object and full object features of the target object to be recommended; the full object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access;
[0012] A processing unit, configured to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and obtain a source willingness result; the source willingness result is used to indicate the willingness degree of the source object to request to establish a social relationship chain with the target object;
[0013] The processing unit is further used to predict the social willingness demand of the target object for the source object based on the full object features of the target object and the explicit features of the source object, and obtain a target willingness result; the target willingness result is used to indicate the degree of willingness of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object;
[0014] The processing unit is also used to generate a recommendation result based on the source intention result and the target intention result, and the recommendation result is used to indicate the degree of social intention matching between the source object and the target object.
[0015] In one implementation, the implicit features in the full object features are local features that are not allowed to be accessed by other objects; the processing unit, when used to obtain the full object features of the source object, is specifically used to:
[0016] Get the object vector of the source object, which contains explicit feature vectors and implicit feature vectors;
[0017] Performing spatial mapping processing on the explicit feature vector of the source object to obtain the explicit features of the source object;
[0018] Performing spatial mapping processing on the implicit feature vector of the source object to obtain the implicit features of the source object;
[0019] The explicit features of the source object and the implicit features of the source object are concatenated to obtain the full object features of the source object.
[0020] In one implementation, the processing unit, when used to obtain the object vector of the source object, is specifically used to:
[0021] Obtaining the full object information of the source object, wherein the full object information includes one or more explicit object information and one or more implicit object information; the explicit object information is the object information that is allowed to be accessed by other objects, and the implicit object information is the object information that is not allowed to be accessed by other objects;
[0022] Performing information fusion on one or more explicit object information to obtain an explicit feature vector of the source object; and performing information fusion on one or more implicit object information to obtain an implicit feature vector of the source object;
[0023] The explicit feature vector of the source object and the implicit feature vector of the source object are subjected to feature concatenation operation to obtain the object vector of the source object.
[0024] In one implementation, the processing unit is used to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and when the source willingness result is obtained, it is specifically used to:
[0025] Performing feature extraction processing on the full object features of the source object to obtain a full feature representation of the source object, where the full feature representation of the source object is used to indicate attribute features of the full object information of the source object;
[0026] Performing feature extraction processing on the explicit features of the target object to obtain an explicit feature representation of the target object, wherein the explicit feature representation of the target object is used to indicate attribute features of explicit object information of the target object;
[0027] Based on the full feature representation of the source object and the explicit feature representation of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain the source willingness result.
[0028] In one implementation, the processing unit is used to predict the social willingness demand of the source object for the target object based on the full feature representation of the source object and the explicit feature representation of the target object, and when the source willingness result is obtained, it is specifically used to:
[0029] Perform feature concatenation operation on the full feature representation of the source object and the explicit feature representation of the target object to obtain concatenated features;
[0030] The spliced features are classified and predicted to obtain the click probability of the source object. The click probability is used to indicate the probability of the source object requesting to establish a social relationship chain with the target object.
[0031] The click probability of the source object is taken as the source intention result of the source object.
[0032] In one implementation, the source intention result of the source object is a click probability; the target intention result of the target object is a conversion probability, and the conversion probability is used to indicate the probability of the target object agreeing to establish a social relationship chain with the source object when the source object requests to establish a social relationship chain with the target object;
[0033] The processing unit is used to generate recommendation results based on the source intention results and the target intention results, and is specifically used to:
[0034] The click probability of the source object and the conversion probability of the target object are multiplied to generate the willingness matching probability, which is used to indicate: the probability that the source object requests to establish a social relationship chain with the target object, and the target object agrees to establish a social relationship chain with the source object;
[0035] The willingness matching probability is taken as the recommendation result.
[0036] In one implementation, the number of target objects is M, where M is an integer greater than 1; the processing unit is further configured to:
[0037] Obtain the recommendation result corresponding to each target object among the M target objects;
[0038] Sort the M target objects in descending order of the willingness matching probability corresponding to the recommendation results to obtain an object recommendation sequence;
[0039] Outputs a sequence of object recommendations to the source object.
[0040] In one implementation, the object recommendation method is executed by calling a trained object recommendation model; the training process of the object recommendation model includes:
[0041] Obtain a sample pair set, the sample pair set includes at least one sample pair, each sample pair includes: an object vector of a sample application object, an object vector of a sample transformation object, an application label of the sample application object, and a transformation label of the sample transformation object;
[0042] The object recommendation model is used to perform prediction processing on the i-th sample pair in the sample pair set to obtain a prediction recommendation result associated with the i-th sample pair, and the prediction recommendation result is determined by the first prediction willingness result and the second prediction willingness result associated with the i-th sample pair; i is a positive integer; the first prediction willingness result is used to indicate the willingness of the sample application object in the i-th sample pair to request to establish a social relationship chain with the sample conversion object in the i-th sample object; the second prediction willingness result is used to indicate the willingness of the sample conversion object in the i-th sample object to agree to establish a social relationship chain when the sample application object in the i-th sample pair requests to establish a social relationship chain with the sample conversion object in the i-th sample object;
[0043] The object recommendation model is iteratively trained in the direction of reducing the difference between the first predicted intention result and the application label, and in the direction of reducing the difference between the predicted recommendation result and the conversion label to obtain a trained object recommendation model.
[0044] In one implementation, the processing unit, when used to obtain the sample pair set, is specifically used to:
[0045] Obtaining log information, the log information includes historical social information of one or more objects, the historical social information includes: object identifiers of one or more sample application objects, object identifiers of one or more sample conversion objects, request information of any sample application object to any sample conversion object, and conversion information of any sample conversion object to any sample application object;
[0046] Based on the log information, at least one application positive sample pair, at least one application negative sample pair, at least one conversion positive sample pair and at least one conversion negative sample pair are constructed; the number of application negative sample pairs is greater than the number of application positive sample pairs, and the application positive sample pairs include conversion negative sample pairs;
[0047] Downsampling the at least one application negative sample pair to obtain one or more application negative sample pairs after downsampling;
[0048] At least one application positive sample pair, one or more application negative samples after downsampling, at least one conversion positive sample pair and at least one conversion negative sample pair are combined to generate a sample pair set.
[0049] In one implementation, the application label in the application positive sample pair is used to indicate: the sample application object requests to establish a social relationship chain with the sample conversion object;
[0050] The application label in the application negative sample pair is used to indicate that: the sample application object does not request to establish a social relationship chain with the sample conversion object;
[0051] The conversion label in the conversion positive sample pair is used to indicate that: when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object agrees to establish a social relationship chain;
[0052] The conversion label in the conversion negative sample pair is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object does not agree to establish the social relationship chain.
[0053] In one implementation, the object vector in the i-th sample pair in the sample pair set includes an explicit feature vector and an implicit feature vector; the object recommendation model includes a parameter sharing module, a first classifier and a second classifier; and the processing unit is used to use the object recommendation model to perform prediction processing on the i-th sample pair in the sample pair set, and when obtaining the prediction recommendation result associated with the i-th sample pair, specifically for:
[0054] Using the parameter sharing module to obtain a full feature representation of the sample application object based on the object vector of the sample application object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample transformation object based on the explicit feature vector in the object vector of the sample transformation object in the i-th sample pair;
[0055] Using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object, a first prediction intention result is obtained;
[0056] and, using the parameter sharing module to obtain a full feature representation of the sample transformation object based on the object vector of the sample transformation object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample application object based on the explicit feature vector in the object vector of the sample application object in the i-th sample pair;
[0057] Using the second classifier to perform classification prediction processing based on the full feature representation of the sample conversion object and the explicit feature representation of the sample application object, a second prediction intention result is obtained;
[0058] Based on the first predicted willingness result and the second predicted willingness result, a predicted recommendation result associated with the i-th sample pair is generated.
[0059] In one implementation, the processing unit is used to iteratively train the object recommendation model in a direction of reducing the difference between the first predicted willingness result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label, specifically to:
[0060] Based on the difference information between the first predicted willingness result and the application label in the i-th sample pair, first loss information is generated; and based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair, second loss information is generated;
[0061] Adding the first loss information and the second loss information to obtain target loss information;
[0062] When the target loss information does not meet the training end condition, the object recommendation model is trained in a direction of reducing the target loss information to obtain a trained object recommendation model;
[0063] Reselect the i+1th sample pair from the sample pair set, and use the i+1th sample pair to iteratively train the trained object recommendation model until the object recommendation model tends to be stable.
[0064] On the other hand, an embodiment of the present application provides a computer device, the device comprising:
[0065] A processor for loading and executing computer programs;
[0066] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the object recommendation method is implemented.
[0067] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded by a processor and executing the above-mentioned object recommendation method.
[0068] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and when the computer instructions are executed by the processor, the object recommendation method described above is implemented.
[0069] In the embodiment of the present application, when it is necessary to recommend an object for a source object, the full object features of the source object and the full object features of the target object to be recommended can be obtained; the full object features include explicit features and implicit features, and the so-called explicit features refer to features that can be accessed or viewed by other objects; for example, the object information of the target object (such as object name, gender, level or game skill, etc.) can be displayed in the object recommendation interface on the source object side, then the features corresponding to the object information of this part of the target object that can be accessed by the source object in the object recommendation interface are determined as the explicit features of the target object. Then, based on the full object features of the source object and the explicit features of the target object, the social willingness demand of the source object for the target object can be predicted and processed to obtain the source willingness result, which can indicate the willingness degree of the source object to request to establish a social relationship chain with the target object. Then, based on the full object features of the target object and the explicit features of the source object, the social willingness demand of the target object for the source object is predicted and processed to obtain the target willingness result, which is used to indicate the willingness degree of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object. Finally, a recommendation result is generated based on the source intention result and the target intention result; the recommendation result is used to indicate the degree of social intention matching between the source object and the target object. Through the above process, it can be seen that the embodiment of the present application not only considers the interest level of the source object in the target object, but also considers the interest level of the target object in the source object, which can achieve accurate recommendation of the target object for the source object, effectively improve the success rate of establishing a social relationship chain between the source object and the target object, and improve the object recommendation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 is a schematic diagram of establishing a social relationship chain provided by an exemplary embodiment of the present application;
[0072] Figure 2 is a schematic diagram of the architecture of an object recommendation system provided by an exemplary embodiment of the present application;
[0073] Figure 3 is a flowchart of an object recommendation method provided by an exemplary embodiment of the present application;
[0074] Figure 4is a schematic diagram of obtaining full object features of a source object provided by an exemplary embodiment of the present application;
[0075] Figure 5 is a schematic diagram of an object recommendation interface provided by an exemplary embodiment of the present application;
[0076] Figure 6 is a schematic diagram of an object application interface provided by an exemplary embodiment of the present application;
[0077] Figure 7 It is a schematic diagram of sorting M target objects to be recommended in descending order of willingness matching probability provided by an exemplary embodiment of the present application;
[0078] Figure 8 It is a flowchart of a model training provided by an exemplary embodiment of the present application;
[0079] Fig. 9 is a flowchart of another object recommendation method provided by an exemplary embodiment of the present application;
[0080] Fig.10 is a schematic diagram of a framework of an object recommendation model provided by an exemplary embodiment of the present application;
[0081] Fig.11 is a structural schematic diagram of an object recommendation device provided by an exemplary embodiment of the present application;
[0082] Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0083] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0084] The embodiments of the present application relate to object recommendation, which may refer to the process of recommending another object to an object in an object recommendation platform (or an object recommendation system) to realize the establishment of a social relationship chain between the two objects. In the object recommendation process, the object that needs to be recommended an object may be referred to as a source object, and the object recommended to a certain object may be referred to as a target object; in other words, in the process of establishing a social relationship chain, the object that actively requests to establish a social relationship chain may be referred to as a source object, and the object that receives the relationship establishment request of the source object (for requesting to establish a social relationship chain) may be referred to as a target object. Among them, both the source object and the target object belong to users in the object recommendation platform, including: users who have registered a platform account of the object recommendation platform, or users who temporarily log in to the object recommendation platform.
[0085] In actual applications, the object recommendation platform has an object recommendation function, so that when the source object in the object recommendation platform has the need to establish a social relationship chain (or simply a relationship chain) with other objects, the object recommendation platform can call the object recommendation function to perform object recommendation, that is, to send the object information of one or more target objects to the source object (such as information visible to the source object, such as object identification (information that uniquely identifies the target object), object ID or object number, etc.), so that the source object can select at least one target object that wants to establish a social relationship chain from the one or more target objects based on the object information. Among them, in order to better evaluate the social willingness of the source object to the recommended at least one target object, that is, the willingness of the source object to have a social relationship chain with the target object, the embodiment of the present application supports the use of the evaluation indicator "click-through rate (CTR)" to calculate the proportion of the number of target objects selected by the source object in at least one target object recommended for the source object. Specifically, the click-through rate is the ratio of clicks to exposure; wherein, clicks refer to the number of target objects selected by the source object in at least one target object, and exposure refers to the total number of at least one target object. For example, the total number of at least one target object is 100, and 3 of the 100 target objects are selected by the source object, indicating that the target object only wants to establish a social relationship chain with the selected 3 target objects. At this time, the click-through rate pCTR=3 / 100*100%=3% is determined.
[0086] Furthermore, when it is determined that the source object has selected the target object (that is, the source object determines that it wants to establish a social relationship chain with the target object), the evaluation indicator "Con Version Rate (CVR)" can also be used to calculate the conversion probability that the target object also selects the source object when the source object selects the target object. The conversion rate is the ratio of the conversion volume to the click volume; wherein the conversion volume is the number of target objects that also select the source object among the multiple target objects selected by the source object. Continuing with the above example, assuming that among the three target objects selected by the source object, there are two target objects that also select the source object, and one target object does not select the source object. At this time, the conversion rate is determined to be pCVR = 2 / 3*100% = 66.7%.
[0087] Furthermore, it is not difficult to know from the above description that the successful establishment of a social relationship chain between the source object and the target object requires two indispensable steps (or processes, stages): Step 1, the source object is required to select the target object from the object recommendation interface, indicating that the source object wants to establish a social relationship chain with the target object; Step 2, when the source object requests to establish a social relationship chain with the target object, the target object is also required to agree to the source object's relationship establishment request from the object application interface, indicating that the target object also wants to establish a social relationship chain with the source object. Then the embodiment of the present application also supports the use of the evaluation indicator "Exposure Pass Rate (Click Through Rate Con Version Rate, CTCVR)" to calculate the proportion of objects that can successfully establish a social relationship chain with the source object among at least one target object recommended for the source object. Specifically, the exposure pass rate is the ratio of the conversion amount to the exposure amount; when the exposure pass rate is larger, it means that the probability of successfully establishing a social relationship chain using the object recommendation function is greater. Continuing with the above example, when it is known that the number of target objects recommended for the source object is 100 (i.e., the exposure amount), and the number of objects selected by the source object and the target object is 2 (i.e., the conversion amount), it can be determined that the exposure pass rate pCTCVR=2 / 100*100%=2%.
[0088] For example, if Figure 1As shown, it is assumed that the objects recommended for the source object include: target object 1, target object 2 and target object 3. Wherein: if source object 1 selects target object 1, it means that the source object wants to establish a social relationship chain with target object 1, and target object 1 agrees to the relationship establishment request of source object 1, which means that target object 1 also wants to establish a social relationship chain with the source object, then it is determined that both of the above two steps are established, which means that the source object wants to establish a social relationship chain with target object 1, and target object 1 wants to establish a social relationship chain with the source object, and at this time, a social relationship chain can be successfully established between the source object and target object 1. If source object 1 selects target object 2, it means that the source object wants to establish a social relationship chain with target object 2, but target object 2 does not agree to the relationship establishment request of source object 1, which means that target object 2 does not want to establish a social relationship chain with the source object. At this time, although step 1 of the above two steps has been executed, step 2 has not been executed, which means that the source object wants to establish a social relationship chain with target object 2, but target object 2 does not want to establish a social relationship chain with the source object, and then a social relationship chain will not be established between the source object and target object 2. If source object 1 does not select target object 3, it means that the source object does not want to establish a social relationship chain with target object 3. At this time, it is unclear whether target object 3 wants to establish a social relationship chain with the source object, and it is impossible for the source object and target object 3 to establish a social relationship chain. In summary, the total number of target objects recommended for the source object is 3, that is, the exposure is 3; the number of target objects selected by the source object to establish a social relationship chain from the 3 target objects is 2, that is, the click volume is 2; among the 2 clicked target objects, there is 1 target object that also selects the source object, that is, the conversion volume is 1; then the exposure pass rate is determined to be 1 / 3*100%=33.3%.
[0089] It can be seen that the successful establishment of the social relationship chain between the source object and the target object depends not only on whether the source object is interested in the target object, but also on whether the target object is interested in the source object; in order to improve the success rate of establishing the social relationship chain in the object recommendation platform, the embodiment of the present application provides an object recommendation scheme. Among them, the scheme can comprehensively consider the two processes required for the establishment of the social relationship chain (i.e., the process from the source object to the target object mentioned above, and the process from the target object to the source object); by analyzing the interest level of the source object in the target object, and the interest level of the target object in the source object, the target object to be recommended is jointly determined for the source object, so as to promote the source object's selection of the target object to be recommended, and to promote the target object selected by the source object to agree to the source object's relationship establishment request, thereby improving the success rate of establishing the social relationship chain between the source object and the target object.
[0090] In the specific implementation, first, if the source object in the object recommendation platform has the demand for object recommendation, then the full object features of the source object and the full object features of the target object to be recommended can be obtained; the full object features are used to characterize the more comprehensive object attributes of the object, which can specifically include explicit features and implicit features; the so-called explicit features refer to the local features of the full object features that are allowed to be accessed by other objects, and conversely, the implicit features refer to the local features of the full object features that are not allowed to be accessed by other objects. By obtaining the full object features of the source object and the target object, it is beneficial to perform object recommendations based on the rich and comprehensive full object features in the future.
[0091] Then, considering that when the source object selects the target object, it determines whether to select the target object based on its own full object features and the part of the explicit features that are visible (or allowed to be accessed) to the target object. Therefore, based on the full object features of the source object and the explicit features of the target object, the source object's social willingness demand for the target object can be predicted and processed to obtain a source willingness result. The source willingness result can indicate the willingness of the source object to request to establish a social relationship chain with the target object, such as the source object is very eager to establish a social relationship chain with the target object, or the source object does not want to establish a social relationship chain with the target object.
[0092] Furthermore, considering that the successful establishment of a social relationship chain depends not only on the interest level of the source object in the target object, but also on the interest level of the target object in the source object, that is, only when the source object and the target object are interested in each other can a social relationship chain be successfully established between the source object and the target object. Therefore, the embodiment of the present application also supports predicting the social willingness demand of the target object for the source object based on the full object features of the target object and the explicit features of the source object, and obtaining a target willingness result; the target willingness result is used to indicate the willingness level of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object.
[0093] Finally, a recommendation result is generated based on the source intention result and the target intention result; the recommendation result is generated by combining the source object's interest level in the target object and the target object's interest level in the source object, which enables the recommendation result to accurately reflect the degree of social intention matching between the source object and the target object, that is, the higher the degree of social intention matching between the source object and the target object indicated by the recommendation result, the more likely the source object is to request to establish a social relationship chain with the target object when recommending the target object to the source object, and the more likely the target object is to agree to the source object's request after the source object's request, thereby improving the successful establishment of the social relationship chain between the source object and the target object.
[0094] It can be seen that the embodiments of the present application not only consider the source object's interest in the target object, but also consider the target object's interest in the source object. This can achieve accurate recommendation of target objects for source objects, effectively improve the success rate of establishing a social relationship chain between the source object and the target object, thereby improving the interactivity between objects in the object recommendation platform, increasing the usage rate of the object recommendation function in the object recommendation platform, and improving the object recommendation effect.
[0095] It should be noted that the object recommendation scheme provided in the embodiment of the present application can be supported by the object recommendation model running in the object recommendation platform; that is, the object recommendation platform implements the object recommendation function through the deployed object recommendation model. The object recommendation model provided in the embodiment of the present application can be used to perform the prediction processing of the two stages in the above-mentioned object recommendation scheme, and to generate the final recommendation results based on the prediction results of the two stages. Specifically, when the object recommendation scheme proposed in the embodiment of the present application is implemented by the object recommendation model, the object recommendation scheme may include two parts: model training and model application. Among them:
[0096] Model training mainly refers to the process of using sample data (in the embodiment of the present application, the sample data is a set of sample pairs) to train the object recommendation model to be trained, so as to obtain an object recommendation model that can accurately recommend objects. On the one hand, the embodiment of the present application adopts a multi-task training method to train the object recommendation model; specifically, it supports modeling the tasks of the source object's social willingness demand for the target object (i.e., the source object wants to establish a social relationship chain with the target object), and the target object's social willingness demand for the source object (i.e., the target object wants to establish a social relationship chain with the source object) task modeling; so that the trained object recommendation model can analyze the social willingness demand from the two stages of source object → target object and target object → source object, not only promoting the source object to click on the recommended target object, but also promoting the target object to agree with the source object that performs the click operation, thereby effectively improving the success rate of establishing a social relationship chain between the source object and the target object. On the other hand, the multi-task training method simultaneously optimizes the click-through rate pCTR and the exposure pass rate pCTCVR, and optimizes the underlying features of the object recommendation model with the help of the label information of the click-through rate pCTR, so as to obtain an object recommendation model with better performance.
[0097] Model application mainly refers to the process of calling the trained object recommendation model to analyze the degree of social willingness matching between the source object and the target object based on the full object features of the source object and the full object features of the target object. If the degree of social willingness matching between the two is high, it means that after recommending the target object to the source object, the source object and the target object will most likely successfully establish a social relationship chain, and the target object can be recommended to the source object; conversely, if the degree of social willingness matching between the two is low, it means that after recommending the target object to the source object, the source object and the target object will most likely not successfully establish a social relationship chain, and there is no need to recommend the target object to the source object.
[0098] It is worth noting that the embodiments of the present application only briefly introduce the implementation process of model training and model application. The subsequent embodiments will give a detailed introduction to both model training and model application, which is specially explained here.
[0099] To facilitate a better understanding of the object recommendation scheme provided in the embodiment of the present application, the object recommendation scheme involved in the embodiment of the present application is introduced below in combination with an actual object recommendation scenario. Figure 2 , Figure 2 FIG. 1 shows a schematic diagram of the architecture of an object recommendation system provided by an exemplary embodiment of the present application; Figure 2 As shown, the object recommendation system may include but is not limited to: terminal 201, server 202 and terminal 203. The naming and number of server 202 and the naming and number of terminals (such as terminal 201 or terminal 203) are not limited in this embodiment of the application.
[0100] Terminal 201 may refer to a terminal device held by a source object; terminal 203 may refer to a terminal device held by a target object. Object recommendation platforms are deployed in both terminal 201 and terminal 202, so that the source object and the target object can establish social relationship chains and other operations through the object recommendation platforms deployed in their respective terminal devices. Among them, the terminal devices may include but are not limited to: smart phones (such as smart phones with Android systems, or smart phones with Internetworking Operating System (IOS)), tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, MID), vehicle-mounted devices, head-mounted devices and other terminal devices. The embodiments of the present application do not limit the types of terminal devices, which are explained here.
[0101] Server 202 may be a server corresponding to a terminal device (such as terminal 201 and terminal 202), specifically a background server of an object recommendation platform deployed in the terminal device, and is used to interact with the terminal device to provide computing and application service support for the object recommendation platform in the terminal device. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal devices (such as terminal 201 and terminal 202) and server 202 may be directly or indirectly connected via wired or wireless communications, and this application does not limit this.
[0102] Furthermore, the server 202 also includes a database 2021, which can be used to store log information generated by the object recommendation platform during operation; the log information may include but is not limited to: object identification of all objects using the object recommendation platform, request information of each object in the historical time (such as which objects to apply to establish a social relationship chain), conversion information of relationship establishment requests sent by each object to other objects in the historical time (such as agreeing or disagreeing to the request), etc. It can be understood that the log information is the information recorded by the object recommendation platform during operation, and the information content contained in the log information is rich and complex. The embodiments of the present application do not limit the specific information content contained in the log information.
[0103] based on Figure 2 The exemplary object recommendation architecture shown in FIG. 1 is to be noted that the object recommendation scheme provided in the embodiment of the present application can be Figure 2The terminal device (such as terminal 201 and terminal 202) and the server in the illustrated architecture are executed by either or both of them; that is, the computer device that executes the embodiment of the present application can be at least one of the terminal device or the server. Optionally, the training process of the object recommendation model mentioned above is executed by the server 202, and the trained object recommendation model can be directly deployed in the server 202, so that each time an object is recommended, the server 202 calls the trained object recommendation model to implement the object recommendation; in this implementation, the computer device that executes the object recommendation scheme provided by the embodiment of the present application is the server 202. Optionally, the trained object recommendation model can also be deployed in the terminal device; for example, after the object recommendation model is trained in the server 202, the trained object recommendation model is sent to the terminal device, and the trained object recommendation model is deployed in the terminal device; at this time, the computer device that executes the object recommendation scheme provided by the embodiment of the present application includes a terminal device and a server. Optionally, the training process of the object recommendation model mentioned above can be executed by a terminal device, and the trained object recommendation model can be directly deployed in the terminal device. In this case, the computer device that executes the resource recommendation solution provided in the embodiment of the present application includes the terminal device.
[0104] For ease of explanation, take the server 202 for implementing the model training and model application of the object recommendation model as an example. On the one hand, the server 202 can obtain sample data (such as obtaining log information from the database 2021 to construct sample data), and use the sample data to train the object recommendation model to be trained to obtain a trained object recommendation model. On the other hand, the trained object recommendation model can be directly deployed in the server 202, so that when the server 202 detects that the source object has the need for object recommendation, it can obtain the full object features of one or more target objects other than the source object in the object recommendation platform, and then based on the full object features of the source object and the full object features of each target object, according to the object recommendation scheme provided in the embodiment of the present application, determine the degree of social willingness matching between each target object and the source object; then, in the order of the degree of social willingness matching from high to low, the object information of each target object is sent to the terminal 201 held by the source object, so that the source object can view the object information of each target object through the terminal 201. Further, if the source object is interested in the target object after viewing the object information of the target object, such as wanting to establish a social relationship chain with the target object; then the source object can trigger the application binding button (or button, option, control, component, etc.) A corresponding to the target object in the object recommendation interface 204, and at this time, a relationship establishment request will be generated according to the source object's triggering operation on the application binding button A. After the terminal 201 sends the relationship establishment request to the server 202, the server 202 can transmit the relationship establishment request to the terminal 203 held by the target object. In this way, the target object can view the notification message that the source object requests to establish a social relationship chain with itself in the object application interface 205 of the terminal 203; if the target object also wants to establish a social relationship chain with the source object, the target object can trigger the application approval button B in the object application interface 205, and at this time the server 202 determines to establish a social relationship chain between the source object and the target object, that is, bind the source object and the target object, so that the source object and the target object can interact (such as conversation or participation in activities, etc.).
[0105] ② The object recommendation platform mentioned above may refer to an application with a specific object recommendation function. An application may refer to a computer program for completing one or more specific tasks; by classifying applications according to different dimensions (such as the operation mode and function of the application), the types of the same application under different dimensions can be obtained. For example: classified according to the operation mode of the application, the application may include but is not limited to: a client installed in the terminal, a small program (as a subprogram of the client) that can be used without downloading and installing, a web (World Wide Web) application opened through a browser, etc. For another example: classified according to the functional type of the application, the application may include but is not limited to: IM (Instant Messaging) application, content interaction application, etc. Among them, instant messaging application refers to an application for instant communication of messages and social interaction based on the Internet. Instant messaging application may include but is not limited to: social application with communication function, map application with social interaction function, game application, etc. Content interaction application refers to an application that can realize content interaction, such as online banking, sharing platform, personal space, news and other applications.
[0106] Furthermore, the object recommendation platform may also be a plug-in (or function) included in the above-mentioned application with an object recommendation function. For example, if the application is the above-mentioned instant messaging application, then the object recommendation platform may be an object recommendation plug-in included in the instant messaging application.
[0107] ③ It can be understood that, depending on the different object recommendation platforms, the application scenarios of the object recommendation scheme provided in the embodiments of the present application are also different; that is, Figure 2 The architecture diagram shown may be a diagram of any application scenario.
[0108] In one implementation, the object recommendation platform is a game client, and the application scenario of the object recommendation scheme is a game scenario. In this implementation, the source object and the target object can refer to the game player who logs in the game client, so that the server 202 can call the trained object recommendation model to accurately recommend other game players to the game players in the game scenario (such as recommending the target object with the same game level, game skill or sect for the source object in the game scenario), which can promote the establishment of a social relationship chain between the game players in the game client, and to a certain extent, can improve the activity of the game players. In addition, according to the different social relationship chains provided by the game client, after the social relationship chain is successfully established between the source object and the target object, the content of the interaction between the source object and the target object in the game client is different. For example, the social relationship chain provided by the game client is an activity relationship chain, then the source object and the target object can complete the activities or tasks provided by the game client together to obtain rewards; for another example, the social relationship chain provided by the game client is a friend relationship chain, then the source object and the target object can chat with friends, give gifts, invite teams and other in-game interactive behaviors. It should be understood that the object recommendation scheme provided in the embodiment of the present application is applicable to the establishment of activity relationship chains and / or friend relationship chains, and the embodiment of the present application is not limited to this.
[0109] In another implementation, the object recommendation platform is an audio and video client (such as a short video client or a live broadcast client, etc.), and the application scenario of the object recommendation scheme is an audio and video scenario. In this implementation, the source object and the target object can refer to the user who logs in to the audio and video client, so that the server 202 can call the trained object recommendation model to accurately recommend other users to the users in the audio and video scene (for example, considering that the source object and the target object with similar audio and video preferences are more likely to establish a social relationship chain, the target object with similar audio and video preferences can be recommended for the source object in the audio and video scene, such as the source object is interested in audio and video of the story type, then the target object recommended for the source object may also be interested in audio and video of the story type), so as to achieve the establishment of a social relationship chain between different users in the audio and video client. Users who successfully establish a social relationship chain in the audio and video client can share, like, comment or collect the audio and video posted by each other, which not only enriches the interactive forms between users in the audio and video client, enhances the communication between users in the audio and video client, maintains the activity of users in the audio and video client, but also improves the circulation of audio and video resources in the audio and video client to a certain extent.
[0110] In another implementation, the object recommendation platform is a social application client (such as an application with an instant messaging function, or an application with a conversation function), and the application scenario in which the object recommendation scheme is applied is a social application scenario. In this implementation, the source object and the target object may refer to users who log in to the social application client (such as registered or temporarily logged in users), so that the server 202 can call the trained object recommendation model to recommend unfamiliar target objects to the source object in the social application client, thereby establishing a social relationship chain between the source object and the target object. Users who successfully establish a social relationship chain in the social application client can conduct operations such as conversation, sharing, and accessing dynamic information, which not only improves the activity of users in the social application client, but also enhances the sociability of the social application client. It is worth noting that a social application client may often include one or more social conversations (such as group chat conversations or individual conversations), each social conversation corresponds to a virtual room, and a virtual room may include multiple social objects that can have conversations with each other; in this case, the embodiment of the present application may specifically personalize the recommendation of target objects for social objects of a social conversation in the social application client, and the target object that agrees to the relationship establishment request of the social object may directly join the virtual room corresponding to the social conversation, thereby participating in the conversation in the virtual room; this method of recommending target objects for social objects of a social conversation in the social application client may increase the number of participants in the social conversation, enhance the activity in the virtual room, and enrich the gameplay of the social conversation.
[0111] In other implementations, the object recommendation platform is an interactive client with interactive functions, and the interactive functions here may include but are not limited to: commodity trading function, music sharing function or dynamic message publishing function, etc.; for the sake of convenience, the interactive function is taken as an example of commodity trading function, and the application scenario of the object recommendation scheme is the commodity trading scenario. In this implementation, the source object and the target object may refer to the user who logs in to the interactive client, so that the server 202 can call the trained object recommendation model to predict the source object-target object pair that is interested in the same or similar commodities, so that after the target object agrees to the relationship establishment request of the source object, the source object and the target object can share and / or trade commodities. Compared with the commodity trading scenario that does not support object recommendation, by recommending the target object to the source object, it can promote the establishment of a social relationship chain between the source object and the target object, thereby promoting the transaction of commodities and improving the transaction success rate of commodities in the commodity trading scenario.
[0112] Of course, the application scenarios of the object recommendation scheme provided in the embodiment of the present application are not limited to the above two; the object recommendation scheme provided in the embodiment of the present application can be applied in any scenario where a social relationship chain may be established between objects, which is specially explained here.
[0113] ④ When the embodiments of the present application are applied to specific products or technologies, such as when recommending a target object for a source object, it is inevitable to obtain the full object characteristics of the source object or the target object. In this case, it is necessary to obtain the permission or consent of the source object and the target object, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0114] Based on the object recommendation scheme described above, it can be known that the object recommendation scheme provided by the embodiment of the present application mainly involves two aspects. On the one hand, model training is used to obtain a trained object recommendation model, and on the other hand, the trained object recommendation model is used as the source object for object recommendation (i.e., model application). The following introduces a more detailed object recommendation method proposed in the embodiment of the present application in conjunction with the accompanying drawings, specifically introducing the model training process and the model application process included in the object recommendation method.
[0115] The model application process of using the trained object recommendation model to recommend source objects can be found in Figure 3 . Figure 3 A flowchart of an object recommendation method provided by an exemplary embodiment of the present application is shown; the object recommendation method can be executed by the above-mentioned computer device, such as the computer device is a server; the method may include but is not limited to steps S301-S304:
[0116] S301: Acquire all object features of the source object and all object features of the target object to be recommended.
[0117] Among them, the full object features include local features; according to whether the object information corresponding to the local features is allowed to be accessed (or viewed) by other objects, the local features in the full object features can specifically include: explicit features and implicit features. The so-called explicit features can refer to local features that are allowed to be accessed by other objects (specifically, the object information corresponding to the local features is object information that is allowed to be accessed by other objects); on the contrary, the so-called implicit features can refer to local features that are not allowed to be accessed by other objects (specifically, the object information corresponding to the local features is object information that is not allowed to be accessed by other objects).
[0118] It should be noted that the specific implementation process of obtaining the full object features of the source object is similar to the specific implementation process of obtaining the full object features of the target object to be recommended; the difference is that one is to obtain the full object features of the source object based on the object information of the source object, and the other is to obtain the full object features of the target object based on the object information of the target object. For the sake of ease of explanation, the following takes the process of obtaining the full object features of the source object as an example to introduce the specific implementation process of obtaining the full object features; Figure 4 As shown, the implementation process may include but is not limited to steps s11-s13, wherein:
[0119] s11: Get the object vector of the source object, which is determined based on the object information of the source object. Similar to the full object features, the object vector can contain explicit feature vectors and implicit feature vectors; the explicit feature vector is used to represent the object properties of the explicit object information in the object information of the source object, while the implicit feature vector is used to represent the object properties of the implicit object information in the object information of the source object. The explicit feature vector of the source object can be expressed as The implicit eigenvector can be expressed as s represents the source object; similarly, the explicit feature vector of the target object can be expressed as The implicit eigenvector can be expressed as t represents the target object.
[0120] In a specific implementation, when a computer device receives an object allocation demand from a source object (such as when a source object opens / refreshes an object recommendation interface provided by a game client, indicating that the source object wants to view or select a target object, and at this time it is determined that the source object has an object allocation demand), first, the full object information of the source object can be obtained. Among them, the full object information includes one or more explicit object information and one or more implicit object information. Explicit object information is object information that is allowed to be accessed by other objects; for example, in a game application scenario, explicit object information that can be accessed or viewed by other game players may include but is not limited to: the object identifier of the source object (such as object name, object number or object ID, etc.), game level (such as level 5), game skill, gender of the game character, and the faction to which the game character belongs, etc. On the contrary, implicit object information is object information that is not allowed to be accessed by other objects; for example, in a game application scenario, implicit object information that is not allowed to be accessed or viewed by other game players may include but is not limited to: the game player's active time (such as game time or login time, etc.), interaction frequency (such as the frequency of participating in games with other game players, or interacting with game sessions, etc.) and the number of friends (such as the number of game players with whom the game player has a friend relationship chain), etc. It can be understood that according to different application scenarios of this solution, the specific information content of the explicit object information and implicit object information of the source object is different, and the embodiments of this application do not limit this.
[0121] Then, information fusion is performed on different object information respectively to obtain the object vector of the source object, so as to realize the conversion of the object information into a vector representation and meet the data format requirements of the computer device (such as requiring the input data format to be a vector). Specifically, it supports information fusion of one or more explicit object information of the source object to obtain the explicit feature vector of the source object; and information fusion of one or more implicit object information of the source object to obtain the implicit feature information of the source object. Then, the explicit feature vector of the source object and the implicit feature vector of the source object are subjected to feature concatenation operation to obtain the object vector of the source object; specifically, it can refer to placing the implicit feature vector after the explicit feature vector and concatenating them to obtain the object vector, which can be expressed as
[0122] It is worth noting that the process of fusing one or more explicit object information is similar to the process of fusing one or more implicit object information. The following takes the information fusion of one or more explicit object information of the source object as an example to give the process of determining the explicit feature vector of the source object: first, obtain the vector representation of each explicit object information, and then concatenate the vector representations of each explicit object information to obtain the explicit feature vector of the source object. For example, in a game application scenario, the explicit object information "gender" of a game player may include: male, female, and unknown gender. Assuming that the explicit object information "gender" of the source object set in the game client is male, then the vector representation of the explicit object information "gender" of the source object may be (1,0,0); similarly, the explicit object information "game level" of a game player may include levels 1 to 100. Assuming that the game level of the source object in the game client is 10, then the vector representation of the explicit object information "game level" of the source object may be (10); further, the vector representation of the explicit object information "game level" and the vector representation of the explicit object information "gender" of the source object are concatenated, and the resulting explicit feature representation of the source object may be (10,1,0,0).
[0123] It should be noted that the dimensions of the explicit feature vector and the implicit feature vector are different according to the different object recommendation scenarios used in this solution. Taking the game scenario as an example, the explicit feature vector can contain 7-dimensional continuous features and 4-dimensional discrete features; the 7-dimensional continuous features here can be composed of features corresponding to 7 explicit object information with continuous characteristics (such as "game level" and "game skill", the values of such explicit object information are continuous, such as the specific level value of "game level" can be 1~100); the 4-dimensional discrete features here can be composed of 4 explicit object information with discrete characteristics (such as "gender" and "faction", the values of such explicit object information are not continuous, and different values represent different categories, such as when the value of "gender" is (1,0,0), it means that the gender is male, and when the value of "gender" is (0,1,0), it means that the gender is female). The implicit object vector can contain 49-dimensional continuous features; the 49-dimensional continuous features here can be composed of features corresponding to 49 implicit object information with continuous characteristics (such as "interaction frequency", "number of friends" and "active time", the values of this type of implicit object information are not continuous, and different values represent different categories). Of course, depending on the application scenario, the specific dimensions of the feature vector can change, and there is no limitation on this.
[0124] s12: Perform spatial mapping on the object vector of the source object to obtain object representation.
[0125] Considering that the dimension of the object vector of the source object determined based on the object information of the source object is often very high (such as the 49-dimensional implicit feature vector mentioned above), an object vector with too high a dimension will not only complicate the object recommendation process, but also fail to highlight the attribute features used to characterize the source object (such as the attribute features indicating that the source object has a high game level). Therefore, the embodiment of the present application supports spatial mapping processing of the object vector of the source object to achieve mapping of the source object from a high-dimensional feature space to a low-dimensional feature space, that is, to achieve dimensionality reduction processing of the object vector, reduce the dimension of the object vector, remove unimportant features and retain key features.
[0126] In order to learn the explicit features and implicit features of the source object, the embodiment of the present application supports spatial mapping processing of the explicit feature vectors and implicit feature vectors of the source object respectively. In a specific implementation, it supports spatial mapping processing of the explicit feature vectors of the source object to obtain the explicit features of the source object. The explicit features are used to characterize the attribute features of the object information that is allowed to be accessed by other objects (such as game level, game skill, or faction, etc.). Similarly, it supports spatial mapping processing of the implicit feature vectors of the source object to obtain the implicit features of the source object. The implicit features are used to characterize the attribute features of the object information that is not allowed to be accessed by other objects. Among them, spatial mapping processing may refer to the process of mapping feature vectors from a high-dimensional feature space (or called feature vectors) to a low-dimensional feature space. In the embodiment of the present application, the explicit features of the high-dimensional feature space of the source object are represented After mapping to the low-dimensional feature space, the explicit features of the obtained low-dimensional feature space can be expressed as Similarly, the implicit feature representation of the high-dimensional feature space of the source object After mapping to the low-dimensional feature space, the implicit features of the obtained low-dimensional feature space can be expressed as s represents the source object; similarly, the explicit features of the target object can be expressed as The implicit feature can be expressed as t represents the target object.
[0127] s13: Perform feature concatenation operation on the explicit features of the source object and the implicit features of the source object to obtain the full object features of the source object.
[0128] After obtaining the explicit features and implicit features of the source object based on the above steps, the embodiment of the present application supports performing feature splicing operations on the explicit features of the object and the implicit features of the source object to obtain the full object features of the source object. Compared with local features (such as explicit features or implicit features), the full object features can fully reflect the attributes or characteristics of the source object, which is conducive to better analyzing which target objects the source object is more interested in. Among them, the specific implementation process of the feature splicing operation can be referred to the above related description, which will not be repeated here, and the full object features of the source object can be expressed as:
[0129] To summarize, based on the specific implementation process shown in the above steps s11-s13, the full object features of the source object can be calculated, and the full object features can be used to characterize the comprehensive object attributes of the source object, such as characterizing the current game level, game skills, and faction of the source object; in this way, the subsequent object recommendations can be made more accurately for the source object based on the full object features, thereby achieving precise object recommendations for the source object, thereby improving the click-through rate of the source object to the target object, and further facilitating improving the success rate of establishing the social relationship chain.
[0130] S302: Based on the full object features of the source object and the explicit features of the target object, the social willingness matching needs of the source object for the target object are predicted and processed to obtain a source willingness result.
[0131] S303: Based on the full object features of the target object and the explicit features of the source object, the target object's social willingness demand for the source object is predicted and processed to obtain a target willingness result.
[0132] In steps S302-S303, as described above, the embodiment of the present application supports parsing the process of the source object clicking on the target object and the process of the target object agreeing to the source object, to comprehensively analyze the possibility of establishing a social relationship chain between the source object and the target object. Therefore, the embodiment of the present application supports predicting the social willingness demand of the source object for the target object, and obtaining the source willingness result, which is used to indicate: the willingness of the source object to request to establish a social relationship chain with the target object; it also supports predicting the social willingness demand of the target object for the source object, and obtaining the target willingness result, which is used to indicate: when the source object requests to establish a social relationship chain with the target object, the willingness of the target object to agree to establish a social relationship chain; so that the success rate of establishing a social relationship chain between the source object and the target object can be jointly analyzed through the source willingness result and the target willingness result.
[0133] Considering the process of whether the source object selects the target object, and the process of whether the target object passes through the source object, both can be understood as whether the source object (or target object) is willing to establish a social relationship chain with the target object (source object), that is, these two processes are similar and symmetrical. Therefore, in the embodiment of the present application, the specific implementation process of the source object's prediction of the social willingness of the target object and the specific implementation process of the target object's prediction of the social willingness of the source object are similar; the difference is that the object features used in the prediction process are different; the following is a brief introduction to the principles of determining the object features used in the two processes, where:
[0134] For the process from source object to target object, on the one hand, considering that the source object is mainly from the object recommendation interface (such as Figure 5 The target object information (such as avatar, nickname, gender, level, skill or faction, etc.) displayed in the object recommendation interface 501 in the target object recommendation interface 502, and the target object personal details interface (such as Figure 5The personal details interface 502 shown may be triggered and displayed after a trigger operation is performed on the object identifier 503 of the target object in the object recommendation interface 501, and the personal details interface 502 displays more detailed object information of the target object) to determine whether the source object wants to be selected; and the object information of the target object displayed in the object recommendation interface and the personal details interface are all object information that the source object is allowed to access. On the other hand, it is considered that the source object relies on all its own object information (i.e., explicit and implicit) to determine whether to select the target object when selecting the target object. Based on this, the embodiment of the present application supports predicting the social willingness needs of the source object for the target object based on the explicit features of the target object (i.e., the explicit features corresponding to the object information allowed to be accessed by the source object) and the full object features of the source object to obtain the source willingness result.
[0135] For the process from the target object to the source object, on the one hand, considering that the target object is mainly from the object application interface (such as Figure 6 The object information of the source object displayed in the object application interface 601 in FIG. 601, and the object information of the source object displayed in the personal details interface (such as Figure 6 The personal details interface 602 shown in the figure may be triggered and displayed after a trigger operation is performed on the object identifier 603 of the source object in the object application interface 601) to determine whether to agree to the relationship establishment request of the source object; and the object information of the source object displayed in the object application interface and the personal details interface are all object information that the target object is allowed to access. On the other hand, it is considered that the target object relies on all its own object information (i.e., explicit and implicit) to determine whether to agree to the relationship establishment request of the source object when selecting the source object. Based on this, the embodiment of the present application supports predicting the social willingness needs of the target object for the source object based on the explicit features of the source object (i.e., the explicit features corresponding to the object information allowed to be accessed by the target object) and the full object features of the target object to obtain the target willingness result.
[0136] The embodiment of the present application takes the process of the source object selecting the target object as an example to introduce the specific implementation process of the prediction processing of the social willingness demand of the source object for the target object. In the specific implementation, first, call the trained object recommendation model, perform feature extraction processing on the full object features of the source object, and obtain the full feature representation of the source object, which is used to indicate the attribute features of the full object information of the source object. Then, call the trained object recommendation model, perform feature extraction processing on the explicit features of the target object, and obtain the explicit feature representation of the target object, which is used to indicate the attribute features of the explicit object information of the target object. Finally, call the trained object recommendation model, based on the full feature representation of the source object and the explicit feature representation of the target object, predict the social willingness demand of the source object for the target object, and obtain the source willingness result. Among them, the process of predicting the social willingness demand of the source object for the target object may include: performing feature splicing operation on the full feature representation of the source object and the explicit feature representation of the target object to obtain the splicing feature, so as to facilitate the classification prediction processing of the splicing feature, specifically judging the category probability that the source object will select the target object based on the splicing feature, and obtaining the click probability of the source object. In this way, the click probability of the source object is used as the source intention result of the source object; the click probability of the source object is used to indicate the demand probability of the source object requesting to establish a social relationship chain with the target object; the higher the click probability, the greater the possibility that the source object selects the target object to establish a social relationship chain, and conversely, the smaller the click probability, the smaller the possibility that the source object selects the target object to establish a social relationship chain.
[0137] It should be noted that the specific implementation process of the prediction and processing of the target object's social willingness demand for the source object can refer to the relevant description of the specific implementation process of the prediction and processing of the source object's social willingness demand for the target object described above, which will not be repeated here. The above-mentioned prediction and processing of social willingness demand according to the object characteristics (such as explicit characteristics) corresponding to the object information (such as explicit object information) that can be accessed when the source object (or target object) selects the target object (or source object) fully considers the characteristics that the object relies on the explicit object information of the unfamiliar object when selecting an unfamiliar object in the actual application process, improves the prediction accuracy of the source willingness result and the target willingness result, so that based on the accurate source willingness result and the target willingness result, it can recommend a target object with a higher degree of social willingness matching to the source object, and promote the successful establishment of a social relationship chain between the source object and the target object to be recommended.
[0138] S304: Generate recommendation results based on the source intention results and the target intention results.
[0139] Based on the above steps, the source intention result of the source object for the target object can be obtained. The source intention result is the click probability (i.e. the click rate mentioned above), that is, after the target object is recommended to the source object, the probability that the source object wants to click on the target object to establish a social relationship chain with it; similarly, based on the above steps, the target intention result of the target object for the source object can be obtained. The target intention result is the conversion probability (i.e. the conversion rate mentioned above), which is used to indicate the probability of the target object agreeing to establish a social relationship chain with the source object when the source object requests to establish a social relationship chain with the target object. Further, considering that the exposure pass rate is equal to the product of the click rate and the conversion rate, that is, PCVCTR=PCTR*PCVR, therefore, the click probability of the source object and the conversion probability of the target object are multiplied to generate the intention matching probability; wherein, the intention matching probability is used as the recommendation result, and the intention matching probability is used to indicate: the source object requests to establish a social relationship chain with the target object, and the probability that the target object agrees to establish a social relationship chain with the source object. In this way, after recommending a target object with a higher recommendation result (specifically, a high willingness matching probability) to the source object, it not only promotes the source object to select the target object, but also promotes the target object to select the source object as well, thereby increasing the probability of establishing a social relationship chain between the source object and the target object.
[0140] It should be understood that when a source object has a need for object recommendation, the computer device often recommends more than one target object to the source object, but recommends multiple target objects to the source object, so that the source object can select one or more target objects with which he wants to establish a social relationship chain from the multiple target objects, enriching the object options of the source object, and to a certain extent effectively promoting the successful establishment of social relationship chains between objects within the object recommendation platform and improving the activity of objects within the object recommendation platform.
[0141] In the specific implementation, it is assumed that the number of target objects to be recommended is M, and M is an integer greater than 1; then the trained object recommendation model can be called, and the willingness matching probability between each target object in the M target objects and the source object is calculated according to the specific implementation process shown in the aforementioned steps S301-S304, so as to obtain the recommendation result corresponding to each target object in the M target objects, and the recommendation result corresponding to any target object is the willingness matching probability corresponding to the any target object, and the willingness matching probability is used to indicate the degree of social willingness matching between the source object and the any target object after the any target object is recommended to the source object. Then, the M target objects are sorted in order from high to low according to the willingness matching probability corresponding to the recommendation result, and an object recommendation sequence is obtained. Finally, the object recommendation sequence is output to the source object, specifically, the object recommendation sequence is output to the terminal device held by the source object, so that the source object can autonomously select the target object with which it wants to establish a social relationship chain from the multiple target objects contained in the object recommendation sequence. This method of displaying each target object in order of probability of willingness match from high to low helps the source object to intuitively perceive the target object with high willingness match, thereby promoting the source object's selection of the target object and improving the success rate of the source object and the target object in establishing a social relationship chain.
[0142] An exemplary schematic diagram of recommending M target objects to source objects in descending order of willingness matching probability can be seen in Figure 7 ;like Figure 7 As shown, assuming that the target objects to be recommended include: target object 1, target object 2 and target object 3, and the recommendation result corresponding to target object 1 calculated according to the above steps is 40% (i.e., the willingness matching probability is 40%), the recommendation result corresponding to target object 2 is 50% (i.e., the willingness matching probability is 50%), and the recommendation result corresponding to target object 3 is 60% (i.e., the willingness matching probability is 60%), then the N target objects are sorted in the order of the willingness matching probability corresponding to the recommendation results from high to low, and the object recommendation sequence obtained is target object 3→target object 2→target object 1. Further, after the object recommendation sequence is sent to the source object, the object information of each target object can be displayed in the object recommendation interface in sequence according to the object recommendation sequence.
[0143] In summary, when it is necessary to recommend an object for a source object, the embodiment of the present application can obtain the full object features of the source object and the full object features of the target object to be recommended; the full object features include explicit features and implicit features, and the so-called explicit features refer to features that can be accessed or viewed by other objects; for example, in the game scene, the object information of the target object can be displayed in the object recommendation interface on the source object side, then the features corresponding to the object information of this part of the target object that can be accessed by the source object in the object recommendation interface are determined as the explicit features of the target object. Then, based on the full object features of the source object and the explicit features of the target object, the social willingness demand of the source object for the target object can be predicted and processed to obtain the source willingness result, which can indicate the willingness degree of the source object to request to establish a social relationship chain with the target object. Then, based on the full object features of the target object and the explicit features of the source object, the social willingness demand of the target object for the source object is predicted and processed to obtain the target willingness result, which is used to indicate the willingness degree of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object. Finally, a recommendation result is generated based on the source intention result and the target intention result; the recommendation result is used to indicate the degree of social intention matching between the source object and the target object. Through the above process, it can be seen that the embodiment of the present application not only considers the interest level of the source object in the target object, but also considers the interest level of the target object in the source object, which can achieve accurate recommendation of the target object for the source object, effectively improve the success rate of establishing a social relationship chain between the source object and the target object, and improve the object recommendation effect.
[0144] Above Figure 3 The embodiment mainly introduces the specific implementation process of calling the trained object recommendation model to recommend the target object for the source object. Figure 8 The overall process of model training of the object recommendation model provided in the embodiment of the present application is given; Figure 8 As shown in the figure, the overall process of the object recommendation model can be roughly divided into: sample pair construction, feature selection and model training. Among them:
[0145] Sample pair construction refers to the process of constructing a sample pair set for model training of the object recommendation model; specifically, the sample pair set can be constructed based on the log information in the object recommendation platform. The sample pair set contains at least one sample pair, and each sample pair contains an object vector of a sample application object, an object vector of a sample conversion object, an application label of the sample application object, and a conversion label of the sample conversion object.
[0146] Feature selection may refer to the process of selecting input features for the two processes of model training from a sample pair. As described above, the embodiment of the present application supports the use of a multi-task training method to model the process of the source object's social willingness demand for the target object and the process of the target object's social willingness demand for the source object, respectively, so as to achieve the purpose of optimizing multiple goals at the same time; then considering that different processes rely on different input features, when using sample pairs for model training of the object recommendation model, it is necessary to select input features for the two processes mentioned above. Specifically, the input features selected for the process of the source object's social willingness demand for the target object include: the full object features of the sample application object, and the explicit features of the sample conversion object. The input features selected for the process of the target object's social willingness demand for the source object include: the full object features of the sample conversion object and the explicit features of the sample application object.
[0147] The model training process may refer to the process of training the object recommendation model using sample pairs in the sample pair set and selecting good input features from the sample pairs. It is worth noting that in the embodiment of the present application, a multi-task training method is used to train the object recommendation model, such as the process of simultaneously training the social willingness demand of the source object for the target object, and the process of the target object for the social willingness demand of the source object. In addition, in order to improve the efficiency of model training, the embodiment of the present application supports the use of multiple tasks to share parameters, enhance the effect of samples on the underlying representation of the learning object recommendation model, and effectively train the object recommendation model.
[0148] Based on the above Figure 8 A brief introduction to the object recommendation model process, modeling the social matching needs of the source object for the target object and the social matching needs of the target object for the source object, respectively, to achieve the specific training process of model training for the object recommendation model. Fig. 9 , Fig. 9 A flowchart of an object recommendation method provided by an exemplary embodiment of the present application is shown; the object recommendation method may be executed by the above-mentioned computer device, such as a server; the method may include but is not limited to steps S901-S907:
[0149] S901: Obtain a sample pair set.
[0150] The sample pair set includes at least one sample pair, each sample pair includes: an object vector of a sample application object (including an explicit feature vector and an implicit feature vector of the sample application object), an object vector of a sample transformation object (including an explicit feature vector and an implicit feature vector of the sample transformation object), an application label of the sample application object, and a transformation label of the sample transformation object; in this embodiment of the application, the sample pair set can be defined as:
[0151]
[0152] Wherein, N is the total number of sample pairs in the sample pair set, and i is the i-th sample object in the N sample pairs. is the object vector of the sample application object in the i-th sample pair. The sample application object may refer to any object that actively selects the sample conversion object and has established a social relationship chain; in the model application, it may refer to the source object. is the object vector of the sample conversion object in the i-th sample pair. The sample conversion object may refer to any object to be sent a relationship establishment request from the sample application object in the sample pair; in the model application, it may refer to the target object for which the source object requests to establish a social relationship chain. i is the application label of the sample application object in the i-th sample, which can be a binary label, used to indicate whether the sample application object requests to establish a social relationship chain with the sample conversion object in the same sample object. i is the conversion label of the sample conversion object in the i-th sample pair, which may be a binary classification label used to indicate whether the sample conversion object agrees to establish a social relationship chain when the sample application object in the same sample pair requests to establish a social relationship chain with the sample conversion object.
[0153] Furthermore, the binary label "application label" can be expressed as:
[0154]
[0155] That is to say, when y=1, it means that the sample application object in the i-th sample pair requests to establish a social relationship chain with the sample conversion object; when y=0, it means that the sample application object in the i-th sample pair does not request to establish a social relationship chain with the sample conversion object.
[0156] The binary label "conversion label" can be expressed as:
[0157]
[0158] That is to say, when z=1, it means that the sample conversion object in the i-th sample pair agrees to establish a social relationship chain with the sample application object; when z=0, it means that the sample conversion object in the i-th sample pair does not agree to establish a social relationship chain with the sample application object.
[0159] Considering that the object recommendation platform generates log information to record events when it is running, the log information contains the relevant operations (such as clicks or exposure, etc.) of the sample application object and the sample conversion object. Therefore, the sample pair set can be constructed based on the log information stored in the object recommendation platform. Among them, the log information contains the historical social information of one or more objects, and the historical social information includes: the object identification of one or more sample application objects, the object identification of one or more sample conversion objects, the request information of any sample application object to any sample conversion object, and the conversion information of any sample conversion object to any sample application object. In more detail, the log information contains multiple lines of logs, each line of log records the time, user and description information of related operations. For example, a line of log records the object identification of the sample application object, the object identification of the sample conversion object, the request information generated when the sample application object performs a request operation to establish a social relationship chain with the sample conversion object, and the conversion information generated when the sample conversion object performs a conversion operation to establish or not establish a social relationship chain with the sample application object.
[0160] After obtaining log information from the object recommendation platform, the embodiment of the present application supports constructing positive and negative sample pairs based on the log information to form a sample pair set, specifically constructing positive and negative sample pairs from sample application objects to sample conversion objects, and constructing positive and negative sample pairs from sample conversion objects to sample application objects, to obtain a sample pair set. In the specific implementation:
[0161] First, based on the log information, at least one application positive sample pair, at least one application negative sample pair, at least one conversion positive sample pair and at least one conversion negative sample pair are constructed; specifically, a sample application object s-sample conversion object t pair (x s , x t ), and then, based on whether the sample application object s requests to establish a social relationship chain with the sample conversion object t, and whether the sample conversion object t agrees to establish a social relationship chain with the sample application object s, further construct application positive samples, application negative samples, conversion positive samples and conversion negative samples.
[0162] The following describes the construction process and sample pair representation methods of applying for positive sample pairs, applying for negative sample pairs, converting positive sample pairs, and converting negative sample pairs, respectively.
[0163] (1) Application positive sample pairs. Application positive sample pairs focus on the social willingness of the sample application object to establish a social relationship chain with the sample conversion object, but do not focus on whether the sample conversion object converts the request behavior of the sample application object; that is, the application label y=1 of the sample application object in the application positive sample pair can be used to indicate that the sample application object requests to establish a social relationship chain with the sample conversion object. In this case, the application positive sample pair can be expressed as: (x s , x t , y=1, z=unknown), which may include: (x s , x t , y=1, z=0) and (x s , x t , y=1, z=1).
[0164] (2) Application negative samples. The application negative sample pair focuses on the fact that the sample application object does not have the social willingness to establish a social relationship chain with the sample conversion object. Considering that when the sample application object does not want to establish a social relationship chain with the sample conversion object, it is not clear whether the sample conversion object wants to establish a social relationship chain with the sample application object; therefore, the application label y=0 of the sample application object in the application negative sample pair, and the application label y=0 can be used to indicate: the sample application object did not request to establish a social relationship chain with the sample conversion object, and the conversion label z=0 of the sample conversion object in the application negative sample pair, and the conversion label z=0 can be used to indicate: when the sample application object did not request to establish a social relationship chain with the sample conversion object, the sample conversion object did not agree to establish a social relationship chain. In this case, the application negative sample pair can be expressed as: (x s , x t , y=0,z=0).
[0165] (3) Conversion positive samples. Conversion positive samples focus on the case where the sample application object requests to establish a social relationship chain with the sample conversion object, and the sample conversion object agrees to establish a social relationship chain with the sample application object. In this case, the application label y=1 of the sample application object is used to indicate that the sample application object requests to establish a social relationship chain with the sample conversion object, and the conversion label z=1 of the sample conversion object is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object agrees to establish a social relationship chain with the sample application object; at this time, the conversion positive sample can be expressed as: (x s , x t , y=1, z=1).
[0166] (4) Conversion negative samples. Conversion negative samples focus on the case where the sample application object requests to establish a social relationship chain with the sample conversion object, but the sample conversion object does not agree to establish a social relationship chain with the sample application object. In this case, the application label y=1 of the sample application object is used to indicate that the sample application object requests to establish a social relationship chain with the sample conversion object, and the conversion label z=0 of the sample conversion object is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object does not agree to establish a social relationship chain with the sample application object; at this time, the conversion positive sample can be expressed as: (x s , x t , y=1, z=0).
[0167] Then, after obtaining at least one positive application sample, at least one negative application sample, at least one positive conversion sample and at least one negative conversion sample based on the above description, it is considered that the number of exposures, clicks and passes in each layer decreases step by step, that is, the number of target objects exposed to the source object is much larger than the number of target objects clicked by the source object, and the number of target objects clicked by the source object is much larger than the number agreed by the clicked target objects, that is, exposure>clicks>passes. Therefore, the number of positive and negative sample pairs of both clicks (i.e., the applications mentioned above) and passes (i.e., the conversions mentioned above) is unbalanced; for example, the number of application negative sample pairs is greater than the number of application positive sample pairs. However, in the case of data imbalance, the number of minority class samples is much smaller than the majority class samples, which will produce more sparse samples, resulting in insufficient characterization of sparse samples by the classifier, thereby causing a decrease in classification performance; in order to alleviate the problem of data imbalance, the embodiment of the present application supports downsampling of negative samples to reduce the number of negative sample pairs.
[0168] Furthermore, considering the negative samples that have been exposed (i.e., the transformed negative samples mentioned above (x s , x t , y=1,z=0)) belongs to the positive sample of exposure click (that is, the positive sample pair of application mentioned above (x s , x t , y=1, z=unknown)), that is, the application positive sample pair contains the conversion negative sample pair, then in order not to lose the positive sample information of the click behavior, the embodiment of the application only needs to convert the negative samples such as the exposure but not clicked (that is, the application negative sample pair (x s , x t, y=0, z=0)) for downsampling; specifically, downsampling is performed on at least one application negative sample pair to obtain one or more application negative sample pairs after downsampling. Among them, the method of downsampling at least one application negative sample pair may include: a random non-repetitive downsampling method, that is, random non-repetitive sampling is performed from the exposed but not clicked samples (that is, at least one application negative sample pair) to obtain one or more application negative sample pairs after adoption. Among them, the specific implementation process of the random non-repetitive downsampling method may include: first randomly adopting the sample pairs in at least one application negative sample pair, and then removing the one or more application negative sample pairs from the sampled application negative sample pairs, and repeating the last operation multiple times to obtain one or more application negative sample pairs after sampling. It is worth noting that the embodiment of the present application supports random non-repetitive sampling of one or more application negative sample pairs, so that the ratio of the number of application positive sample pairs to the number of application negative sample pairs is 1:3; of course, the embodiment of the present application does not limit the ratio of the positive and negative sample pairs and the specific method of downsampling processing, which is explained here.
[0169] Finally, at least one application positive sample pair obtained in the above steps, one or more application negative samples after downsampling, at least one conversion positive sample pair and at least one conversion negative sample pair are combined to generate a sample pair set.
[0170] S902: Use the object recommendation model to perform prediction processing on the i-th sample pair in the sample pair set to obtain a prediction recommendation result associated with the i-th sample pair.
[0171] S903: Iteratively train the object recommendation model in a direction of reducing the difference between the first predicted intention result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label, to obtain a trained object recommendation model.
[0172] In steps S902-S903, before introducing the training process of the object recommendation model, Fig.10 A schematic diagram of a model framework of an object recommendation model provided in an embodiment of the present application is given; Fig.10As shown, the object recommendation model includes a parameter sharing module, a first classifier and a second classifier. Among them, the parameter sharing module includes an explicit mapping layer (Explicit Embedding Layer), an implicit mapping layer (Implicit Embedding Layer), an active network (Proactive Tower) and a passive network (Passive Tower); the parameter sharing module has the characteristic of parameter sharing, which is specifically reflected in the use of the same parameter sharing module to model multiple tasks, thereby realizing the sharing of module parameters of the parameter sharing module by multiple tasks; the multiple tasks here refer to the modeling tasks from the source object to the target object, and the modeling tasks from the target object to the source object provided in the embodiment of the present application. Among them, the parameters of the first classifier and the second classifier are not shared; the first classifier is mainly used to classify and predict the process from the source object to the target object to obtain the predicted click-through rate (pCVR); and the second classifier is mainly used to classify and predict the process from the target object to the source object to obtain the predicted conversion rate (pCTR). From the model structure introduced above, it can be seen that the embodiment of the present application supports the use of a parameter sharing module for parameter sharing to enhance the joint learning of the underlying features of multiple tasks (such as spatial mapping of the explicit mapping layer, or feature extraction of the active network, etc.), and uses a first classifier and a second classifier that do not share parameters to learn the top-level features of each task respectively; not only can the object recommendation model be trained more effectively through task sharing parameters, but also a classifier that does not share parameters can be used at the top level to achieve independent learning of different tasks, thereby ensuring the prediction performance of the object recommendation model.
[0173] Based on the above Fig.10 The object recommendation model provided, the training process of the object recommendation model using a sample pair set is described in detail below. Specifically, based on the specific implementation process shown in step S901, after constructing the sample pair set for training the model, the sample pair set can be used to optimize the object recommendation model to be trained, specifically, the sample pairs in the sample pair set are cyclically used to achieve the gradual optimization of the object recommendation model until an object recommendation model with better performance is obtained, or all the sample pairs contained in the sample pair set are executed. For the sake of ease of explanation, the training process of the training object recommendation model will be introduced by taking the i-th sample pair in the sample pair set for training as an example, where i is a positive integer, which is specially explained here.
[0174] In practical applications, considering that the objects recommended as source objects or target objects in the object recommendation scenario are often strangers, the objects can only rely on the object information (i.e., explicit object information) displayed in the object recommendation interface or the object application interface to determine whether they are interested. Therefore, after selecting the i-th sample pair from the sample pair set to train the object recommendation model, the embodiment of the present application also needs to perform feature selection for the two stages (i.e., the stage from the source object to the target object, and the stage from the target object to the source object) respectively, so that the object recommendation model can model the two stages separately, and achieve the effect of simultaneous optimization of multiple tasks.
[0175] Specifically, when predicting whether the sample application object in the ith sample pair selects or clicks the sample conversion object in the ith sample pair, on the one hand, considering that the sample application object can only obtain the object information of the sample conversion object from the object recommendation interface or the personal details interface of the sample conversion object, that is, the sample application object can only access the explicit object information of the sample conversion object; therefore, in the prediction stage from the source object (here is the sample application object) to the target object (here is the sample conversion object), only the explicit feature vector contained in the object vector of the sample conversion object in the ith sample pair is used. The implicit feature vector contained in the object vector of the masked sample transformation object On the other hand, considering that the sample application object selects the sample transformation object, both the explicit object information and the implicit object information of the sample application object can be accessed; therefore, in the prediction stage from the source object (here the sample application object) to the target object (here the sample transformation object), the object vector x of the sample application object in the i-th sample pair is used. s (including explicit eigenvectors and the implicit eigenvector ).
[0176] Similarly, when predicting whether the sample conversion object in the ith sample pair agrees with the sample application object in the ith sample pair, on the one hand, considering that the sample conversion object can only obtain the object information of the sample application object from the object application interface or the personal details interface of the sample application object, that is, the sample conversion object can only access the explicit object information of the sample application object; therefore, in the prediction stage from the target object (here is the sample conversion object) to the source object (here is the sample application object), only the explicit feature vector contained in the object vector of the sample application object in the ith sample pair is used. The implicit feature vector contained in the object vector of the masked sample application object On the other hand, considering that the sample conversion object passes through the sample application object, both the explicit object information and the implicit object information of the sample conversion object can be accessed; therefore, in the prediction stage from the target object (here is the sample conversion object) to the source object (here is the sample application object), the object vector x of the sample application object in the i-th sample pair is used. t (including explicit eigenvectors and the implicit eigenvector ).
[0177] Further, after the input features used in each of the two stages are determined based on the above feature selection, the specific implementation process of using the input features to perform model training on the object recommendation model may include but is not limited to steps s21-s24, wherein:
[0178] s21: Utilize the parameter sharing module to obtain the full feature representation based on the object vector; and utilize the parameter sharing module to obtain the explicit feature representation based on the explicit feature vector.
[0179] As described above, the embodiment of the present application uses a parameter sharing module to model the two stages; therefore, the specific implementation process of using the parameter sharing module to obtain the full feature representation based on the object vector and using the parameter sharing module to obtain the explicit feature representation based on the explicit feature vector may include: 1) When the sample application object is converted to the sample conversion object, the specific implementation process mentioned above can be referred to Fig.10 The left part of the model framework shown in the figure specifically includes: using the parameter sharing module based on the object vector of the sample application object in the i-th sample pair to obtain the full feature representation of the sample application object; and using the parameter sharing module based on the explicit feature vector in the object vector of the sample transformation object in the i-th sample pair to obtain the explicit feature representation of the sample transformation object. 2) When converting from the sample transformation object to the sample application object, the specific implementation process mentioned above can be referred to Fig.10 The right part of the model framework shown specifically includes: using the parameter sharing module to obtain the full feature representation of the sample transformation object based on the object vector of the sample transformation object in the i-th sample pair; and using the parameter sharing module to obtain the explicit feature representation of the sample application object based on the explicit feature vector in the object vector of the sample application object in the i-th sample pair.
[0180] Considering that the specific implementation process of modeling the above two stages using the parameter sharing module is similar, only the input features used are different; for the sake of convenience, the following is combined with Fig.10 Taking the stage from sample application object to sample conversion object as an example, the process of obtaining full feature representation based on object vector by using parameter sharing module and obtaining explicit feature representation based on explicit feature vector by using parameter sharing module is introduced; wherein:
[0181] First, since the sample application object and the sample conversion object are the same type of entity, the feature space (or feature vector, object vector) of the two is consistent. For example, the object vector is composed of object attributes or information such as "gender", "game level" and "game skill". Fig.10 As shown, the explicit feature vector of the sample application object and the explicit feature vector of the sample transformation object are input into the explicit mapping layer of the shared parameters for spatial mapping processing, and the explicit feature vectors of the sample application object and the explicit feature vectors of the sample transformation object are obtained respectively. and explicit features of sample transformation objects like Fig.10 As shown, the implicit feature vector of the sample application object is input into the implicit mapping layer for spatial mapping processing to obtain the implicit feature vector of the sample application object.
[0182] Among them, the embodiment of the present application supports the use of embedding to realize the spatial mapping processing of explicit feature vectors. At this time, the explicit features (or implicit features) can be represented by embedding vectors, which can also be called explicit embedding representation. The embedding vector is a low-dimensional vector that represents the features or attributes of an object. The distance between the embedding vectors of any two objects can be used to represent the similarity between the two objects; for example: if the distance between the embedding vectors of the two objects is less than the distance threshold, the two objects are relatively similar (such as similar features or attributes, etc.); if the distance between the embedding vectors of the two objects is greater than or equal to the distance threshold, the similarity between the two objects is low. The process of spatial mapping processing by embedding is similar to reducing the features of the object from a high-dimensional feature space to a low-dimensional feature space, thereby realizing the dimensionality reduction processing of the high-dimensional feature vector and extracting the key features of the object, which is conducive to the subsequent learning of the object's interests based on the key features, thereby training an object recommendation model with better prediction performance. Among them, the process of obtaining the explicit features through the explicit mapping layer of the object's input features (here is the explicit feature vector) can be expressed as:
[0183] h exp =Embedding exp (x exp θ exp ) (4)
[0184] Among them, θ exp is the parameter of the explicit mapping layer. The explicit features of the sample application object can be expressed as The explicit features of the sample transformation object can be expressed as
[0185] Similarly, the process of obtaining the implicit features of the object’s input features (here, the implicit feature vector) through the implicit mapping layer can be expressed as:
[0186] h imp =Embedding imp (x imp θ imp ) (5)
[0187] Among them, θ imp is the parameter of the implicit mapping layer. The implicit features of the sample application object can be expressed as The implicit features of the sample transformation object can be expressed as
[0188] Furthermore, the full object features of the object can be expressed as:
[0189]
[0190] Among them, the full object characteristics of the sample application object can be expressed as The full object features of the sample transformation object can be expressed as
[0191] Then, feature extraction is performed on the full object features of the sample application object to obtain the full feature representation of the sample application object; and feature extraction is performed on the explicit features of the sample conversion object to obtain the explicit feature representation of the sample conversion object. Specifically, considering that whether the sample application object clicks on the sample conversion object and whether the sample conversion object passes the sample application object are two similar and symmetrical processes, both processes can be understood as whether the sample application object (sample conversion object) is willing to establish a social relationship chain with the sample conversion object (sample application object). Therefore, these two processes can use a parameter-sharing active network to perform feature extraction on the full object features of the sample application object to obtain the full feature representation of the sample application object, and use a parameter-sharing passive network to perform feature extraction on the explicit features of the sample conversion object to obtain the explicit feature representation of the sample conversion object.
[0192] The above mentioned active network may include a ProactiveTower module, and the passive network may include a PassiveTower module; both modules are constructed using Deep Neural Networks (DNN). The active network ProactiveTower is used to encode the features of the “active agent”, that is, the features of the object that can determine whether to click or pass (such as the full object features of the sample application object when predicting CTR). s , the total object features h of the sample conversion object when predicting the pass rate CVRt ) for feature extraction. The passive network PassiveTower is used to encode the features of the "passive", at which time only the features that can be explicitly observed in the two stages (such as the explicit features of the sample conversion object when predicting CTR) are extracted. Explicit characteristics of sample applicants when predicting pass rate CVR ) to extract features. Further, the process of obtaining the full feature representation of the sample application object through the active network ProactiveTower can be expressed as f pr (h s θ pr ), the θ pr is the parameter of the ProactiveTower module; the explicit features of the sample transformation object pass through the passive network PassiveTower, and the process of obtaining explicit feature representation can be expressed as f pa (h t θ pr ), the θ pr Parameters of the PassiveTower module.
[0193] s22: Use the classifier to perform classification prediction processing based on the full feature representation and the explicit feature representation to obtain a first prediction intention result and a second prediction intention result.
[0194] As described above, the embodiment of the present application supports the use of a classifier with non-shared parameters to predict the click-through rate pCTR and the conversion rate pCVR respectively; then the specific implementation process of using the classifier to perform classification prediction processing based on the full feature representation and the explicit feature representation to obtain the first prediction intention result (i.e., the click-through rate pCTR) and the second prediction result (i.e., the conversion rate pCVR) may include: 1) Using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object to obtain the first prediction intention result. 2) Using the second classifier to perform classification prediction processing based on the full feature representation of the sample conversion object and the explicit feature representation of the sample application object to obtain the second prediction intention result.
[0195] Considering that the specific implementation process of using the first classifier and the second classifier to perform classification prediction processing on the two stages is similar, only the features used are different; for the convenience of explanation, the following is combined with Fig.10 Taking the stage from sample application object to sample conversion object as an example, the process of using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object to obtain the first prediction intention result is introduced; wherein:
[0196] First, the full feature representation and the explicit feature representation are concatenated to obtain the concatenated feature hctr used to predict the click rate. The concatenated feature hctr can be expressed as:
[0197]
[0198] Similarly, the splicing feature hcvr used to predict pCVR can be expressed as:
[0199]
[0200] Then, the first classifier is used to perform classification prediction processing on the splicing feature hctr to obtain the first prediction source result pCVR; the first classifier specifically determines the probability that the i-th sample pair of the input object recommendation model belongs to the application positive sample pair according to the characteristics of the splicing feature hctr, so that the first prediction result pCVR can be used to indicate the degree of social willingness of the sample application object in the i-th sample pair for the sample conversion object. Among them, the first prediction source result pCTR can be expressed as:
[0201] pCTR = sigmoid(f ctr (h ctr θ ctr )) (9)
[0202] Among them, sigmoid() is the activation function, θ ctr are the parameters of the first classifier.
[0203] Similarly, the second prediction source result pCTR can be expressed as:
[0204] pCVR=sigmoid(f cvr (h cvr θ cvr )) (10)
[0205] Among them, θ cvr are the parameters of the second classifier.
[0206] s23: Based on the first predicted willingness result and the second predicted willingness result, generate a predicted recommendation result associated with the i-th sample pair.
[0207] Considering that pCTCVR=pCTR*pCVR, the embodiment of the present application supports directly multiplying the output probability of the first classifier (i.e., the first predicted intention result) and the output probability of the second classifier (i.e., the second predicted hospital result), so as to obtain the predicted recommendation result pCTCVR.
[0208] s24: Iteratively train the object recommendation model based on the predicted recommendation results to obtain a trained object recommendation model.
[0209] After obtaining the predicted recommendation result obtained by the object recommendation model for the i-th sample pair, the target loss information of the object recommendation model for this round of model training can be calculated based on the application label and conversion label in the i-th sample pair and the predicted recommendation result. When the target loss information does not meet the training end condition, it means that the prediction performance of the object recommendation model is poor. At this time, the object recommendation model is trained in the direction of reducing the target loss information to obtain the trained object recommendation model; then, the i+1-th sample pair is selected from the sample pair set again, and the trained object recommendation model is iteratively trained using the i+1-th sample pair until the object recommendation model tends to be stable. Among them, the training end condition may include: all sample pairs in the sample pair set are executed, or the difference between the target loss information of multiple adjacent trainings is close to 0, or the target loss information obtained in this round of training is close to a preset value (such as 1 or 0).
[0210] Furthermore, the goal of model training for the object recommendation model in the embodiment of the present application is to maximize the exposure pass rate pCTCVR of the sample application object. At this time, the target loss information mentioned above may include second loss information, which is determined based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair; in this implementation, the target loss information L can be expressed as:
[0211] L=BCE(z,pCTCVR)=BCE(z,pCTR*CVR) (11)
[0212] Among them, the BCE() function is the cross entropy loss function.
[0213] Furthermore, considering the small number of positive conversion samples, the embodiment of the present application not only optimizes the pCTCVR goal, but also optimizes pCTR. However, since only samples of whether the sample application object is passed after clicking can be obtained, it is impossible to know whether the sample that has not been clicked is likely to be passed, so the loss information predicted by pCVR is not calculated. In this implementation method, based on the difference information between the first predicted intention result and the application label in the i-th sample pair, the first loss information pCTR can be generated, and based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair, the second loss information pCTCVR can be generated; then, the first loss information pCTR and the second loss information pCTCVR are added to obtain the target loss information. Among them, the target loss information L can be expressed as:
[0214]
[0215] Wherein, N is the total number of sample pairs contained in the sample pair set.
[0216] It can be seen that the use of multi-task training and simultaneous optimization of the exposure pass rate pCTCVR and click rate pCTR of the source object can increase the learning of the underlying features of the object recommendation model, thereby obtaining an object recommendation model with better performance. In addition, after obtaining the target loss information based on the above steps, the model parameters of the object recommendation model (such as the parameters of the explicit mapping layer / implicit mapping layer mentioned above, or the parameters of the active network / implicit network, etc.) can be optimized to obtain a trained object recommendation model.
[0217] S904: Obtain all object features of the source object and all object features of the target object to be recommended.
[0218] S905: Based on the full object features of the source object and the explicit features of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain a source willingness result.
[0219] S906: Based on the full object features of the target object and the explicit features of the source object, the target object's social willingness demand for the source object is predicted to obtain a source willingness result.
[0220] S907: Generate recommendation results based on the source intention results and the target intention results.
[0221] It should be noted that the specific implementation process shown in steps S904-S907 can refer to the relevant description of the specific implementation process shown in the aforementioned steps S301-S304, and will not be repeated here.
[0222] In summary, the object recommendation method provided in the embodiment of the present application, on the one hand, supports modeling of both stages of successfully establishing a social relationship chain, namely, modeling of the stage of whether the source object clicks on the target object, and the stage of whether the target object agrees with the source object, which not only promotes the source object to click on the target object to be recommended, but also promotes the target object to agree with the source object that performs the click operation, thereby effectively improving the success rate of establishing a social relationship chain between the source object and the target object. On the other hand, by adopting a multi-task training method, not only the exposure pass rate pCTCVR of the source object is optimized or maximized, but also the click rate pCTR can be optimized, so as to optimize the underlying features of the object recommendation model through the loss of the click pass rate pCTR, thereby obtaining an object recommendation model with better performance.
[0223] Furthermore, when the object recommendation scheme provided by the embodiment of the present application is applied to the game scene, and the exposure pass rate is used as the evaluation index of the object recommendation model (the higher the exposure pass rate, the greater the probability that the object recommendation model promotes the establishment of social relationship chains between game players), the embodiment of the present application has better object recommendation performance than the traditional model. Exemplarily, the performance scores of the object recommendation model provided by the embodiment of the present application and the traditional model in terms of click-through rate and exposure pass rate are given below in combination with Table 1, as shown in Table 1:
[0224] Table 1
[0225] Model / Algorithm Click-through rate Exposure pass rate Random Recommendations 68.33% 10.18% Social network influence model 69.34% 10.19% Team willingness 69.29% 10.41% Multi-task object recommendation model 72.94% 10.79%
[0226] As can be seen from Table 1, the object recommendation model proposed in the embodiment of the present application has a click-through rate of 72.94% in the game scene, which is significantly higher than the click-through rate of the traditional model; and the exposure pass rate is also significantly higher than the traditional model (such as the exposure pass rate of the relative random and team intention models is increased by 6% and 3.66% respectively). It can be seen that the object recommendation model provided by the embodiment of the present application can more accurately predict the source objects and target objects with a high degree of social intention matching compared to the traditional model, thereby promoting the establishment of social relationship chains.
[0227] The object recommendation method of the embodiment of the present application is described in detail above. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0228] Fig.11 A schematic diagram of the structure of an object recommendation device provided by an exemplary embodiment of the present application is shown; the object recommendation device may be a computer program (including program code) running in a computer device; the object recommendation device may be used to execute Figure 3 or Fig. 9 Some or all of the steps in the method embodiment shown. Fig.11 , the object recommendation device includes the following units:
[0229] The acquisition unit 1101 is used to acquire all object features of the source object and all object features of the target object to be recommended; the all object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access;
[0230] The processing unit 1102 is used to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and obtain a source willingness result; the source willingness result is used to indicate the willingness degree of the source object to request to establish a social relationship chain with the target object;
[0231] The processing unit 1102 is further used to predict the social willingness demand of the target object for the source object based on the full object features of the target object and the explicit features of the source object, and obtain a target willingness result; the target willingness result is used to indicate the degree of willingness of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object;
[0232] The processing unit 1102 is further configured to generate a recommendation result according to the source intention result and the target intention result, where the recommendation result is used to indicate the degree of social intention matching between the source object and the target object.
[0233] In one implementation, the implicit features in the full object features are local features that are not allowed to be accessed by other objects; the processing unit 1102, when used to obtain the full object features of the source object, is specifically used to:
[0234] Get the object vector of the source object, which contains explicit feature vectors and implicit feature vectors;
[0235] Performing spatial mapping processing on the explicit feature vector of the source object to obtain the explicit features of the source object;
[0236] Performing spatial mapping processing on the implicit feature vector of the source object to obtain the implicit features of the source object;
[0237] The explicit features of the source object and the implicit features of the source object are concatenated to obtain the full object features of the source object.
[0238] In one implementation, the processing unit 1102, when used to obtain the object vector of the source object, is specifically used to:
[0239] Obtaining the full object information of the source object, wherein the full object information includes one or more explicit object information and one or more implicit object information; the explicit object information is the object information that is allowed to be accessed by other objects, and the implicit object information is the object information that is not allowed to be accessed by other objects;
[0240] Performing information fusion on one or more explicit object information to obtain an explicit feature vector of the source object; and performing information fusion on one or more implicit object information to obtain an implicit feature vector of the source object;
[0241] The explicit feature vector of the source object and the implicit feature vector of the source object are subjected to feature concatenation operation to obtain the object vector of the source object.
[0242] In one implementation, the processing unit 1102 is used to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and when the source willingness result is obtained, it is specifically used to:
[0243] Performing feature extraction processing on the full object features of the source object to obtain a full feature representation of the source object, where the full feature representation of the source object is used to indicate attribute features of the full object information of the source object;
[0244] Performing feature extraction processing on the explicit features of the target object to obtain an explicit feature representation of the target object, wherein the explicit feature representation of the target object is used to indicate attribute features of explicit object information of the target object;
[0245] Based on the full feature representation of the source object and the explicit feature representation of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain the source willingness result.
[0246] In one implementation, the processing unit 1102 is used to predict the social willingness demand of the source object for the target object based on the full feature representation of the source object and the explicit feature representation of the target object, and when the source willingness result is obtained, it is specifically used to:
[0247] Perform feature concatenation operation on the full feature representation of the source object and the explicit feature representation of the target object to obtain concatenated features;
[0248] The spliced features are classified and predicted to obtain the click probability of the source object. The click probability is used to indicate the probability of the source object requesting to establish a social relationship chain with the target object.
[0249] The click probability of the source object is taken as the source intention result of the source object.
[0250] In one implementation, the source intention result of the source object is a click probability; the target intention result of the target object is a conversion probability, and the conversion probability is used to indicate the probability of the target object agreeing to establish a social relationship chain with the source object when the source object requests to establish a social relationship chain with the target object;
[0251] The processing unit 1102 is used to generate a recommendation result according to the source intention result and the target intention result, and is specifically used to:
[0252] The click probability of the source object and the conversion probability of the target object are multiplied to generate the willingness matching probability, which is used to indicate: the probability that the source object requests to establish a social relationship chain with the target object, and the target object agrees to establish a social relationship chain with the source object;
[0253] The willingness matching probability is taken as the recommendation result.
[0254] In one implementation, the number of target objects is M, where M is an integer greater than 1; the processing unit 1102 is further configured to:
[0255] Obtain the recommendation result corresponding to each target object among the M target objects;
[0256] Sort the M target objects in descending order of the willingness matching probability corresponding to the recommendation results to obtain an object recommendation sequence;
[0257] Outputs a sequence of object recommendations to the source object.
[0258] In one implementation, the object recommendation method is executed by calling a trained object recommendation model; the training process of the object recommendation model includes:
[0259] Obtain a sample pair set, the sample pair set includes at least one sample pair, each sample pair includes: an object vector of a sample application object, an object vector of a sample transformation object, an application label of the sample application object, and a transformation label of the sample transformation object;
[0260] The object recommendation model is used to perform prediction processing on the i-th sample pair in the sample pair set to obtain a prediction recommendation result associated with the i-th sample pair, and the prediction recommendation result is determined by the first prediction willingness result and the second prediction willingness result associated with the i-th sample pair; i is a positive integer; the first prediction willingness result is used to indicate the willingness of the sample application object in the i-th sample pair to request to establish a social relationship chain with the sample conversion object in the i-th sample object; the second prediction willingness result is used to indicate the willingness of the sample conversion object in the i-th sample object to agree to establish a social relationship chain when the sample application object in the i-th sample pair requests to establish a social relationship chain with the sample conversion object in the i-th sample object;
[0261] The object recommendation model is iteratively trained in the direction of reducing the difference between the first predicted intention result and the application label, and in the direction of reducing the difference between the predicted recommendation result and the conversion label to obtain a trained object recommendation model.
[0262] In one implementation, the processing unit 1102, when used to obtain the sample pair set, is specifically used to:
[0263] Obtaining log information, the log information includes historical social information of one or more objects, the historical social information includes: object identifiers of one or more sample application objects, object identifiers of one or more sample conversion objects, request information of any sample application object to any sample conversion object, and conversion information of any sample conversion object to any sample application object;
[0264] Based on the log information, at least one application positive sample pair, at least one application negative sample pair, at least one conversion positive sample pair and at least one conversion negative sample pair are constructed; the number of application negative sample pairs is greater than the number of application positive sample pairs, and the application positive sample pairs include conversion negative sample pairs;
[0265] Downsampling the at least one application negative sample pair to obtain one or more application negative sample pairs after downsampling;
[0266] At least one application positive sample pair, one or more application negative samples after downsampling, at least one conversion positive sample pair and at least one conversion negative sample pair are combined to generate a sample pair set.
[0267] In one implementation, the application label in the application positive sample pair is used to indicate: the sample application object requests to establish a social relationship chain with the sample conversion object;
[0268] The application label in the application negative sample pair is used to indicate that: the sample application object does not request to establish a social relationship chain with the sample conversion object;
[0269] The conversion label in the conversion positive sample pair is used to indicate that: when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object agrees to establish a social relationship chain;
[0270] The conversion label in the conversion negative sample pair is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object does not agree to establish the social relationship chain.
[0271] In one implementation, the object vector in the i-th sample pair in the sample pair set includes an explicit feature vector and an implicit feature vector; the object recommendation model includes a parameter sharing module, a first classifier, and a second classifier; the processing unit 1102 is used to use the object recommendation model to perform prediction processing on the i-th sample pair in the sample pair set, and when obtaining the prediction recommendation result associated with the i-th sample pair, it is specifically used to:
[0272] Using the parameter sharing module to obtain a full feature representation of the sample application object based on the object vector of the sample application object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample transformation object based on the explicit feature vector in the object vector of the sample transformation object in the i-th sample pair;
[0273] Using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object, a first prediction intention result is obtained;
[0274] and, using the parameter sharing module to obtain a full feature representation of the sample transformation object based on the object vector of the sample transformation object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample application object based on the explicit feature vector in the object vector of the sample application object in the i-th sample pair;
[0275] Using the second classifier to perform classification prediction processing based on the full feature representation of the sample conversion object and the explicit feature representation of the sample application object, a second prediction intention result is obtained;
[0276] Based on the first predicted willingness result and the second predicted willingness result, a predicted recommendation result associated with the i-th sample pair is generated.
[0277] In one implementation, the processing unit 1102 is used to iteratively train the object recommendation model in a direction of reducing the difference between the first predicted willingness result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label, specifically to:
[0278] Based on the difference information between the first predicted willingness result and the application label in the i-th sample pair, first loss information is generated; and based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair, second loss information is generated;
[0279] Adding the first loss information and the second loss information to obtain target loss information;
[0280] When the target loss information does not meet the training end condition, the object recommendation model is trained in a direction of reducing the target loss information to obtain a trained object recommendation model;
[0281] Reselect the i+1th sample pair from the sample pair set, and use the i+1th sample pair to iteratively train the trained object recommendation model until the object recommendation model tends to be stable.
[0282] According to one embodiment of the present application, Fig.11 The various units in the object recommendation device shown can be individually or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the object recommendation device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, it can be executed by running on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figure 3 or Fig. 9 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Fig.11 The object recommendation device shown in the embodiment of the present application is implemented by the object recommendation method. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0283] In the embodiment of the present application, when it is necessary to recommend an object for a source object, the full object features of the source object and the full object features of the target object to be recommended can be obtained; the full object features include explicit features and implicit features, and the so-called explicit features refer to features that can be accessed or viewed by other objects; for example, the object information of the target object (such as object name, gender, level or game skill, etc.) can be displayed in the object recommendation interface on the source object side, then the features corresponding to the object information of this part of the target object that can be accessed by the source object in the object recommendation interface are determined as the explicit features of the target object. Then, based on the full object features of the source object and the explicit features of the target object, the social willingness demand of the source object for the target object can be predicted and processed to obtain the source willingness result, which can indicate the willingness degree of the source object to request to establish a social relationship chain with the target object. Then, based on the full object features of the target object and the explicit features of the source object, the social willingness demand of the target object for the source object is predicted and processed to obtain the target willingness result, which is used to indicate the willingness degree of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object. Finally, a recommendation result is generated based on the source intention result and the target intention result; the recommendation result is used to indicate the degree of social intention matching between the source object and the target object. Through the above process, it can be seen that the embodiment of the present application not only considers the interest level of the source object in the target object, but also considers the interest level of the target object in the source object, which can achieve accurate recommendation of the target object for the source object, effectively improve the success rate of establishing a social relationship chain between the source object and the target object, and improve the object recommendation effect.
[0284] Fig.12 FIG. 1 shows a schematic diagram of a computer device provided by an exemplary embodiment of the present application. Fig.12, the computer device includes a processor 1201, a communication interface 1202 and a computer-readable storage medium 1203. The processor 1201, the communication interface 1202 and the computer-readable storage medium 1203 can be connected via a bus or other means. The communication interface 1202 is used to receive and send data. The computer-readable storage medium 1203 can be stored in the memory of the computer device, the computer-readable storage medium 1203 is used to store a computer program, the computer program includes program instructions, and the processor 1201 is used to execute the program instructions stored in the computer-readable storage medium 1203. The processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0285] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the processing system of the computer device. In addition, one or more instructions suitable for being loaded and executed by the processor 1201 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0286] In one embodiment, the computer device may be the device deployed with the object recommendation model mentioned in the above embodiment; the computer-readable storage medium stores one or more instructions; the processor 1201 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above-mentioned object recommendation method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the following steps are executed:
[0287] Obtain all object features of the source object and the target object to be recommended; the full object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access;
[0288] Based on the full object features of the source object and the explicit features of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain a source willingness result; the source willingness result is used to indicate the willingness degree of the source object to request to establish a social relationship chain with the target object;
[0289] Based on the full object features of the target object and the explicit features of the source object, the target object's social willingness demand for the source object is predicted and processed to obtain a target willingness result; the target willingness result is used to indicate the degree of willingness of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object;
[0290] According to the source intention result and the target intention result, a recommendation result is generated, and the recommendation result is used to indicate the degree of social intention matching between the source object and the target object.
[0291] In one implementation, the implicit features in the full object features are local features that are not allowed to be accessed by other objects; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and when executing to obtain the full object features of the source object, the following steps are specifically performed:
[0292] Get the object vector of the source object, which contains explicit feature vectors and implicit feature vectors;
[0293] Performing spatial mapping processing on the explicit feature vector of the source object to obtain the explicit features of the source object;
[0294] Performing spatial mapping processing on the implicit feature vector of the source object to obtain the implicit features of the source object;
[0295] The explicit features of the source object and the implicit features of the source object are concatenated to obtain the full object features of the source object.
[0296] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and when executing to obtain the object vector of the source object, specifically perform the following steps:
[0297] Obtaining the full object information of the source object, wherein the full object information includes one or more explicit object information and one or more implicit object information; the explicit object information is the object information that is allowed to be accessed by other objects, and the implicit object information is the object information that is not allowed to be accessed by other objects;
[0298] Performing information fusion on one or more explicit object information to obtain an explicit feature vector of the source object; and performing information fusion on one or more implicit object information to obtain an implicit feature vector of the source object;
[0299] The explicit feature vector of the source object and the implicit feature vector of the source object are subjected to feature concatenation operation to obtain the object vector of the source object.
[0300] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and are executed to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and when the source willingness result is obtained, the following steps are specifically performed:
[0301] Performing feature extraction processing on the full object features of the source object to obtain a full feature representation of the source object, where the full feature representation of the source object is used to indicate attribute features of the full object information of the source object;
[0302] Performing feature extraction processing on the explicit features of the target object to obtain an explicit feature representation of the target object, wherein the explicit feature representation of the target object is used to indicate attribute features of explicit object information of the target object;
[0303] Based on the full feature representation of the source object and the explicit feature representation of the target object, the source object's social willingness demand for the target object is predicted and processed to obtain the source willingness result.
[0304] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and are executed based on the full feature representation of the source object and the explicit feature representation of the target object to predict the social willingness demand of the source object for the target object, and when the source willingness result is obtained, the following steps are specifically performed:
[0305] Perform feature concatenation operation on the full feature representation of the source object and the explicit feature representation of the target object to obtain concatenated features;
[0306] The spliced features are classified and predicted to obtain the click probability of the source object. The click probability is used to indicate the probability of the source object requesting to establish a social relationship chain with the target object.
[0307] The click probability of the source object is taken as the source intention result of the source object.
[0308] In one implementation, the source intention result of the source object is a click probability; the target intention result of the target object is a conversion probability, and the conversion probability is used to indicate the probability of the target object agreeing to establish a social relationship chain with the source object when the source object requests to establish a social relationship chain with the target object;
[0309] The one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and when executing to generate a recommendation result according to the source intention result and the target intention result, the following steps are specifically performed:
[0310] The click probability of the source object and the conversion probability of the target object are multiplied to generate the willingness matching probability, which is used to indicate: the probability that the source object requests to establish a social relationship chain with the target object, and the target object agrees to establish a social relationship chain with the source object;
[0311] The willingness matching probability is taken as the recommendation result.
[0312] In one implementation, the number of target objects is M, where M is an integer greater than 1; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the following steps are further executed:
[0313] Obtain the recommendation result corresponding to each target object among the M target objects;
[0314] Sort the M target objects in descending order of the willingness matching probability corresponding to the recommendation results to obtain an object recommendation sequence;
[0315] Outputs a sequence of object recommendations to the source object.
[0316] In one implementation, the object recommendation method is executed by calling a trained object recommendation model; the training process of the object recommendation model includes:
[0317] Obtain a sample pair set, the sample pair set includes at least one sample pair, each sample pair includes: an object vector of a sample application object, an object vector of a sample transformation object, an application label of the sample application object, and a transformation label of the sample transformation object;
[0318] The object recommendation model is used to perform prediction processing on the i-th sample pair in the sample pair set to obtain a prediction recommendation result associated with the i-th sample pair, and the prediction recommendation result is determined by the first prediction willingness result and the second prediction willingness result associated with the i-th sample pair; i is a positive integer; the first prediction willingness result is used to indicate the willingness of the sample application object in the i-th sample pair to request to establish a social relationship chain with the sample conversion object in the i-th sample object; the second prediction willingness result is used to indicate the willingness of the sample conversion object in the i-th sample object to agree to establish a social relationship chain when the sample application object in the i-th sample pair requests to establish a social relationship chain with the sample conversion object in the i-th sample object;
[0319] The object recommendation model is iteratively trained in the direction of reducing the difference between the first predicted intention result and the application label, and in the direction of reducing the difference between the predicted recommendation result and the conversion label to obtain a trained object recommendation model.
[0320] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and when executing to obtain a sample pair set, specifically perform the following steps:
[0321] Obtaining log information, the log information includes historical social information of one or more objects, the historical social information includes: object identifiers of one or more sample application objects, object identifiers of one or more sample conversion objects, request information of any sample application object to any sample conversion object, and conversion information of any sample conversion object to any sample application object;
[0322] Based on the log information, at least one application positive sample pair, at least one application negative sample pair, at least one conversion positive sample pair and at least one conversion negative sample pair are constructed; the number of application negative sample pairs is greater than the number of application positive sample pairs, and the application positive sample pairs include conversion negative sample pairs;
[0323] Downsampling the at least one application negative sample pair to obtain one or more application negative sample pairs after downsampling;
[0324] At least one application positive sample pair, one or more application negative samples after downsampling, at least one conversion positive sample pair and at least one conversion negative sample pair are combined to generate a sample pair set.
[0325] In one implementation, the application label in the application positive sample pair is used to indicate: the sample application object requests to establish a social relationship chain with the sample conversion object;
[0326] The application label in the application negative sample pair is used to indicate that: the sample application object does not request to establish a social relationship chain with the sample conversion object;
[0327] The conversion label in the conversion positive sample pair is used to indicate that: when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object agrees to establish a social relationship chain;
[0328] The conversion label in the conversion negative sample pair is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object does not agree to establish the social relationship chain.
[0329] In one implementation, the object vector in the i-th sample pair in the sample pair set includes an explicit feature vector and an implicit feature vector; the object recommendation model includes a parameter sharing module, a first classifier and a second classifier; one or more instructions in a computer-readable storage medium are loaded by the processor 1201 and are executed to perform prediction processing on the i-th sample pair in the sample pair set using the object recommendation model to obtain a prediction recommendation result associated with the i-th sample pair, and the following steps are specifically performed:
[0330] Using the parameter sharing module to obtain a full feature representation of the sample application object based on the object vector of the sample application object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample transformation object based on the explicit feature vector in the object vector of the sample transformation object in the i-th sample pair;
[0331] Using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object, a first prediction intention result is obtained;
[0332] and, using the parameter sharing module to obtain a full feature representation of the sample transformation object based on the object vector of the sample transformation object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample application object based on the explicit feature vector in the object vector of the sample application object in the i-th sample pair;
[0333] Using the second classifier to perform classification prediction processing based on the full feature representation of the sample conversion object and the explicit feature representation of the sample application object, a second prediction intention result is obtained;
[0334] Based on the first predicted willingness result and the second predicted willingness result, a predicted recommendation result associated with the i-th sample pair is generated.
[0335] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and when executing, iteratively training the object recommendation model in a direction of reducing the difference between the first predicted willingness result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label, specifically performing the following steps:
[0336] Based on the difference information between the first predicted willingness result and the application label in the i-th sample pair, first loss information is generated; and based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair, second loss information is generated;
[0337] Adding the first loss information and the second loss information to obtain target loss information;
[0338] When the target loss information does not meet the training end condition, the object recommendation model is trained in a direction of reducing the target loss information to obtain a trained object recommendation model;
[0339] Reselect the i+1th sample pair from the sample pair set, and use the i+1th sample pair to iteratively train the trained object recommendation model until the object recommendation model tends to be stable.
[0340] Based on the same inventive concept, the principles and beneficial effects of solving the problems by the computer device provided in the embodiment of the present application are similar to the principles and beneficial effects of solving the problems by the object recommendation method in the method embodiment of the present application. Please refer to the principles and beneficial effects of the implementation of the method. For the sake of concise description, they will not be repeated here.
[0341] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded by a processor and executing the object recommendation method as described above.
[0342] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0343] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0344] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An object recommendation method, characterized in that: include: Obtaining full object features of the source object and full object features of the target object to be recommended; the full object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access; Based on the full object features of the source object and the explicit features of the target object, predicting the social willingness demand of the source object for the target object to obtain a source willingness result; the source willingness result is used to indicate the willingness of the source object to request to establish a social relationship chain with the target object; Based on the full object features of the target object and the explicit features of the source object, predict the social willingness demand of the target object for the source object to obtain a target willingness result; the target willingness result is used to indicate the degree of willingness of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object; A recommendation result is generated according to the source intention result and the target intention result, and the recommendation result is used to indicate the degree of social intention matching between the source object and the target object.
2. The method according to claim 1, characterized in that The implicit feature in the full object feature is a local feature that is not allowed to be accessed by other objects; the step of obtaining the full object feature of the source object includes: Acquire an object vector of the source object, wherein the object vector includes an explicit feature vector and an implicit feature vector; Performing spatial mapping processing on the explicit feature vector of the source object to obtain explicit features of the source object; Performing spatial mapping processing on the implicit feature vector of the source object to obtain the implicit feature of the source object; The explicit features of the source object and the implicit features of the source object are subjected to feature concatenation operation to obtain full object features of the source object.
3. The method according to claim 2, characterized in that The obtaining the object vector of the source object comprises: Acquire full object information of the source object, wherein the full object information includes one or more explicit object information and one or more implicit object information; the explicit object information is object information that is allowed to be accessed by other objects, and the implicit object information is object information that is not allowed to be accessed by other objects; Performing information fusion on the one or more explicit object information to obtain an explicit feature vector of the source object; and performing information fusion on the one or more implicit object information to obtain an implicit feature vector of the source object; The explicit feature vector of the source object and the implicit feature vector of the source object are subjected to feature concatenation operation to obtain an object vector of the source object.
4. The method according to claim 1, characterized in that The predicting process of the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object to obtain the source willingness result includes: Performing feature extraction processing on the full object features of the source object to obtain a full feature representation of the source object, wherein the full feature representation of the source object is used to indicate attribute features of the full object information of the source object; Performing feature extraction processing on the explicit features of the target object to obtain an explicit feature representation of the target object, wherein the explicit feature representation of the target object is used to indicate attribute features of explicit object information of the target object; Based on the full feature representation of the source object and the explicit feature representation of the target object, the social willingness demand of the source object for the target object is predicted to obtain a source willingness result.
5. The method according to claim 4, characterized in that The predicting process of the social willingness demand of the source object for the target object based on the full feature representation of the source object and the explicit feature representation of the target object to obtain the source willingness result includes: Performing a feature concatenation operation on the full feature representation of the source object and the explicit feature representation of the target object to obtain a concatenated feature; Performing classification prediction processing on the splicing features to obtain a click probability of the source object, where the click probability is used to indicate a demand probability of the source object requesting to establish a social relationship chain with the target object; The click probability of the source object is used as the source intention result of the source object.
6. The method according to claim 1, characterized in that The source intention result of the source object is a click probability; the target intention result of the target object is a conversion probability, and the conversion probability is used to indicate the probability of the target object agreeing to establish a social relationship chain with the source object when the source object requests to establish a social relationship chain with the target object; The generating a recommendation result according to the source intention result and the target intention result includes: The click probability of the source object and the conversion probability of the target object are multiplied to generate a willingness matching probability, where the willingness matching probability is used to indicate the probability that the source object requests to establish a social relationship chain with the target object, and the target object agrees to establish a social relationship chain with the source object; The willingness matching probability is used as the recommendation result.
7. The method according to claim 1, characterized in that The number of the target objects is M, where M is an integer greater than 1; the method further includes: Obtain the recommendation result corresponding to each target object among the M target objects; Sorting the M target objects in descending order of the willingness matching probabilities corresponding to the recommendation results to obtain an object recommendation sequence; The object recommendation sequence is output to the source object.
8. The method according to claim 1, characterized in that The method is executed by calling a trained object recommendation model; the training process of the object recommendation model includes: Acquire a sample pair set, wherein the sample pair set includes at least one sample pair, and each sample pair includes: an object vector of a sample application object, an object vector of a sample transformation object, an application label of the sample application object, and a transformation label of the sample transformation object; The object recommendation model is used to perform prediction processing on the ith sample pair in the sample pair set to obtain a prediction recommendation result associated with the ith sample pair, wherein the prediction recommendation result is determined by a first prediction willingness result and a second prediction willingness result associated with the ith sample pair; i is a positive integer; the first prediction willingness result is used to indicate the degree of willingness of the sample application object in the ith sample pair to request to establish a social relationship chain with the sample conversion object in the ith sample object; the second prediction willingness result is used to indicate the degree of willingness of the sample conversion object in the ith sample object to agree to establish a social relationship chain when the sample application object in the ith sample pair requests to establish a social relationship chain with the sample conversion object in the ith sample object; The object recommendation model is iteratively trained in a direction of reducing the difference between the first predicted willingness result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label to obtain a trained object recommendation model.
9. The method according to claim 8, characterized in that The obtaining of a sample pair set comprises: Obtaining log information, wherein the log information includes historical social information of one or more objects, wherein the historical social information includes: object identifiers of one or more sample application objects, object identifiers of one or more sample conversion objects, request information of any sample application object to any sample conversion object, and conversion information of any sample conversion object to any sample application object; Constructing at least one application positive sample pair, at least one application negative sample pair, at least one conversion positive sample pair and at least one conversion negative sample pair based on the log information; the number of the application negative sample pairs is greater than the number of the application positive sample pairs, and the application positive sample pairs include the conversion negative sample pairs; Downsampling the at least one application negative sample pair to obtain one or more application negative sample pairs after downsampling; The at least one application positive sample pair, the one or more application negative samples after downsampling, the at least one conversion positive sample pair and the at least one conversion negative sample pair are combined to generate a sample pair set.
10. The method according to claim 9, characterized in that The application label in the application positive sample pair is used to indicate that: the sample application object requests to establish a social relationship chain with the sample conversion object; The application label in the application negative sample pair is used to indicate that: the sample application object has not requested to establish a social relationship chain with the sample conversion object; The conversion label in the conversion positive sample pair is used to indicate that: when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object agrees to establish a social relationship chain; The conversion label in the conversion negative sample pair is used to indicate that when the sample application object requests to establish a social relationship chain with the sample conversion object, the sample conversion object does not agree to establish the social relationship chain.
11. The method according to claim 8, characterized in that The object vector in the i-th sample pair in the sample pair set includes an explicit feature vector and an implicit feature vector; the object recommendation model includes a parameter sharing module, a first classifier and a second classifier; and the prediction processing of the i-th sample pair in the sample pair set by using the object recommendation model to obtain the prediction recommendation result associated with the i-th sample pair includes: Using the parameter sharing module to obtain a full feature representation of the sample application object based on the object vector of the sample application object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample transformation object based on the explicit feature vector in the object vector of the sample transformation object in the i-th sample pair; Using the first classifier to perform classification prediction processing based on the full feature representation of the sample application object and the explicit feature representation of the sample conversion object, to obtain a first prediction intention result; and, using the parameter sharing module to obtain a full feature representation of the sample conversion object based on the object vector of the sample conversion object in the i-th sample pair; and using the parameter sharing module to obtain an explicit feature representation of the sample application object based on the explicit feature vector in the object vector of the sample application object in the i-th sample pair; Using the second classifier to perform classification prediction processing based on the full feature representation of the sample conversion object and the explicit feature representation of the sample application object, to obtain a second prediction intention result; Based on the first prediction intention result and the second prediction intention result, a prediction recommendation result associated with the i-th sample pair is generated.
12. The method according to claim 8, characterized in that The iterative training of the object recommendation model in a direction of reducing the difference between the first predicted willingness result and the application label, and in a direction of reducing the difference between the predicted recommendation result and the conversion label, comprises: Generate first loss information based on the difference information between the first predicted willingness result and the application label in the i-th sample pair; and generate second loss information based on the difference information between the predicted recommendation result and the conversion label in the i-th sample pair; Adding the first loss information and the second loss information to obtain target loss information; When the target loss information does not meet the training end condition, performing model training on the object recommendation model in a direction of reducing the target loss information to obtain a trained object recommendation model; Reselecting the i+1th sample pair from the sample pair set, and using the i+1th sample pair to iteratively train the trained object recommendation model until the object recommendation model tends to be stable.
13. An object recommendation device, characterized in that: include: An acquisition unit, used to acquire full object features of a source object and full object features of a target object to be recommended; the full object features include explicit features and implicit features, and the explicit features are local features that allow other objects to access; a processing unit, configured to predict the social willingness demand of the source object for the target object based on the full object features of the source object and the explicit features of the target object, and obtain a source willingness result; the source willingness result is used to indicate the willingness degree of the source object to request to establish a social relationship chain with the target object; The processing unit is further used to predict the social willingness demand of the target object for the source object based on the full object features of the target object and the explicit features of the source object, and obtain a target willingness result; the target willingness result is used to indicate the willingness degree of the target object to agree to establish a social relationship chain when the source object requests to establish a social relationship chain with the target object; The processing unit is further used to generate a recommendation result according to the source willingness result and the target willingness result, wherein the recommendation result is used to indicate the degree of social willingness matching between the source object and the target object.
14. A computer device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the object recommendation method according to any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the object recommendation method according to any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a processor, the object recommendation method according to any one of claims 1 to 12 is implemented.
