Model training method, recommendation method, search method, computing device, storage medium and program product

By establishing the association between users and objects and using graph convolutional networks to extract features, the problem of difficulty in accurate recommendation in the existing technology is solved, and efficient recommendations for new users and new products are achieved.

CN118377975BActive Publication Date: 2024-10-22HANGZHOU ALIBABA INTERNATIONAL DIGITAL COMMERCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410833381.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately recommend users or objects, especially in the absence of historical interaction behaviors, such as newly released products or newly registered users, and cannot achieve efficient recommendations.

Method used

By establishing the association between the sample user and the second sample object of the interactive behavior, and the association between the first sample object and the second sample object that meets similar conditions, combined with the user characteristics, object characteristics and association relationship, use The graph convolutional network extracts collaboration features and content features, and trains the model to determine whether to recommend the target object to the target user.

Benefits of technology

It improves the accuracy of recommendations and the quality of content features, and can effectively recommend target objects. Especially in the absence of historical interaction behaviors, it improves the accuracy of new product recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377975B_ABST
    Figure CN118377975B_ABST
Patent Text Reader

Abstract

The present application provides a model training method, a recommendation method, a search method, a computing device, a storage medium and a program product. Among them, the first association relationship between a sample user and a second sample object with which the sample user has an interactive behavior, the second association relationship between a first sample object and a second sample object that satisfies a similarity condition with the first sample object, and the third association relationship between the first sample object and the sample user are utilized; the first feature network and the second feature network are trained by combining the first association relationship, the second association relationship and the third association relationship, and the training labels of whether the sample user has an interactive behavior with the second sample object and the first sample object respectively; the first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching results of the content features and the collaborative features are used to determine whether to recommend the target object to the target user. The present application improves the recommendation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a model training method, a recommendation method, a search method, a computing device, a storage medium, and a program product. Background Art

[0002] In an online system that provides objects for users to interact with, such as an e-commerce system that provides goods for users to purchase, there is usually a function of recommending goods to users. At present, based on the historical interaction information between users and goods, a collaborative filtering algorithm can be used to determine whether to recommend a target product to a target user. For example, based on the historical interaction behavior of the target user, other users who are similar to the target user can be determined first, and the goods preferred by other users can be used as target goods. For another example, based on the historical interaction behavior of the target user, the target user's preferred goods can be determined, and then goods similar to the user's preferred goods can be recommended to the target user.

[0003] However, the existing recommendation method will not be able to achieve accurate recommendations for users or products that have no historical interaction behaviors, such as newly released products or newly registered users. Summary of the invention

[0004] The embodiments of the present application provide a model training method, a recommendation method, a search method, a computing device, a storage medium, and a program product to solve the problem in the prior art that it is difficult to make accurate recommendations for users or objects.

[0005] In a first aspect, an embodiment of the present application provides a model training method, comprising:

[0006] Determine a training data set; the training data set includes a first sample object, a second sample object and a sample user;

[0007] Establishing a first association relationship between the sample user and a second sample object having an interactive behavior with the sample user;

[0008] Establishing a second association relationship between the first sample object and a second sample object that satisfies a first similarity condition with the first sample object;

[0009] Establishing a third association relationship between the first sample object and the sample user according to the distribution of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user;

[0010] Inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into a first feature network;

[0011] Inputting the object feature of the first sample object, the relationship feature representing the second association relationship and the relationship feature representing the third association relationship, as well as the collaboration feature of the sample user and the collaboration feature of the second sample object generated by the first feature network into the second feature network;

[0012] Training the first feature network and the second feature network in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively;

[0013] The first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching result of the content features and the collaborative features is used to determine whether to recommend the target object to the target user.

[0014] Optionally, the method further comprises:

[0015] Using an extraction network, respectively extracting object features of the first sample object from the object information of the first sample object, extracting object features of the second sample object from the object information of the second sample object, and extracting user features of the sample user from the user information of the sample user;

[0016] The training of the first feature network and the second feature network in combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively comprises:

[0017] The extraction network, the first feature network and the second feature network are trained in combination with training labels indicating whether the sample user has interaction behaviors with the second sample object and the first sample object respectively.

[0018] Optionally, the establishing a second association relationship between the first sample object and a second sample object that satisfies a first similarity condition with the first sample object includes:

[0019] For any first sample object, based on the object feature of the first sample object and the object feature of any second sample object, calculate the feature similarity between the first sample object and the second sample object;

[0020] A first number of second sample objects are selected in descending order of feature similarity to establish association relationships with the first sample objects.

[0021] Optionally, establishing a third association relationship between the first sample object and the sample user according to the distribution of second sample objects that meet the second similarity condition with the first sample object and have interaction behaviors with the sample user includes:

[0022] For any first sample object and any sample user, determine a second number of second sample objects that meet a second similarity condition with the first sample object;

[0023] Determining a third number of second sample objects that have interactive behaviors with the sample user;

[0024] Determine a fourth number of second sample objects that meet a second similarity condition with the first sample object and have interactive behaviors with the sample user;

[0025] Calculating point mutual information according to the occurrence probabilities of the second number of second sample objects, the third number of second sample objects, and the fourth number of second sample objects in the training data set, respectively;

[0026] When the point mutual information is higher than a predetermined value, a third association relationship is established between the first sample object and the sample user.

[0027] Optionally, the first feature network is a graph convolutional network;

[0028] The inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network includes:

[0029] Using the user features of the sample users and the object features of the second sample objects as nodes, generating a first node feature matrix;

[0030] According to the first association relationship between the sample user and the second sample object, construct an edge between the sample user and the second sample object to generate a first adjacency matrix;

[0031] The first node feature matrix and the first adjacency matrix are input into the first feature network.

[0032] Optionally, the second feature network is a graph convolutional network;

[0033] The inputting the object feature of the first sample object, the relationship feature representing the second association relationship, the relationship feature representing the third association relationship, and the collaboration feature of the sample user and the collaboration feature of the second sample object generated by the first feature network into the second feature network comprises:

[0034] Taking the object features of the first sample object as nodes, generating a second node feature matrix;

[0035] Using the collaborative features of the sample users generated by the first feature network as nodes, generating a third node feature matrix;

[0036] Using the collaborative features of the second sample object as nodes, generating a fourth node feature matrix;

[0037] According to the second association relationship between the first sample object and the second sample object, construct an edge between the first sample object and the second sample object to generate a first candidate adjacency matrix;

[0038] According to the third association relationship between the sample user and the first sample object, construct an edge between the sample user and the first sample object to generate a second candidate adjacency matrix;

[0039] Combining the first candidate adjacency matrix and the second candidate adjacency matrix to obtain a second adjacency matrix;

[0040] The second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix are input into a second feature network.

[0041] Optionally, combining training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively, training the first feature network and the second feature network includes:

[0042] Combined with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively, determine a triple consisting of the sample user, a first positive sample object having interaction behaviors with the sample user, and a first negative sample object having no interaction behaviors with the sample user, and a triple consisting of the sample user, a second positive sample object having interaction behaviors with the sample user, and a second negative sample object having no interaction behaviors with the sample user;

[0043] Calculating a first loss value using a first loss function according to the collaboration feature or content feature corresponding to the triple;

[0044] Calculating a second loss value using a second loss function according to a content feature of the first sample object and a collaboration feature of a second sample object that satisfies a third similarity condition with the first sample object;

[0045] Determining a target loss value according to the first loss value and the second loss value;

[0046] Based on the target loss value, model parameters corresponding to the first feature network and the second feature network are adjusted respectively.

[0047] Optionally, the extracting the object features of the first sample object, the object features of the second sample object, and the user features of the sample user respectively by using the extraction network comprises:

[0048] extracting object features of the first sample object and object features of the second sample object using a first sub-extraction network;

[0049] The user features of the sample users are extracted using the second sub-extraction network.

[0050] Optionally, inputting the user features of the sample users, the object features of the second sample objects, and the relationship features representing the first association relationships into the first feature network includes:

[0051] The user features of the sample users, the object features of the second sample objects, and the relationship features representing the first association relationship are input into a first feature network, so as to use the first feature network to generate, for any second sample object, collaborative features of the second sample object based on the object features of the second sample object, the user features of the sample users having a first association relationship with the second sample object, and the relationship features representing the first association relationship, and to generate, for any sample user, collaborative features of the sample user based on the user features of the sample user, the object features of the first sample object having a first association relationship with the sample user, and the relationship features.

