Recommendation method and device, electronic equipment and computer readable storage medium
By constructing the association graph and network model, the problem of long cold start period of new content and low recommendation accuracy in the recommendation system is solved, and the rapid cold start and high accuracy recommendation of new content are achieved.
Patent Information
- Application Number
- CN202310290296.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-03-13
AI Technical Summary
In the existing recommendation system, new content has a long cold start cycle and low recommendation accuracy, making it impossible to quickly enter the recommendation system and be recommended.
By constructing a pre-built association graph, connect the attributes of the new content with the target attributes of the old content, obtain the mapping relationship between the old and new content, and input it into the trained network model to obtain the interaction probability between the user and the old and new content, thereby shortening the cold storage period. Start the cycle and improve recommendation accuracy.
It achieves rapid cold start of new content, shortens the cold start cycle, and improves the accuracy of recommendation of new content, allowing new content to quickly enter the recommendation system and be accepted by users.
Smart Images

Figure CN118643206A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a recommendation method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the continuous development of big data and the Internet, recommendation systems are becoming more and more widely used in e-commerce, consulting, knowledge learning, short video entertainment and other fields.
[0003] The recommendation system can recommend the content that best meets the user's needs or the content that the user is most interested in based on data such as user feature information and content feature information. For example, the recommendation system can recommend news that meets the user's preferences based on data such as user preferences and browsing history.
[0004] At present, recommendation systems often need to cold-start new content in order to allow the new content to enter the recommendation system and be recommended. However, existing recommendation systems have problems such as long cold-start cycles for new content and low accuracy in recommending new content. Summary of the invention
[0005] The embodiments of the present application provide a recommendation method, device, electronic device and computer-readable storage medium, which can solve the problems of long cold start cycle and low recommendation accuracy of new content in existing recommendation methods.
[0006] In a first aspect, an embodiment of the present application provides a recommendation method, the method comprising:
[0007] Obtaining a recommendation request, the recommendation request including information of the first target content;
[0008] Inputting the recommendation request into the pre-trained recall model to obtain the recall result output by the pre-trained recall model, where the recall result includes candidate recommendation content;
[0009] If it is determined that the first target content includes new content, a pre-constructed first association map is obtained, and the mapping relationship between the new content and the old content is obtained by connecting each attribute of the new content with the target attribute of the second target content in the first association map. The new content is the content to be cold started. The first association map is used to describe the association relationship between content and attribute and the association relationship between attributes. The target attribute of the second target content is the same as the attribute of the new content.
[0010] Input the mapping relationship between new and old content and the candidate recommended content into the trained network model to obtain the output result of the trained network model, which is used to describe the probability of interaction between the user and the new and old content;
[0011] Determine the recommended content based on the output results.
[0012] As can be seen from the above, the embodiment of the present application obtains a mapping relationship between new and old content by connecting the attributes of the new content with the target attributes of the second target content in the first association graph. In this way, the new content and the old content with the same attributes can be connected, thereby realizing the cold start estimation of the new content, so that the new content can quickly enter the recommendation system, shortening the cold start cycle of the new content, and also enabling the network model to perform effective and accurate reasoning, thereby improving the recommendation accuracy of the new content.
[0013] In some possible implementations of the first aspect, before obtaining the recommendation request, the method further includes:
[0014] Obtain content data and user data;
[0015] Constructing a first association graph based on the content data;
[0016] Using the first association graph and / or the multi-reference behavior fusion sequence to train a recall model to obtain a trained recall model, wherein the multi-reference behavior fusion sequence is constructed based on user data;
[0017] The network model is trained using content data and user data to obtain a trained network model.
[0018] In this implementation, the first association graph mines the potential association between content and attributes, and the multi-reference behavior fusion sequence mines the potential association between content and content. Training the recall model based on the first association graph and / or the multi-reference behavior fusion sequence can make the knowledge graph denser, thereby obtaining a recall model with higher recommendation accuracy, thereby improving the recommendation accuracy of candidate recommended content.
[0019] In some possible implementations of the first aspect, constructing a first association graph according to the content data includes:
[0020] According to the attribute information of each content, associated attribute information and same attribute information are obtained, wherein the associated attribute information is used to describe the associated attributes between each content, and the same attribute information is used to describe the same attributes between each content, and the content data includes the attribute information of the content;
[0021] The contents and attributes are connected according to the attribute information, the same attributes are connected according to the same attribute information, and the related attributes are connected according to the related attribute information to obtain a first related graph.
[0022] In this implementation, not only are each content connected to the corresponding attribute, but also the content with the same attribute is connected through the attribute, and the content with associated attributes is connected through the attribute. This can mine the intrinsic relationship between content and attributes, as well as between attributes, thereby improving the accuracy of content recommendation.
[0023] In some possible implementations of the first aspect, the user data includes user operation behavior data on content and content reference data within a preset time period; and constructing a multi-reference behavior fusion sequence according to the user data includes:
[0024] Determine new content within a preset time period based on operational behavior data;
[0025] For each newly added content, the template content referenced by the newly added content is connected with the next newly added content in time sequence according to the content reference data to obtain a multi-reference behavior fusion sequence. The content reference data is used to describe the content referenced by each content and the template content referenced by each content.
[0026] In this implementation, the template content referenced by the new content is connected with the next new content in time sequence, which can integrate the user's historical usage information and content association relationship to build a deeper association graph, thereby improving the accuracy of content recommendation.
[0027] In some possible implementations of the first aspect, the mapping relationship between the new content and the old content is obtained by connecting each attribute of the new content with the target attribute of the second target content in the first association graph, including:
[0028] Construct an attribute matrix for new content;
[0029] Connecting each attribute of the new content with the target attribute of the second target content in the first association graph to obtain a second association graph;
[0030] For each attribute in the attribute matrix, the identifier of the second target content having the target attribute is determined according to the second association map, and the attribute in the attribute matrix is replaced with the identifier of the new content to obtain a mapping relationship between the new and old content.
[0031] In this implementation, the attribute information of the new content is supplemented by constructing an attribute matrix of the new content; by obtaining content identifiers with the same attributes as the new content and constructing a new and old content mapping matrix, the mapping relationship between the new and old content is obtained, which can assist in completing the cold start estimation of the new content.
[0032] In some possible implementations of the first aspect, if the first target content does not include new content, the method further includes: inputting the candidate recommended content into a trained network model to obtain an output result of the trained network model.
[0033] In some possible implementations of the first aspect, before inputting the candidate recommendation content into the trained network model, the method further includes: loading the trained network model through a directed acyclic graph task lazy evaluation mechanism.
[0034] In this implementation, the trained network model is loaded and saved through the directed acyclic graph task lazy evaluation mechanism, so that the model can be loaded before the cold start reasoning starts, ensuring the real-time performance of the cold start reasoning.
[0035] In a second aspect, an embodiment of the present application provides a recommendation device, the device comprising:
[0036] A request module, used to obtain a recommendation request, where the recommendation request includes information about the first target content;
[0037] A recall module, used to input a recommendation request into a pre-trained recall model, and obtain a recall result output by the pre-trained recall model, wherein the recall result includes candidate recommendation content;
[0038] A new-old mapping relationship determination module, for obtaining a pre-constructed first association map if it is determined that the first target content includes new content, and obtaining a new-old content mapping relationship by connecting each attribute of the new content with a target attribute of the second target content in the first association map, wherein the new content is the content to be cold-started, the first association map is used to describe the association relationship between content and attribute and the association relationship between attributes, and the target attribute of the second target content is the same as the attribute of the new content;
[0039] The sorting module is used to input the mapping relationship between new and old content and the candidate recommended content into the trained network model to obtain the output result of the trained network model, and the output result is used to describe the interaction probability between the user and the new and old content; and the recommended content is determined based on the output result.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any method of the first aspect when executing the computer program.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the above-mentioned first aspects is implemented.
[0042] In a fifth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement any method as described in the first aspect above. The chip system can be a single chip or a chip module composed of multiple chips.
[0043] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method of the first aspect.
[0044] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a recommended process provided for an embodiment of the present application;
[0046] Figure 2 A schematic block diagram of a recommendation system provided in an embodiment of the present application;
[0047] Figure 3 Another schematic block diagram of a recommendation system provided in an embodiment of the present application;
[0048] Figure 4 A schematic flow chart of a recommended method provided in an embodiment of the present application;
[0049] Figure 5A A schematic diagram of the association between content and attributes provided in an embodiment of the present application;
[0050] Figure 5B A schematic diagram of the association between attributes provided in the embodiment of the present application;
[0051] Figure 6 A schematic diagram of an association map in a scenario where a solution is recommended according to an embodiment of the present application;
[0052] Fig. 7A A schematic diagram of a second association graph construction process provided in an embodiment of the present application;
[0053] Figure 7B A schematic diagram of a second association map provided in an embodiment of the present application;
[0054] Fig. 8A A schematic diagram of an offline recall phase provided in an embodiment of the present application;
[0055] Figure 8B Another schematic diagram of the offline recall stage provided in an embodiment of the present application;
[0056] Fig. 9 Another schematic flow chart of a recommended method provided in an embodiment of the present application;
[0057] Fig.10 A schematic diagram of a recommended process provided for an embodiment of the present application;
[0058] Fig.11 A structural block diagram of a recommended device provided in an embodiment of the present application;
[0059] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to facilitate a thorough understanding of the embodiments of the present application.
[0061] Typically, the recommendation process can be divided into a recall phase and a ranking phase. For example, see Figure 1 A schematic diagram of a recommendation process provided by an embodiment of the present application is shown, and the recommendation model includes but is not limited to a recall layer and a sorting layer, the recall layer is used in the recall stage, and the sorting layer is used in the sorting stage. The recall layer and the sorting layer usually need to rely on related network models. The recall layer usually uses an embedding model, which can map the original input data, and after generating a sequence based on the graph by point walk, the sequence is feature embedded to obtain a feature embedding vector. The sorting layer usually uses an artificial intelligence model (AI) model, such as a reinforcement learning model and a knowledge graph enhancement model.
[0062] like Figure 1 As shown, the candidate content set has tens of millions of content data, and the tens of millions of content data are input into the recall layer; the model of the recall layer performs a recall operation on the tens of millions of content data based on various feature information (such as user feature information, etc.) to quickly reduce the tens of millions of content data to thousands, and input the thousands of content data into the sorting layer; the model of the sorting layer performs a sorting operation on the thousands of content data based on various feature information to obtain tens of content data, and recommends the tens of content data to the user.
[0063] It is understandable that the recall phase has the characteristics of large data volume, fast speed, simple model and fewer features, while the sorting phase has the characteristics of small data volume, precise sorting, complex model and more features.
[0064] For new content, the recommendation system often needs to use cold start technology to allow the new content to enter the recommendation system and be recommended.
[0065] Cold start can mean that new content is difficult to enter the recommendation system and be recommended because it has not participated in training in the past and has no other content reference information. It takes a long time to "warm up" before "recommendation" can be started.
[0066] The inventors of the present application discovered during long-term research that after new content enters the database of the recommendation system, the knowledge graph constructed based on the old content or other modules of the recommendation system cannot be updated in a timely manner, which results in the new content being unable to quickly enter the recommendation system and be recommended immediately, resulting in a long cold start cycle for the new content; in addition, when content recommendations are made based on knowledge graphs or other models that cannot be updated in a timely manner, the recommendation accuracy of the new content will also be reduced.
[0067] In response to the above-mentioned problems, an embodiment of the present application proposes a recommendation scheme, which first constructs a first association graph based on old content data; after obtaining the input new content, the attributes of the new content are respectively connected with the corresponding attributes of the old content in the first association graph to obtain the mapping relationship between the new and old content, and the mapping relationship between the new and old content is input into the trained network model to obtain the interaction probability between the user and the new and old content, and obtain recommended content based on the level of the interaction probability, thereby shortening the cold start cycle of new content and improving the accuracy of new content recommendation.
[0068] The recommendation scheme provided in the embodiment of the present application can be applied to the recommendation system. Figure 2 A schematic block diagram of a recommendation system provided by an embodiment of the present application is shown. The recommendation system may include at least one terminal device 100 and a server 200. The terminal device 100 and the server 200 are communicatively connected.
[0069] The terminal device 100 may be a user terminal such as a mobile phone, a tablet or a computer. The type of the terminal device 100 may vary depending on the application scenario of the recommendation system. For example, when the recommendation system is used to recommend news or short videos, the terminal device 100 may be a mobile phone or a tablet; when the recommendation system is used to recommend solutions in the field of telecommunications operation and maintenance, the terminal device 100 may be a computer of an operation and maintenance personnel. The specific type of the terminal device 100 is not limited in the embodiment of the present application.
[0070] The server 200 may refer to a cloud server, which may be connected to the terminal device 100 through the Internet. The server 200 may include multiple server entities with different functions. For example, the server 200 may include an application server, a data storage server, and a recommendation server. The data storage server may be used to store a large amount of content data, and the recommendation server may be used to implement the recommendation function. Of course, the server 200 is represented as a server entity, and multiple different functions are implemented by this server entity.
[0071] The terminal device 100 is used to send a recommendation request to the server 200, and after receiving the recommended content returned by the server 200 in response to the recommendation request, present the recommended content to the user.
[0072] The server 200 is used to receive a recommendation request from the terminal device 100 ; in response to the recommendation request, perform recall and sort operations based on stored content data and user data, etc., obtain recommended content, and return the recommended content to the terminal device 100 .
[0073] By way of example and not limitation, see Figure 3 Another schematic block diagram of a recommendation system provided by an embodiment of the present application is shown, and the recommendation system may include a recommendation platform 31, an application server 32, a recommendation device 33, and a data storage server 34. Among them, the recommendation device 33 is used to implement the recommendation function, which can be a server entity independent of the application server 32, or it can be deployed on the application server 32 as a module of the application server 32, which is not limited here. At this time, the above-mentioned server 200 may include the application server 32, the recommendation device 33, and the data storage server 34.
[0074] Specifically, the recommendation platform 31 presents a front-end interface on the terminal device of the user 35. On the front-end interface, the user can edit, click, browse, and quote the content. When the user 35 operates the content on the front-end interface, the recommendation platform 31 can record the operation behavior data of the user 35, and transfer the recorded user operation behavior data in batches to the back-end application server 32. The user operation behavior data may include, for example, click, browse, edit, and quote behavior data. After receiving the user operation behavior data, the application server 32 processes the user operation behavior data accordingly and stores it in the data storage server 34.
[0075] In addition, the user 35 can also actively initiate a recommendation request or trigger a recommendation request through the front-end page of the recommendation platform 31. The recommendation platform 31 can send the recommendation request to the application server 32 in response to the user operation, and the application server 32 then sends the recommendation request to the recommendation device 33. The recommendation request can carry natural language text, which can be the search word entered by the user in the search box or the front-end interface.
[0076] After the application server 32 sends the recommendation request to the recommendation device 33, the recommendation device 33 responds to the recommendation request, obtains the user operation behavior data through the application server 32, and performs structured processing on the user operation behavior data to obtain structured data; performs a content data recall operation based on the structured data to obtain a recall result. During the recall operation, the recommendation device 33 requests the content data from the data storage server 34, and the data storage server 32 responds to the request and sends the stored content data to the recommendation device 33 through the application server 32; after obtaining the recall result, the recommendation device 33 accurately sorts the recall result to obtain ordered recommended content, and returns the ordered recommended content list to the application server 32; the application server 32 recommends the recommended content list to the user 35 through the recommendation platform 31.
[0077] Figure 3 The recommendation system can be applied to a variety of recommendation scenarios. When the recommendation scenario is different, the recommended content list will be different accordingly. For example, Figure 3 The following diagram shows scenarios such as solution recommendation, homepage recommendation, and recommendation of what you might like. In the solution recommendation scenario, the data storage server 34 stores a large amount of solution data maintained by the operation and maintenance personnel, and the recommendation device 33 selects recommended solutions from the large amount of solution data and recommends solutions. In the recommendation scenario of what you might like, the data storage server 34 stores a large amount of news data, and the recommendation device 33 selects recommended news from the large amount of news data and recommends what you might like. In the homepage recommendation scenario, the data storage server 34 stores a large amount of document content data, and the recommendation device 33 selects recommended content from the large amount of document content data and recommends the homepage content of the search page or web page.
[0078] After exemplarily introducing the recommendation system architecture and application scenarios provided by the embodiments of the present application, the recommendation scheme provided by the embodiments of the present application is introduced in detail below.
[0079] See also Figure 4 , is a schematic flow chart of a recommended method provided in an embodiment of the present application, and the method may include the following steps:
[0080] Step S401: The server 200 obtains a recommendation request, where the recommendation request includes information about a first target content.
[0081] The recommendation request may be sent by the terminal device 100. The terminal device 100 may send a recommendation request to the server 200 after detecting a trigger operation by the user. For example, after the user enters a search keyword in the search box of the mobile web page, the mobile phone sends a recommendation request to the server, and the recommendation request carries the search keyword. Of course, in other embodiments, the server 200 may be triggered to enter the recommendation process in other ways.
[0082] The recommendation request may include user information, such as a user ID, in addition to the information of the first target content.
[0083] The information of the first target content may include relevant information of the first target content. For example, in a news recommendation scenario, when a user browses and clicks on relevant news on a mobile phone, the mobile phone responds to the click operation on the news and sends a recommendation request to the server, and the server responds to the recommendation request. At this time, the first target content may refer to the news clicked by the user, and the information of the first target content may include one or more of the title, content and category of the news clicked by the user. The information of the first target content may be set as needed. Of course, the recommendation request may also carry the user ID of the user, so that the server can find the relevant data of the user according to the user ID, and the relevant data may include but is not limited to the historical operation behavior data and user preference data of the user. In addition, the server can also make recommendations based on the relevant data of the user to make the recommended news more suitable for the user.
[0084] For another example, in a scenario of recommending solutions in the field of telecommunications operation and maintenance, a user may fill in the relevant information of the solution on a computer. In response to the user operation, the computer generates a recommendation request and sends the recommendation request to the server. The recommendation request carries the solution information filled in by the user and the user information. At this time, the first target content is the solution filled in by the user, and the information of the first target content is the relevant information of the solution.
[0085] Step S402: The server 200 inputs the recommendation request into the pre-trained recall model, and obtains the recall result output by the pre-trained recall model, where the recall result includes candidate recommendation content.
[0086] The recall model is used in the recall phase of the recommendation process, which can be, for example, a graph embedding model. The recall model can perform a recall operation to filter out candidate recommended content from a content data set.
[0087] Step S403: The server 200 determines whether the first target content includes new content. If the first target content includes new content, the process proceeds to step S404; if the first target content does not include new content, the process proceeds to step S406.
[0088] The first target content includes one or more contents, and there may or may not be new content in the contents.
[0089] The information of the first target content refers to relevant data used to describe the first target content. According to the information of the first target content, it can be determined whether the first target content includes new content.
[0090] For example, the content is specifically a solution, and the information of the first target content includes the solution name. In the solution name-solution ID table, the solution name and the solution ID correspond one to one. For existing solutions, each solution name has a unique solution ID. At this time, traverse the solution name-solution ID table to determine whether the solution ID corresponding to the solution name carried by the recommendation request can be found; if the solution name carried by the recommendation request has a corresponding solution ID, it indicates that the solution is an existing solution. On the contrary, if the solution name carried by the recommendation request does not have a corresponding solution ID, it indicates that the solution is a new solution.
[0091] Step S404, the server 200 obtains a pre-constructed first association graph, and obtains a mapping relationship between the new and old content by connecting each attribute of the new content with the target attribute of the second target content in the first association graph. The new content is the content to be cold started. The first association graph is used to describe the association relationship between content and attributes and the association relationship between attributes. The target attribute of the second target content is the same as the attribute of the new content.
[0092] The first association graph is pre-constructed based on the content data. The content data includes but is not limited to the attribute information of each content. Each content has one or more attributes. For example, in the solution recommendation scenario, the content refers to the solution, and the content data refers to the solution data, which includes the attribute information of each solution; each solution can have the following attributes: change sub-scenario, technical support center, product line, component, product family and product, etc. For another example, in the news recommendation scenario, the content refers to news, and the content data refers to news data. At this time, each news can have attributes such as news category, release time and place.
[0093] The first association graph is composed of edges and nodes, content and attributes are the nodes of the graph, and the association relationship between content and attributes is the edge of the graph.
[0094] In some embodiments, the attribute information of each content is first obtained, and then for each content, the attributes belonging to the content are connected with the content according to the attribute information of the content to construct a first association graph. Figure 5A The schematic diagram of the association between content and attributes shown in FIG. 2 shows two contents, each of which includes two attributes, and each of which is connected to the corresponding two attributes. At this time, the edge between the content node and the attribute node in the constructed first association graph can describe the association relationship between the content and the attribute.
[0095] In other embodiments, the first association graph may describe not only the association relationship between content and attribute, but also the association relationship between attributes. In this case, the association relationship between attributes is also an edge of the graph. When constructing the first association graph, not only the content nodes are connected to the attribute nodes, but also the same attribute nodes are connected to the associated attribute nodes.
[0096] According to the attribute information of each content, the same attribute information and the associated attribute information can be determined. The associated attribute information can describe the associated attributes of each content, that is, through the associated attribute information, it can be known that a certain attribute of one content is an associated attribute with a certain attribute of another content; the same attribute information is used to describe the same attributes between each content, that is, through the same attribute information, it can be known that a certain attribute of one content is the same attribute as a certain attribute of another content. Specifically, the above-mentioned associated attribute information can be obtained according to the attribute information of the content through expert prior information and domain knowledge.
[0097] After obtaining the associated attribute information and the same attribute information, the associated attributes can be connected according to the associated attribute information, and the same attributes can be connected according to the same attribute information; in addition, for each content, according to the attribute information, all the attributes belonging to the content are connected with the content to construct a first association graph. At this time, the first association graph includes not only the edges between the content nodes and the attribute nodes, but also the edges between the attribute nodes and the attribute nodes, and the two attribute nodes can be the same attribute nodes or associated attribute nodes.
[0098] For example, see Figure 5B The diagram shows the association between attributes. Figure 5B Two contents are shown in FIG. 1 , each of which includes two attributes. For each content, the attribute belonging to the content is connected to the content according to the attribute information of each content; in addition, the same attributes of the two contents are connected, specifically referring to Figure 5B The dashed line between the two unshaded triangles in the figure, that is, the unshaded triangles connected by the dashed line represent two identical attributes; connecting the associated attributes of two contents, specifically Figure 5B The dashed line between the shaded triangle and the unshaded triangle, that is, the unshaded triangle and the shaded triangle connected by the dashed line represent two associated attributes.
[0099] By comparison Figure 5A and Figure 5B It can be seen that Figure 5A It just connects the content and attributes, but Figure 5B It not only connects content and attributes, but also connects attributes to each other. Figure 5BBy connecting the same attributes and related attributes, the deep information between content and attributes and between attributes is deeply mined.
[0100] By connecting the same attributes and connecting related attributes, deeper related information is excavated, solving the problem of poor content recommendations in sparse situations where there is no interaction between users and content, thereby improving the accuracy of content recommendations.
[0101] Of course, in some other embodiments, when constructing the first association graph, in addition to connecting the content and the attributes, only the same attributes or related attributes may be connected, and it is not necessary to connect both the same attributes and the related attributes at the same time. In this way, the accuracy of content recommendation can also be improved.
[0102] For example, see Figure 6 The schematic diagram of the association map in the scenario of solution recommendation is shown, where solution A includes attributes A1 and A2, and solution B includes attributes B1 and B2. Assume that the identity document (ID) of solution A is DI2022063000004, attribute A1 is the technical support center, specifically the mobile station in C, and attribute A2 is the product attribute. The ID of solution B is DI20211108000886, attribute B1 is the technical support center, specifically the mobile station in C, and attribute B2 is the product attribute.
[0103] Among them, plan A is the new plan, plan B is the old plan, and plan A refers to plan B. In the plan recommendation scenario, the attributes of the plan may include but are not limited to: change sub-scenario, technical support center, product line, component, and product.
[0104] First, according to the attribute information of solution A and the attribute information of solution B, it is determined that attribute A1 and attribute B1 are the same attribute. Attribute A1 and attribute B1 are both technical support center attributes, and the technical support center attributes are both mobile sites in C.
[0105] Then, based on the expert prior information and domain knowledge, and based on the attribute information of Plan A and Plan B, it is determined that attribute A2 and attribute B2 are both product attributes, and although the product names are different, they both belong to products related to performance parameter tuning, so it is determined that attribute A2 and attribute B2 are associated attributes.
[0106] Finally, according to the attribute information of scheme A, attribute A1 and attribute A2 are both connected to scheme A; according to the attribute information of scheme B, attribute B1 and attribute B2 are both connected to scheme B; in addition, the same attributes and associated attributes are connected, that is, attribute A1 and attribute B1 are connected, and attribute A2 and attribute B2 are connected, so as to construct an attribute-enhanced association map, which is the first association map mentioned above.
[0107] After the first association map is constructed according to the content data, the first association map can be stored in the data storage server. When the server 200 needs to cold start new content, it reads the pre-stored first association map and connects the new content with the old content in the first association map to obtain the mapping relationship between the new and old content.
[0108] The second target content is content that already exists in the first association graph and has a target attribute. For new content, each content in the first association graph is old content, that is, the second target content is old content.
[0109] The second target content refers to content with one or more target attributes. The target attribute is the same as the attribute of the first target content, or the target attribute is the attribute of the first target content. That is, when a certain content in the first association map has a target attribute, the content is the second target content.
[0110] For example, the first target content is the above Figure 6 Scheme A in the example has two attributes, attribute A1 and attribute A2. Scheme B has attribute B1 and attribute B2. At this time, since attribute B1 of scheme B is the same as attribute A1 of scheme A, attribute B1 is the target attribute, scheme B has target attribute B1, and scheme B is the second target content.
[0111] In the first association graph, target attributes identical to the attributes of the first target content are found, and then the attributes of the first target content are connected with the corresponding target attributes to construct a second association graph, and the association relationship between the new and old contents is obtained according to the second association graph.
[0112] In some embodiments, the attribute matrix of the new content is first constructed. Specifically, a preset number of attributes are obtained from the attributes of the new content, and the preset number of attributes are used to form an attribute matrix. The preset number can be set according to actual needs, and it can be greater than the number of attributes of the new content, or less than or equal to the number of attributes of the new content. When the preset number is greater than the number of attributes of the new content, a corresponding number of attributes can be randomly extracted from the attributes of the new content to complete the attribute matrix. For example, in the solution recommendation field, the solution with solution ID 60145 is a new solution, which has three attributes, namely "BTS3900", "Software Upgrade" and "Software Update". Since each solution has four attributes in the original attribute matrix, that is, the preset number is four, and the preset number is greater than the number of attributes of the new solution. At this time, the three attributes of the new solution are first used as the three attributes in the attribute matrix, and then one attribute is randomly selected from the three attributes as the fourth attribute of the attribute matrix to obtain an attribute matrix including four attributes. Assuming that "Software Upgrade" is randomly selected as the fourth attribute of the attribute matrix at this time, the attribute matrix at this time can be exemplified as shown in Table 1 below.
[0113] Table 1
[0114]
[0115] When the preset number is less than the number of attributes of the new content, a preset number of attributes may be randomly extracted from the attributes of the new content, and the extracted attributes are combined into an attribute matrix.
[0116] It should be pointed out that a certain number of attributes are randomly extracted (repeatably extracted) for each new content to form an attribute matrix, and the attributes of the new content can be supplemented into the network model and the first association map based on the attribute matrix.
[0117] After constructing the attribute matrix of the new content, each attribute of the new content is connected with the target attribute of the second target content in the first association map to obtain the second association map.
[0118] For example, the attribute matrix of the new content is shown in Table 1 above. For the attribute "BTS3900", the solution with ID 603124 has this attribute, for the attribute "Software Upgrade", the solution with ID 603137 has this attribute, for the attribute "SoftwareUpdate", the solution with ID 602994 has this attribute, and for the second attribute "Software Upgrade", the solution with ID 603056 has this attribute.
[0119] The second association graph is constructed by connecting the same attributes of the new solution and the old solution. Specifically, "BTS3900" of solution 60145 is connected with "BTS3900" of solution 603124, "Software Upgrade" of solution 60145 is connected with "Software Upgrade" of solution 603137, "Software Update" of solution 60145 is connected with "Software Update" of solution 602994, and "Software Upgrade" of solution 60145 is connected with "Software Upgrade" of solution 603056. In this way, on the basis of the first association graph, the attribute information of the new solution is supplemented to the first association graph by connecting each attribute of solution 60145 to the attribute of the corresponding old solution, thereby constructing the second association graph.
[0120] For example, see Fig. 7A The schematic diagram of the second association map construction process is shown and Figure 7B The second association map schematic diagram is shown, Fig. 7A and Figure 7B This is a solution recommendation scenario. In the solution recommendation scenario, the first target content is specifically a new solution, and the second target content is specifically an old solution in the first association graph.
[0121] like Fig. 7A As shown, new plan 1, new plan 2 and new plan 3 are all plans to be cold started, and the first association map includes old plans 1 to old plans 9. Old plan 1 has attribute 1, old plan 2 has attribute 1, old plan 3 has attributes 1 and 2, old plan 4 has attributes 2 and 4, old plan 5 has attribute 4, old plan 6 has attribute 4, and old plans 7, old plans 8 and old plans 9 all have attribute 3.
[0122] New solution 1 has attribute 1, new solution 2 has attributes 2 and 4, and new solution 3 has attributes 3 and 4.
[0123] For each new solution, we construct an attribute matrix for the new solution and connect the attributes of the new solution with the corresponding attributes of the old solution according to the attribute matrix. Fig. 7AAs shown, attribute 1 of new solution 1 is the same attribute as attribute 1 of old solution 1, old solution 2 and old solution 3, so after connecting new solution 1 and attribute 1 with a solid line, attribute 1 of new solution 1 is connected with attribute 1 of old solution 1, old solution 2 and old solution 3 with a dotted line. Similarly, attribute 2 of new solution 2 is the same attribute as attribute 2 of old solution 3 and old solution 4, so after connecting new solution 2 and attribute 2 with a solid line, attribute 2 of new solution 2 is connected with attribute 2 of old solution 3 and old solution 4 with a dotted line; attribute 4 of new solution 2 is the same attribute as attribute 4 of old solution 4, old solution 5 and old solution 6, so after connecting new solution 2 and attribute 4 with a solid line, attribute 4 of new solution 2 is connected with attribute 4 of old solution 3, old solution 4, old solution 5 and old solution 6 with a dotted line.
[0124] Attribute 4 of the new plan 3 is the same attribute as attribute 4 of the old plan 4, old plan 5 and old plan 6, so after connecting the new plan 3 and attribute 4 with a solid line, connect attribute 4 of the new plan 3 with attribute 4 of the old plan 3 and old plan 4, old plan 5 and old plan 6 with a dotted line; attribute 3 of the new plan is the same attribute as attribute 3 of the old plan 7, old plan 8 and old plan 9, so after connecting the new plan 3 and attribute 3 with a solid line, connect attribute 3 of the new plan 3 with attribute 3 of the old plan 7, old plan 8 and old plan 9 with a dotted line.
[0125] By connecting the same attributes of the new and old solutions, the new solution and the old solution can be indirectly connected. After connecting the same attributes of the new and old solutions, we can get the following Figure 7B The second association map shown in FIG. Figure 7B As shown, the new solution 1, the new solution 2 and the new solution 3 in the second association graph are all connected to the old solution through the same attributes.
[0126] After obtaining the second association map, for each attribute in the attribute matrix, the identifier of the second target content with the target attribute is determined according to the second association map, and the attribute in the attribute matrix is replaced with the identifier of the new content to obtain a mapping relationship between the new and old content.
[0127] The mapping relationship between new and old content can be specifically expressed as a new and old content mapping matrix. The new and old content mapping matrix is obtained by searching for content with the same attributes as the new content in the second association map and replacing the attributes of the attribute matrix with the identifier of the second target content.
[0128] For example, assuming that the attribute matrix of the new solution is as shown in Table 1 above, the identifier is specifically the solution ID. At this time, it is known from the second association map that for the attribute "BTS3900", the solution with ID 603124 has this attribute, so the "BTS3900" in Table 1 above is replaced with "603124"; for the attribute "software upgrade", the solution with ID 603137 has this attribute, so the first "software upgrade" in Table 1 above is replaced with "603137"; similarly, for the attribute "Software Update", the solution with ID 602994 has this attribute, so the "Software Update" in Table 1 above is replaced with "602994"; for the second attribute "software upgrade", the solution with ID 603056 has this attribute, so the second "software upgrade" in Table 1 above is replaced with "603056", and the new and old content mapping matrix can be obtained as shown in Table 2 below. Among them, Plan 603124, Plan 603137, Plan 602994 and Plan 603056 are all old plans in the first association map.
[0129] Table 2
[0130] Cold start item 0 1 2 3 60145 603124 603137 602994 603056
[0131] It is worth pointing out that the embodiment of the present application can supplement the attribute information of the new content by constructing an attribute matrix of the new content; by obtaining the content identifier with the same attributes as the new content and connecting the same attributes of the new and old content, a mapping relationship between the new and old content can be obtained. In this way, the new content can be described using the attributes recognized by the old model, and the knowledge graph can be updated in time according to the attribute information of the new content, thereby assisting in completing the cold start estimation of the new content.
[0132] Step S405: The server 200 inputs the mapping relationship between the new and old contents and the candidate recommended contents into the trained network model to obtain an output result of the trained network model, where the output result is used to describe the probability of interaction between the user and the new and old contents.
[0133] The above network model can be a Knowledge Graph Convolutional Networks (KGCN) model, or other types of network models, which are not limited here.
[0134] The network model is a model that has been trained and saved. If there is no new content in the first target content, there is no need to cold start. At this time, the candidate recommended content can be directly input into the saved network model, and the network model can be used for reasoning. If there is new content in the first target content, the mapping relationship between the new and old content and the candidate recommended content can be input into the network model, and the network model can be used for reasoning.
[0135] The network model is trained for preset rounds, and the prediction accuracy of each round is compared. The network model corresponding to the round with the highest prediction accuracy in the preset rounds is used as the trained network model. In each round of model training, the candidate recommended content can be used as the input of the network model, and the prediction result output by the network model can be obtained. In specific applications, the saved network model can be trained once every preset period. In the offline network model training stage, the network model can be trained with the candidate recommended content output by the offline recall stage to obtain a trained network model. Among them, the offline recall stage can construct a knowledge graph based on content data and user data, and then use the knowledge graph to train the graph embedding model, or use the knowledge graph, multi-reference behavior fusion sequence and the first association graph to train the graph embedding model.
[0136] It should be pointed out that when the network model is a KGCN model, before the KGCN model training starts, it is usually necessary to read the complete knowledge graph, and then divide the tens of millions of content information and attribute information in the knowledge graph. Before using the Python GIL unlocking technology, Python needs to process tens of millions of content information and attribute information in the knowledge graph one by one. At this time, even if each piece of information takes 0.001 seconds, the total time required to process 10 million pieces of information is close to 167 minutes, which will lead to inefficiency in the entire training process. In this regard, the embodiment of the present application uses the Python GIL unlocking technology to process multiple pieces of information at the same time. Compared with the previous processing of one piece of information every 0.001s, processing multiple pieces of information every 0.001s can greatly improve the efficiency of the entire training process.
[0137] If the first target content includes new content, that is, content that needs to be cold-started, the trained network model is used for cold-start reasoning. The trained network model performs cold-start reasoning on new content to infer the probability of the user interacting with the new and old content, and outputs the inferred interaction probability as the result.
[0138] After training the network model and obtaining the trained network model, the trained network model can be saved, and when cold start inference of new content is required later, the saved trained network model can be loaded.
[0139] In some embodiments, each time a cold start inference is started, the saved network model needs to be reloaded, and after the loading is complete, the mapping relationship between the new and old content is input into the network model. It usually takes more than three seconds to load the network model, which makes the time between inputting the mapping relationship between the new and old content and outputting the inference result greater than three seconds. However, the cold start inference has high real-time requirements, and taking more than three seconds does not meet the real-time requirements of the cold start inference of new content.
[0140] In other embodiments, in order to ensure the real-time performance of cold-start reasoning of new content, a directed acyclic graph (DAG) task lazy evaluation mechanism can be used to load the network model. The DAG task lazy evaluation mechanism can enable the saved network model to be loaded before the cold-start reasoning begins, and when the mapping relationship between the new and old content is obtained, the cold-start reasoning can be performed immediately without waiting for the network model to be loaded. In this way, the time taken from inputting the mapping relationship between the new and old content to outputting the reasoning result can be less than 0.1 second, which can meet the real-time requirements of cold-start reasoning. In addition, after the network model loaded using the DAG task lazy evaluation mechanism completes the reasoning, it can enter the state of waiting for input again until the reasoning service is shut down or restarted.
[0141] It is worth pointing out that when the network model is a KGCN model, the graph convolutional network (GCN) can be used to mine the associated attributes of the content on the knowledge graph, thereby effectively capturing the correlation between the content and improving the accuracy of new content recommendation; in addition, on the basis of the first association graph, the new content and the old content with the same attributes are connected, so that the KGCN model can effectively and accurately infer the new content based on the mapping relationship between the new and old content, thereby improving the accuracy of new content recommendation; in addition, using the mapping relationship between the new and old content as the input of the model can enable the network model to dynamically process new content and avoid frequent updates of the network model that lead to the inability to infer in real time.
[0142] Step S406: The server 200 inputs the candidate recommendation content into the trained network model to obtain the output result of the trained network model.
[0143] If there is no new content in the first target content, that is, there is no content to be cold-started, then instead of connecting the new and old content to obtain the mapping relationship between the new and old content, the candidate recommended content can be directly input into the network model and the network model can be used for reasoning. At this time, the output result of the network model is used to describe the probability of the user interacting with each content.
[0144] In other words, if there is no new content in the input of the network model, the network model can use the original attribute matrix for reasoning; if there is new content in the input of the network model, the mapping relationship between the new and old content is required as the input of the network model to input the updated attribute matrix into the network model, so that the network model can effectively and accurately reason about the new content.
[0145] Step S407: The server 200 determines recommended content according to the output result.
[0146] The above output result can be the output result of step S405. At this time, since the first target content includes new content, the output result includes the interaction probability of the new content and the interaction probability of the old content; it can also be the output result of the above step S406. At this time, the output result does not include the interaction probability of the new content.
[0147] The output result can represent the interaction probability of each content. The higher the interaction probability, the higher the recommendation priority. In some embodiments, the content is sorted according to the interaction probability, and the recommended content is selected from the sorted content. For example, the content with an interaction probability greater than or equal to a preset probability threshold can be selected as the recommended content, or the content can be sorted from large to small according to the interaction probability, and the top 10 content can be selected as the recommended content.
[0148] It should be pointed out that the embodiment of the present application connects the attributes of the new content with the target attributes of the second target content in the first association graph to obtain a mapping relationship between the new and old content. In this way, the new content and the old content with the same attributes can be connected, and the attribute information of the new content can be supplemented to the network model and the first association graph, thereby realizing the cold start estimation of the new content, so that the new content can quickly enter the recommendation system, shortening the cold start cycle of the new content, and also enabling the network model to perform effective and accurate reasoning, thereby improving the recommendation accuracy of the new content.
[0149] Based on the above embodiment, the server 200 can first obtain content data and user data, then train the network model and the recall model according to the content data and the user data, obtain the trained network model and the trained recall model, and save the trained network model and the trained recall model.
[0150] User data and content data may be stored in a data storage server, and the server 200 may obtain required content data and user data from the data storage server.
[0151] User data may include, but is not limited to, user operation behavior data within a preset time period, which is obtained by recording the user's operation behavior on the content within the preset time period. The user's operation behavior on the content includes, but is not limited to, clicking, browsing, editing, and citing. The preset time period can be set according to actual application needs.
[0152] It is understandable that user data may include other information in addition to user operation behavior data, such as user information, which may include basic information such as user age, gender, and preferences. Of course, user data may not include user operation behavior data, but only include data such as user information. The information included in user data may vary depending on the application scenario, and is not limited here.
[0153] When training the recall model based on the content data and the user data, at least one of the first association graph and the multi-reference behavior fusion sequence may be used for model training, or at least one of the first association graph and the multi-reference behavior fusion sequence may not be used for model training. The multi-reference behavior fusion sequence is constructed based on the user data.
[0154] In some embodiments, see Fig. 8A A schematic diagram of the offline recall stage provided by an embodiment of the present application is shown, where the server 200 first performs a composition operation, and then performs a recall operation based on a graph embedding component to output candidate recommended content. Composition refers to constructing a knowledge graph based on user data and content data; and a graph embedding component refers to recall based on a graph embedding component or a graph embedding model.
[0155] It can be understood that recall means: using a graph embedding model to describe content or attributes with feature vectors, and the association between content and content and the association between content and attributes are also described with the association between feature vectors; based on the association between feature vectors, a small amount of content with high correlation is roughly screened out from a large amount of content data as candidate recommended content. For example, 1,000 candidate contents with high correlation are roughly screened out from 100,000 contents through recall, and these 1,000 candidate contents with high correlation constitute the candidate recommended content.
[0156] exist Fig. 8A In the method, at least one of the first association graph and the multi-reference behavior fusion sequence is not used to train the recall model, but only the constructed knowledge graph is input into the graph embedding component to train the graph embedding model.
[0157] However, the knowledge graph constructed based on user data and content data is a sparse graph. A sparse knowledge graph cannot mine the potential associations between content and content, nor can it mine the potential associations between content and attributes. As a result, the recall results obtained based only on the sparse knowledge graph have a low accuracy, that is, the content recommendation accuracy is low. In this way, training a recall model based on a sparse knowledge graph will result in a low content recommendation accuracy of the trained recall model.
[0158] In other embodiments, see Figure 8B Another schematic diagram of the offline recall stage provided by the embodiment of the present application is shown. The server 200 can first construct a knowledge graph based on user data and content data; then, based on the knowledge graph, according to the first association graph and / or the multi-reference behavior fusion sequence, the embedding vector of each content is obtained through the graph embedding model. The multi-reference behavior fusion sequence is constructed based on user data; and according to the embedding vector of each content, the candidate recommended content is obtained. At this time, not only the constructed knowledge graph is used as the input of the graph embedding component, but also at least one of the first association graph and the multi-reference behavior fusion sequence is used as the input of the graph embedding component.
[0159] It is worth pointing out that both the first association graph and the multi-reference behavior fusion sequence can make the knowledge graph denser, and the multi-reference behavior fusion sequence can mine the potential association between content and content, and the first association graph can mine the potential association between content and attributes. Based on the knowledge graph, the recall model is trained in combination with at least one of the first association graph and the multi-reference behavior fusion sequence, so that the content recommendation accuracy of the trained recall model can be higher.
[0160] User data includes user operation behavior data on content and content reference data within a preset time period. The preset time period can be set according to actual needs, for example, the preset time period is one week or one month. User operation behaviors on content may include but are not limited to editing, clicking, browsing, and citing. Content reference data is used to describe the content referenced by each content and the template content referenced by each content. Usually, new content will reference old content, old content may also reference old content, and old content will reference template content.
[0161] In some embodiments, the newly added content within a preset time period can be determined based on the operational behavior data. The newly added content may refer to the content newly added within the preset time period. Then, for each newly added content, the template content referenced by the newly added content is connected with the next newly added content in the sequence based on the content reference data to obtain a multi-reference behavior fusion sequence.
[0162] The new content may directly or indirectly reference the template content. Indirect reference means that the new content references an old content, and the old content directly or indirectly references the template content.
[0163] It is understandable that there is a chronological relationship between the new content and the new content according to the time when the new content occurs.
[0164] It is worth pointing out that by connecting the template content referenced by the new content with the next new content in time sequence, we can integrate the user's historical usage information and content association relationships, build a deeper association graph, and thus improve the accuracy of content recommendations.
[0165] For example, in a plan recommendation scenario, the preset time period is set to one month, that is, the user's operation behavior data for the plan within one month is recorded.
[0166] In the scenario of proposal recommendation, proposal writing means: when writing a new proposal, it is usually written directly from scratch, but it refers to the old proposal in the past (i.e. proposal reference), and the old proposal in the past is often generated by modifying an initial template (i.e. template reference). In this case, the new content is specifically the new proposal, the old content is specifically the old proposal, and the template content is specifically the template proposal.
[0167] Extract the operation behavior data of user c003689xx from the beginning of June to the end of July 2022. Assume that part of the operation behavior data for this month is shown in Table 3 below.
[0168] Table 3
[0169]
[0170]
[0171] As can be seen from Table 3 above, the user wrote a new plan DI20220630000004 on June 30. The new plan DI20220630000004 referenced the old plan numbered DI20211108000886, and the template of DI20211108000886 was DI202111012001542; on July 6, a new plan DI20220706000001 was written. The new plan DI20220706000001 referenced the old plan numbered IN20210522000086, and the template plan of the old plan IN20210522000086 was IN202102250000033.
[0172] It can be understood that for the new solution DI20220630000004, the next new solution in sequence is DI20220706000001, which indirectly refers to the template solution DI202111012001542.
[0173] For the new plan DI20220630000004, connect the new plan DI20220630000004 with the referenced old plan DI20211108000886, connect the old plan DI20211108000886 with the template plan DI202111012001542, and then connect the template plan DI202111012001542 with the next new plan DI20220706000001, so that the template plan of the new plan can be connected with the next new plan.
[0174] Exemplarily, the new proposal and proposal reference written on June 30, proposal reference and template reference, and the template reference on June 30 and the new proposal written on July 6 are structured into a multi-reference behavior fusion sequence, which can be shown in Table 4 below.
[0175] Table 4
[0176] Source (src) Purpose(dst) DI20220630000004 DI20211108000886 DI20211108000886 DI202111012001542 DI202111012001542 DI20220706000001
[0177] It is worth pointing out that by connecting the template reference of the adjacent content with the new content, the sequence adjacent information can be added to form a structured table.
[0178] As can be seen from the above, the embodiment of the present application can combine at least one of the first association graph and the multi-reference behavior fusion sequence to train the recall model, so that the content recommendation accuracy of the trained recall model can be higher.
[0179] Based on the above embodiments, it can be known that the recommendation scheme provided by the embodiments of the present application may include an offline phase and an online reasoning phase. The online reasoning phase refers to using the trained model to perform reasoning to obtain the probability of user interaction with content.
[0180] See also Fig. 9 Another schematic flow chart of a recommended method provided by an embodiment of the present application is shown, and the method may include the following steps:
[0181] Step S901: The server 200 obtains content data and user data, where the content data includes attribute information of the content.
[0182] Step S902: The server 200 constructs a first association graph based on the content data.
[0183] Step S903: The server 200 constructs a multi-reference behavior fusion sequence according to the user data.
[0184] Step S904: The server 200 trains a recall model using the first association graph and / or the multi-reference behavior fusion sequence to obtain a trained recall model.
[0185] Step S905: The server 200 trains a network model according to the content data and the user data, obtains a trained network model, and saves the trained network model.
[0186] In this embodiment, steps S901 to S905 are an offline phase. In a specific application, the network model training process may be performed once every preset period.
[0187] Step S906: The server 200 obtains a recommendation request, where the recommendation request includes information about the first target content and user information.
[0188] Step S907: The server 200 inputs the recommendation request into the pre-trained recall model to obtain the recall result output by the pre-trained recall model, where the recall result includes candidate recommendation content.
[0189] It is understandable that the recall phase of the recommendation process can reduce a large amount of content data (eg, tens of millions) to a small amount (eg, thousands).
[0190] Step S908: The server 200 determines whether the first target content includes new content. If the first target content includes new content, the process proceeds to step S909; if the first target content does not include new content, the process proceeds to step S911.
[0191] Step S909: The server 200 obtains a pre-constructed first association graph, and obtains a mapping relationship between new and old content by connecting each attribute of the new content with the target attribute of the second target content in the first association graph.
[0192] Step S910: The server 200 inputs the mapping relationship between new and old content and the candidate recommended content into the trained network model to obtain an output result of the trained network model, where the output result is used to describe the probability of interaction between the user and the new and old content.
[0193] Step S911: The server 200 inputs the candidate recommendation content into the trained network model to obtain the output result of the trained network model.
[0194] Step S912: The server 200 determines recommended content according to the output result.
[0195] In this embodiment, steps S906 to S912 are an online reasoning stage.
[0196] It can be understood that the similarities between this embodiment and the above embodiments can be found in the corresponding contents above and will not be repeated here.
[0197] In order to better introduce the recommended solution provided in the embodiment of the present application, the solution recommendation scenario is used as an example for introduction and explanation below.
[0198] See also Fig.10 The illustrated schematic diagram of the recommendation process provided by the embodiment of the present application may include input, recall phase, sorting phase, multi-reference behavior fusion sequence construction, attribute enhancement association sequence construction, new scheme mapping enhancement information construction, and output.
[0199] The input may include solution data, user data and natural language text, and the natural language text may be a term entered by the user in the search box. The user data includes the user's historical operation behavior data in a preset time period. The solution data may specifically be a solution data set, for example, in a solution recommendation scenario in the field of telecommunications operation and maintenance, the solution data set may specifically be a tele-graph data set.
[0200] For details about the tele-graph dataset, please refer to https: / / www.datafountain.cn / datasets / 6847.
[0201] In the process of constructing a multi-reference behavior fusion sequence, a multi-reference behavior fusion sequence can be constructed based on the user's historical operation behavior data.
[0202] In the process of constructing the attribute enhancement association sequence, the input is the attribute information and the associated attribute information of each solution. The associated attribute information can be determined based on domain knowledge and expert prior information, and the associated attribute information can describe the associated attributes between each solution and the solution. According to the solution attribute information and the associated attribute information, the attribute enhancement solution association sequence is constructed, and the attribute enhancement association map is output. Specifically, the attribute enhancement association map is the first association map mentioned above. The specific construction process can refer to the construction process of the first association map mentioned above.
[0203] After constructing the first association graph and the multi-reference behavior fusion sequence, the first association graph and the multi-reference behavior fusion sequence can be used as the input of the graph embedding component in the online recall phase. At this time, the input of the graph embedding component may include the knowledge graph obtained through the composition operation, the first association graph, and the multi-reference behavior fusion sequence. According to the content data, user data and natural language text, a knowledge graph is constructed; then the knowledge graph, the multi-reference behavior fusion sequence and the attribute-enhanced association graph (i.e., the first association graph) are used as the input of the graph embedding component, and recall is performed accordingly to output candidate recommendation solutions. In other words, the recall model is trained offline using the first association graph and the multi-reference behavior fusion sequence to obtain a trained recall model. In the online phase, the trained recall model is used for the recall operation.
[0204] After obtaining the candidate recommendations, they are used as input to the KGCN model.
[0205] In the process of constructing the new scheme mapping enhancement information, it is identified whether there is a new scheme in the external input scheme based on the scheme data. If there is a new scheme in the external input scheme, the scheme association sequence with attribute enhancement is constructed based on the information of the new scheme and the first association map to obtain the new scheme mapping enhancement information (i.e., the new and old scheme mapping matrix). Specifically, the attribute matrix of the new scheme is constructed, and then the attributes of the new scheme are connected with the same attributes of the old scheme in the first association map to construct a second association map, and the new and old scheme mapping matrix is obtained according to the second association map.
[0206] In the sorting stage, if the external input solutions include new solutions, the new and old solution mapping matrix, candidate recommended solutions, etc. are input into the trained KGCN model to obtain the inference results output by the KGCN model. In this process, the knowledge graph can be used to enhance the recommendation technology for sorting. Specifically, the trained KGCN model is loaded in advance through the DAG task lazy evaluation technology, and finally the new and old solution mapping matrix is input into the KGCN model to obtain the interaction probability output by the KGCN model, and the recommended solutions are screened out based on the interaction probability.
[0207] If the external input solution does not include a new solution, the candidate recommended solution and other information are used as the input of the trained KGCN model to obtain the interaction probability output by the KGCN model, and the recommended solution is screened out based on the interaction probability.
[0208] It is worth pointing out that the existing solution recommendation does not use the user's historical citation information to build a multi-reference behavior fusion sequence to deeply mine the user's historical citation information. However, the embodiment of the present application builds a multi-reference behavior fusion sequence to deeply mine the user's operation behavior data, and uses the multi-reference behavior fusion sequence to make the relevant edge associations of the knowledge graph denser, thereby improving the accuracy of solution recommendation.
[0209] In the existing solution recommendation, information such as solution attributes and associated attributes are not used to enhance associated information. However, the embodiment of the present application constructs an attribute-enhanced associated graph based on the solution attribute information and associated attribute information, and uses the attribute-enhanced associated graph to make the knowledge graph dense, so as to mine deep-level information and improve the accuracy of solution recommendation.
[0210] In addition, to solve the cold start problem of existing solution recommendations, we also connect the same attributes of the new and old solutions based on the attribute-enhanced association graph to obtain the mapping relationship between the new and old solutions, so that the KGCN model can obtain information such as the mapping relationship between the new and old solutions, thereby improving the efficiency of cold start and the accuracy of new solution recommendations.
[0211] Corresponding to the recommended method described in the above embodiment, Fig.11 The structure block diagram of the recommendation device provided in the embodiment of the present application is shown, and the device can be integrated on the server 200. For the convenience of description, only the part related to the embodiment of the present application is shown.
[0212] Reference Fig.11 , the recommended means may include:
[0213] A request module 111 is used to obtain a recommendation request, where the recommendation request includes information about the first target content;
[0214] A recall module 112 is used to input the recommendation request into a pre-trained recall model to obtain a recall result output by the pre-trained recall model, where the recall result includes candidate recommendation content;
[0215] The new-old mapping relationship determination module 113 is used to obtain a pre-constructed first association map if it is determined that the first target content includes new content, and obtain a new-old content mapping relationship by connecting each attribute of the new content with the target attribute of the second target content in the first association map, the new content is the content to be cold-started, the first association map is used to describe the association relationship between content and attribute and the association relationship between attributes, and the target attribute of the second target content is the same as the attribute of the new content;
[0216] The sorting module 114 is used to input the mapping relationship between new and old content and the candidate recommended content into the trained network model to obtain the output result of the trained network model, where the output result is used to describe the probability of interaction between the user and the new and old content; and determine the recommended content based on the output result.
[0217] In some possible implementations, the recommendation device further includes:
[0218] The first association graph construction module is used to obtain content data and user data, where the content data includes content attribute information; and construct a first association graph based on the content data.
[0219] The recall model training module is used to train the recall model using the first association graph and / or the multi-reference behavior fusion sequence to obtain a trained recall model, where the multi-reference behavior fusion sequence is constructed based on user data.
[0220] The network model training module is used to train the network model using content data and user data to obtain a trained network model.
[0221] In some possible implementations, the first association graph construction module is specifically used to: obtain associated attribute information and same attribute information based on attribute information of each content, the associated attribute information is used to describe the associated attributes between each content, the same attribute information is used to describe the same attributes between each content, and the content data includes the attribute information of the content; connect the content and attributes according to the attribute information, connect the same attributes according to the same attribute information, and connect the associated attributes according to the associated attribute information to obtain a first association graph.
[0222] In some possible implementations, user data includes user operation behavior data on content and content reference data within a preset time period; the device also includes a multi-reference behavior fusion sequence construction module, which is used to determine the new content within the preset time period based on the operation behavior data; for each new content, according to the content reference data, the template content referenced by the new content is connected with the next new content in the time sequence to obtain a multi-reference behavior fusion sequence, and the content reference data is used to describe the content referenced by each content and the template content referenced by each content.
[0223] In some possible implementations, the new-old mapping relationship determination module 113 is specifically used to: construct an attribute matrix of the new content; connect each attribute of the new content with the target attribute of the second target content in the first association map to obtain a second association map; for each attribute in the attribute matrix, determine the identifier of the second target content with the target attribute according to the second association map, and replace the attributes of the attribute matrix with the identifier of the new content to obtain a mapping relationship between the new and old content.
[0224] In some possible implementations, if the first target content does not include new content, the sorting module 114 is further configured to: input the candidate recommended content into the trained network model to obtain an output result of the trained network model.
[0225] In some possible implementations, before inputting the candidate recommendation content into the trained network model, the device also includes a model loading module for loading the trained network model through a directed acyclic graph task lazy evaluation mechanism.
[0226] The above-mentioned recommendation device has the function of implementing the above-mentioned recommendation method, which can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions, and the modules can be software and / or hardware.
[0227] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0228] Fig.12 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.12 As shown, the electronic device 12 of this embodiment includes: at least one processor 120 ( Fig.12 Only one is shown in the figure), a memory 121, and a computer program 122 stored in the memory 121 and executable on at least one processor 120, the processor 120 executing the computer program 122 to implement the steps in any of the above-mentioned recommended method embodiments. For example, to implement Figure 4 The various steps in .
[0229] The electronic device 12 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 120 and a memory 121. Those skilled in the art will appreciate that Fig.12 It is only an example of the electronic device 12 and does not constitute a limitation on the electronic device 12. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0230] The processor 120 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0231] In some embodiments, the memory 121 may be an internal storage unit of the electronic device 12, such as a hard disk or memory of the electronic device 12. In other embodiments, the memory 121 may also be an external storage device of the electronic device 12, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 12. Further, the memory 121 may also include both an internal storage unit of the electronic device 12 and an external storage device. The memory 121 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs. The memory 121 may also be used to temporarily store data that has been output or is to be output.
[0232] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0233] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0234] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0235] In the embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0236] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0237] The electronic device provided in the embodiments of the present application may include a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method as described in any one of the above method embodiments is implemented.
[0238] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0239] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0240] The present application also provides a chip system, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the methods described in the above method embodiments. The chip system can be a single chip or a chip module composed of multiple chips.
[0241] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For the part that is not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be understood that the size of the sequence number of each step in the above-mentioned embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. The reference "one embodiment" or "some embodiments" described in the present application specification means that one or more embodiments of the present application include specific features, structures or characteristics described in combination with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0242] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A recommendation method, It is characterized in that The method comprises: Obtaining a recommendation request, wherein the recommendation request includes information about the first target content; Inputting the recommendation request into a pre-trained recall model to obtain a recall result output by the pre-trained recall model, wherein the recall result includes candidate recommendation content; If it is determined that the first target content includes new content, a pre-constructed first association graph is obtained, and a mapping relationship between new and old content is obtained by connecting each attribute of the new content with the target attribute of the second target content in the first association graph, wherein the new content is content to be cold started, the first association graph is used to describe the association relationship between content and attribute and the association relationship between attributes, and the target attribute of the second target content is the same as the attribute of the new content; Inputting the mapping relationship between new and old content and the candidate recommended content into a trained network model to obtain an output result of the trained network model, wherein the output result is used to describe the probability of interaction between the user and the new and old content; Determine recommended content according to the output result.
2. The method according to claim 1, It is characterized in that Before obtaining the recommendation request, the method further includes: Obtain content data and user data; Constructing the first association graph according to the content data; Using the first association graph and / or the multi-reference behavior fusion sequence to train a recall model to obtain the trained recall model, wherein the multi-reference behavior fusion sequence is constructed based on the user data; The network model is trained using the content data and the user data to obtain the trained network model.
3. The method according to claim 2, It is characterized in that Constructing a first association graph according to the content data includes: According to the attribute information of each of the contents, associated attribute information and identical attribute information are obtained, wherein the associated attribute information is used to describe the associated attributes between the contents, and the identical attribute information is used to describe the identical attributes between the contents, and the content data includes the attribute information of the contents; The content and the attributes are connected according to the attribute information, the same attributes are connected according to the same attribute information, and the associated attributes are connected according to the associated attribute information to obtain the first association graph.
4. The method according to claim 2, It is characterized in that The user data includes the user's operation behavior data on the content and content reference data within a preset time period; Constructing the multi-reference behavior fusion sequence according to the user data includes: Determining new content within the preset time period based on the operation behavior data; For each of the newly added contents, the template content referenced by the newly added content is connected with the next newly added content in time sequence according to the content reference data to obtain the multi-reference behavior fusion sequence, and the content reference data is used to describe the content referenced by each content and the template content referenced by each content.
5. The method according to any one of claims 1 to 4, It is characterized in that The mapping relationship between new and old content is obtained by connecting each attribute of the new content with the target attribute of the second target content in the first association graph, including: constructing an attribute matrix of the new content; Connecting each attribute of the new content with the target attribute of the second target content in the first association graph to obtain a second association graph; For each of the attributes in the attribute matrix, the identifier of the second target content having the target attribute is determined according to the second association map, and the attributes in the attribute matrix are replaced with the identifier of the new content to obtain the new and old content mapping relationship.
6. The method according to claim 1, It is characterized in that If the first target content does not include the new content, the method further includes: The candidate recommendation content is input into the trained network model to obtain an output result of the trained network model.
7. The method according to claim 1 or 6, It is characterized in that Before inputting the candidate recommendation content into the trained network model, the method further includes: The trained network model is loaded through the directed acyclic graph task lazy evaluation mechanism.
8. A recommended device, It is characterized in that The device comprises: A request module, configured to obtain a recommendation request, wherein the recommendation request includes information about the first target content; A recall module, used for inputting the recommendation request into a pre-trained recall model, and obtaining a recall result output by the pre-trained recall model, wherein the recall result includes candidate recommendation content; A new-old mapping relationship determination module, configured to obtain a pre-constructed first association map if it is determined that the first target content includes new content, and obtain a new-old content mapping relationship by connecting each attribute of the new content with the target attribute of the second target content in the first association map, wherein the new content is content to be cold-started, the first association map is used to describe the association relationship between content and attribute and the association relationship between attributes, and the target attribute of the second target content is the same as the attribute of the new content; A sorting module is used to input the mapping relationship between new and old content and the candidate recommended content into a trained network model to obtain an output result of the trained network model, wherein the output result is used to describe the probability of interaction between the user and the new and old content; and determine the recommended content based on the output result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Search recommendation model training method and device and search result sorting method and device
CN113688304A
Method and apparatus for recommending content, device, and medium
US20210209491A1
