Object attribute tag determination method and device, equipment and storage medium
Determining object embedding representations through local subgraphs in heterogeneous information networks solves the problems of low flexibility and large computational load in the existing technology, and achieves efficient and lightweight object attribute label updates.
Patent Information
- Application Number
- CN202310305937.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-24
AI Technical Summary
When the heterogeneous information network changes, the existing technology has low flexibility in determining object attribute labels and needs to generate a new node sequence and update the embedded representation of all objects, resulting in a large amount of calculation and excessive storage space consumption.
Determine the embedded representation of the object through the local subgraph in the heterogeneous information network, use the structural information in the local subgraph to independently determine the embedded information of the object, reduce the number of nodes, improve the generation speed and flexibility, and only update parts when necessary Embedded representations of objects.
It reduces the calculation amount of object embedding representation, improves flexibility, avoids updating of all object embedding representations, reduces storage space consumption, and makes the method more lightweight.
Smart Images

Figure CN118690090A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a method, device, equipment and storage medium for determining an object attribute label. Background Art
[0002] In order to improve the recommendation effect of network resources, attribute labels may be set for objects, and network resources recommended to the objects may be determined according to the attribute labels of the objects.
[0003] In the related technology, by traversing heterogeneous network information, a node sequence including each node in the heterogeneous information network is generated. The determined node sequence is processed by a deep learning model to obtain the embedded representation corresponding to each object node included in the heterogeneous network node. The attribute label of the object can be determined based on the embedded representation corresponding to the object.
[0004] However, this method has low flexibility in determining the attribute labels of objects. When the heterogeneous information network changes, it is necessary to generate a new node sequence and update the embedding representations corresponding to all objects through the new node sequence. Summary of the invention
[0005] The embodiment of the present application provides a method, device, equipment and storage medium for determining an object attribute label. The method uses structural information in a heterogeneous information network to determine the embedded representation corresponding to the object, which helps to improve the flexibility of determining the embedded representation corresponding to the object through a heterogeneous information network. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a method for determining an object attribute label is provided, the method comprising:
[0007] Obtaining a heterogeneous information network to be used by a recommendation service; wherein the recommendation service is used to provide a network resource recommendation service for an object, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to represent that there is an interaction between the object corresponding to the object node and the network resource corresponding to the resource node;
[0008] Generate an embedded representation corresponding to a first object according to a local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first associated edge with the first object node; the embedded representation corresponding to the first object is used to represent feature information of the first object;
[0009] At least one attribute tag matching the first object is determined based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag; wherein the embedded representation corresponding to the attribute tag is used to represent the semantic feature information of the attribute tag.
[0010] According to one aspect of an embodiment of the present application, a device for determining an object attribute label is provided, the device comprising:
[0011] A network acquisition module, used to acquire a heterogeneous information network to be used by a recommendation service; wherein the recommendation service is used to provide a network resource recommendation service for an object, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to represent that there is an interaction between the object corresponding to the object node and the network resource corresponding to the resource node;
[0012] A representation determination module, configured to generate an embedded representation corresponding to the first object according to a local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first associated edge with the first object node; the embedded representation corresponding to the first object is used to represent feature information of the first object;
[0013] A label determination module is used to determine at least one attribute label matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute label; wherein the embedded representation corresponding to the attribute label is used to represent the semantic feature information of the attribute label.
[0014] According to one aspect of an embodiment of the present application, a computer device is provided, the computer device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-mentioned method for determining an object attribute label.
[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for determining an object attribute label.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for determining an object attribute label.
[0017] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0018] The embedded representation corresponding to the object is determined in a targeted manner according to the local subgraph corresponding to the object in the heterogeneous information network. Compared with the related art of randomly walking in the heterogeneous information network to determine the node sequence, and processing the node sequence to generate the embedded representation corresponding to all the object nodes included in the heterogeneous information network, this method uses the structural information in the heterogeneous information network of the recommendation system to independently determine the embedded information corresponding to the object.
[0019] On the one hand, this method reduces the number of nodes of the heterogeneous information network required in the process of determining the embedded representation corresponding to the object, which helps to reduce the amount of calculation in the process of determining the embedded representation corresponding to the object and improve the speed of generating the embedded representation corresponding to the object.
[0020] On the other hand, the flexibility of determining the embedded representation corresponding to the object is improved. When the heterogeneous information network changes, the local subgraphs corresponding to some objects in the heterogeneous information network can be used to update the embedded representations corresponding to some objects, thereby avoiding the situation where the embedded representations corresponding to all objects included in the heterogeneous information network are updated, reducing the situation where a large amount of storage space is consumed in determining the embedded representation corresponding to the object, and making the method of determining the embedded representation corresponding to the object more lightweight. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of a solution implementation environment provided by an exemplary embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for determining an object attribute label provided by an exemplary embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a correlation model structure provided by an exemplary embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a heterogeneous information network provided by an exemplary embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a local subgraph corresponding to a first object provided by an exemplary embodiment of the present application;
[0026] Figure 6 is a schematic diagram of an object-side semantic tower structure provided by an exemplary embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a tag-side semantic tower structure provided by an exemplary embodiment of the present application;
[0028] Figure 8 is a block diagram of a device for determining an object attribute label provided by an exemplary embodiment of the present application;
[0029] Fig. 9 It is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0031] Before introducing the embodiments of the present application, in order to facilitate the understanding of the present solution, the terms appearing in the present solution are explained as follows.
[0032] AI (Artificial Intelligence) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making.
[0033] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0034] ML (Machine Learning): It is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning and other technologies.
[0035] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart marketing and smart recommendations. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0036] MLC (Multi Label Classification): refers to the process of classifying a piece of data into one or more labels. For example, in the multi-classification of interest dimensions, an object can be labeled with multiple classifications, such as music lovers, sports enthusiasts, and people with high purchasing power.
[0037] HIN (Heterogeneous Information Network): refers to a directed graph containing multiple types of nodes or associated edges. Different nodes in a directed graph can be connected through associated edges. HIN has at least one node type and at least one edge type; each node contained in HIN belongs to a node type, and each associated edge contained in HIN belongs to an edge type.
[0038] ER (Embedding Representation): refers to the distributed representation of the input "object" generated based on the neural network model. The main function of the embedded representation is to convert the high-dimensional sparse vector of the original input object into a low-dimensional, dense vector, so that these low-dimensional, dense vectors can express certain characteristics of the object. At the same time, the distance between vectors can reflect the similarity between objects, which is convenient for downstream models, especially deep learning model processing.
[0039] VRL (Vertex Representation Learning) refers to the process of capturing the topological structure features of a graph, such as the relationship between nodes, and the relationship between subgraphs and edges. Node representation learning can also be called graph embedding representation.
[0040] Graph embedding is a method of mapping nodes in a graph into low-dimensional, dense embedded representations. Graph embedding algorithms can be roughly divided into three categories, namely matrix decomposition, random walk-based, and deep learning-based methods.
[0041] Among them, the graph embedding method based on random walk includes the following steps: first, a node sequence is obtained through random walk, and then the embedding representation corresponding to each node in the node sequence is determined.
[0042] The graph embedding method based on deep learning refers to the method of applying graph data to the deep learning model, also known as GNN (Graph Neural Networks), which is a method of learning node embedding representation through a deep learning model.
[0043] Semantic tags: Semantic tags are generally discrete text tags such as entities, word segments, topics, keywords, concepts, and categories. Semantic tags are attribute tags in claims, and semantic tags include text with clear meanings to represent the attribute categories of objects. Semantic tags correspond to attribute tags in claims.
[0044] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an exemplary embodiment of the present application. The solution implementation environment may include: a terminal device 10, a server 20 and a computer device 30.
[0045] The terminal device 10 includes but is not limited to mobile phones, tablet computers, intelligent voice interaction devices, game consoles, wearable devices, multimedia playback devices, personal computers (PCs), vehicle terminals, smart home appliances and other electronic devices. The client of the target application can be installed in the terminal device 10.
[0046] The type of target application includes but is not limited to at least one of the following: video applications, social applications, shopping applications, game applications, tool applications and other applications for business services. The type of target business service is related to the specific business of the target application and is not set here. Network resources include but are not limited to at least one of the following: video resources, commodity resources, audio resources, picture resources and text resources. For example, the target application is a video application that can provide services such as video playback, video search, and video recommendation for the object.
[0047] In the embodiment of the present application, the target application has a data transceiving function. For example, the object interacts with the target application so that the target application requests a video resource or a recommended video resource from the server 20 .
[0048] The server 20 is used to provide background services for the client of the target application in the terminal device 10. For example, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, but is not limited thereto.
[0049] The server 20 has at least data receiving and processing capabilities. Through the data receiving capability of the server 20, the terminal device 10 and the server 20 can communicate with each other through a network. The network can be a wired network or a wireless network. The server 20 receives a resource recommendation request sent by the terminal device 10 and sends the recommended network resources to the terminal device 10.
[0050] The computer device 30 includes but is not limited to personal computers, mobile phones, tablet computers, intelligent voice interaction devices, game consoles, wearable devices, multimedia playback devices, vehicle terminals, smart home appliances and other devices. The computer device 30 is used to determine the attribute label of the object corresponding to the terminal device 10. Optionally, a correlation model is run on the computer device 30. The computer device determines the matching degree between the object and the candidate attribute label through the correlation model. That is, the computer device 30 determines the attribute label that matches at least one object respectively through the correlation model.
[0051] The computer device 30 sends the matching tag of the object to the server 20, and the server 20 recommends a suitable network resource for the object based on the matching attribute tag of the object. For example, when the server 20 receives a network resource recommendation request sent by the target application client in the terminal device 10, the server 20 selects at least one recommended network resource from at least one candidate network resource based on the matching attribute tag of the object. The server 20 sends the recommended network resource to the terminal device 10.
[0052] In some embodiments, the computer device 30 may be a server 20 , or may be other devices.
[0053] In one example, the computer device 30 determines a matching attribute tag for the object in advance, and sends the matching attribute tag of the object to the server 20, which stores the matching attribute tag of the object. Upon receiving a network resource recommendation request sent by the terminal device 10, the server 20 determines at least one recommended network resource based on the matching attribute tag of the stored object.
[0054] In another example, upon receiving a network resource recommendation request sent by the terminal device 10, the server 20 sends an object attribute tag determination request to the computer device 30, and the computer device 30 determines the attribute tag matching the object in response to the object attribute tag determination request. The computer device 30 sends the attribute tag matching the object to the server 20. The server 20 determines at least one recommended network resource based on the received matching attribute tag of the object, and sends the at least one recommended network resource to the terminal device 10.
[0055] Figure 3 It is a schematic diagram of a correlation model structure provided by an exemplary embodiment of the present application.
[0056] The correlation model includes an object-side semantic tower, a label-side semantic tower and a matching layer; wherein the object-side semantic tower is used to determine the embedded representation corresponding to the object, the label-side semantic tower is used to determine the embedded representation corresponding to at least one candidate label, and the matching layer is used to calculate the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate label.
[0057] The application scenarios of the solution provided in this application include at least one of the following:
[0058] Network resource recommendation scenario. By determining matching attribute tags for objects in the client, the server can recommend appropriate network resources for the objects based on the matching attribute tags of the objects. This method can help objects efficiently select highly relevant network resources from a large number of network resources. Types of network resource recommendations include but are not limited to: video recommendations, product recommendations, audio recommendations, news recommendations, etc.
[0059] Please refer to Figure 2 , which shows a flow chart of a method for determining an object attribute label provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 The computer device 30 in the implementation environment of the scheme shown. The method may include at least one of the following steps (210-230):
[0060] Step 210, obtaining a heterogeneous information network required for the recommendation service; wherein the recommendation service is used to provide a network resource recommendation service for an object, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to represent the existence of an interaction between the object corresponding to the object node and the network resource corresponding to the resource node.
[0061] In some embodiments, the heterogeneous information network used by the recommendation service is used to record the interactive behavior of at least one object with respect to network resources. For the convenience of description, the heterogeneous information network is used below to represent the heterogeneous information network used by the recommendation service. Optionally, the heterogeneous information network is constructed and generated based on the interactive behaviors of multiple objects corresponding to the target application and the network resources. For a detailed description of the process, please refer to the following embodiments.
[0062] In some embodiments, the interactive behavior between an object and a network resource can be understood as the object performing a click operation, a play operation, a download operation, etc. on a certain network resource.
[0063] In some embodiments, an object refers to a user of a target application in a terminal device. It should be noted that the object and the user in this embodiment have the same meaning, and the two words can be replaced under general conditions. In some embodiments, a network resource refers to a resource that a recommendation service can recommend to an object. The types of network resources include, but are not limited to, at least one of the following: multimedia resources such as video resources, music resources, picture resources, and text resources. For example, a recommendation service is used to recommend music to an object, and the network resources include multiple music resources.
[0064] In some embodiments, the heterogeneous information network includes at least two types of nodes and an associated edge for connecting any two nodes. Optionally, the heterogeneous information network includes object nodes, resource nodes, and a first associated edge between the object and resource nodes.
[0065] In some embodiments, the object node corresponds to the object of the recommendation service; the resource node corresponds to the network resource in the recommendation service. Optionally, one object node corresponds to one object, one resource node corresponds to one network resource, and the heterogeneous information network does not include repeated object nodes or resource nodes.
[0066] In some embodiments, the first association edge is used to connect an object node and a resource node. Optionally, the first association edge can represent the existence of an interactive relationship between the object and the first network resource; wherein the first object refers to the object corresponding to the object node connected by the first association edge, and the first network resource refers to the network resource corresponding to the resource node connected by the first association edge. Optionally, the interactive relationship can be understood as the process of the object accessing the network resource, that is, the object clicking and the network resource responding.
[0067] In some embodiments, there is only one first association edge between the same object node and the same resource node. If there is no interaction relationship between an object and a network resource, there is no first association edge between the object node corresponding to the object and the resource node corresponding to the network resource.
[0068] In some embodiments, the first association edge records the interaction time, which refers to the time when the object interacts with the network resource. For example, a first association edge 1 connects object node 1 and resource node 1, and the interaction time recorded on the first association edge 1 is used to represent: when the object corresponding to object node 1 accesses the network resource corresponding to resource node 1.
[0069] Optionally, if an object interacts with the same network resource multiple times (such as the object watches a video multiple times), the first association edge between the object node of the object and the resource node of the network resource records the time when the object most recently interacted with the network resource (that is, the maximum value of the interaction times corresponding to the multiple visits).
[0070] Figure 4 It is a schematic diagram of a heterogeneous information network provided by an exemplary embodiment of the present application.
[0071] The heterogeneous information network 400 includes an object node 410 , a resource node 420 , and a first association edge 430 between the object node 410 and the resource node 420 .
[0072] In some embodiments, in addition to object nodes and resource nodes, the heterogeneous information network also includes: other types of nodes, and other types of associated edges except the first associated edges. For related content, please refer to the following introduction.
[0073] In some embodiments, the computer device constructs a heterogeneous information network based on the interactive behavior of at least one object. Among them, U represents the object node set, V represents the resource node set, and E∈U×V represents the interactive relationship between the object and the network resources. (u, v)∈E, where nodes u∈U and v∈V, represent an interactive relationship between object u and video node v, that is, (u, v)∈E represents the first association edge between object node u and resource node v. Continuously, the heterogeneous information network also includes the following types of nodes: node set A i , i∈{1,…,n} represents the i-th resource attribute category of network resources. Node set B i , i∈{1,…,m} represents the i-th object attribute category of the object. Edge set i∈{1,…,n}, represents the resource node set V and the i-th resource attribute category A i The associated edge set. i∈{1,…,m}, represents the object node set U and the i-th object attribute category B i The associated edge set. For details not described above, please refer to the following introduction.
[0074] Step 220, generating an embedded representation corresponding to the first object based on the local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first association edge with the first object node; the embedded representation corresponding to the first object is used to characterize the feature information of the first object.
[0075] In some embodiments, the first object in the heterogeneous information network refers to an object for which an attribute label needs to be determined. The heterogeneous information network includes a first object node corresponding to the first object. Optionally, a first association edge exists between the first object node and at least one resource node in the heterogeneous information network.
[0076] Optionally, the computer device needs to generate a matching attribute label for an object corresponding to an object node newly added to the heterogeneous information network, or the computer device needs to regularly update the attribute labels of objects corresponding to object nodes in the heterogeneous information network.
[0077] In some embodiments, the first object node corresponding to the first object refers to an object node representing the first object in a heterogeneous information network.
[0078] In some embodiments, the local subgraph corresponding to the first object refers to a partial network structure related to the first object in a heterogeneous information network. Optionally, the local subgraph corresponding to the first object includes all nodes and associated edges related to the first object in the heterogeneous information network. All nodes related to the first object can be understood as all nodes in the heterogeneous information network that have associated edges (e.g., first associated edges) with the first object node, and nodes indirectly related to the first object node. For example, for a resource node a with a first associated edge for the first object node, a node with an associated edge with the resource node a can be understood as a node related to the first object node.
[0079] In some embodiments, the local subgraph corresponding to the first object is part of a heterogeneous information network. Optionally, the heterogeneous information network includes: a first object node, at least one first associated edge connected to the first object node, and at least one resource node having a first associated edge with the first object node.
[0080] Figure 5 It is a schematic diagram of a local subgraph corresponding to a first object provided by an exemplary embodiment of the present application.
[0081] The local subgraph 500 corresponding to the first object includes a first object node 510 , a first resource node 521 and a second resource node 523 .
[0082] In some embodiments, the embedded representation corresponding to the first object is used to represent feature information of the first object. Optionally, the embedded representation corresponding to the first object is used to represent attribute features of the first object. Optionally, the embedded representation corresponding to the first object is used to represent resource features of network resources historically accessed by the first object. Optionally, the embedded representation corresponding to the first object is used to represent mixed features of at least one information related to the first object. Optionally, the feature information is related to the node type in the local subgraph corresponding to the first object used in the process of determining the embedded representation corresponding to the first object. For the specific content of this process, please refer to the embodiments below.
[0083] The embedded representation corresponding to the first object can represent the network resource selection preference of the first object, so as to assign a suitable attribute label to the first object through the embedded representation corresponding to the first object. For the specific steps of the computer device determining the embedded representation corresponding to the first object according to the local subgraph, please refer to the following introduction.
[0084] Step 230, determining at least one attribute tag matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag; wherein the embedded representation corresponding to the attribute tag is used to represent the semantic feature information of the attribute tag.
[0085] In some embodiments, the attribute tag is used to briefly summarize the attributes of the object. Optionally, the attribute tag type is pre-set. Optionally, at least one candidate attribute tag belongs to the same attribute category, and the first object can match multiple candidate attribute tags.
[0086] For example, the attribute labels are obtained by dividing the object's interest dimension, attribute label 1 is "music lover", attribute label 2 is "sports lover", and attribute label 3 is "people with high spending power"; a first object corresponds to multiple attribute labels, and the attribute labels matched by the first object include: attribute label 1 and attribute label 2.
[0087] In some embodiments, the embedded representation corresponding to the candidate attribute tag is used to represent the feature information of the candidate attribute tag. The embedded representations corresponding to different candidate attribute tags are not completely the same. Please refer to the following embodiment for the method of determining the embedded representation corresponding to the candidate attribute tag.
[0088] In some embodiments, the embedded representation corresponding to the candidate attribute label and the embedded representation corresponding to the first object belong to the same embedding space, that is, the dimension of the embedded representation corresponding to the candidate attribute label is the same as the dimension of the embedded representation corresponding to the first object. The correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the candidate attribute label can be determined based on the spatial similarity between the embedded representation corresponding to the first object and the embedded representation corresponding to the candidate attribute label.
[0089] Optionally, the correlation model includes a double-tower structure, which can ensure that the embedded representation corresponding to the object and the embedded representation corresponding to the attribute label belong to the same embedding space. In some embodiments, the correlation is used to reflect the similarity between the two embedded representations.
[0090] In some embodiments, the higher the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the candidate attribute tag, the better the match between the first object and the candidate attribute tag, that is, the candidate attribute tag can represent the preference of the first object. The lower the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the candidate attribute tag, the worse the match between the first object and the candidate attribute tag.
[0091] In some embodiments, the computer device determines the correlation between the first object and the attribute label according to the embedded representation corresponding to the first object and the embedded representation of the attribute label, including: calculating the cosine value between the embedded representation corresponding to the first object and the embedded representation of the attribute label; the computer device determines the correlation between the first object and the attribute label according to the cosine value. Optionally, a larger cosine value indicates a greater correlation between the first object and the attribute label, and a smaller cosine value indicates a greater difference between the first object and the attribute label.
[0092] In some embodiments, a computer device determines at least one attribute tag that matches the first object based on a correlation between an embedded representation corresponding to the first object and embedded representations corresponding to at least one candidate attribute tag, including: if the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the candidate attribute tag is greater than or equal to a correlation threshold, determining the candidate attribute tag as the attribute tag that matches the first object.
[0093] The correlation threshold is used to filter the attribute tag that matches the object from at least one candidate attribute tag. Optionally, the value of the correlation threshold is preset. The specific value of the correlation threshold is set according to the actual situation, and this application does not limit it here.
[0094] In some embodiments, the computer device determines at least one attribute tag matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag, including: the computer device selects the first n candidate attribute tags with the highest correlation between the embedded representation and the embedded representation corresponding to the first object from the at least one candidate attribute tag, and determines the above n candidate attribute tags as matching attribute tags for the first object, where n is a positive integer. For example, n is equal to 3.
[0095] The goal of this method is to select candidate attribute labels from the set L = {l1,…,l k}, a series of relevant attribute labels l∈{l1,…,l k Specifically, this method establishes an object node u∈U and a semantic label l∈{l1,…,l k} correlation model to achieve this goal.
[0096] In some embodiments, the computer device determines the embedded representation corresponding to the first object through the correlation model, and calculates the correlation between the embedded representation corresponding to the first object and the embedded representation of at least one candidate attribute tag. Optionally, the correlation model also includes a matching layer, which is used to determine the correlation similarity between the embedded representation corresponding to the object and the embedded representation corresponding to at least one candidate attribute tag.
[0097] In some embodiments, the matching layer object in the correlation model retrieves an embedded representation that has a higher correlation with the embedded representation corresponding to the first object from the embedded representations corresponding to at least one candidate attribute label. Optionally, the matching layer includes a vector retrieval tool (such as Annoy), which determines the embedded representations corresponding to at least one candidate attribute label adjacent to the embedded representation corresponding to the first object in the embedding space, and calculates the correlation between the embedded representations corresponding to the first object and at least one candidate attribute label. The embedding space can be understood as a matrix space or a vector space corresponding to the embedded representation.
[0098] By mapping the embedding representation corresponding to the object and the embedding representation corresponding to at least one candidate attribute label respectively into the same embedding space, it helps to reduce the computational complexity of the process of determining the attribute label matching the object.
[0099] In one example, for a video recommendation service, a computer device obtains a heterogeneous information network of the video recommendation service. Optionally, the heterogeneous information network includes: object nodes, nodes corresponding to video resources, and a first association edge for characterizing the interactive relationship between the object node and the resource node; the computer device determines the embedded representation corresponding to the first object based on the local subgraph corresponding to the first object in the heterogeneous information network; the computer device determines at least one matching attribute label of the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute label. So that the video recommendation service can subsequently recommend corresponding video resources for the first object based on the matching attribute label of the first object.
[0100] In summary, the embedding representation corresponding to the object is determined based on the local subgraph corresponding to the object in the heterogeneous information network. Compared with the related art of performing random walks in the heterogeneous information network to determine the node sequence; processing the node sequence to generate the embedding representations corresponding to all the objects included in the heterogeneous information network, this method uses the structural information in the heterogeneous information network of the recommendation system to determine the embedding information corresponding to the object.
[0101] On the one hand, in the process of determining the embedded representation corresponding to an object, fewer nodes are needed, which helps to reduce the amount of computation in the process of determining the embedded representation corresponding to the object and improve the speed of determining the embedded representation corresponding to the object.
[0102] On the other hand, when the heterogeneous information network changes, the computer device re-determines the embedded representations corresponding to some objects based on the local subgraphs corresponding to some objects, without updating the embedded representations corresponding to all objects. This improves the flexibility of determining the embedded representations corresponding to objects, alleviates the problem of consuming a large amount of storage space in the process of determining the embedded representations corresponding to objects, and makes the method of determining the embedded representations corresponding to objects more lightweight.
[0103] The following describes a method for determining an embedded representation corresponding to a first object through several implementations.
[0104] First, several methods for determining the embedded representation corresponding to the first object are briefly described.
[0105] Example 1: A computer device determines an embedded representation corresponding to a first object based on a resource node in a local subgraph.
[0106] Example 2: The computer device determines the embedded representation corresponding to the first object according to the resource nodes and resource attribute nodes in the local subgraph.
[0107] Example 3: The computer device determines the embedded representation corresponding to the first object according to the resource nodes and the object attribute nodes in the local subgraph.
[0108] Example 4: The computer device determines the embedded representation corresponding to the first object according to the resource nodes, resource attribute nodes, and object attribute nodes in the local subgraph.
[0109] The above four methods for determining the embedded representation corresponding to the first object are introduced below through several embodiments. For the terms not explained in the above four examples and the processes not introduced in detail, please refer to the embodiments below.
[0110] Example 1: Determine an embedded representation corresponding to a first object according to a resource node in a local subgraph.
[0111] In some embodiments, a computer device generates an embedded representation corresponding to a first object based on a local subgraph corresponding to the first object in a heterogeneous information network, including: the computer device generates a resource sequence based on at least one resource node in the local subgraph that has a first association edge with the first object node; the computer device generates an embedded representation corresponding to the resource sequence; wherein the embedded representation corresponding to the resource sequence is used to represent feature information of at least one network resource that interacts with the first object; the computer device generates an embedded representation corresponding to the first object based on the embedded representation corresponding to the resource sequence.
[0112] In some embodiments, the resource sequence includes: at least one resource node having an associated edge with the first object node in the local subgraph. Optionally, the local subgraph includes all nodes in the heterogeneous information network that have an associated edge with the first object node, that is, the local subgraph includes all resource nodes that have a first associated edge with the first object node. In this case, the resource sequence can be understood as including all resource nodes in the local subgraph.
[0113] In some embodiments, in order to reduce the computational pressure of the correlation model, the resource sequence can include at most y resource nodes, where y is a positive integer. If the total number of resource nodes in the local subgraph is greater than y, the computer device selects y resource nodes from the multiple resource nodes included in the local subgraph.
[0114] Optionally, y is a positive integer. For example, y is equal to any integer between [10, 20]. It should be noted that the specific value of y is determined according to business requirements and is not limited in this application.
[0115] Optionally, the computer device determines the y resource nodes included in the resource subsequence according to the first association edges respectively corresponding to the multiple resource nodes in the local subgraph. For example, the computer device determines y first association edges from the multiple first association edges according to the interaction moments respectively recorded by the multiple first association edges corresponding to the first object node; the computer device uses the resource nodes connected by the above y first association edges as y resource nodes, and generates a resource sequence according to the above y resource nodes.
[0116] In some embodiments, the computer device determines y first associated edges based on the interaction moments recorded by multiple first associated edges included in the local subgraph, including: the computer device uses the first y first associated edges whose interaction moments are closest to the first moment as the y first associated edges.
[0117] In some embodiments, the first moment is any moment in the process of determining the embedded representation corresponding to the first object, and the first moment can be understood as the current moment. That is, in the above method, the resource nodes corresponding to the y network resources recently accessed by the first object are selected, and the resource sequence is generated based on the y resource nodes.
[0118] In some embodiments, there is an arrangement order between the multiple resource nodes included in the resource sequence. Optionally, the arrangement order between the multiple resource nodes included in the resource sequence is related to the interactive behavior of the first object. For the specific content of this process, please refer to the following embodiment.
[0119] In some embodiments, a computer device determines an embedded representation of a resource sequence through a machine learning model. For details of this process, please refer to the embodiments below.
[0120] It should be understood that a heterogeneous information network refers to a directed graph with different node types. A computer device obtains a resource sequence based on a local subgraph by extracting a local subgraph from the heterogeneous information network and searching for resource nodes in the local subgraph.
[0121] It can also be implemented by a computer device accessing the behavior information of the first object. In some embodiments, the computer device determines to generate a resource sequence based on the behavior information of the object. The behavior information of the object includes at least one network resource that the object has accessed. For example, in the case where the network resource is a video resource, the behavior information can be extracted from the historical playback record of the object. Optionally, the computer device determines the resource node corresponding to the at least one network resource in the heterogeneous information network based on the at least one network resource included in the behavior information, and generates a resource sequence based on the at least one resource node obtained.
[0122] Through the above method, the local subgraph corresponding to the object is used to determine the resource sequence, and the resource sequence is used to participate in the embedded representation corresponding to the object; on the one hand, in the process of determining the embedded representation corresponding to the object, only the resource nodes corresponding to the network resources that interact with the object are used, and the number of resource nodes can also be controlled, which reduces the computational complexity of determining the embedded representation corresponding to the object, reduces the interference of other irrelevant network nodes in the heterogeneous information network in the process of determining the embedded representation, and helps to improve the accuracy of determining the embedded representation corresponding to the object.
[0123] On the other hand, the embedded representation corresponding to the object is determined based on the historical access resources of the object (obtained through interactive behavior), so that the same object can correspond to different embedded representations at different times. This method allows the attribute labels of the object matched by the embedded representation corresponding to the object to be updated in time as the interactive behavior between the object and the network resources changes, thereby helping to improve the real-time performance of the recommended network resources determined by the attribute labels matching the object.
[0124] The following describes a method for determining a resource sequence through several embodiments.
[0125] Since the interests of the object are not fixed, the types and properties of the network resources accessed by the object at different times are not exactly the same. According to the order in which the object interacts with at least one network resource, the arrangement order of multiple network resources in the resource sequence is determined, so that the resource sequence can reflect the changes in the object's interests.
[0126] In some embodiments, a computer device generates a resource sequence based on at least one resource node having a first association edge with a first object node in a local subgraph, including: the computer device determines, for each resource node among the at least one resource node having a first association edge with the first object node, an arrangement order of the resource nodes in the resource sequence based on an interaction time recorded on the first association edge between the resource node and the first object node; the computer device arranges the at least one resource node having a first association edge with the first object node according to their respective corresponding arrangement orders to generate a resource sequence.
[0127] In some embodiments, the first association edge between the first object node and the resource node included in the local subgraph records the interaction time between the first object and the resource corresponding to the resource node. In the case where there are multiple interactions between the first object node and a resource node, the first association edge between the first object node and the first resource node records the latest interaction time.
[0128] In some embodiments, a computer device determines the arrangement order of resource nodes in a resource sequence based on the interaction time recorded on the first association edge between the resource node and the first object node, including: the computer device obtains the interaction time recorded on each first association edge connected to the first object node, and sorts at least one resource node according to the interaction time recorded on the first association edge.
[0129] Optionally, the computer device sorts at least one resource node according to the interaction time from early to late to obtain a resource sequence. For example, the interaction time corresponding to resource node 1 is 12:00:01, the interaction time corresponding to resource node 2 is 12:05:03, and the interaction time corresponding to resource node 3 is 11:30:45. Resource node 1, resource node 2, and resource node 3 are sorted according to the interaction time from early to late, and the obtained resource sequence is (resource node 3, resource node 1, resource node 2).
[0130] Optionally, the computer device sorts at least one resource node according to the interaction time from late to early to obtain a resource sequence. For example, the interaction time corresponding to resource node 4 is 10:00:10, the interaction time corresponding to resource node 2 is 10:11:03, and the interaction time corresponding to resource node 3 is 10:30:45. Resource node 1, resource node 2, and resource node 3 are sorted according to the interaction time from late to early, and the obtained resource sequence is (resource node 3, resource node 2, resource node 1).
[0131] Optionally, the network result used in the process of determining the embedded representation corresponding to the first object through the resource sequence has an attention mechanism, which can arrange the order of different resource nodes in the resource sequence, determine the connection between each resource node, or affect the weight of each resource node in the process of determining the embedded representation corresponding to the first object. For a detailed introduction to this process, please refer to the next embodiment.
[0132] By determining the order of resource nodes in the resource sequence at the interaction time, the resource nodes corresponding to different interaction times play different roles in the process of determining the embedded representation corresponding to the resource sequence, which helps to improve the expression ability of the embedded representation corresponding to the determined resource sequence for the network resources recently accessed by the object.
[0133] In some embodiments, after determining the resource sequence, the computer device generates an embedded representation of the resource sequence through the semantic tower on the object side. The following describes the generation process of the embedded representation corresponding to the resource sequence through several embodiments.
[0134] In some embodiments, a computer device generates an embedded representation corresponding to a resource sequence, including: the computer device determines identification information corresponding to at least one resource node included in the resource sequence; wherein the identification information corresponding to the resource node is used to identify the network resource corresponding to the resource node; the computer device inputs the identification information corresponding to at least one resource node into the object-side semantic tower; wherein the object-side semantic tower is a neural network for generating an embedded representation corresponding to a first object; the computer device encodes the identification information corresponding to at least one resource node through the resource embedding layer of the object-side semantic tower to obtain a vector representation of the resource sequence; the computer device encodes the vector representation of the resource sequence through the neural network layer in the object-side semantic tower to obtain an embedded representation corresponding to the resource sequence.
[0135] In some embodiments, different network resources have different registration codes in the registration table, and the registration codes can be used as identification information of the resource node corresponding to the network resource. Optionally, different resource nodes correspond to different identification information.
[0136] For the specific structure of the semantic tower on the object side, please refer to the above introduction and will not be elaborated here.
[0137] In some embodiments, the dimensions of the identification information corresponding to at least one resource node in the resource sequence are the same, so the object-side semantic tower may have only one resource input layer. The computer device transmits the identification information corresponding to at least one resource node included in the resource sequence to the resource input layer of the object-side semantic tower.
[0138] In some embodiments, the computer device determines the vector representation of the resource sequence according to the identification information corresponding to each resource node through the resource embedding layer of the object-side semantic tower; the computer device encodes the vector representation of the resource sequence through the neural network layer in the object-side semantic tower to obtain the embedded representation corresponding to the resource sequence.
[0139] In some embodiments, the computer device determines the embedded representation of the resource node according to the identification information of the resource node through the resource embedding layer of the object-side semantic tower. The embedded representation of at least one resource node is encoded through the neural network layer of the object-side semantic tower to obtain the embedded representation corresponding to the resource sequence.
[0140] Optionally, the neural network layer of the semantic tower on the object side arranges the embedded representations corresponding to at least one resource node according to the arrangement order of the resource nodes in the resource sequence, and encodes the embedded representations corresponding to each arranged resource node to obtain the embedded representation corresponding to the resource sequence. That is, in the process of generating the embedded representation corresponding to the resource sequence by the resource embedding layer, in addition to considering the embedded representations corresponding to each resource node, the spatial position of each resource node in the resource sequence is also considered. This method helps to improve the expression ability of the embedded representation corresponding to the resource sequence to the resource sequence.
[0141] In some embodiments, the neural network layer in the object-side semantic tower belongs to a neural network with memory capability such as RNN (Recurrent Neural Network). Optionally, the neural network layer in the object-side semantic tower includes but is not limited to at least one of the following: LSTM (Long Short Term Memory) layer, BiLSTM (Bi-directional Long Short-Term Memory) layer, GRU (Gate Recurrent Unit) layer.
[0142] Optionally, the neural network layer in the object-side semantic tower can determine the influence of each resource node in the resource sequence on the embedded representation corresponding to the resource sequence according to the arrangement order of different resource nodes in the resource sequence, so that the resource node most recently accessed by the first object in the resource sequence has a greater influence on the embedded representation generation process corresponding to the resource sequence, and the resource node corresponding to the resource node accessed earlier by the first object in the resource sequence has a smaller influence on the embedded representation generation process corresponding to the resource sequence.
[0143] In one example, the network resource is a video resource, and the computer device generates a video resource sequence according to the local subgraph, wherein the video resource sequence includes a resource node corresponding to at least one video resource; the computer device transmits the identification information corresponding to each video resource in the video resource sequence to the object-side semantic tower through the resource input layer of the object-side semantic tower; the computer device determines the embedded representation corresponding to each video resource node in the video resource sequence through the resource embedding layer of the object-side semantic tower; the computer device encodes the embedded representations corresponding to different video resource nodes through the neural network layer in the object-side semantic tower to obtain the embedded representation of the video resource sequence. Optionally, the computer device uses the embedded representation determined as the video resource sequence as the embedded representation of the first object.
[0144] Example 2: The computer device determines the embedded representation corresponding to the first object according to the resource nodes and resource attribute nodes in the local subgraph.
[0145] In some embodiments, the local subgraph also includes: at least one resource attribute node connected to at least one resource node in the local subgraph through a second association edge; wherein, at least one resource node in the local subgraph refers to a resource node connected to the first object node through a first association edge, and the second association edge is used to characterize that the network resource corresponding to the resource node has the resource attribute corresponding to the resource attribute node; the method also includes: the computer device generates a resource attribute sequence corresponding to at least one resource attribute category according to the local subgraph; wherein the resource attribute sequence includes a resource attribute node having a second association edge with at least one resource node in the resource sequence; the computer device generates an embedded representation corresponding to the resource attribute according to the resource attribute sequence corresponding to at least one resource attribute category; the computer device generates an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence, including: the computer device generates an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute.
[0146] In some embodiments, resource attributes are used to characterize attribute information of network resources.
[0147] In order to enhance the description capability of resource attributes to network resources, different resource attribute types may be set, and each resource attribute category includes at least one resource attribute. Optionally, the resource attributes included in the same resource attribute category are obtained by dividing through a certain dimension.
[0148] For example, if network resources are audio resources, they can be divided into the following categories from the audio style dimension: pure music attributes, pop music attributes, rock music attributes, and metal music attributes, etc.; from the audio source dimension: film and television soundtrack attributes, independent music attributes, etc.; from the soundtrack instrument dimension: string instrument attributes, wind instrument attributes, etc.
[0149] In some embodiments, the same network resource has multiple resource attributes. Optionally, there are at least two resource attributes belonging to the same resource category. For example, in the previous example, a certain audio resource can have string instrument attributes and wind instrument attributes at the same time.
[0150] For another example, the network resource is a video resource; from the dimension of video actors, we can get: actor a's actor attribute, actor b's actor attribute, actor c's actor attribute. If the actors in a video resource include actor a and actor c, then the video resource has actor a's actor attribute and actor c's actor attribute in the dimension of video actors.
[0151] Optionally, the resource attributes of the network resources are pre-set. For example, when the versioner lists the network resources, it will upload the resource attributes of the network resources. In the process of building a heterogeneous information network, the computer device obtains the resource attributes corresponding to each network resource; the computer device improves the heterogeneous information network according to the resource attributes of the network resources. For example, based on resource attribute 1 corresponding to network resource 1, the computer device generates a second association edge between the resource node corresponding to network resource 1 and the resource attribute node corresponding to resource attribute 1.
[0152] In some embodiments, the heterogeneous information network further includes a resource attribute node corresponding to the resource attribute and a second association edge, wherein different resource attribute nodes correspond to different resource attributes. The second association edge is used to connect resource attribute nodes corresponding to at least one resource attribute of the network resource corresponding to the resource node.
[0153] In some embodiments, the local subgraph includes: a first object node, a first association edge, a resource node having a first association edge with the first object node, a second association edge, and at least one resource attribute node connected to at least one resource node having a first association edge with the first object node through the second association edge. In other words, the local subgraph corresponding to the first object is used not only to record the network resources accessed by the first object, but also to record at least one resource attribute corresponding to the network resources accessed by the first object.
[0154] In some embodiments, the second association edge is used to connect a resource node and a resource attribute node. Optionally, one second association edge is used to connect one resource node and one resource attribute node. Optionally, there is only one second association edge between one resource node and one resource attribute node; one resource node can have a second association edge with multiple resource attribute nodes, that is, the network resources corresponding to the resource node can have different resource attributes.
[0155] In some embodiments, the resource attribute sequences corresponding to the resource attribute categories respectively include at least one resource attribute node, and a second association edge exists between the resource attribute node included in the resource attribute sequence and at least one resource node included in the resource sequence.
[0156] In some embodiments, the computer device generates a resource attribute sequence corresponding to at least one resource attribute category according to the local subgraph; and the computer device determines the embedded representation corresponding to the resource attribute through the object-side semantic tower. For details of this process, please refer to the following embodiments.
[0157] In some embodiments, the dimension of the embedded representation corresponding to the resource sequence is the same as the dimension of the embedded representation corresponding to the resource attribute. In this way, the processing logic of the computer device according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute can be simplified, thereby improving the speed of generating the embedded representation corresponding to the first object.
[0158] It should be noted that the present application does not limit the order of determining the embedded representations corresponding to the resource sequence and the embedded representations corresponding to the resource attributes.
[0159] In one example, the computer device first determines the embedded representation corresponding to the resource sequence, and then determines the embedded representation corresponding to the resource attribute. In another example, the computer device first determines the embedded representation corresponding to the resource attribute, and then determines the embedded representation corresponding to the resource sequence. In another example, the computer device simultaneously determines the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute.
[0160] Optionally, the process of the computer device generating the embedded representation of the object side according to the local subgraph is implemented by the object side semantic tower. The computer device transmits the local subgraph to the object side semantic tower, and the object side semantic tower generates the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute sequence according to the local subgraph, and generates the embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute sequence. For the specific content of this process, please refer to the following embodiment.
[0161] The network resources are described using resource attributes of multiple resource attribute categories, so that the network resources can be described more comprehensively through resource attributes. The resource attributes of the network resources can be understood as auxiliary information used in the process of determining the embedded representation of the object. The local subgraph corresponding to the object includes: nodes corresponding to the network resources and resource attributes, respectively, so that there is more auxiliary information in the process of determining the embedded representation corresponding to the object according to the local subgraph, which helps to improve the description ability of the embedded representation corresponding to the object for the interests and hobbies of the object, improve the richness of the embedded representation corresponding to the object, and improve the network resource recommendation effect of the recommendation service.
[0162] The following describes a method for generating a resource attribute sequence through several embodiments.
[0163] In some embodiments, a computer device generates a resource attribute sequence corresponding to at least one resource attribute category based on a local subgraph, including: for a first resource attribute category in at least one resource attribute category, the computer device determines, based on a second association edge in the local subgraph, at least one first resource attribute node corresponding to each resource node in the resource sequence in the first resource attribute category; the computer device generates a resource attribute sequence corresponding to the first resource attribute category based on at least one first resource attribute node corresponding to each resource node in the resource sequence.
[0164] In some embodiments, for the first resource node in a resource sequence, the computer device determines at least one first resource attribute node that belongs to the first resource attribute category and has a second association edge with the first resource node; the computer device obtains a first resource attribute subsequence corresponding to the first resource node based on the at least one first resource attribute node; the computer device uses the first resource subsequence to replace the first resource node in the resource sequence; after the computer device uses the first resource attribute subsequences corresponding to each resource node to replace the corresponding resource nodes in the resource sequence, a resource attribute sequence belonging to the first resource attribute category is obtained.
[0165] In the case where the resource sequence includes all object nodes that have a first association edge between the local subgraph and the first object node, the above process can be understood as the computer device obtaining all resource attribute nodes included in the local subgraph; the computer device classifies all attribute nodes in the local subgraph to obtain a resource attribute sequence corresponding to at least one resource attribute category.
[0166] Optionally, the resource attribute sequence corresponding to the resource attribute category does not include repeated resource attribute nodes. For example, the resource attribute sequence corresponding to a certain resource attribute category includes: resource attribute node 1, resource attribute node 2, and resource attribute node 1 and resource attribute node 2 are different resource attribute nodes.
[0167] Optionally, the resource attribute sequence corresponding to the resource attribute category includes repeated resource attribute nodes. For example, the resource attribute sequence corresponding to a certain resource attribute category includes: resource attribute node 1, resource attribute node 3 and resource attribute node 1, and resource attribute node 1 and resource attribute node 3 are different resource attribute nodes. By including multiple identical resource attribute nodes in the resource attribute sequence, it is equivalent to giving independent weights to different resource attribute nodes. In this way, different resource attribute nodes have different degrees of influence on the embedding representation generation process corresponding to the resource attribute.
[0168] Since the resource attributes corresponding to the resource attribute nodes of different resource attribute categories are expressed in different ways, resource attribute sequences corresponding to different resource attribute categories are generated, so that the subsequent steps can select appropriate methods to encode the resource attribute sequences corresponding to different resource attribute categories according to the characteristics of different resource attribute types, which helps to improve the accuracy of the embedded representations corresponding to different resource attribute categories.
[0169] The following describes the process of determining the embedded representation of resource attributes through several implementations.
[0170] In some embodiments, a computer device generates an embedded representation corresponding to a resource attribute based on a resource attribute sequence corresponding to at least one resource attribute category, including: for a first resource attribute category in at least one resource attribute category, the computer device determines identification information corresponding to at least one resource attribute node included in the resource attribute sequence corresponding to the first resource attribute category; wherein the identification information corresponding to the resource attribute node is used to identify the resource attribute corresponding to the resource attribute node; the computer device encodes the identification information corresponding to at least one resource attribute node included in the resource attribute sequence corresponding to the first resource attribute category through a resource attribute embedding layer corresponding to the first resource attribute category in an object-side semantic tower, and obtains an embedded representation corresponding to the first resource attribute category; wherein the object-side semantic tower is used to generate an embedded representation corresponding to the first object; the computer device encodes the embedded representation corresponding to at least one resource attribute class through a resource attribute pooling layer in the object-side semantic tower, and obtains an embedded representation corresponding to the resource attribute.
[0171] In some embodiments, the resource attribute corresponding to the resource attribute node is represented in text form. The identification information corresponding to the resource attribute node is composed of the identity identifier corresponding to at least one independent word obtained by splitting the resource attribute in text form. Optionally, the identity identifier corresponding to the independent word includes at least one character (such as a binary character).
[0172] In some embodiments, the object-side semantic tower includes a network layer for generating embedded representations corresponding to resource attributes. Optionally, the network layer for generating embedded representations corresponding to resource attributes includes at least one input layer corresponding to each attribute resource category, at least one resource attribute embedding layer for determining the embedded representation corresponding to the attribute resource category, and a resource attribute pooling layer for processing the embedded representations corresponding to different resource attribute categories.
[0173] As can be seen from the above introduction, resource attributes are in text form, and the identification information of resource attributes is related to at least one word segmentation that constitutes the resource attribute. The identification information corresponding to resource attribute nodes of different resource attribute categories is represented in different ways. The object-side semantic tower includes resource attribute input layers corresponding to different resource attribute categories to adapt to the representation of identification information of different resource attribute categories. For example, resource attribute category corresponds to resource attribute input layer 1, and resource attribute category 2 corresponds to resource attribute input layer 2.
[0174] In some embodiments, data is transmitted between the resource attribute input layer corresponding to each resource attribute category and the resource attribute embedding layer corresponding to each resource attribute category.
[0175] For example, a computer device inputs identification information corresponding to at least one resource attribute node included in a resource attribute sequence corresponding to attribute resource category 1 into a resource attribute input layer 1 corresponding to attribute resource category 1; the resource attribute input layer 1 transmits the identification information corresponding to the above-mentioned at least one resource attribute node to a resource attribute embedding layer 1 corresponding to resource attribute category 1; the resource attribute embedding layer 1 encodes the identification information corresponding to the above-mentioned at least one resource attribute node to obtain an embedded representation corresponding to attribute resource category 1.
[0176] In one embodiment, there is data transmission between the resource attribute embedding layer corresponding to each resource attribute category and the global pooling layer used to generate the embedding representation corresponding to the resource attribute. Optionally, the global pooling layer is a global average pooling layer.
[0177] Optionally, the global pooling layer includes at least one fully connected layer, and the embedded representations corresponding to multiple resource attribute categories are processed by the at least one fully connected layer to obtain the embedded representations corresponding to the resource attributes.
[0178] For example, network resources have k resource attribute categories, where k is a positive integer. The k resource attribute embedding layers corresponding to the k resource attribute categories respectively pass the corresponding embedded representations of the resource attribute categories obtained by respective encoding processing to the global pooling layer; the global pooling layer processes the corresponding embedded representations of the k resource attribute categories respectively to obtain the embedded representations of the resource attributes.
[0179] If a resource attribute sequence corresponding to a certain resource attribute category includes a large number of resource attribute nodes, in order to reduce the amount of computation in the process of generating the embedded representation corresponding to the resource attribute, the computer device selects x resource attribute nodes from the resource attribute sequence corresponding to the resource attribute category by random sampling; the computer device inputs the identification information corresponding to the x resource attribute nodes into the resource attribute input layer corresponding to the resource attribute category in the object-side semantic tower, where x is a positive integer.
[0180] In this way, the amount of identification information corresponding to the resource attribute nodes that the object-side semantic tower needs to process is reduced, which helps to improve the speed of determining the embedded representation corresponding to the resource attribute, and further improves the speed of determining the attribute label matching the object.
[0181] In some embodiments, in order to further reduce the amount of computation in the process of determining the embedded representation corresponding to the resource attribute, the computer device selects at least one resource attribute category from multiple resource attribute categories, and the computer device uses the object-side semantic tower to determine the embedded representation corresponding to the at least one selected resource category, and encodes the embedded representation corresponding to the at least one selected resource category through the global pooling layer to obtain the embedded representation corresponding to the resource attribute.
[0182] Optionally, the computer device selects a resource attribute sequence corresponding to at least one resource attribute category according to the number of resource attribute nodes included in the resource attribute sequences corresponding to the resource attribute categories. For example, the computer device uses the resource attribute sequence including the first t resource attribute sequences with the smallest resource attribute nodes as the target resource attribute sequence; the computer device selects the resource attribute categories corresponding to the t target resource attribute sequences, where t is a positive integer. In this case, the computer device uses the object-side semantic tower to determine the embedded representation corresponding to the resource attribute according to the above t target resource attribute sequences.
[0183] The resource attribute sequence contains a small number of resource attribute nodes, which to a certain extent can indicate that the object has a high degree of interest in the resource attributes of interest in this resource attribute category, that is, multiple resource nodes in the local subgraph correspond to the same resource attribute nodes in the resource attribute sequence.
[0184] Using a resource attribute sequence containing a small number of resource attribute nodes to determine the embedding representation corresponding to the resource attribute helps to improve the description capability of the embedding representation corresponding to the resource attribute for the object of greater interest, and improves the relevance of the object's matching label with the resource attributes of greater interest to the object, thereby helping to improve the recommendation effect of the recommendation service.
[0185] By setting different input layers and embedding layers for different resource attribute categories in the object-side semantic tower in the above manner, it is possible to determine the embedding representations corresponding to each resource attribute category according to the characteristics of the identification information corresponding to the resource attribute nodes in different resource attribute categories, thereby improving the accuracy of the embedding representations corresponding to the resource attribute categories.
[0186] The following describes the process of generating the embedded representation corresponding to the first object through several embodiments.
[0187] In some embodiments, a computer device generates an embedded representation corresponding to a first object based on the embedded representation corresponding to a resource sequence and the embedded representation corresponding to a resource attribute, including: the computer device splices the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute through a splicing layer of an object semantic tower to obtain a first spliced embedded representation; the computer device encodes the first spliced embedded representation through a representation layer in an object-side semantic tower to obtain an embedded representation corresponding to the first object.
[0188] In the case where the local subgraph includes resource nodes and resource attribute nodes, the computer device can determine the embedded representations corresponding to the resource nodes and resource attribute nodes respectively, and generate the embedded representation corresponding to the first object through the embedded representations corresponding to the resource nodes and resource attribute nodes. This method provides more reference information for the generation process of the embedded representation corresponding to the first object, which helps to improve the accuracy of the determined embedded representation corresponding to the first object.
[0189] In some embodiments, the object-side semantic tower includes: a network layer for generating embedded representations corresponding to resource sequences and a network layer for generating embedded representations corresponding to resource attributes.
[0190] Optionally, the network layer for generating the embedded representation corresponding to the resource sequence includes: a resource input layer, an embedding layer for determining the embedded representation corresponding to the resource node, and a neural network layer for determining the embedded representation corresponding to the resource sequence.
[0191] Optionally, the network layer for generating embedded representations corresponding to resource attributes includes: a resource attribute input layer corresponding to at least one resource attribute category, at least one embedding layer for determining the embedded representations corresponding to the resource attribute categories, and a global pooling layer (of resource attributes) for encoding the embedded representations corresponding to at least one resource attribute category.
[0192] In some embodiments, the object-side semantic tower further includes a splicing layer and a representation layer, wherein the splicing layer of the object-side semantics is used to splice different types of embedded representations. Optionally, the different types of embedded representations include: embedded representations corresponding to resource sequences and embedded representations corresponding to resource attributes.
[0193] In some embodiments, there is data transmission between the splicing layer and the neural network layer of the semantic tower on the object side, and there is data transmission between the splicing layer and the fully connected layer of resource attributes on the object side. The neural network layer transmits the embedded representation corresponding to the resource sequence to the splicing layer of the semantic tower on the object side; the fully connected layer of resource attributes transmits the embedded representation corresponding to the resource attributes to the splicing layer of the semantic tower on the object side.
[0194] In some embodiments, the computer device splices the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute through the splicing layer of the object semantic tower to obtain a first spliced embedded representation; the computer device encodes the first spliced embedded representation through the representation layer in the object-side semantic tower to obtain the embedded representation corresponding to the first object.
[0195] Optionally, the first concatenated embedded representation includes an embedded representation corresponding to the source sequence and an embedded representation corresponding to the resource attribute.
[0196] The computer device determines at least one resource node corresponding to each network resource that interacts with the object, and at least one resource attribute node corresponding to each of the resource nodes; the computer device determines the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute, and generates the embedded representation corresponding to the object through the two embedded representations. This method helps to improve the ability of the embedded representation corresponding to the object to describe the interaction between the object and the network resources. In the actual business process, the attribute label of the object is determined by the above method, so that the attribute label of the object can be flexibly changed according to the change of the interactive behavior between the object and the network resource, helping the recommendation service to adaptively select the network resources recommended to the object according to the attribute label corresponding to the object.
[0197] Example 3: The computer device determines the embedded representation corresponding to the first object according to the resource nodes and the object attribute nodes in the local subgraph.
[0198] In some embodiments, the local subgraph also includes object attribute nodes, and in the process of determining the corresponding embedded representation of the object, the object attribute nodes are also needed. The process is described below through several embodiments.
[0199] In some embodiments, the local subgraph also includes: at least one object attribute node having a third association edge with the first object node; wherein the third association edge is used to represent that the object corresponding to the object node has the object attribute corresponding to the object attribute node; the method also includes: the computer device generates object attribute nodes corresponding to at least one object attribute category according to the local subgraph; wherein the object attribute sequence includes at least one resource attribute node having a third association edge with the first object node; the computer device generates an embedded representation corresponding to the object attribute according to the object attribute sequence corresponding to at least one object attribute category; the computer device generates an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence, including: the computer device generates an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the object attribute.
[0200] In some embodiments, object attributes refer to attribute information possessed by an object. Optionally, object attributes can be divided into multiple object attribute categories. For example, the object attribute categories include at least one of the following: object age, object gender, object region, and object interest field. In some embodiments, object attributes are obtained by the object filling in the object by its own choice. Optionally, the object attributes are filled in by the object when registering an object account or editing personal information in the target application.
[0201] It should be noted that the object attributes used in this application are obtained with full authorization of the object, and the object attributes are only used to determine the embedded representation corresponding to the object and are not used for other purposes.
[0202] In some embodiments, the heterogeneous information network corresponding to the first object includes an object attribute node, and the object attribute node corresponds to an object attribute. Optionally, a third association edge may exist between the object attribute node and the object node, and the third association edge indicates that the object corresponding to the object node has the object attribute corresponding to the object attribute node.
[0203] Since the local subgraph includes all nodes related to the first object node, the local subgraph includes all object attribute nodes that have a third association edge with the first object node.
[0204] The object attribute sequences corresponding to the object attribute categories are similar to the introduction of the resource attribute sequences corresponding to the resource attribute categories in the above text. Please refer to the above embodiments for details, which will not be described in detail here.
[0205] By including the object's node property in the local subgraph, auxiliary information is added to the process of determining the embedded representation corresponding to the object, which helps to improve the richness of the embedded representation corresponding to the determined object. At the same time, through the above method, the embedded representation corresponding to the object is not only related to the object's interactive behavior in accessing network resources, but also related to the characteristics of the object itself, which helps to improve the description ability of the embedded representation corresponding to the object and enriches the diversity of attribute labels obtained according to the embedded representation corresponding to the object.
[0206] The following describes a method for determining an embedded representation corresponding to an object attribute sequence through several embodiments.
[0207] In some embodiments, a computer device generates an embedded representation corresponding to an object attribute based on an object attribute sequence corresponding to at least one object attribute category, including: for a first object attribute category in at least one object attribute category, the computer device determines identification information corresponding to at least one object attribute node included in the object attribute sequence corresponding to the first object attribute category; the identification information corresponding to the object attribute node is used to identify the object attribute corresponding to the object attribute node; the computer device encodes the identity of at least one object attribute node through an object attribute embedding layer corresponding to the first object attribute category in an object-side semantic tower to obtain an embedding vector for the first object attribute category; wherein the object-side semantic tower is used to generate an embedded representation corresponding to the first object attribute category; the computer device encodes the embedded representation corresponding to at least one object attribute category through an object attribute pooling layer in the object-side semantic tower to obtain an embedded representation corresponding to the object attribute.
[0208] In some embodiments, the computer device processes the corresponding object attribute sequence for at least one object attribute category through a feature learning network to obtain embedding representations corresponding to different object attribute categories. Optionally, the object-side semantic tower includes an input layer corresponding to at least one object attribute category, an embedding layer corresponding to at least one object attribute category, and a global pooling layer (of object attributes).
[0209] The computer device encodes the embedded representations corresponding to different object attribute categories through the global pooling layer of the object attributes in the object-side semantic tower to obtain the embedded representations corresponding to the object attributes.
[0210] Determining the embedded representation of object attributes through the embedded representations corresponding to different object attribute categories helps to improve the expression ability of the embedded representation of object attributes for each object attribute category.
[0211] In some embodiments, a computer device generates an embedded representation corresponding to a first object based on the embedded representation corresponding to a resource sequence and the embedded representation corresponding to an object attribute, including: the computer device splices the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the object attribute through a splicing layer of an object semantic tower to obtain a second spliced embedded representation; the computer device encodes the second spliced embedded representation through a representation layer in an object-side semantic tower to obtain an embedded representation corresponding to the first object.
[0212] The specific steps of this process are similar to the steps of "generating an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute" in the above embodiment.
[0213] In some embodiments, the object-side semantic tower further includes a splicing layer and a representation layer, wherein the splicing layer of the object-side semantics is used to splice different types of embedded representations. Optionally, the different types of embedded representations include: embedded representations corresponding to resource sequences and embedded representations corresponding to object attributes.
[0214] Figure 6 It is a schematic diagram of an object-side semantic tower structure provided by an exemplary embodiment of the present application.
[0215] The object-side semantic tower includes input layers corresponding to different types of nodes in the local subgraph, including a node sequence input layer, input layers corresponding to different resource attribute categories, and input layers corresponding to different object attribute categories; at least one embedding layer for generating embedded representations corresponding to different types of nodes, including a resource embedding layer, a resource attribute embedding layer, and an object attribute embedding layer; a resource attribute pooling layer for processing the embedded representation corresponding to at least one resource attribute category, and an object attribute pooling layer for processing the embedded representation corresponding to at least one object attribute category. And a splicing layer for splicing different types of embedded representations and a representation layer for generating embedded representations corresponding to objects. For the specific content of this aspect, please refer to the above embodiment, which will not be repeated here.
[0216] The embedded representation corresponding to the object is determined according to different types of embedded representations, so as to improve the accuracy of the embedded representation corresponding to the object.
[0217] Example 4: The computer device determines the embedded representation corresponding to the first object according to the resource nodes, resource attribute nodes and object attribute nodes in the local subgraph. For the contents not specifically described in this example, please refer to the above embodiments, and will not be repeated here.
[0218] In some embodiments, the local subgraph includes a first object node, a resource node having a first association edge with the first object node, an object attribute node having a third association edge with the first object node, and a resource attribute node having at least one second association edge with at least one resource node in the local subgraph. The computer device inputs the local subgraph into the object-side semantic tower to obtain an embedded representation corresponding to the first object output by the object-side semantic tower.
[0219] The computer device determines the embedded representation corresponding to the resource sequence in the local subgraph through the resource network layer of the object-side semantic tower, determines the embedded representation corresponding to the resource attribute through the resource attribute network layer of the object-side semantic tower, and determines the embedded representation corresponding to the object attribute through the object attribute network layer of the object-side semantic tower; splices the embedded representation corresponding to the resource sequence, the embedded representation corresponding to the resource attribute, and the embedded representation corresponding to the object attribute through the splicing layer of the object-side semantic tower to obtain a third splicing representation; processes the third splicing representation through the object attribute network layer of the object-side semantic tower to obtain the embedded representation corresponding to the first object. For the specific content of this process, please refer to the above embodiment, which will not be repeated here.
[0220] Compared with the related technology, it is necessary to rely on walking the heterogeneous information network to generate a complete node sequence, and use the deep learning model to process the complete node sequence to obtain the embedded representation corresponding to each object. In this method, only the local subgraph related to the object in the heterogeneous information network is used to determine the embedded representation corresponding to the object, which helps to reduce the amount of calculation in the process of determining the embedded representation of the household and speed up the determination of the embedded representation of the household.
[0221] At the same time, this method is more convenient to update the embedded representation of objects in the heterogeneous information network. When the heterogeneous information network changes, there is no need to synchronously update the embedded representations corresponding to all objects in the heterogeneous information network, making the model result of determining the embedded representation corresponding to the object more lightweight.
[0222] The following describes the relevant contents of the embedded representation corresponding to the attribute tag through several embodiments.
[0223] In some embodiments, a computer device determines at least one attribute tag that matches the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representations corresponding to at least one candidate attribute tag, including: the computer device determines the embedded representations corresponding to at least one candidate attribute tag; the computer device calculates the spatial similarity between the embedded representation corresponding to the first object and the embedded representation of the first attribute tag for the first attribute tag in the at least one candidate attribute tag, and determines the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the first attribute tag; the computer device selects the top n candidate attribute tags with the highest correlation from the at least one candidate attribute tag as the attribute tags that match the first object, where n is a positive integer.
[0224] In some embodiments, spatial similarity is used to characterize the similarity between two or more vectors (matrices) in a vector space.
[0225] In some embodiments, the computer device calculates the spatial similarity between the embedding representation corresponding to the first object and the embedding representation of the first attribute label, including: calculating the cosine value between the embedding representation corresponding to the first object and the embedding representation corresponding to the first attribute label; the computer device represents the spatial similarity between the embedding representation corresponding to the first object and the embedding representation corresponding to the first attribute label through the cosine value. Optionally, the cosine value is between [-1, 1].
[0226] Optionally, the computer device uses the spatial similarity between the embedded representation corresponding to the first object and the embedded representation corresponding to the first attribute label as the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to the first attribute label.
[0227] In some embodiments, the embedded representation corresponding to at least one candidate attribute tag can be predetermined. The computer device stores the embedded representation corresponding to at least one candidate attribute tag; when determining the attribute tag matching the first object, the computer device reads the embedded representation corresponding to at least one candidate attribute tag.
[0228] Optionally, the computer device periodically updates the embedding representation corresponding to at least one candidate attribute tag, and stores the updated embedding representation corresponding to at least one candidate attribute tag. This method helps to increase the speed at which the computer device determines a matching attribute tag for the first object.
[0229] In other embodiments, the computer device generates an embedding representation corresponding to at least one candidate attribute tag only when determining the attribute tag that matches the first object.
[0230] For the specific method by which the computer device determines the embedded representation corresponding to the candidate attribute tag, please refer to the next embodiment.
[0231] By determining the spatial similarity between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag, at least one embedded representation matching the object is determined, which helps to match at least one attribute tag that fits the first object. Matching multiple attribute tags for an object helps to improve the richness of network resource recommendations based on attribute tags.
[0232] The following describes a method for determining an embedded representation of an attribute tag through several embodiments.
[0233] In some embodiments, a computer device determines an embedded representation corresponding to at least one candidate attribute tag, including: the computer device obtains at least one related entity tag corresponding to a first attribute tag among at least one candidate attribute tag; wherein the related entity tag has semantic similarity with the first attribute tag; the computer device determines the embedded representation corresponding to the first attribute tag based on the first attribute tag and at least one related entity tag corresponding to the first attribute tag.
[0234] In some embodiments, the first attribute tag is any one of at least one candidate attribute tag. In some embodiments, the related entity tag corresponding to the first attribute tag refers to text having a similar literal meaning to the first attribute tag. Optionally, the first attribute tag corresponds to at least one related entity tag.
[0235] In some embodiments, the first attribute tag is in text form, that is, the first attribute tag includes one character. Optionally, the computer device inputs the first attribute tag into a search engine to obtain at least one search result (which may be in document form) corresponding to the first attribute tag.
[0236] Optionally, the computer device captures business tags used in other recommendation services by a data collection method such as a crawler, and uses at least one captured business tag as at least one search result.
[0237] In some embodiments, the computer device determines y search results from at least one search result, where y is a positive integer, for example, y is equal to 50. Optionally, the computer device selects the top y search results from at least one search result according to the order of the search results.
[0238] In some embodiments, the computer device obtains at least one entity tag from each of the y search results, and generates an entity tag set based on the at least one entity tag. Optionally, the computer device obtains the entity tags from the search results by the following methods: template method, RNN-based entity extraction model, Transformer-based entity extraction model.
[0239] In some embodiments, the computer device divides and sorts the entity tag set, and selects the first p entity tags with the greatest semantic similarity to the first attribute tag, where p is a positive integer, for example, p=20.
[0240] Optionally, the computer device segments and sorts the entity tag set by a TF-IDF (Term Frequency-Inverse Document Frequency) method.
[0241] In some embodiments, the computer device determines the embedded representation of the first attribute tag through a tag-side semantic tower according to the first attribute tag and at least one related entity tag corresponding to the first attribute tag.
[0242] The attribute tags used in recommendation services are usually predefined short texts, that is, the text description of the attribute tags is short and the information expression ability is insufficient. By determining at least one entity tag corresponding to the attribute tag, using the entity tag as the supplementary information of the attribute tag, and using the attribute tag and the entity tag corresponding to the attribute tag to determine the embedding representation corresponding to the attribute tag, it is helpful to enrich the embedding representation of the attribute tag. In addition, by finding entity tags with similar semantics to the attribute tag, the accuracy of the embedding representation of the determined attribute tag is less affected.
[0243] In some embodiments, a computer device determines an embedded representation of a first attribute tag based on a first attribute tag and at least one related entity tag corresponding to the first attribute tag, including: the computer device encodes identification information corresponding to at least one word in the first attribute tag through the attribute tag embedding layer of the tag-side semantic tower to obtain a feature vector corresponding to the first attribute tag; wherein the tag-side semantic tower is used to determine the embedded representation corresponding to the first attribute tag; the computer device encodes identification information corresponding to at least one word respectively included in at least one entity tag through the entity tag network of the tag-side semantic tower to obtain a feature vector corresponding to the entity tag; the computer device concatenates the feature vector corresponding to the first attribute tag and the feature vector corresponding to the entity tag through the concatenation layer of the tag-side semantic tower to obtain a tag concatenation representation; the computer device encodes the tag concatenation representation through the representation layer of the tag-side semantic tower to determine the embedded representation corresponding to the first attribute tag.
[0244] In some embodiments, the tag-side semantic tower includes an entity tag network and an attribute tag network; wherein the entity tag network is used to determine at least a feature vector of the entity tag, and the attribute tag network is used to determine a feature vector corresponding to the attribute tag. The feature vector can also be understood as an embedded representation.
[0245] In some embodiments, the entity tag network includes an entity tag input layer and an entity tag embedding layer.
[0246] Figure 7 It is a schematic diagram of a tag-side semantic tower structure provided by an exemplary embodiment of the present application.
[0247] In some embodiments, the computer device determines identification information corresponding to at least one entity tag, and the identification information corresponding to at least one entity tag is input into the entity tag input layer. Optionally, the identification information corresponding to the entity tag is the identification information corresponding to the complete entity tag.
[0248] Optionally, the identification information corresponding to the entity tag is identification information corresponding to at least one word obtained by segmenting the entity tag. By determining that the identification information corresponding to each word in the entity tag constitutes the identification information corresponding to the entity tag, it is helpful for the subsequent entity tag embedding layer to encode the identification information and perform operations such as full connection based on feature information.
[0249] In some embodiments, the entity tag embedding layer includes at least one of the following: an RNN layer (including an LSTM layer, a BiLSTM layer, a GRU, etc.), an attention layer (including a self-attention layer, a transformer layer, etc.). Optionally, the entity tag embedding layer is called an embedding representation encoder.
[0250] In some embodiments, the computer device encodes the identification information corresponding to the entity tag through the entity tag embedding layer to obtain a feature vector corresponding to the entity tag. Specifically, the entity tag embedding layer maps the identification information corresponding to the entity tag transmitted from the entity tag input layer to a low-dimensional, dense feature vector.
[0251] In some embodiments, the structure and working mode of the attribute tag network are similar to the structure and working mode of the entity tag network. Please refer to the above embodiments for details and will not be repeated here.
[0252] In some embodiments, the label-side semantic tower also includes a label splicing layer, which is used to splice the feature training corresponding to the attribute label with the feature vector corresponding to the entity label to obtain a label splicing representation, which helps to improve the richness of the embedded representation corresponding to the determined attribute label.
[0253] In some embodiments, the tag side semantic tower further includes a tag representation layer: used to further cross-represent the tag concatenation representation of the tag concatenation layer to obtain an embedded representation corresponding to the attribute tag. Optionally, the tag representation layer is implemented by stacking multiple layers of fully connected layers.
[0254] Using entity labels and attribute labels to jointly determine the embedded representation corresponding to the attribute labels helps to enrich the corresponding attribute labels and improve the representation ability of the embedded representation corresponding to the attribute labels.
[0255] In some embodiments, the label classification model used in the method for determining the object attribute label is of a dual-tower structure, and the label classification model includes an object-side language tower and a label-side semantic tower, wherein the object-side language tower is used to determine the embedded representation corresponding to the first object, and the label-side semantic tower is used to determine the embedded representation of at least one attribute label. Optionally, by training the label classification model of the dual-tower structure, the embedded representation corresponding to the first object and the embedded representation of the attribute label are in the same embedding space (semantic space), making the method for determining the embedded representation corresponding to the first object and the embedded representation of the attribute label more convenient.
[0256] In some embodiments, after the computer device determines at least one attribute tag matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representations corresponding to at least one candidate attribute tag, the further step includes: the computer device determines at least one recommended network resource from a network resource pool corresponding to a recommended service based on the at least one attribute tag matching the first object; and the computer device sends the recommended network resource to a client corresponding to the first object.
[0257] In some implementations, the recommended network resource refers to a network resource that has a high degree of similarity with at least one attribute tag. For example, if the recommendation service belongs to a video recommendation service, the recommended network resource is a video resource. For example, if the recommendation service belongs to a product recommendation service, the recommended network resource is a product resource. It should be noted that the resource type of the recommended network resource is determined according to actual needs and is not limited in this application.
[0258] The following is an explanation of the training process of the label classification model.
[0259] In some embodiments, a computer device obtains a training sample set; wherein the training sample set includes training samples, and the training samples include training objects, training labels and training sample identifiers; wherein the identification information of the training samples is used to characterize whether the training objects and the training labels are related; the computer device determines a local subgraph corresponding to the training object in a heterogeneous information network; the computer device determines an embedded representation corresponding to the training object according to the local subgraph corresponding to the training object through an object-side semantic tower in a correlation model; the computer device determines an embedded representation corresponding to the training label through a label-side semantic tower in a correlation model, the computer device calculates the correlation between the embedded representation corresponding to the training object and the embedded representation corresponding to the training label, and predicts results based on the correlation device; the computer device determines a training loss based on the prediction results and the training sample identifier, and adjusts the model parameters of the correlation model; when the training loss reaches convergence, the computer device obtains a trained correlation model.
[0260] In some embodiments, a training sample set for training a correlation model is obtained from a heterogeneous information network used in a training process. Optionally, the heterogeneous information network used in a training process includes at least one object node corresponding to an object having an attribute label. The attribute label corresponding to the object can be manually annotated or obtained through other machine models, which is not limited in this application. Optionally, one training object in a training sample corresponds to one attribute label.
[0261] In some embodiments, the training sample identifier is used to indicate whether the sample is a positive sample or a negative sample.
[0262] In some embodiments, positive samples are generated by object nodes corresponding to objects with attribute labels in the heterogeneous information network. These object nodes constitute the object node set U label ∈U already has an attribute label. The computer device has an attribute label set T u ∈L object node u∈U label , for the training samples annotated with a single attribute label of the object node u, the positive samples can be expressed as {(X u ,l)|l∈T u}. Among them, X u represents the training object, and l represents the training label.
[0263] Optionally, the sample ratio between positive samples and negative samples in the sample set is not exactly the same, for example, the sample ratio between positive samples and negative samples is 1:5.
[0264] In some embodiments, negative samples are obtained by negative sampling. For example, a computer device randomly extracts 5 attribute labels and training objects from positive samples to generate negative samples.
[0265] Optionally, the sample ratio between positive samples and negative samples in the sample set is not exactly the same, for example, the sample ratio between positive samples and negative samples is 1:5.
[0266] The computer device determines the embedded representation corresponding to the training object according to the local subgraph corresponding to the training object through the object-side semantic tower in the correlation model; the specific process of the computer device determining the embedded representation corresponding to the training label through the label-side semantic tower in the correlation model please refer to the above embodiment, and this application will not elaborate on it here.
[0267] In some embodiments, the training loss is calculated using binary cross entropy.
[0268] The following is an introduction to a method for determining an object attribute label through an embodiment. This method mainly includes the following steps:
[0269] Step 1: Computer equipment builds a heterogeneous information network Please refer to the above introduction for the explanation of various parameters in heterogeneous information networks.
[0270] Step 2: The computer device determines that the heterogeneous information network includes: resource nodes, resource attribute nodes, and object attribute nodes, which correspond to embedded representations respectively.
[0271] Specifically, for a resource node, for any object node u∈U in a heterogeneous information network: the computer device constructs the resource sequence s of the object node u u ∈S,s u It refers to the sequence of resource nodes that have the first association edge with the object node u in the heterogeneous information network. The resource nodes in the resource sequence of the object node u are arranged in the order of interaction between the object and the network resources corresponding to the resource node. The computer device merges the resource sequences corresponding to each object node to obtain the node sequence set of the resource node V.
[0272] For resource attribute nodes, the computer device determines that each resource node included in the resource sequence set is in resource attribute category A. i The associated resource attribute node in the resource attribute category A i The associated resource attribute node in replaces the resource node to obtain the resource category attribute A i The corresponding resource attribute sequence.
[0273] For resource attribute category A i The computer device merges the resource attribute sequences corresponding to each object node to obtain the resource attribute category A i A sequence of resource attributes.
[0274] The computer device performs a node sequence set of resource node V, a resource attribute sequence set of resource attribute category A1, a resource attribute sequence set of resource attribute category A2, ..., a resource attribute sequence set of resource attribute category A m The word vector is calculated based on the resource attribute sequence set to obtain the embedded representation of each video node and the embedded representation of each video attribute node.
[0275] For the object attribute node, the computer device determines the object attribute sequence corresponding to the object node u, and the computer device uses the machine learning model to determine the embedding representation corresponding to each object attribute node.
[0276] Step 3: The computer device determines the embedding representations corresponding to the candidate attribute labels.
[0277] For each attribute label l∈{l1,…,l k}, the computer device determines at least one entity tag corresponding to the attribute tag l. Optionally, the computer device determines N documents related to the attribute tag l through a search engine. N is a positive integer. The computer device obtains a document title set of the N documents, and the document title set is recorded as {D1,…,D N}.
[0278] The computer device extracts entity words from the document title set, sorts and truncates the documents composed of entity words, and obtains the entity word sequence {e1,…,e M},e i is an entity tag for attribute tag l.
[0279] Step 4: The computer device constructs training samples based on the heterogeneous information network, trains the correlation model, and obtains a trained correlation model. For the specific content of this step, please refer to the above embodiment. Through training, the embedded representation corresponding to the object and the embedded representation corresponding to the attribute label belong to the same mapping space, which is convenient for subsequent correlation calculation.
[0280] In step 5, the computer device uses the trained correlation model to determine an embedded representation corresponding to the first object, and determines at least one label matching the first object based on the embedded representation corresponding to the first object.
[0281] In order to solve the problem of high computational complexity caused by too large a set of attribute labels in multi-label classification. The present invention maps the embedded representation tower corresponding to the object and the attribute label corresponding to the object into the same semantic space through the object-side semantic tower and the label-side semantics, so that when judging the relevance of multiple labels, it is only necessary to calculate the relevance between the object and the closest label, thereby greatly reducing the computational complexity of the model. Moreover, by determining the entity label corresponding to the attribute label, it is helpful to enrich the embedded representation of the attribute label.
[0282] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0283] Please refer to Figure 8 , which shows a block diagram of a device for determining an object attribute label provided by an embodiment of the present application. The device has the function of implementing the above-mentioned method for determining an object attribute label, and the function can be implemented by hardware or by hardware executing corresponding software. Figure 8 As shown, the apparatus 800 may include: a network acquisition module 810 , a characterization determination module 820 , and a tag determination module 830 .
[0284] The network acquisition module 810 is used to acquire the heterogeneous information network required for the recommendation service; wherein the recommendation service is used to provide network resource recommendation services for objects, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to characterize the existence of an interaction between the object corresponding to the object node and the network resource corresponding to the resource node.
[0285] The representation determination module 820 is used to generate an embedded representation corresponding to the first object based on the local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first associated edge with the first object node; the embedded representation corresponding to the first object is used to characterize the feature information of the first object.
[0286] The label determination module 830 is used to determine at least one attribute label matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute label; wherein the embedded representation corresponding to the attribute label is used to represent the semantic feature information of the attribute label.
[0287] In some embodiments, the label determination module 830 includes: a first sequence generation unit, used to generate a resource sequence based on at least one resource node in the local subgraph that has a first associated edge with the first object node; a first representation generation unit, used to generate an embedded representation corresponding to the resource sequence; wherein the embedded representation corresponding to the resource sequence is used to represent feature information of at least one network resource that interacts with the first object; and an embedded representation generation unit, used to generate an embedded representation corresponding to the first object based on the embedded representation corresponding to the resource sequence.
[0288] In some embodiments, the first sequence generating unit is used to: for each resource node among the at least one resource node having a first association edge with the first object node, determine the arrangement order of the resource node in the resource sequence according to the interaction time recorded on the first association edge between the resource node and the first object node; and arrange the at least one resource node having a first association edge with the first object node according to their respective corresponding arrangement orders to generate the resource sequence.
[0289] In some embodiments, a first representation generation unit is used to determine identification information corresponding to at least one resource node included in the resource sequence; wherein the identification information corresponding to the resource node is used to identify the network resource corresponding to the resource node; the identification information corresponding to the at least one resource node is input into the object-side semantic tower; wherein the object-side semantic tower is a neural network for generating an embedded representation corresponding to the first object; the identification information corresponding to the at least one resource node is encoded through the resource embedding layer of the object-side semantic tower to obtain a vector representation of the resource sequence; the vector representation of the resource sequence is encoded through the neural network layer in the object-side semantic tower to obtain an embedded representation corresponding to the resource sequence.
[0290] In some embodiments, the local subgraph also includes: at least one resource attribute node connected to at least one resource node in the local subgraph through a second association edge; wherein, at least one resource node in the local subgraph refers to a resource node connected to the first object node through the first association edge, and the second association edge is used to characterize that the network resource corresponding to the resource node has the resource attribute corresponding to the resource attribute node; the device 800 also includes a second sequence generation module, which is used to generate a resource attribute sequence corresponding to at least one resource attribute category according to the local subgraph; wherein the resource attribute sequence includes a resource attribute node having a second association edge with at least one resource node in the resource sequence; a second representation generation unit, which is used to generate an embedded representation corresponding to the resource attribute according to the resource attribute sequence corresponding to the at least one resource attribute category; the embedded representation generation unit is also used to generate an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute.
[0291] In some embodiments, the second sequence generating unit is used to determine, for a first resource attribute category in the at least one resource attribute category, at least one first resource attribute node corresponding to each resource node in the resource sequence in the first resource attribute category according to the second association edge in the local subgraph; and generate a resource attribute sequence corresponding to the first resource attribute category according to the at least one first resource attribute node corresponding to each resource node in the resource sequence.
[0292] In some embodiments, the second sequence generation unit is used to determine, for a first resource attribute category in the at least one resource attribute category, identification information corresponding to at least one resource attribute node included in the resource attribute sequence corresponding to the first resource attribute category; wherein the identification information corresponding to the resource attribute nodes is used to identify the resource attributes corresponding to the resource attribute nodes; through the resource attribute embedding layer corresponding to the first resource attribute category in the object-side semantic tower, the identification information corresponding to at least one resource attribute node included in the resource attribute sequence corresponding to the first resource attribute category is encoded to obtain an embedded representation corresponding to the first resource attribute category; wherein the object-side semantic tower is used to generate an embedded representation corresponding to the first object; through the resource attribute pooling layer in the object-side semantic tower, the embedded representations corresponding to the at least one resource attribute class are encoded to obtain an embedded representation corresponding to the resource attribute.
[0293] In some embodiments, the embedded representation generation unit is also used to splice the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute through the splicing layer of the object semantic tower to obtain a first spliced embedded representation; and encode the first spliced embedded representation through the representation layer in the object-side semantic tower to obtain the embedded representation corresponding to the first object.
[0294] In some embodiments, the local subgraph also includes: at least one object attribute node having a third association edge with the first object node; wherein the third association edge is used to represent that the object corresponding to the object node has the object attribute corresponding to the object attribute node; the device 800 also includes: a third sequence generation module, used to generate object attribute nodes corresponding to at least one object attribute category according to the local subgraph; wherein the object attribute sequence includes at least one resource attribute node having a third association edge with the first object node; a third representation generation unit, used to generate an embedded representation corresponding to the object attribute according to the object attribute sequence corresponding to at least one object attribute category; the embedded representation generation unit is used to generate an embedded representation corresponding to the first object according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the object attribute.
[0295] In some embodiments, the third sequence generation module is used to determine, for a first object attribute category in the at least one object attribute category, identification information corresponding to at least one object attribute node included in the object attribute sequence corresponding to the first object attribute category; the identification information corresponding to the object attribute node is used to identify the object attribute corresponding to the object attribute node; the identity identifier of the at least one object attribute node is encoded through the object attribute embedding layer corresponding to the first object attribute category in the object-side semantic tower to obtain an embedding vector of the first object attribute category; wherein the object-side semantic tower is used to generate an embedded representation corresponding to the first object attribute category; the embedded representation corresponding to the at least one object attribute category is encoded through the object attribute pooling layer in the object-side semantic tower to obtain an embedded representation corresponding to the object attribute.
[0296] In some embodiments, the label determination module 830 includes: a label representation acquisition unit, used to determine the embedded representations corresponding to at least one candidate attribute label; a similarity determination unit, used to calculate the spatial similarity between the embedded representation corresponding to the first object and the embedded representation of the first attribute label for the first attribute label in at least one candidate attribute label, and determine the correlation between the embedded representation corresponding to the first object and the embedded representation of the first attribute label; a label determination unit, used to select the top n candidate attribute labels with the highest correlation from the at least one candidate attribute label as the attribute labels matching the first object, where n is a positive integer.
[0297] In some embodiments, a label representation acquisition unit includes: an entity label acquisition subunit, which is used to obtain at least one related entity label corresponding to a first attribute label in at least one candidate attribute label; wherein the related entity label has semantic similarity with the first attribute label; and a label representation generation subunit, which is used to determine an embedded representation corresponding to the first attribute label based on the first attribute label and at least one related entity label corresponding to the first attribute label.
[0298] In some embodiments, the label representation generation subunit is used to encode the identification information corresponding to at least one word in the first attribute label through the attribute label embedding layer of the label side semantic tower to obtain the embedded representation of the first attribute label; wherein the label side semantic tower is used to determine the embedded representation of the first attribute label; through the entity label network of the label side semantic tower, the identification information corresponding to at least one word respectively included in the at least one entity label is encoded to obtain the embedded representation of the entity label; through the splicing layer of the label side semantic tower, the embedded representation of the first attribute label and the embedded representation of the entity label are spliced to obtain the label splicing representation; through the representation layer of the label side semantic tower, the label splicing representation is encoded to determine the embedded representation of the first attribute label.
[0299] In some embodiments, the device 800 further includes: a resource determination module, used to determine at least one recommended network resource from the network resource pool corresponding to the recommended service based on at least one attribute tag matched by the first object; and send the recommended network resource to the client corresponding to the first object.
[0300] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0301] Please refer to Fig. 9 It shows a structural block diagram of a computer device 900 provided in one embodiment of the present application.
[0302] Typically, the computer device 900 includes a processor 901 and a memory 902 .
[0303] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI processor for processing computing operations related to machine learning.
[0304] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned method for determining the object attribute label.
[0305] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the computer device 900, and the computer device 900 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.
[0306] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method for determining an object attribute label is implemented.
[0307] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0308] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for determining an object attribute label.
[0309] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0310] It should be noted that, before collecting the relevant data of the object and during the process of collecting the relevant data of the object, the present application can display a prompt interface, a pop-up window or output a voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the object that its relevant data is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the object after obtaining the confirmation operation issued by the object to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the object to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the relevant data of the object are terminated, that is, the relevant data of the object is not obtained. In other words, the information involved in this application (including but not limited to object device information, object personal information, etc., object attributes), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals are all authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, etc. involved in this application are all obtained under full authorization.
[0311] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining an object attribute label, characterized in that: The method comprises: Obtaining a heterogeneous information network to be used by a recommendation service; wherein the recommendation service is used to provide a network resource recommendation service for an object, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to represent that there is an interaction between the object corresponding to the object node and the network resource corresponding to the resource node; Generate an embedded representation corresponding to a first object according to a local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first associated edge with the first object node; the embedded representation corresponding to the first object is used to represent feature information of the first object; At least one attribute tag matching the first object is determined based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag; wherein the embedded representation corresponding to the attribute tag is used to represent the semantic feature information of the attribute tag.
2. The method according to claim 1, characterized in that The step of generating an embedded representation corresponding to the first object according to the local subgraph corresponding to the first object in the heterogeneous information network includes: Generate a resource sequence according to at least one resource node in the local subgraph that has a first associated edge with the first object node; Generate an embedded representation corresponding to the resource sequence; wherein the embedded representation corresponding to the resource sequence is used to represent feature information of at least one network resource that interacts with the first object; An embedded representation corresponding to the first object is generated according to the embedded representation corresponding to the resource sequence.
3. The method according to claim 2, characterized in that The generating a resource sequence according to at least one resource node in the local subgraph having a first associated edge with the first object node comprises: For each resource node among at least one resource node having a first association edge with the first object node, determining an arrangement order of the resource node in the resource sequence according to an interaction time recorded on the first association edge between the resource node and the first object node; At least one resource node having a first associated edge with the first object node is arranged according to respective corresponding arrangement orders to generate the resource sequence.
4. The method according to claim 3, characterized in that The generating the embedded representation corresponding to the resource sequence includes: Determine identification information corresponding to at least one resource node included in the resource sequence; wherein the identification information corresponding to the resource node is used to identify the network resource corresponding to the resource node; Inputting the identification information corresponding to the at least one resource node into the object-side semantic tower; wherein the object-side semantic tower is a neural network for generating an embedded representation corresponding to the first object; By means of the resource embedding layer of the semantic tower on the object side, encoding the identification information respectively corresponding to the at least one resource node is performed to obtain a vector representation of the resource sequence; The vector representation of the resource sequence is encoded through the neural network layer in the object-side semantic tower to obtain an embedded representation corresponding to the resource sequence.
5. The method according to claim 2, characterized in that: The local subgraph further includes: at least one resource attribute node connected to at least one resource node in the local subgraph through a second association edge; wherein the at least one resource node in the local subgraph refers to a resource node connected to the first object node through the first association edge, and the second association edge is used to represent that the network resource corresponding to the resource node has the resource attribute corresponding to the resource attribute node; the method further includes: Generate a resource attribute sequence corresponding to at least one resource attribute category according to the local subgraph; wherein the resource attribute sequence includes a resource attribute node having a second association edge with at least one resource node in the resource sequence; generating, according to the resource attribute sequences respectively corresponding to the at least one resource attribute category, an embedded representation corresponding to the resource attribute; The generating, according to the embedded representation corresponding to the resource sequence, an embedded representation corresponding to the first object includes: An embedded representation corresponding to the first object is generated according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute.
6. The method according to claim 5, characterized in that Generating a resource attribute sequence corresponding to at least one resource attribute category according to the local subgraph includes: For a first resource attribute category in the at least one resource attribute category, determining, according to a second associated edge in the local subgraph, at least one first resource attribute node corresponding to each resource node in the resource sequence in the first resource attribute category; A resource attribute sequence corresponding to the first resource attribute category is generated according to the at least one first resource attribute node corresponding to each resource node in the resource sequence.
7. The method according to claim 5, characterized in that The step of generating, according to the resource attribute sequences respectively corresponding to the at least one resource attribute category, an embedded representation corresponding to the resource attribute comprises: For a first resource attribute category in the at least one resource attribute category, determining identification information corresponding to at least one resource attribute node included in a resource attribute sequence corresponding to the first resource attribute category; wherein the identification information corresponding to the resource attribute node is used to identify the resource attribute corresponding to the resource attribute node; By means of a resource attribute embedding layer corresponding to the first resource attribute category in the object-side semantic tower, encoding the identification information corresponding to at least one resource attribute node included in the resource attribute sequence corresponding to the first resource attribute category is performed to obtain an embedded representation corresponding to the first resource attribute category; wherein the object-side semantic tower is used to generate an embedded representation corresponding to the first object; The embedded representations corresponding to the at least one resource attribute class are encoded through the resource attribute pooling layer in the object-side semantic tower to obtain the embedded representations corresponding to the resource attributes.
8. The method according to claim 5, characterized in that The generating, according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute, the embedded representation corresponding to the first object includes: splicing the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the resource attribute through the splicing layer of the object semantic tower to obtain a first spliced embedded representation; The first concatenated embedding representation is encoded through the representation layer in the object-side semantic tower to obtain an embedding representation corresponding to the first object.
9. The method according to claim 2, characterized in that: The local subgraph further includes: at least one object attribute node having a third association edge with the first object node; wherein the third association edge is used to represent that the object corresponding to the object node has the object attribute corresponding to the object attribute node; the method further includes: According to the local subgraph, generating at least one object attribute node corresponding to each object attribute category; wherein the object attribute sequence includes at least one resource attribute node having a third association edge with the first object node; Generate an embedding representation corresponding to the object attribute according to the object attribute sequences corresponding to at least one object attribute category; The generating, according to the embedded representation corresponding to the resource sequence, an embedded representation corresponding to the first object includes: An embedded representation corresponding to the first object is generated according to the embedded representation corresponding to the resource sequence and the embedded representation corresponding to the object attribute.
10. The method according to claim 9, characterized in that The step of generating an embedded representation corresponding to the object attribute according to the object attribute sequence corresponding to at least one object attribute category includes: For a first object attribute category in the at least one object attribute category, determining identification information corresponding to at least one object attribute node included in the object attribute sequence corresponding to the first object attribute category; the identification information corresponding to the object attribute node is used to identify the object attribute corresponding to the object attribute node; By means of an object attribute embedding layer corresponding to the first object attribute category in the object-side semantic tower, an identity identifier of the at least one object attribute node is encoded to obtain an embedding vector of the first object attribute category; wherein the object-side semantic tower is used to generate an embedding representation corresponding to the first object attribute category; The embedded representation corresponding to the at least one object attribute category is encoded through the object attribute pooling layer in the object-side semantic tower to obtain the embedded representation corresponding to the object attribute.
11. The method according to claim 1, characterized in that: The determining, according to the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute tag, at least one attribute tag matching the first object comprises: Determine an embedding representation corresponding to at least one candidate attribute label; For a first attribute label in at least one candidate attribute label, calculating a spatial similarity between an embedded representation corresponding to the first object and an embedded representation of the first attribute label, and determining a correlation between the embedded representation corresponding to the first object and the embedded representation of the first attribute label; From the at least one candidate attribute tag, a candidate attribute tag whose correlation is greater than or equal to a correlation threshold is selected as the attribute tag matched by the first object.
12. The method according to claim 11, characterized in that The step of determining the embedding representation corresponding to at least one candidate attribute label includes: For a first attribute tag among at least one candidate attribute tag, obtaining at least one related entity tag corresponding to the first attribute tag; wherein the related entity tag has semantic similarity with the first attribute tag; An embedded representation corresponding to the first attribute tag is determined according to the first attribute tag and at least one related entity tag corresponding to the first attribute tag.
13. The method according to claim 12, characterized in that The determining, according to the first attribute tag and at least one related entity tag corresponding to the first attribute tag, an embedded representation corresponding to the first attribute tag includes: Through the attribute tag embedding layer of the tag-side semantic tower, encoding the identification information corresponding to at least one word in the first attribute tag is performed to obtain a feature vector corresponding to the first attribute tag; wherein the tag-side semantic tower is used to determine the embedding representation corresponding to the first attribute tag; Through the entity tag network of the tag-side semantic tower, encoding processing is performed on identification information corresponding to at least one word respectively included in the at least one entity tag to obtain a feature vector corresponding to the entity tag; Through the splicing layer of the semantic tower on the label side, the feature vector corresponding to the first attribute label and the feature vector corresponding to the entity label are spliced to obtain a label splicing representation; The tag concatenated representation is encoded through the representation layer of the tag-side semantic tower to determine the embedded representation corresponding to the first attribute tag.
14. The method according to claim 1, characterized in that After determining at least one attribute label matching the first object according to the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute label, the method further includes: Determining at least one recommended network resource from a network resource pool corresponding to the recommended service according to at least one attribute tag matched by the first object; The recommended network resource is sent to a client corresponding to the first object.
15. A training device for a determination model of an object attribute label, characterized in that: The device comprises: A network acquisition module, used to acquire a heterogeneous information network to be used by a recommendation service; wherein the recommendation service is used to provide a network resource recommendation service for an object, and the heterogeneous information network includes: an object node corresponding to at least one object, a resource node corresponding to at least one network resource, and a first association edge between the object node and the resource node, wherein the first association edge is used to represent that there is an interaction between the object corresponding to the object node and the network resource corresponding to the resource node; A representation determination module, configured to generate an embedded representation corresponding to the first object according to a local subgraph corresponding to the first object in the heterogeneous information network; wherein the local subgraph corresponding to the first object includes: a first object node corresponding to the first object, and at least one resource node having a first associated edge with the first object node; the embedded representation corresponding to the first object is used to represent feature information of the first object; A label determination module is used to determine at least one attribute label matching the first object based on the correlation between the embedded representation corresponding to the first object and the embedded representation corresponding to at least one candidate attribute label; wherein the embedded representation corresponding to the attribute label is used to represent the semantic feature information of the attribute label.
16. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 14.
18. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Sequence recommendation method based on meta-path neighborhood target generalization
CN114841765A
Heterogeneous graph clustering using inter-point mutual information criteria
CN115280305A
Systems and methods for using heterogeneous graphs to derive object embeddings
US11106715B1
Heterogenous network (r-knowledge) for bridging users and apps via relationship learning
US20170169351A1
System, method, and computer program product for generating embeddings for objects
WO2020113208A1