[0052] Optionally, inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into a second feature network comprises:

[0053] Inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into a second feature network, and performing feature processing operations in an intermediate layer in the second feature network to obtain candidate features of the first sample object and candidate features of the second sample object;

[0054] In the output layer of the second feature network, candidate features of the first sample object and candidate features of the second sample object respectively outputted by a plurality of intermediate layers are fused to obtain content features of the first sample object.

[0055] In a second aspect, an example of the present application provides a recommendation method, comprising:

[0056] Identify target users;

[0057] Extracting collaborative features of the target user using a first feature network;

[0058] Acquire content features of the target object extracted using the second feature network;

[0059] Determining a matching degree between the target user and the target object based on the collaboration feature and the content feature;

[0060] When the matching degree satisfies the matching condition, recommending the target object to the target user;

[0061] Among them, the first feature network uses user features of sample users, object features of second sample objects, and relationship features representing the first association relationship as input data; the second feature network uses object features of the first sample object, relationship features representing the second association relationship, and relationship features representing the third association relationship, as well as collaboration features of the sample users and collaboration features of the second sample objects generated by the first feature network as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed based on whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed based on whether the first sample object and the second sample object meet a first similarity condition; and the third association relationship is constructed based on the distribution of second sample objects that meet a second similarity condition with the first sample object and have interaction behaviors with the sample user.

[0062] Optionally, the method further comprises:

[0063] Based on the user information of the target user, extracting initial features of the target user using an extraction network;

[0064] The extracting the collaborative features of the target user by using the first feature network includes:

[0065] Based on the initial features, extracting the collaborative features of the target user using a first feature network;

[0066] Optionally, determining the target user includes:

[0067] Determine the target users who have successfully registered, entered the target page, or performed the target behavior.

[0068] Optionally, the method further comprises:

[0069] In response to a publishing event of a target object, content features of the target object are extracted using the second feature network.

[0070] Optionally, the recommending the target object to the target user includes:

[0071] Sending recommendation prompt information of the target object to the user terminal of the target user;

[0072] Alternatively, based on the communication account corresponding to the target user, the recommendation prompt information of the target object is sent;

[0073] Alternatively, the target object is sent as a search result to a user terminal of the target user.

[0074] In a third aspect, an embodiment of the present application provides a search method, comprising:

[0075] In response to a search request of a target user, determining a target object based on search information in the search request;

[0076] Extracting collaborative features of the target user using a first feature network;

[0077] Acquire content features of the target object extracted using a second feature network;

[0078] Determining a matching degree between the target user and the target object based on the collaboration feature and the content feature;

[0079] When the matching degree satisfies the matching condition, sending the target object as a search result to the user terminal of the target user;

[0080] Among them, the first feature network uses user features of sample users, object features of second sample objects, and relationship features representing the first association relationship as input data; the second feature network uses object features of the first sample object, relationship features representing the second association relationship, and relationship features representing the third association relationship, as well as collaboration features of the sample users and collaboration features of the second sample objects generated by the first feature network as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed based on whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed based on whether the first sample object and the second sample object meet a first similarity condition; and the third association relationship is constructed based on the distribution of second sample objects that meet a second similarity condition with the first sample object and have interaction behaviors with the sample user.

[0081] In a fourth aspect, a computing device is provided in an embodiment of the present application, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the model training method described in the first aspect above, the recommendation method described in the second aspect above, or the search method described in the third aspect above.

[0082] In a fifth aspect, a computer storage medium is provided in an embodiment of the present application, storing a computer program, which, when executed by a computer, implements the model training method described in the first aspect above, the recommendation method described in the second aspect above, or the search method described in the third aspect above.

[0083] In a sixth aspect, a computer program product is provided in an embodiment of the present application, comprising a computer program / instructions, which, when executed by a computer, implements the model training method as described in the first aspect above, the recommendation method as described in the second aspect above, or the search method as described in the third aspect above.

[0084] In an embodiment of the present application, a training data set is first determined; wherein the training data set includes a first sample object, a second sample object and a sample user; a first association relationship is established between the sample user and the second sample object that has an interactive behavior with the sample user; a second association relationship is established between the first sample object and the second sample object that meets a first similarity condition with the first sample object; a third association relationship is established between the first sample object and the sample user according to the distribution of the second sample objects that meet a second similarity condition with the first sample object and have an interactive behavior with the sample user; user features of the sample user, object features of the second sample object and relationship features representing the first association relationship are input into a first feature network; object features of the first sample object, relationship features representing the second association relationship and relationship features representing the third association relationship, as well as collaborative features of the sample user generated by the first feature network and collaborative features of the second sample object are input into a second feature network; the first feature network and the second feature network are trained in combination with training labels of whether the sample user has an interactive behavior with the second sample object and the first sample object respectively; wherein the first feature network is used to extract collaborative features of the target user, and the second feature network is used to extract content features of the target object; the matching result of the content feature and the collaborative feature is used to determine whether to recommend the target object to the target user. The second sample object can represent an object with historical interaction behavior, and the first sample object can represent an object without historical interaction behavior, so that the first feature network can be trained in combination with the historical interaction information of the second sample object and the sample user, so that the first feature network can be used to extract collaborative features containing historical interaction information, and the second feature network can be trained in combination with the collaborative features and the association relationship, so that the second feature network can consider the characteristics of the object itself and the characteristics of the user who may interact, so as to improve the content features of the extracted object and improve the characterization quality of the content features. Furthermore, since the quality of the content features of the target object is improved, the matching results of the content features of the target object and the collaborative features of the target user extracted using the first feature network can help achieve accurate recommendations.

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

[0086] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

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

[0088] Figure 2 A model structure diagram of an embodiment of the present application in a practical application is shown;

[0089] Figure 3 A flowchart of an embodiment of a recommended method is shown;

[0090] Figure 4 A schematic diagram of scene interaction in an actual application of an embodiment of the present application is shown;

[0091] Figure 5 A flowchart of an embodiment of a search method provided by the present application is shown;

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

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

[0094] Figure 8 A schematic diagram of the structure of an embodiment of a computing device provided by the present application is shown. DETAILED DESCRIPTION

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

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

[0097] The technical solution of the embodiment of the present application can be applied to recommendation scenarios of online systems that provide object interaction, such as e-commerce systems that provide object transactions.

[0098] Traditionally, in online systems that provide objects for users to interact with, such as e-commerce systems, decisions are usually made based on the current product and the historical interaction behavior of past users, such as the category, industry, and price of recently purchased products, to decide whether to recommend the current product to the user. However, since the latest released products do not have any historical behavior information, it is difficult to achieve accurate recommendations using traditional collaborative filtering algorithms.

[0099] In order to achieve accurate recommendation, the inventor has proposed the technical solution of the present application after some research. In the embodiment of the present application, a training data set is determined; wherein the training data set includes a first sample object, a second sample object and a sample user; a first association relationship is established between the sample user and the second sample object that has an interactive behavior with the sample user; a second association relationship is established between the first sample object and the second sample object that meets the first similarity condition with the first sample object; a third association relationship is established between the first sample object and the sample user based on the distribution of the second sample objects that meet the second similarity condition with the first sample object and have an interactive behavior with the sample user; and the user characteristics of the sample user, the second sample object and the sample user are combined. The object features and the relationship features representing the first association relationship are input into the first feature network; the object features of the first sample object, the relationship features representing the second association relationship, the relationship features representing the third association relationship, and the collaborative features of the sample user and the collaborative features of the second sample object generated by the first feature network are input into the second feature network; the first feature network and the second feature network are trained in combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; wherein the first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching results of the content features and the collaborative features are used to determine whether to recommend the target object to the target user. The second sample object can represent an object with historical interaction behaviors, and the first sample object can represent an object without historical interaction behaviors, so that the first feature network is trained in combination with the historical interaction information of the second sample object and the sample user, so that the first feature network can be used to extract the collaborative features containing the historical interaction information, and the second feature network is trained in combination with the collaborative features and the association relationship, so that the second feature network can consider the characteristics of the object itself and the characteristics of the user who may interact, so as to improve the content features of the extracted object and improve the characterization quality of the content features. Furthermore, since the quality of the content features of the target object is improved, the matching results of the content features of the target object and the collaborative features of the target user extracted using the first feature network can help achieve accurate recommendations.

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

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

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

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

[0104] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.

[0105] Figure 1 A flowchart of an embodiment of a model training method provided in the present application, the method may include the following steps:

[0106] 101: Determine the training data set.

[0107] The training data set includes a first sample object, a second sample object and a sample user.

[0108] The sample user may refer to a user who has an interactive behavior with the first sample object or the second sample object.

[0109] In an e-commerce scenario, a sample object may refer to a sample commodity. For example, the commodity that has interacted with the sample object within a predetermined historical period, such as the past 30 days, may be used as a sample object, and a certain number of users who have interacted with the sample object and whose number of interactions meets the interaction requirements may be used as sample users. According to training requirements, the sample object may be divided into a first predetermined number of first sample objects and a second predetermined number of second sample objects. When the embodiment of the present application is used in a new product (latest released object, no historical interaction) recommendation scenario, the second sample object may be considered an old product (an object with historical interaction), and the first sample object may be considered a new product.

[0110] In actual applications, the interactive behavior may refer to purchasing, browsing, collecting, and / or adding to cart, etc.

[0111] 102: Establish a first association relationship between the sample user and a second sample object that has an interactive behavior with the sample user.

[0112] 103: Establish a second association relationship between the first sample object and a second sample object that meets the first similarity condition with the first sample object. 104: Establish a third association relationship between the first sample object and the sample user based on the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user.

[0113] 105: Inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network;

[0114] 106: Inputting the object feature of the first sample object, the relationship feature representing the second association relationship, the relationship feature representing the third association relationship, the collaboration feature of the sample user generated by the first feature network, and the collaboration feature of the second sample object into the second feature network.

[0115] 107: Train the first feature network and the second feature network in combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object, respectively.

[0116] The first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching results of the content features and the collaborative features can be used to determine whether to recommend the target object to the target user.

[0117] In this embodiment, an association relationship between the first sample object and the second sample object is constructed based on object similarity, an association relationship between the second sample object and the sample user is constructed through historical interaction information between the second sample object and the sample user, and an association relationship between the first sample object and the sample user is constructed in combination with object similarity and the distribution of the second sample object, so as to obtain a first feature network and a second feature network through training, so that the first feature network can accurately extract the collaborative features of the user, and the second feature network can accurately extract the content features of the object, thereby improving the representation quality of the collaborative features and the content features. Since the quality of the content features of the target object is improved, the matching result of the content features of the target object and the collaborative features of the target user extracted using the first feature network can help achieve accurate recommendation.

[0118] In some embodiments, the method may further include: using an extraction network to extract object features of the first sample object from the object information of the first sample object, extract object features of the second sample object from the object information of the second sample object, and extract user features of the sample user from the user information of the sample user.

[0119] The object information of the sample object may include an image of the sample object, detailed information such as name, origin, price, etc., and associated merchant information such as one or more of name, industry, etc., that is, the object information may be represented in the form of image and / or text.

[0120] The user information of the sample user may include one or more attribute information of the sample user's ID (identification), age, or region. In an actual application, in order to simplify calculation, the user information may refer to the user ID.

[0121] Optionally, the extraction network, the first feature network, and the second feature network may be trained together. In combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object, respectively, training the first feature network and the second feature network may include: In combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object, respectively, training the extraction network, the first feature network, and the second feature network.

[0122] In some embodiments, respectively extracting object features of a first sample object, object features of a second sample object, and user features of a sample user using an extraction network may include: extracting object features of the first sample object and object features of the second sample object using a first sub-extraction network; and extracting user features of the sample user using a second sub-extraction network.

[0123] The extracted object features and user features may be in the form of feature vectors.

[0124] The second sub-extraction network can use the mapping matrix to extract user features of the sample users.

[0125] The first sub-extraction network can be composed of a frozen pre-trained encoder and a trainable content encoder composed of two fully connected layers, which extracts the object features of the first sample object and the object features of the second sample object from the object information of the first sample object. For example, the object feature X of the sample object I It can be expressed as follows:

[0126] (1)

[0127] Among them, V represents the output obtained by inputting the object information of the sample object into the pre-trained encoder, W1 and W2 represent the linear mapping matrices corresponding to the two fully connected layers respectively, b1 and b2 represent the bias items corresponding to the two fully connected layers respectively, (VW1+b1) represents the output after V is input into the first fully connected layer of the trainable content encoder, and δ(·) can represent the LeakyRelu (Leaky Rectified Linear Unit) function. Of course, the trainable content encoder can be composed of one fully connected layer or more than two fully connected layers, and this application is not limited to this. It should be noted that the first sub-extraction network and the second sub-extraction network can also be implemented using other machine learning models, and this application is not limited to this.

[0128] Among them, the above-mentioned first association relationship, second association relationship and third association relationship can be represented by feature form. In order to better characterize the association relationship, in some embodiments, the first feature network can be implemented as a graph convolution network. Graph Convolutional Network (GCN) is a deep learning model for image data. The principle of graph convolutional network mainly comes from traditional convolutional neural networks (CNN). CNN mainly processes image data and extracts local features of images by local receptive fields and weight sharing. The graph convolution network performs feature extraction on graph structure data by defining a method similar to convolution operation. The core idea of ​​the graph convolution network is to use the adjacency matrix to describe the topological structure of the graph, and gradually propagate and aggregate the information of the nodes through multi-layer graph convolution operations. In each layer of graph convolution operation, the weights of the neighbor nodes of the node and the edges between them are considered to update and aggregate the features of the nodes. In this way, GCN can learn low-dimensional representations of nodes in the graph, which can be used for downstream tasks such as node classification, link prediction, etc.

[0129] The above-mentioned inputting the user characteristics of the sample user, the object characteristics of the second sample object, and the relationship characteristics representing the first association relationship into the first feature network may include: taking the user characteristics of the sample user and the object characteristics of the second sample object as nodes to generate a first node feature matrix; constructing edges between the sample user and the second sample object according to the first association relationship between the sample user and the second sample object to generate a first adjacency matrix; and inputting the first node feature matrix and the first adjacency matrix into the first feature network.

[0130] That is, the first adjacency matrix can be used to represent the first association relationship. If there is a first association relationship between the sample user and the second sample object, the corresponding matrix item is 1, otherwise it is 0. Among them, the matrix item of the i-th row and j-th column in the first node feature matrix can represent the first association relationship between the i-th sample user and the j-th second sample object, and of course, it can also represent the first sample relationship between the i-th second sample object and the j-th sample user. This application does not specifically limit the reference to rows or columns.

[0131] In some embodiments, inputting user characteristics of sample users, object characteristics of second sample objects, and relationship characteristics representing the first association relationship into the first feature network may include: inputting user characteristics of sample users, object characteristics of second sample objects, and relationship characteristics representing the first association relationship into the first feature network, so as to use the first feature network to generate, for any second sample object, collaborative characteristics of the second sample object based on the object characteristics of the second sample object, user characteristics of sample users having a first association relationship with the second sample object, and relationship characteristics of the first association relationship, and to generate, for any sample user, collaborative characteristics of the sample user based on the user characteristics of the sample user, object characteristics of the first sample object having a first association relationship with the sample user, and relationship characteristics.

[0132] For example, the first feature network may be LightGCN (Light Graph Convolutional Network). The first feature network may generate the collaborative features of the second sample object and the collaborative features of the sample user according to the following formulas (2) and (3):

[0133] (2)

[0134] (3)

[0135] in, represents the object features of the second sample object p, represents the set of sample users that have interactive behaviors with the second sample object p, The user characteristics of the sample users who have interactive behaviors with the second sample object p, represents the user characteristics of sample user q, A second set of sample objects representing interactions with sample user q, The object features of the second sample object that has an interactive behavior with the sample user q, represents the collaborative features of sample users generated by the first feature network, Represents the collaborative features of the second sample object generated by the first feature network.

[0136] In some embodiments, establishing a second association relationship between a first sample object and a second sample object that satisfies a first similarity condition with the first sample object may include: for any first sample object, based on an object feature of the first sample object and an object feature of any second sample object, calculating a feature similarity between the first sample object and the second sample object; and selecting a first number of second sample objects to establish an association relationship with the first sample object in descending order of feature similarity.

[0137] For example, the feature similarity between the first sample object and the second sample object may be calculated using the following cosine similarity calculation formula (4):

[0138] (4)

[0139] in, That is, the feature similarity between the first sample object j and the second sample object k, represents the object features of the first sample object j, represents the transpose of the object features of the second sample object k, The length of the vector representing the object features of the first sample object j, The length of the vector representing the object features of the second sample object k.

[0140] Of course, other similarity calculation formulas may also be used to calculate the feature similarity between the first sample object and the second sample object, such as Euclidean distance, Pearson correlation coefficient, or Hatton distance, etc., which is not limited in the present application.

[0141] In some embodiments, establishing a third association relationship between sample users and first sample objects based on the distribution of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user may include: determining, for any first sample object and any sample user, a second number of second sample objects that meet the second similarity condition with the first sample object; determining a third number of second sample objects that have interactive behaviors with the sample user; determining a fourth number of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user; calculating point mutual information based on the probability of occurrence of the second number of second sample objects, the third number of second sample objects, and the fourth number of second sample objects in the training data set, respectively; and establishing a third association relationship between the first sample object and the sample user when the point mutual information is higher than a predetermined value.

[0142] For example, the point mutual information between the sample user m and the first sample object j can be calculated by referring to the following formula (5):

[0143] (5)

[0144] in, , ,

[0145] It can represent the number of sample objects in the training data set. It can represent the second sample object that has interactive behavior with the sample user m, may represent a second number of second sample objects that satisfy a second similarity condition with the first sample object j, That is, the probability of the second sample object that interacts with the sample user m appearing in the training data set, That is, the probability of occurrence of the second number of second sample objects that meet the second similarity condition with the first sample object j. It represents the occurrence probability of the second sample object that meets the second similarity condition with the first sample object j and has an interactive behavior with the sample user m in the training data set. Indicates a second sample object that meets the second similarity condition with the first sample object j and has an interactive behavior with the sample user m.

[0146] When the point mutual information PMI(m,j) is higher than a predetermined value, a third association relationship is established between the first sample object j and the sample user m.

[0147] The point mutual information mentioned above can combine the similarity between the first sample object and the second sample object and the interaction information between the second sample object and the sample user to establish a third association relationship between the first sample object and the sample user, which helps to improve the content characteristics of the first sample object that has no interaction with the sample user.

[0148] In order to better characterize the association relationship, in some embodiments, the first feature network can be implemented as a graph convolutional network, and the second feature network can be implemented as a graph convolutional network. Graph Convolutional Network (GCN) is a deep learning model for image data. The principle of graph convolutional network mainly comes from traditional convolutional neural networks (CNN). CNN mainly processes image data and extracts local features of images through local receptive fields and weight sharing. Graph convolutional network extracts features on graph structure data by defining a method similar to convolution operation. The core idea of ​​graph convolutional network is to use adjacency matrix to describe the topological structure of the graph, and gradually propagate and aggregate the information of nodes through multi-layer graph convolution operations. In each layer of graph convolution operation, the weights of the neighbor nodes of the node and the edges between them are considered to update and aggregate the features of the node. In this way, GCN can learn low-dimensional representations of nodes in the graph, which can be used for downstream tasks such as node classification, link prediction, etc.

[0149] In some embodiments, inputting the object features of the first sample object, the relationship features characterizing the second association relationship, the relationship features characterizing the third association relationship, and the collaborative features of the sample user and the collaborative features of the second sample object generated by the first feature network into the second feature network may include: using the object features of the first sample object as nodes to generate a second node feature matrix; using the collaborative features of the sample users generated by the first feature network as nodes to generate a third node feature matrix; using the collaborative features of the second sample object as nodes to generate a fourth node feature matrix; constructing edges between the first sample object and the second sample object according to the second association relationship between the first sample object and the second sample object to generate a first candidate adjacency matrix; constructing edges between the sample user and the first sample object according to the third association relationship between the sample user and the first sample object to generate a second candidate adjacency matrix; combining the first candidate adjacency matrix and the second candidate adjacency matrix to obtain a second adjacency matrix; and inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into the second feature network.

[0150] Wherein, if there is a second association relationship between the first sample object and the second sample object, the corresponding matrix item in the first candidate adjacency matrix is ​​1, otherwise it is 0. Wherein, for example, the matrix item in the mth row and nth column in the first candidate adjacency matrix can represent the second association relationship between the mth first sample object and the nth second sample object, and of course it can also represent the second association relationship between the mth second sample object and the nth first sample object. If there is a third association relationship between the sample user and the first sample object, the corresponding matrix item in the second candidate adjacency matrix is ​​1, otherwise it is 0. Wherein, for example, the matrix item in the mth row and nth column in the second candidate adjacency matrix can represent the third association relationship between the mth sample user and the nth first sample object, and of course it can also represent the second association relationship between the mth first sample object and the nth sample user. This application does not specifically limit the reference to rows or columns. The third node feature matrix can refer to the collaborative features of the sample users. , the fourth node feature matrix can refer to the collaborative features of the second sample object .

[0151] In addition, the first candidate adjacency matrix and the second candidate adjacency matrix can be combined according to the following formula (6) to obtain a second adjacency matrix:

[0152] (6)

[0153] in, represents the first candidate adjacency matrix, represents the second candidate adjacency matrix, represents the transpose of the second candidate adjacency matrix, Indicates that the matrix entries on the main diagonal are 1 and the rest of the matrix entries are 0 OK The identity matrix of the columns is given by the first candidate adjacency matrix , the second candidate adjacency matrix and the identity matrix Combine to get the second adjacency matrix , represents the number of sample objects, represents the number of sample users. The second adjacency matrix can be obtained by Line and Column composition.

[0154] In some embodiments, inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix, and the second adjacency matrix into the second feature network may include: inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix, and the second adjacency matrix into the second feature network, and performing feature processing operations in the intermediate layer in the second feature network to obtain candidate features of the first sample object and candidate features of the second sample object; in the output layer of the second feature network, fusing the candidate features of the first sample object and the candidate features of the second sample object output by multiple intermediate layers to obtain content features of the first sample object.

[0155] Optionally, the middle layer of the second feature network can perform feature processing operations according to the following formula (7).

[0156] (7)

[0157] in, Represents the second adjacency matrix The inverse matrix of the degree matrix is Representation and The identity matrix of the same dimensions, is the collaborative feature of the sample users , is the collaborative feature of the second sample object , Indicates The collaborative feature matrix of sample users output by the layer, Indicates The candidate features of the second sample object output by the layer, Indicates The candidate features of the first sample object output by the layer, represents the object features of the sample object, Indicates +1 layer outputs candidate features of sample users, Indicates +1 layer outputs the candidate features of the second sample object, Indicates +1 layer outputs candidate features for the first sample object.

[0158] In addition, in order to avoid the over-smoothing problem of the graph convolutional network, the collaborative feature matrix of the second sample object can be randomly set Or the collaborative feature matrix of sample users Some of the matrix entries are 0.

[0159] The output layer of the second feature network can fuse the candidate features of the first sample object and the candidate features of the second sample object output by multiple intermediate layers according to the following formulas (8) and (9) to obtain the content features of the first sample object:

[0160] (8)

[0161] Where M represents the number of layers of the second feature network. The candidate features of the first sample object output by each intermediate layer can be and the candidate features of the second sample object Perform fusion, such as addition, to obtain fusion features, and then average the fusion features of multiple intermediate layers to obtain candidate features of the first sample object .

[0162] (9)

[0163] in, , Represents the linear mapping matrices corresponding to the two fully connected layers, Represents the bias items corresponding to the two fully connected layers.

[0164] Of course, it should be noted that the first feature network and the second feature network may not be limited to being implemented using graph convolutional networks, but may also be implemented using convolutional neural networks (CNNs), fully connected networks (FCNs) or self-attention mechanisms, etc. This application does not limit this.

[0165] In some embodiments, in order to further improve the accuracy, the above-mentioned training labels of whether the sample user has interactive behaviors with the second sample object and the first sample object respectively, training the first feature network and the second feature network may include: combining the training labels of whether the sample user has interactive behaviors with the second sample object and the first sample object respectively, determining a triple consisting of the sample user, the first positive sample object that has interactive behaviors with the sample user, and the first negative sample object that has no interactive behaviors with the sample user, and a triple consisting of the sample user, the second positive sample object that has interactive behaviors with the sample user, and the second negative sample object that has no interactive behaviors with the sample user; calculating a first loss value using a first loss function according to the collaborative features or content features corresponding to the triple; calculating a second loss value using a second loss function according to the content features of the first sample object and the collaborative features of the second sample object that meets the third similarity condition with the first sample object; determining a target loss value according to the first loss value and the second loss value; and adjusting the model parameters corresponding to the first feature network and the second feature network respectively based on the target loss value.

[0166] Optionally, according to the first loss value and the second loss value, determining the target loss value may be to perform weighted fusion of the first loss value and the second loss value to obtain the target loss value. In practical applications, the target loss value may also be obtained by combining the L2 loss value. For example, the target loss value L may be determined according to the following formula (10):

[0167] (10)

[0168] in, represents the first loss value, represents the second loss value, represents the model parameters of the second feature network,

[0169] represents L2 regularization, where , γ and μ can represent weight coefficients.

[0170] The first loss value can be used to constrain the content features and collaboration features of the sample object to have the same impact on the target user, which helps to build the relationship between the sample user and the sample object.

[0171] In a practical application, the first loss value L R For example, it can be calculated according to the following first loss function formula (11):

[0172] (11)

[0174] in, represents the training data set, Represents the number of triplets in the training data set, middle Indicates Sample users, Indicates Sample users Positive sample objects with interactive behaviors, Indicates Sample users Negative sample objects without interactive behavior, , It can represent the weight coefficient, Represents a sample user The collaborative features of Indicates the prediction generated The transposed vector of the content features of the first positive sample object, Indicates the prediction generated The transposed vector of the content features of the first negative sample object, Indicates The transposed vector of the collaborative features of the second positive sample object, Indicates The transposed vector of the collaborative features of the second negative sample object.

[0175] The second loss function can be used to constrain the collaborative features and content features of the sample objects to remain consistent.

[0176] The second loss value L S For example, it can be calculated according to the following second loss function formula (12):

[0177] (12)

[0179] Represents the first sample object content features, Represents the first sample object the transposed vector of the collaborative features of the second sample object that meets the third similarity condition, represents the angle constant. Among them, if and Angle less than or equal to , then the calculated second loss value is 0.

[0180] Of course, the calculation method of the first loss value and the second loss value is not limited to the above calculation formula.

[0181] In addition, in some embodiments, a hybrid training method can be adopted, and sample objects and sample users are randomly selected from the training data set each time to improve the generalization ability, robustness and diversity of the second feature network, reduce the risk of overfitting, and improve the interpretability of the second feature network.

[0182] For ease of understanding, Figure 2 The model structure diagram of the embodiment of the present application in a practical application is shown. The model structure diagram includes an extraction network 201 and a dual-branch structure module 202 , and the dual-branch structure module 202 includes a first feature network 203 and a second feature network 204 .

[0183] The user information of the sample user and the object information of the sample object can be input into the extraction network 201. The extraction network 201 can use the embedding matrix to extract the user features of the sample user from the user information of the sample user to generate the user features X U The extraction network 201 can also use the frozen pre-trained encoder and the trainable content encoder composed of two fully connected layers to extract object features from the object information of the input sample object and generate object features X I Furthermore, the object feature of the second sample object and the user feature X of the sample user U Input the first feature network 203. In addition, according to the first association relationship between the sample user and the second sample object, an edge between the sample user and the second sample object can be constructed to generate a first adjacency matrix, and the first adjacency matrix can be input into the first feature network 203.

[0184] The first feature network 203 uses LightGCN to target the object features of the second sample object and the user features X of the sample user. U And the first adjacency matrix is ​​processed to generate the collaborative feature Z of the sample user U and the collaborative feature Z of the second sample object I The collaborative feature Z of the sample user U and the collaborative feature Z of the second sample object I It can be directly output or input to the second feature network 204 .

[0185] The object features of the first sample object are input into the second feature network 204. In addition, the feature similarity between the first sample object and the second sample object can be calculated, a second association relationship between the first sample object and the second sample object that meets the first similarity condition with the first sample object is established, and an edge between the first sample object and the second sample object is constructed according to the second association relationship between the first sample object and the second sample object to generate a first candidate adjacency matrix A. c, according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interactive behavior with the sample user, establish a third association relationship between the sample user and the first sample object, and according to the third association relationship between the sample user and the first sample object, construct an edge between the sample user and the first sample object to generate a second candidate adjacency matrix A p , the second adjacency matrix A is obtained by combining the first candidate adjacency matrix and the second candidate adjacency matrix PA The second feature network 204 is input.

[0186] The second feature network 204 can use the GCN module to input the object features of the first sample object, the second adjacency matrix A PA , sample user’s collaborative features Z U and the collaborative feature Z of the second sample object I Processing is performed to obtain the candidate features of the first sample object and the candidate features of the second sample object in each layer, and then fusion processing is performed to obtain the candidate features Q of the first sample object I , the candidate feature Q of the first sample object I Aggregate with the fully connected layer to obtain the content feature P of the first sample object I , output P I .

[0187] Then, a triplet consisting of the sample user, the positive sample object that has interaction with the sample user, and the negative sample object that has no interaction with the sample user is determined. U And content features P I , use the first loss function as shown in the above formula (11) to calculate the first loss value L R According to the content feature of the first sample object and the collaborative feature of the second sample object that satisfies the third similarity condition with the first sample object, the second loss value L is calculated using the second loss function as shown in the above formula (12): S ; According to the first loss value L R And the second loss value L S , combined with the L2 loss value, the target loss value is calculated according to the above formula (10), and based on the target loss value L, the model parameters corresponding to the first feature network and the second feature network are adjusted respectively.

[0188] Figure 3A flowchart of an embodiment of a recommended method provided by the present application. The technical solution of the embodiment of the present application can be applied to the server of an online system. The online system is usually composed of a user end, a client end and a server end. The user end and the client end are connected to the server end through a network. The network provides a medium for the communication link between the user end and the client end and the server end. The network can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0189] The client may be oriented to the object provider, operated by the object provider to publish objects, etc., and the user end may be oriented to the consumer, allowing the user to perform interactive behaviors such as object search, purchase, and browsing.

[0190] The client and user can interact with the server through the network to receive or send messages, etc. For example, the client can perceive the category selection operation and publishing operation of the object provider, and send the corresponding request to the server for the server to process accordingly; the user can perceive the interactive behavior performed by the user and send the corresponding interactive request to the server, and the server can process the interactive request and feedback the processing result to the user.

[0191] The client or user end may be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, version 5 of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The client or user end may be deployed in an electronic device and needs to rely on the device to run or some apps in the device to run, etc. For example, the electronic device may have a display screen and support information browsing, etc., such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, a desktop computer, a smart speaker, a smart watch, etc.

[0192] The above-mentioned server may include servers that provide various services, such as a server for background training that provides support for the model, and a server that processes information sent by a user or client.

[0193] It should be noted that the server can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be 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, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0194] Figure 3 The recommended method of the illustrated embodiment may include the following steps:

[0195] 301: Identify target users.

[0196] 302: Extracting collaborative features of the target user using the first feature network.

[0197] 303: Obtain content features of the target object extracted using the second feature network.

[0198] 304: Determine the matching degree between the target user and the target object based on the collaboration feature and the content feature.

[0199] 305: When the matching degree satisfies the matching condition, recommend the target object to the target user.

[0200] Among them, the first feature network uses the user characteristics of the sample user, the object characteristics of the second sample object and the relationship characteristics representing the first association relationship as input data, and the second feature network uses the object characteristics of the first sample object, the relationship characteristics representing the second association relationship and the relationship characteristics representing the third association relationship, as well as the collaborative characteristics of the sample user and the collaborative characteristics of the second sample object generated by the first feature network as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed according to whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed according to whether the first sample object and the second sample object meet the first similarity condition; the third association relationship is constructed according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interaction behaviors with the sample user.

[0201] It should be noted that the specific generation method of the first characteristic network and the second characteristic network can be seen in the corresponding embodiments above, and will not be repeated here.

[0202] Among them, the matching condition may, for example, refer to a matching degree greater than a matching threshold, etc. When the collaborative features of the target user and the content features of the target object are in vector form, the matching degree may, for example, refer to a vector distance, etc., which can be determined by calculating cosine similarity, Euclidean distance, Pearson correlation coefficient or Hatton distance, etc.

[0203] In this embodiment, the association relationship between the first sample object and the second sample object is constructed according to the object similarity, the association relationship between the second sample object and the sample user is constructed through the historical interaction information between the second sample object and the sample user, and the association relationship between the first sample object and the sample user is constructed in combination with the object similarity and the distribution of the second sample object, so as to obtain the first feature network and the second feature network through training, so that the first feature network can accurately extract the collaborative features of the target user, and the second feature network can accurately extract the content features of the target object, thereby improving the representation quality of the collaborative features and the content features, and then can accurately match the content features of the target object with the collaborative features of the target user, to help achieve accurate recommendation.

[0204] In some embodiments, the method may further include: extracting initial features of the target user using an extraction network based on user information of the target user. Extracting collaborative features of the target user using the first feature network may include: extracting collaborative features of the target user using the first feature network based on the initial features.

[0205] In some embodiments, there may be multiple implementations of determining the target user. As an optional method, the target user may be a target user that has successfully registered.

[0206] As another optional method, determining the target user may be determining the target user who enters the target page, wherein the target page may include a promotion page and the like.

[0207] As another optional manner, the target user may be a target user who is determined to perform a target behavior, and the target behavior may include a search behavior and the like.

[0208] In some embodiments, the method may further include: in response to a publishing event of the target object, extracting content features of the target object using a second feature network.

[0209] In some embodiments, there are multiple implementation methods for recommending a target object to a target user. As an optional method, recommendation prompt information of the target object may be sent to a user terminal of the target user.

[0210] As another optional method, the target object recommendation prompt information may be sent based on the communication account corresponding to the target user; for example, the target object recommendation prompt information may be sent to the target user in the form of a text message.

[0211] As another optional manner, when the target user performs a search behavior, a search result may be generated based on the target object and the search result may be sent to a user terminal of the target user.

[0212] The following is an introduction to the technical solution of this application by taking an actual application in an e-commerce scenario as an example. Figure 4 In the scene interaction diagram shown, the target user can request a promotion page from the server 402 through the user terminal 401, and the user terminal 401 can display the promotion page, indicating that the target user enters the promotion page; the promotion page can refer to a target page for product recommendations.

[0213] The product provider requests the server 402 to publish the product through the client 403, and the server 402 can use the second feature network to extract the content features of the product and save the content features.

[0214] After the target user enters the promotion page, the server 402 can use the first feature network to extract the target user's collaborative features. The first feature network and the second feature network can be pre-trained by the server 402, etc., and can also be trained by other training devices and deployed in the server 402, which is not limited in this application.

[0215] The server 402 can match the collaborative features of the target user with the content features of at least one recently released product, so as to determine the target product whose matching degree with the target user meets the matching conditions. The server 402 can send the product prompt information of the target product to the user 401, and the user 401 can display the product prompt information in the promotion page to achieve the purpose of recommending the target product to the target user.

[0216] In the embodiment of the present application, the first feature network can be used to accurately extract the collaborative features of the target user, and the second feature network can be used to accurately extract the content features of the target product, thereby improving the characterization quality of the collaborative features and the content features, and then accurately matching the content features of the target product with the collaborative features of the target user, helping to achieve accurate recommendations.

[0217] Figure 5 This is a flowchart of an embodiment of a search method provided by the present application. The technical solution of this embodiment can be applied to the server of an online system. The method may include the following steps:

[0218] 501: In response to a search request of a target user, determine a target object based on search information in the search request.

[0219] For example, the search information may be a search keyword input by a user, and the server may determine the target object based on the search keyword.

[0220] 502: Extracting collaborative features of the target user using the first feature network.

[0221] 503: Obtain content features of the target object extracted using the second feature network.

[0222] 504: Determine the matching degree between the target user and the target object based on the collaboration feature and the content feature.

[0223] 505: When the matching degree satisfies the matching condition, the target object is sent as a search result to the user end of the target user.

[0224] That is, only the target objects whose matching degree with the target user meets the matching conditions are taken as search results.

[0225] Among them, the first feature network uses the user characteristics of the sample user, the object characteristics of the second sample object and the relationship characteristics representing the first association relationship as input data, and the second feature network uses the object characteristics of the first sample object, the relationship characteristics representing the second association relationship and the relationship characteristics representing the third association relationship, as well as the collaborative characteristics of the sample user and the collaborative characteristics of the second sample object generated by the first feature network as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed according to whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed according to whether the first sample object and the second sample object meet the first similarity condition; the third association relationship is constructed according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interaction behaviors with the sample user.

[0226] It should be noted that the specific generation method of the first characteristic network and the second characteristic network can be seen in the corresponding embodiments above, and will not be repeated here.

[0227] In this embodiment, the server responds to the search request of the target user, determines the target object based on the search information in the search request, and uses the target object that meets the matching condition as the search result. Among them, the association relationship between the first sample object and the second sample object is constructed based on the object similarity, the association relationship between the second sample object and the sample user is constructed through the historical interaction information between the second sample object and the sample user, and the association relationship between the first sample object and the sample user is constructed in combination with the object similarity and the distribution of the second sample object, so as to train and obtain the first feature network and the second feature network accordingly, so that the first feature network can accurately extract the collaborative features of the target user, and the second feature network can accurately extract the content features of the target object, thereby improving the representation quality of the collaborative features and the content features, and then accurately matching the content features of the target object with the collaborative features of the target user, so that the search results can accurately match the user needs.

[0228] Figure 6 A schematic diagram of a structure of an embodiment of a model training device provided in an embodiment of the present application, wherein the method and device comprises:

[0229] A first determination module 601 is used to determine a training data set;

[0230] The training data set includes a first sample object, a second sample object and a sample user;

[0231] A first establishing module 602 is used to establish a first association relationship between a sample user and a second sample object that has an interactive behavior with the sample user;

[0232] The second establishing module 603 is used to establish a second association relationship between the first sample object and the second sample object that meets the first similarity condition with the first sample object; the third establishing module 604 is used to establish a third association relationship between the first sample object and the sample user according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user.

[0233] A first input module 605 is used to input the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network;

[0234] A second input module 606 is used to input the object feature of the first sample object, the relationship feature representing the second association relationship and the relationship feature representing the third association relationship, as well as the collaboration feature of the sample user generated by the first feature network and the collaboration feature of the second sample object into the second feature network;

[0235] The training module 607 is used to train the first feature network and the second feature network by combining the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively.

[0236] The first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching results of the content features and the collaborative features can be used to determine whether to recommend the target object to the target user.

[0237] In some embodiments, the device may also use an extraction network to extract object features of the first sample object from the object information of the first sample object, extract object features of the second sample object from the object information of the second sample object, and extract user features of the sample user from the user information of the sample user.

[0238] Optionally, the extraction network, the first feature network, and the second feature network may be trained together. The training module combines the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object, respectively, and training the first feature network and the second feature network may include: combining the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object, respectively, and training the extraction network, the first feature network, and the second feature network.

[0239] In some embodiments, the first feature network can be implemented as a graph convolutional network. The first input module inputs the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network, which may include: using the user features of the sample user and the object features of the second sample object as nodes to generate a first node feature matrix; constructing edges between the sample user and the second sample object according to the first association relationship between the sample user and the second sample object to generate a first adjacency matrix; and inputting the first node feature matrix and the first adjacency matrix into the first feature network.

[0240] In some embodiments, the first input module inputs user characteristics of sample users, object characteristics of second sample objects, and relationship characteristics representing the first association relationship into the first feature network, which may include: inputting user characteristics of sample users, object characteristics of second sample objects, and relationship characteristics representing the first association relationship into the first feature network, so as to use the first feature network to generate, for any second sample object, collaborative characteristics of the second sample object based on the object characteristics of the second sample object, user characteristics of sample users having a first association relationship with the second sample object, and relationship characteristics of the first association relationship, and to generate, for any sample user, collaborative characteristics of the sample user based on the user characteristics of the sample user, object characteristics of the first sample object having a first association relationship with the sample user, and relationship characteristics.

[0241] In some embodiments, the second establishing module establishing the second association relationship between the first sample object and the second sample object that meets the first similarity condition with the first sample object may include: for any first sample object, based on the object feature of the first sample object and the object feature of any second sample object, calculating the feature similarity between the first sample object and the second sample object; and selecting a first number of second sample objects to establish an association relationship with the first sample object in descending order of feature similarity.

[0242] In some embodiments, the third establishing module establishes a third association relationship between the sample user and the first sample object based on the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user, which may include: determining, for any first sample object and any sample user, a second number of second sample objects that meet the second similarity condition with the first sample object; determining a third number of second sample objects that have interactive behaviors with the sample user; determining a fourth number of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user; calculating the point mutual information based on the occurrence probabilities of the second number of second sample objects, the third number of second sample objects, and the fourth number of second sample objects in the training data set, respectively; and establishing the third association relationship between the first sample object and the sample user when the point mutual information is higher than a predetermined value.

[0243] In some embodiments, the second feature network may be a graph convolutional network.

[0244] The second input module inputs the object features of the first sample object, the relationship features characterizing the second association relationship, the relationship features characterizing the third association relationship, the collaborative features of the sample user generated by the first feature network, and the collaborative features of the second sample object into the second feature network, which may include: using the object features of the first sample object as nodes to generate a second node feature matrix; using the collaborative features of the sample users generated by the first feature network as nodes to generate a third node feature matrix; using the collaborative features of the second sample object as nodes to generate a fourth node feature matrix; constructing the edges between the first sample object and the second sample object according to the second association relationship between the first sample object and the second sample object to generate a first candidate adjacency matrix; constructing the edges between the sample user and the first sample object according to the third association relationship between the sample user and the first sample object to generate a second candidate adjacency matrix; combining the first candidate adjacency matrix and the second candidate adjacency matrix to obtain a second adjacency matrix; and inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix, and the second adjacency matrix into the second feature network.

[0245] Among them, inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into the second feature network may include: inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into the second feature network, and performing feature processing operations in the intermediate layer in the second feature network to obtain candidate features of the first sample object and candidate features of the second sample object; in the output layer of the second feature network, fusing the candidate features of the first sample object and the candidate features of the second sample object respectively output by multiple intermediate layers to obtain content features of the first sample object.

[0246] In some embodiments, in order to further improve the accuracy, the training module combines the training labels of whether the sample user has interactive behaviors with the second sample object and the first sample object respectively, and training the first feature network and the second feature network may include: combining the training labels of whether the sample user has interactive behaviors with the second sample object and the first sample object respectively, determining a triple consisting of the sample user, the first positive sample object that has interactive behaviors with the sample user, and the first negative sample object that has no interactive behaviors with the sample user, and a triple consisting of the sample user, the second positive sample object that has interactive behaviors with the sample user, and the second negative sample object that has no interactive behaviors with the sample user; calculating a first loss value using a first loss function according to the collaborative features or content features corresponding to the triple; calculating a second loss value using a second loss function according to the content features of the first sample object and the collaborative features of the second sample object that meets the third similarity condition with the first sample object; determining a target loss value according to the first loss value and the second loss value; and adjusting the model parameters corresponding to the first feature network and the second feature network respectively based on the target loss value.

[0247] Figure 6 The model training device can perform Figure 1 The implementation principle and technical effect of the model training method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the model training device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0248] Figure 7 A schematic diagram of a structure of an embodiment of a recommended device provided in an embodiment of the present application, the method device comprises:

[0249] The second determination module 701 is used to determine the target user;

[0250] An extraction module 702 is used to extract the collaborative features of the target user using the first feature network;

[0251] An acquisition module 703 is used to acquire content features of the target object extracted using the second feature network;

[0252] The third determination module 704 is used to determine the matching degree between the target user and the target object based on the collaboration feature and the content feature;

[0253] The recommendation module 705 is used to recommend the target object to the target user when the matching degree meets the matching condition.

[0254] Among them, the first feature network uses the user characteristics of the sample user, the object characteristics of the second sample object and the relationship characteristics representing the first association relationship as input data, and the second feature network uses the object characteristics of the first sample object, the relationship characteristics representing the second association relationship and the relationship characteristics representing the third association relationship, as well as the collaborative characteristics of the sample user and the collaborative characteristics of the second sample object generated by the first feature network as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed according to whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed according to whether the first sample object and the second sample object meet the first similarity condition; the third association relationship is constructed according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interaction behaviors with the sample user.

[0255] In some embodiments, the device may also extract initial features of the target user using an extraction network based on user information of the target user. The extraction module extracting collaborative features of the target user using the first feature network may include: extracting collaborative features of the target user using the first feature network based on the initial features.

[0256] In some embodiments, there may be multiple implementations of the second determination module determining the target user. As an optional method, the determined target user may be a target user determined to have successfully registered.

[0257] As another optional method, determining the target user may be determining the target user who enters the target page, wherein the target page may include a promotion page and the like.

[0258] As another optional manner, the target user may be a target user who is determined to perform a target behavior, and the target behavior may include a search behavior and the like.

[0259] In some embodiments, the apparatus may also be configured to extract content features of the target object using a second feature network in response to a publishing event of the target object.

[0260] In some embodiments, there are multiple implementation methods for the recommendation module to recommend the target object to the target user. As an optional method, recommendation prompt information of the target object may be sent to the user terminal of the target user.

[0261] As another optional method, the target object recommendation prompt information may be sent based on the communication account corresponding to the target user; for example, the target object recommendation prompt information may be sent to the target user in the form of a text message.

[0262] As another optional manner, when the target user performs a search behavior, the target object can be sent to the user terminal of the target user as a search result.

[0263] Figure 7 The recommended device can perform Figure 3 The implementation principle and technical effect of the recommendation method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the recommendation device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0264] The present application also provides a computing device, such as Figure 8 As shown, the device may include a storage component 801 and a processing component 802;

[0265] The storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component to implement the following Figure 1 The model training method described in the embodiment shown or Figure 3 The recommended method described in the embodiment shown or Figure 5 The search method described in the illustrated embodiment.

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

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

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

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

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

[0271] It should be noted that the above computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device.

[0272] It should be noted that the above computing device implements Figure 1 The model training method described in the embodiment shown or Figure 3 The recommended method described in the embodiment shown or Figure 5 In the case of the search method described in the illustrated embodiment, it can be a physical device or an elastic computing host provided by a cloud computing platform. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. Figure 1 The model training method described in the embodiment shown or Figure 3 The recommended method described in the embodiment shown or Figure 5 In the case of the search method described in the illustrated embodiment, it can be specifically implemented as an electronic device. The electronic device can refer to a device used by a user and having the computing, Internet access, communication and other functions required by the user, such as a mobile phone, tablet computer, personal computer, wearable device, etc.

[0273] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The model training method described in the embodiment shown or Figure 3 The recommended method described in the embodiment shown or Figure 5 The search method described in the illustrated embodiment. The computer-readable medium may be included in the electronic device described in the above embodiment; or it may exist independently without being assembled into the electronic device.

[0274] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium. When the computer program is executed by a computer, the computer program can achieve the above-mentioned Figure 1 The model training method described in the embodiment shown or Figure 3 The recommended method described in the embodiment shown or Figure 5 The search method described in the illustrated embodiment. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the system of the present application are executed.

[0275] In the above corresponding embodiments, the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

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

[0277] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0278] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0279] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A model training method, characterized in that: include: Determine a training data set; the training data set includes a first sample object, a second sample object and a sample user; Establishing a first association relationship between the sample user and a second sample object having an interactive behavior with the sample user; Establishing a second association relationship between the first sample object and a second sample object that satisfies a first similarity condition with the first sample object; Establishing a third association relationship between the first sample object and the sample user according to the distribution of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user; Inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into a first feature network to generate collaboration features of the sample user and collaboration features of the second sample object; Inputting the object feature of the first sample object, the relationship feature representing the second association relationship and the relationship feature representing the third association relationship, as well as the collaboration feature of the sample user and the collaboration feature of the second sample object generated by the first feature network into the second feature network; Training the first feature network and the second feature network in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; The first feature network is used to extract the collaborative features of the target user, and the second feature network is used to extract the content features of the target object; the matching result of the content features and the collaborative features is used to determine whether to recommend the target object to the target user.

2. The method according to claim 1, characterized in that Also includes: Using an extraction network, respectively extracting object features of the first sample object from the object information of the first sample object, extracting object features of the second sample object from the object information of the second sample object, and extracting user features of the sample user from the user information of the sample user; The training of the first feature network and the second feature network in combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively comprises: The extraction network, the first feature network and the second feature network are trained in combination with training labels indicating whether the sample user has interaction behaviors with the second sample object and the first sample object respectively.

3. The method according to claim 1, characterized in that The establishing of a second association relationship between the first sample object and a second sample object that satisfies a first similarity condition with the first sample object comprises: For any first sample object, based on the object feature of the first sample object and the object feature of any second sample object, calculate the feature similarity between the first sample object and the second sample object; A first number of second sample objects are selected in descending order of feature similarity to establish association relationships with the first sample objects.

4. The method according to claim 1, characterized in that: The establishing of a third association relationship between the first sample object and the sample user according to the distribution of the second sample objects that meet the second similarity condition with the first sample object and have interaction behaviors with the sample user includes: For any first sample object and any sample user, determine a second number of second sample objects that meet a second similarity condition with the first sample object; Determining a third number of second sample objects that have interactive behaviors with the sample user; Determine a fourth number of second sample objects that meet a second similarity condition with the first sample object and have interactive behaviors with the sample user; Calculating point mutual information according to the occurrence probabilities of the second number of second sample objects, the third number of second sample objects, and the fourth number of second sample objects in the training data set, respectively; When the point mutual information is higher than a predetermined value, a third association relationship is established between the first sample object and the sample user.

5. The method according to claim 1, characterized in that The first feature network is a graph convolutional network; The inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network includes: Using the user features of the sample users and the object features of the second sample objects as nodes, generating a first node feature matrix; According to the first association relationship between the sample user and the second sample object, construct an edge between the sample user and the second sample object to generate a first adjacency matrix; The first node feature matrix and the first adjacency matrix are input into the first feature network.

6. The method according to claim 1, characterized in that The second feature network is a graph convolutional network; The inputting the object feature of the first sample object, the relationship feature representing the second association relationship, the relationship feature representing the third association relationship, and the collaboration feature of the sample user and the collaboration feature of the second sample object generated by the first feature network into the second feature network comprises: Taking the object features of the first sample object as nodes, generating a second node feature matrix; Using the collaborative features of the sample users generated by the first feature network as nodes, generating a third node feature matrix; Using the collaborative features of the second sample object as nodes, generating a fourth node feature matrix; According to the second association relationship between the first sample object and the second sample object, construct an edge between the first sample object and the second sample object to generate a first candidate adjacency matrix; According to the third association relationship between the sample user and the first sample object, construct an edge between the sample user and the first sample object to generate a second candidate adjacency matrix; Combining the first candidate adjacency matrix and the second candidate adjacency matrix to obtain a second adjacency matrix; The second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix are input into a second feature network.

7. The method according to claim 1, characterized in that The training of the first feature network and the second feature network in combination with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively comprises: Combined with the training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively, determine a triple consisting of the sample user, a first positive sample object having interaction behaviors with the sample user, and a first negative sample object having no interaction behaviors with the sample user, and a triple consisting of the sample user, a second positive sample object having interaction behaviors with the sample user, and a second negative sample object having no interaction behaviors with the sample user; Calculating a first loss value using a first loss function according to the collaboration feature or content feature corresponding to the triple; Calculating a second loss value using a second loss function according to a content feature of the first sample object and a collaboration feature of a second sample object that satisfies a third similarity condition with the first sample object; Determining a target loss value according to the first loss value and the second loss value; Based on the target loss value, model parameters corresponding to the first feature network and the second feature network are adjusted respectively.

8. The method according to claim 2, characterized in that: The extracting the object features of the first sample object, the object features of the second sample object, and the user features of the sample user respectively by using the extraction network comprises: extracting object features of the first sample object and object features of the second sample object using a first sub-extraction network; The user features of the sample users are extracted using the second sub-extraction network.

9. The method according to claim 1, characterized in that: The inputting the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship into the first feature network includes: The user features of the sample users, the object features of the second sample objects, and the relationship features representing the first association relationship are input into a first feature network, so as to use the first feature network to generate, for any second sample object, collaborative features of the second sample object based on the object features of the second sample object, the user features of the sample users having a first association relationship with the second sample object, and the relationship features representing the first association relationship, and to generate, for any sample user, collaborative features of the sample user based on the user features of the sample user, the object features of the first sample object having a first association relationship with the sample user, and the relationship features.

10. The method according to claim 6, characterized in that The step of inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix, and the second adjacency matrix into the second feature network comprises: Inputting the second node feature matrix, the third node feature matrix, the fourth node feature matrix and the second adjacency matrix into a second feature network, and performing feature processing operations in an intermediate layer in the second feature network to obtain candidate features of the first sample object and candidate features of the second sample object; In the output layer of the second feature network, candidate features of the first sample object and candidate features of the second sample object respectively outputted by a plurality of intermediate layers are fused to obtain content features of the first sample object.

11. A recommendation method, characterized in that: include: Identify target users; Extracting collaborative features of the target user using a first feature network; Acquire content features of the target object extracted using the second feature network; Determining a matching degree between the target user and the target object based on the collaboration feature and the content feature; When the matching degree satisfies the matching condition, recommending the target object to the target user; The first feature network uses the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship as input data; the second feature network uses the object features of the first sample object, the relationship features representing the second association relationship, and the relationship features representing the third association relationship, as well as the collaboration features of the sample user and the collaboration features of the second sample object generated by the first feature network based on the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed based on whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed based on whether the first sample object and the second sample object meet the first similarity condition; The third association relationship is established according to the distribution of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user.

12. The method according to claim 11, characterized in that Also includes: Based on the user information of the target user, extracting initial features of the target user using an extraction network; The extracting the collaborative features of the target user by using the first feature network includes: Based on the initial features, a first feature network is used to extract collaborative features of the target user.

13. The method according to claim 11, characterized in that Determining the target user includes: Determine the target users who have successfully registered, entered the target page, or performed the target behavior.

14. The method according to claim 11, characterized in that Also includes: In response to a publishing event of a target object, content features of the target object are extracted using the second feature network.

15. The method according to claim 11, characterized in that The recommending the target object to the target user comprises: Sending recommendation prompt information of the target object to the user terminal of the target user; Alternatively, based on the communication account corresponding to the target user, the recommendation prompt information of the target object is sent; Alternatively, the target object is sent as a search result to a user terminal of the target user.

16. A search method, characterized in that: include: In response to a search request of a target user, determining a target object based on search information in the search request; Extracting collaborative features of the target user using a first feature network; Acquire content features of the target object extracted using a second feature network; Determining a matching degree between the target user and the target object based on the collaboration feature and the content feature; When the matching degree satisfies the matching condition, sending the target object as a search result to the user terminal of the target user; The first feature network uses the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship as input data; the second feature network uses the object features of the first sample object, the relationship features representing the second association relationship, and the relationship features representing the third association relationship, as well as the collaboration features of the sample user and the collaboration features of the second sample object generated by the first feature network based on the user features of the sample user, the object features of the second sample object, and the relationship features representing the first association relationship as input data, and is trained in combination with training labels of whether the sample user has interaction behaviors with the second sample object and the first sample object respectively; the first association relationship is constructed based on whether the sample user has interaction behaviors with the second sample object; the second association relationship is constructed based on whether the first sample object and the second sample object meet the first similarity condition; The third association relationship is established according to the distribution of second sample objects that meet the second similarity condition with the first sample object and have interactive behaviors with the sample user.

17. A computing device, characterized in that It includes a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the model training method as described in any one of claims 1 to 10 or the recommendation method as described in any one of claims 11 to 15 or the search method as described in claim 16.

18. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a computer, the model training method as described in any one of claims 1 to 10, the recommendation method as described in any one of claims 11 to 15, or the search method as described in claim 16 is implemented.

19. A computer program product, characterized in that It includes a computer program / instruction, which, when executed by a computer, implements the model training method as described in any one of claims 1 to 10, the recommendation method as described in any one of claims 11 to 15, or the search method as described in claim 16.