Knowledge graph completion method, device, electronic device and storage medium

By performing large model fine-tuning on complete triples in the knowledge graph, a knowledge graph completion model is generated, which solves the problems of low efficiency and poor performance in knowledge graph completion in the existing technology, and achieves efficient and accurate knowledge graph completion. , adapted to areas with high real-time requirements.

CN118277587BActive Publication Date: 2024-09-24BEIHANG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410694058.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing knowledge graph completion technology has low efficiency and poor performance after completion, and cannot adapt to fields with high real-time requirements.

Method used

Fine-tune the large model by obtaining complete triples in the pre-built knowledge graph, generate a knowledge graph completion model, use the reading comprehension and generalization capabilities of the large model to predict tail entities, and assist predictions through prediction prompt information to improve Model accuracy.

Benefits of technology

The efficiency and accuracy of knowledge graph completion are achieved, allowing the model to quickly adapt to newly introduced knowledge and entities, and is suitable for applications with high real-time requirements such as the discrete manufacturing field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277587B
    Figure CN118277587B
Patent Text Reader

Abstract

The present application provides a knowledge graph completion method, device, electronic device and storage medium, which relate to the field of knowledge graph technology. The method includes: obtaining a pre-constructed knowledge graph, and obtaining a knowledge graph completion model according to the knowledge graph; for any entity in the knowledge graph, determining that the entity is a head entity, and determining any relationship corresponding to the head entity; performing tail entity prediction on the head entity and the relationship according to the knowledge graph completion model, and obtaining at least one tail entity output by the knowledge graph completion model; for any tail entity, when the tail entity passes entity verification, completing the knowledge graph according to the head entity, the relationship and the tail entity. The method of the present application realizes helping the model to locate relevant knowledge when performing prediction processing, improves the accuracy of the model's prediction of the tail entity, and thus improves the accuracy of the knowledge graph completion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of knowledge graph technology, and in particular to a knowledge graph completion method, device, electronic device and storage medium. Background Art

[0002] A knowledge graph is a structured semantic knowledge base, where each node represents an entity and each edge represents the relationship between the two entities it connects. Compared with irregular documents, knowledge graphs can enhance the efficiency and accuracy of information retrieval, integrate and analyze cross-domain information, improve user experience, and support decision making.

[0003] Knowledge graphs can be constructed based on artificial and neural networks. Since the data used to construct knowledge graphs are generally irregular and large in number, the constructed knowledge graphs are often incomplete, that is, there are a large number of entities in the knowledge graph that are not connected by corresponding relationships. Therefore, in order to improve the accuracy of the knowledge graph for search results, the constructed knowledge graph needs to be completed.

[0004] However, the current knowledge graph completion technology has the problem of low completion efficiency and poor performance of the completed knowledge graph, which makes the existing knowledge graph completion technology unable to adapt to fields with high real-time requirements. Therefore, there is an urgent need for an efficient and high-performance knowledge graph completion method to solve the above existing problems in the knowledge graph completion process. Summary of the invention

[0005] The present application provides a knowledge graph completion method, device, electronic device and storage medium to solve the problems of low efficiency in the knowledge graph completion process and poor performance of the completed knowledge graph in the prior art.

[0006] In a first aspect, the present application provides a knowledge graph completion method, comprising:

[0007] Obtain a pre-built knowledge graph, and obtain a knowledge graph completion model according to the knowledge graph; the knowledge graph includes a plurality of triples, and any triple includes a head entity, a relationship, and a tail entity;

[0008] For any entity in the knowledge graph, determine that the entity is a head entity, and determine any relationship corresponding to the head entity;

[0009] Perform tail entity prediction on the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model;

[0010] For any tail entity, when the tail entity passes entity verification, the knowledge graph is completed according to the head entity, the relationship and the tail entity.

[0011] In an optional embodiment, obtaining a knowledge graph completion model according to the knowledge graph includes:

[0012] Complete triples in the knowledge graph are obtained, training samples are generated according to the complete triples, and the trained large model is fine-tuned according to the training samples to obtain a knowledge graph completion model generated after fine-tuning; the knowledge graph completion model can predict multiple tail entities.

[0013] In an optional embodiment, generating a training sample according to the complete triplet includes:

[0014] For any entity in the knowledge graph, obtain all complete triples containing the entity;

[0015] For a complete triplet when any of the entities is used as a head entity, the head entity and the relationship in the complete triplet are determined as training data, and the tail entity is determined as a training label;

[0016] Determine other complete triples in all complete triples as prediction prompt information, and repeatedly perform the following fine-tuning process according to the training data, the training labels, and the prediction prompt information until the fine-tuning is completed to generate a knowledge graph completion model;

[0017] The fine-tuning process includes:

[0018] Inputting the training data and the prediction prompt information into the trained large model to obtain the predicted tail entity output by the large model;

[0019] The fine-tuning parameters of the large model are determined according to the predicted tail entity and the training label, and the large model is fine-tuned according to the fine-tuning parameters.

[0020] In an optional embodiment, performing tail entity prediction on the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model includes:

[0021] Obtain all complete triples containing the entity in the knowledge graph; the complete triples include a head entity, a relationship, and a tail entity;

[0022] Each of the complete triples, the head entity, and the relationship is input into the knowledge graph completion model to obtain multiple tail entities output by the knowledge graph completion model.

[0023] In an optional embodiment, the knowledge graph completion model is preset with an input box; the input box contains input formats corresponding to each piece of information;

[0024] The step of inputting each of the complete triples, the head entity, and the relationship into the knowledge graph completion model includes:

[0025] Determine the head entity and the relationship as a triple to be completed, and input the triple to be completed into a first input format corresponding to the triple in the input box;

[0026] Each of the complete triples is determined to be prediction prompt information, and is input into a second input format corresponding to the prediction prompt information in the input box.

[0027] In an optional embodiment, after obtaining at least one tail entity output by the knowledge graph completion model, the method further includes:

[0028] In response to the tail entity belonging to an entity in the knowledge graph, and the tail entity does not exist in any complete triple of the knowledge graph with the head entity, it is determined that the tail entity passes entity verification.

[0029] In an optional embodiment, completing the knowledge graph according to the head entity, the relationship, and the tail entity includes:

[0030] For generating a complete triple according to the head entity, the relationship and the tail entity, the complete triple is completed into the knowledge graph.

[0031] In a second aspect, the present application provides a knowledge graph completion device, comprising:

[0032] A knowledge graph completion model generation module is used to obtain a pre-built knowledge graph and obtain a knowledge graph completion model according to the knowledge graph; the knowledge graph includes multiple triples, and any triple includes a head entity, a relationship, and a tail entity;

[0033] An entity and relationship determination module, used for determining, for any entity in the knowledge graph, that the entity is a head entity, and determining any relationship corresponding to the head entity;

[0034] A tail entity prediction module, used to perform tail entity prediction on the head entity and the relationship according to the knowledge graph completion model, and obtain at least one tail entity output by the knowledge graph completion model;

[0035] The knowledge graph completion module is used to complete the knowledge graph according to the head entity, the relationship and the tail entity for any tail entity when the tail entity passes the entity verification.

[0036] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0037] The memory stores computer-executable instructions;

[0038] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.

[0039] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0040] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in any one of the first aspects when executed by a processor.

[0041] The technical solution provided in the present application uses complete triples in a pre-built knowledge graph to fine-tune the trained large model, and obtains a knowledge graph completion model generated after fine-tuning, so that the obtained model strengthens the understanding and application capabilities of the knowledge in the knowledge graph, so that it learns to output prediction results, i.e., tail entities, in a specific format; and also uses prediction prompt information to assist in prediction when making predictions, thereby helping the model to locate relevant knowledge when making predictions, improving the accuracy of the model's predictions for tail entities, and thereby improving the accuracy of knowledge graph completion. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] Figure 1 An application scenario diagram of the knowledge graph completion method provided in this application;

[0044] Figure 2 A schematic diagram of a process flow of a knowledge graph completion method provided in an embodiment of the present application;

[0045] Figure 3 A flowchart of the training process and application process of a knowledge graph completion model provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of a knowledge graph completion device provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0048] Figure 6 A block diagram of an electronic device shown in an embodiment of the present application.

[0049] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

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

[0052] The knowledge graph can provide users with additional structured knowledge related to the search content. For example, when a user searches for Xiao X, the search engine combined with the knowledge graph will not only provide Xiao X's own information, but also display Xiao X's profile, education, height, and interpersonal relationships in a structured manner, making it easier for users to quickly understand Xiao X.

[0053] Although knowledge graphs have many advantages, their construction process is very cumbersome. Initially, knowledge graphs were basically constructed manually, which is time-consuming and labor-intensive, and it is difficult to ensure quality. Later, researchers proposed a rule-based method to construct knowledge graphs. The core idea is to parse the data in the irregular corpus through a syntax tree, automatically extract the knowledge in it, and construct a knowledge graph. Although this type of method can realize fully automatic knowledge graph construction, the quality of the knowledge graph it constructs is often low and difficult to meet the needs of actual use.

[0054] With the development of artificial intelligence technology, researchers have begun to apply neural networks to the construction of knowledge graphs. Specifically, the construction of knowledge graphs based on neural networks is generally divided into two major tasks: entity extraction and relationship extraction. The entity extraction part is generally processed using a special named entity recognition (NER) model, whose main task is to find entities from irregular text. The relationship extraction part is generally processed using the RE (RelationExtraction) model, which determines the relationship between entities based on entity extraction. After entity extraction and relationship extraction, only operations such as entity ablation and entity alignment are required to complete the construction of the knowledge graph. After that, some researchers merged the two stages of NER and RE and proposed an end-to-end knowledge graph generation method. By training the corresponding neural network, the function of inputting a text and automatically outputting the corresponding knowledge graph was realized.

[0055] Since the data used to construct knowledge graphs are generally irregular and huge in quantity, both manually constructed knowledge graphs and knowledge graphs built based on neural network methods often have the problem of incompleteness, that is, there are a large number of entities in the knowledge graph that are not connected by corresponding relationships.

[0056] In response to the incomplete knowledge graph construction problem mentioned above, some researchers proposed the Knowledge Graph Completion (KGC) method. The purpose of this task is to complete the provided knowledge graph and connect the missing relationships between entities. The task is generally in the form of providing an entity and a relationship, and then requiring the prediction of the possible value of another entity. The original KGC method was mainly completed by training the corresponding embedding vector and performing vector addition and subtraction.

[0057] Specifically, this method first maps all entities and relationships in the knowledge graph into a vector space of the same dimension, and then trains these vectors. For any triple (h, r, t) in the knowledge graph, it satisfies V(h)+V(r)=V(t), where h, r, t are the head entity, relationship, and tail entity, respectively, and V(h), V(r), and V(t) represent the embedding vector representations of the corresponding head entity, relationship, and tail entity after training. Through this method, when a vector representation of an entity and a relationship is given, the prediction of another entity can be completed by adding and subtracting vectors, thereby completing the knowledge graph.

[0058] However, the inventors found that the above KGC method has the following problems in the application process:

[0059] 1. Large storage space requirements

[0060] This method requires training a separate embedding vector for each entity and relationship in the knowledge graph. As the number of entities and relationships in the knowledge graph increases, the cost of each inference will increase linearly. Especially for the discrete manufacturing field with a wide variety of parts, this method will incur high storage and operating costs.

[0061] 2. Weak generalization ability, unable to handle new entities and relationships

[0062] This method cannot process entities and relationships that do not exist in the original knowledge graph. This is because it requires an embedded vector representation of the corresponding entities and relationships, but the new entities do not exist in the original graph, so there is no vector representation and they cannot be processed. In addition, every time new entities and relationships are added to the knowledge graph, this method needs to retrain the embedding space representation of the entire knowledge graph, which greatly increases the cost of updating and iterating the knowledge graph. This shortcoming hinders its application in the discrete manufacturing field where products are frequently updated.

[0063] In response to the above-mentioned problem of incomplete knowledge graph construction, some researchers have also proposed a knowledge graph completion method that combines pretrained language models (PLMs). This method concatenates the provided head entities and relationships (sometimes the definitions of the head entities and relationships are also concatenated to improve accuracy) into PLMs, and then scores all entities in the knowledge graph, taking the entity with the highest score as the final answer.

[0064] Specifically, taking the prediction of the tail entity t as an example, this method concatenates the head entity h and the relation r and their corresponding definitions, and then concatenates the entities in the knowledge graph one by one at the end, and then inputs PLMs to let the model score the correctness of the current synthesized triple, and sort the scores of each entity, and select the one with the highest score as the final answer.

[0065] However, the inventors found that the above PLMs method has the following problems in the application process:

[0066] This type of method needs to traverse all entities in the knowledge graph to score each triple that needs to be completed, which increases the time cost of running. At the same time, since PLMs are generally large in size and single reasoning time is long, the time cost of running this type of method is further aggravated, hindering its application in industrial fields with high real-time requirements.

[0067] The knowledge graph completion method provided in this application is intended to solve the above technical problems of the prior art. Specifically, the method based on embedded vectors has poor performance, that is, it cannot handle newly introduced entities and relationships, and the pre-trained model method has low efficiency in completing the knowledge graph. By utilizing the strong reading comprehension and generalization capabilities of the large model, a knowledge graph completion model is implemented that can quickly complete the knowledge graph and adapt to the newly introduced knowledge in the discrete manufacturing field. By fine-tuning the large model, it is possible to memorize the knowledge contained in the knowledge graph and adapt it to the knowledge graph completion task.

[0068] Figure 1 This is an application scenario diagram of the knowledge graph completion method provided in this application. Figure 1 The technical solution provided in this application involves the stages of knowledge graph construction, knowledge graph completion model training, and completion of a pre-constructed knowledge graph based on the knowledge graph completion model.

[0069] In the first stage, large-scale unstructured data to be constructed is obtained, and the above data is processed for knowledge graph construction according to the determined construction method to obtain a constructed knowledge graph. Among them, the method for constructing the knowledge graph in the above application scenario can be constructed by a rule-based method or a neural network-based method. The construction method is not specifically limited in the embodiments of this application.

[0070] In the second stage, since the data used to construct the knowledge graph is generally irregular and huge in quantity, the constructed knowledge graph is often incomplete, that is, there are a large number of entities in the knowledge graph that have no corresponding relationships connected. In order to improve the accuracy of information search based on the knowledge graph for the above data, it is necessary to complete the provided knowledge graph and connect the missing relationships between entities.

[0071] In order to achieve the above-mentioned purpose of knowledge graph completion, the technical solution of the present application obtains a trained large model, and fine-tunes the large model through training samples generated by the complete triples contained in the above-mentioned knowledge graph, and obtains the knowledge graph completion model generated after fine-tuning, so that the model can predict the entities of the to-be-completed relations in the knowledge graph, thereby efficiently realizing the knowledge graph completion.

[0072] In the third stage, any entity in the knowledge graph is determined, and the corresponding relationship of the entity as an entity is determined; the tail entity prediction is performed on the above-mentioned entities and relationships through the knowledge graph completion model generated above, and at least one tail entity is obtained; when the tail entity passes the entity verification, the above-mentioned knowledge graph is completed according to the above-mentioned head entity, relationship and tail entity, and then the completed knowledge graph is generated according to the tail entities corresponding to each entity.

[0073] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0074] Figure 2 A flow chart of a knowledge graph completion method provided in an embodiment of the present application. The method can be executed by a knowledge graph completion device, which can be a server or an electronic device. The following is an example of an electronic device. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware, such as Figure 2 As shown, the method comprises the following steps:

[0075] S210. Obtain a pre-built knowledge graph, and obtain a knowledge graph completion model based on the knowledge graph.

[0076] In the embodiments of the present application, the knowledge graph can be understood as a structured semantic knowledge base, in which each node represents an entity and each edge represents the relationship between the two entities it connects. In other words, the knowledge graph consists of multiple triples, and any triple includes a head entity, a relationship, and a tail entity.

[0077] Since the data used to construct the knowledge graph is generally irregular and huge in quantity, the constructed knowledge graph is often incomplete, that is, there are a large number of entities in the knowledge graph that have no corresponding relationships connected. In order to improve the accuracy of information search based on the knowledge graph for the above data, it is necessary to complete the provided knowledge graph and connect the missing relationships between entities.

[0078] In order to achieve the above-mentioned purpose of knowledge graph completion, the technical solution provided in this embodiment can obtain a trained large model, and fine-tune the large model through training samples generated by the complete triples contained in the above-mentioned knowledge graph, so as to obtain the knowledge graph completion model generated after fine-tuning, so that the model can predict the entities of the to-be-completed relations in the knowledge graph, thereby efficiently realizing the knowledge graph completion.

[0079] The present application can obtain a knowledge graph completion model that has the ability to complete the knowledge graph by fine-tuning the large model. Among them, the large model can be a large language model. Specifically, a large language model refers to a deep learning language model with large-scale language model parameters, which usually contains hundreds of millions, tens of billions, hundreds of billions, trillions or even more than ten trillion language model parameters. The large language model can also be called a cornerstone language model / foundation language model (Foundation Model). The large language model is pre-trained with a large-scale unlabeled corpus to produce a pre-trained language model with more than 100 million parameters. This language model can adapt to a wide range of downstream tasks, and the language model has good generalization capabilities, such as large-scale language models (Large Language Model, LLM), multi-modal pre-training language models (multi-modal pre-trainingmodel), etc.

[0080] In actual application, only a small number of samples are needed to fine-tune the pre-trained language model and it can be applied to different tasks. The large language model can be widely used in natural language processing (Natural Language Processing, NLP), computer vision and other fields. Specifically, it can be applied to computer vision tasks such as visual question answering (Visual Question Answering, VQA), image description (Image Caption, IC), image generation, as well as natural language processing tasks such as text-based sentiment classification, text summary generation, machine translation, etc. The main application scenarios of the large language model include digital assistants, intelligent robots, search, online education, office software, e-commerce, intelligent design, etc.

[0081] It should be noted that since the large model has extremely powerful reading comprehension and generalization capabilities, a knowledge graph completion model that can quickly complete the knowledge graph and adapt to newly introduced knowledge in the field of discrete manufacturing can be obtained through the large model.

[0082] However, since most open source big models are designed for conversations, and since the objects of the conversations are generally people, their answers are mostly non-structured answers without irregular text. However, knowledge graph completion usually requires exact and accurate answers. In addition, the open source big model is basically a general big model, containing a large amount of general knowledge, much of which is not helpful for the knowledge graph completion task. Therefore, in an embodiment of the present application, for the knowledge graph completion task, the input box used by the big model to receive input information can be pre-constructed, and a large amount of training data can be constructed in combination with the original knowledge graph, and then the open source big model is fine-tuned to strengthen its memory of the knowledge contained in the knowledge graph and adapt it to the knowledge graph completion task.

[0083] Optionally, in an optional embodiment, the specific process of obtaining a knowledge graph completion model based on a knowledge graph may include: obtaining complete triples in the knowledge graph, generating training samples based on the complete triples, and fine-tuning the trained large model based on the training samples to obtain the knowledge graph completion model generated after fine-tuning; the knowledge graph completion model can predict multiple tail entities.

[0084] Optionally, in an optional embodiment, the process of generating training samples based on complete triples may specifically include: for any entity in the knowledge graph, obtaining all complete triples containing the entity; for a complete triple with any entity as the head entity, determining the head entity and the relationship in the complete triple as training data, and determining the tail entity as a training label; determining other complete triples in all complete triples as prediction prompt information, and repeatedly performing the following fine-tuning process based on the training data, training labels and prediction prompt information until the fine-tuning is completed to generate a knowledge graph completion model;

[0085] The fine-tuning process includes: inputting the training data and prediction prompt information into the trained large model to obtain the predicted tail entity output by the large model; determining the fine-tuning parameters of the large model according to the predicted tail entity and the training label, and fine-tuning the large model according to the fine-tuning parameters.

[0086] Figure 3 A flowchart of the training process and application process of a knowledge graph completion model provided in an embodiment of the present application. Figure 3 It includes the training part and the application part of the knowledge graph completion model.

[0087] See also Figure 3 In the training part, for complete triples, take the complete triple (mobile phone, including, screen) in the knowledge graph as an example. First, construct the training data and training labels for training based on the above complete triples, that is, the triples to be completed (mobile phone, including,?) and the label (screen), and then extract other complete triples containing (mobile phone) in the above knowledge graph based on the above head entity (mobile phone), and use them as the prediction prompt information of the above training data for model training. Among them, other complete triples include complete triples with (mobile phone) as the head entity and complete triples with (mobile phone) as the tail entity.

[0088] It should be noted that the role of prediction prompt information is to assist the large model in narrowing the search space of the model during fine-tuning, locate relevant knowledge in its internal knowledge base, better answer questions on the knowledge graph, alleviate the problem of hallucinations that are prone to occur in large models, and improve the model performance during predictive processing.

[0089] Based on the above method, a group of training samples is formed for each complete triple, and the sample contains training data, training labels and prediction prompt information, and then the large model is fine-tuned based on each group of training samples.

[0090] Specifically, the fine-tuning process can be: input the above-mentioned triples to be completed (mobile phone, includes,?) and the prediction prompt information {(mobile phone, belongs to, electronic products), (mobile phone, includes, processor), etc.} into the big model to obtain the predicted tail entity output by the big model; compare the predicted tail entity output by the model with the training label (screen), and form fine-tuning parameters according to the differences in the comparison results; fine-tune the big model based on the fine-tuning parameters, and then predict and fine-tune the fine-tuned big model again until the fine-tuned big model meets the preset performance of the tail entity prediction in the knowledge graph, then stop fine-tuning, and determine the big model at this time as the knowledge graph completion model.

[0091] In some optional embodiments, the low-rank adaptation of large language models (LoRA) method can be used for fine-tuning of large models, so that it can learn the knowledge in the knowledge graph and the tail entity amount in the knowledge graph, and learn the corresponding prediction ideas and output formats in the prediction process. Of course, other methods can also be used for fine-tuning, and this embodiment of the application does not specifically limit this.

[0092] It should be noted that in order to improve the processing efficiency of the knowledge graph completion model in subsequent completion processing, the model can be enabled to learn the ability to output multiple prediction results at a time during the model generation process, that is, the obtained knowledge graph completion model can predict multiple tail entities.

[0093] S220. For any entity in the knowledge graph, determine that the entity is a head entity, and determine any relationship corresponding to the head entity.

[0094] In the embodiment of the present application, when completing the knowledge graph, i.e., completing the triple, it is first necessary to determine the two entities in the triple and the relationship between the two entities. In the embodiment of the present application, the above three are determined by first determining the head entity in the triple and the relationship corresponding to the head entity, and then predicting the corresponding tail entity based on the head entity and the relationship, thereby achieving triple completion.

[0095] On the basis of generating a knowledge graph completion model, the knowledge graph completion model can be used to predict the tail entity of the head entity and relationship in the knowledge graph, so as to achieve the corresponding relationship between every two entities in the completed knowledge graph as much as possible and obtain a complete knowledge graph.

[0096] Specifically, each entity in the knowledge graph can be used as a head entity in turn, and the relationship corresponding to the head entity can be determined, and then the tail entity prediction can be performed based on the head entity and the relationship.

[0097] Exemplary, continue to participate Figure 3 In the application part, (laptop computer) in the knowledge graph is determined as the head entity, and the relationship corresponding to (laptop computer) is determined based on other triples in the knowledge graph. It should be noted that since there are multiple relationships corresponding to (laptop computer) in the knowledge graph, each relationship can be randomly selected in turn, and the tail entity corresponding to each relationship can be predicted respectively. Exemplarily, taking the determined relationship corresponding to (laptop computer) as (includes) as an example; based on the above-mentioned head entity and relationship, a triple to be predicted and completed is generated, namely (laptop computer, includes?), so as to facilitate the subsequent knowledge graph completion model generated according to the above-mentioned implementation method to perform tail entity prediction.

[0098] S230. Predict the tail entity of the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model.

[0099] In an embodiment of the present application, on the basis of determining the head entity and the relationship based on the above-mentioned implementation method, the head entity and the relationship are predicted and processed according to the knowledge graph completion model.

[0100] Optionally, in some optional embodiments, the process of performing tail entity prediction for head entities and relationships based on the trained knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model may specifically include: obtaining all complete triples containing entities in the knowledge graph; the complete triples include head entities, relationships and tail entities; inputting each complete triple, head entity and relationship into the knowledge graph completion model to obtain multiple tail entities output by the knowledge graph completion model.

[0101] For details, see Figure 3 In the application part, other complete triples containing (laptop computer) are obtained in the knowledge graph as prediction prompt information, such as (laptop computer, belongs to, computer), (laptop computer, contains, battery), etc. The above triples to be completed and the above prediction prompt information are input into the knowledge graph completion model to obtain multiple tail entities output by the knowledge graph completion model, such as (keyboard), (processor), (mouse), etc.

[0102] Optionally, in some optional embodiments, the knowledge graph completion model is preset with an input box; the input box contains input formats corresponding to each piece of information. For example, the input box is provided with a first input format corresponding to the triple to be completed, and a second input format corresponding to the prediction prompt information.

[0103] Correspondingly, the process of inputting the triples to be completed and the predicted prompt information into the knowledge graph completion model can specifically include: determining the head entity and the relationship as the triples to be completed, and inputting them into the first input format corresponding to the triples to be completed in the input box; determining each complete triple as the predicted prompt information, and inputting them into the second input format corresponding to the predicted prompt information in the input box.

[0104] It should be noted that the above-mentioned information input based on the input box and tail entity prediction can enable the model to learn the output format of the prediction results during the processing, which facilitates the automatic extraction of answers.

[0105] S240. For any tail entity, when the tail entity passes entity verification, the knowledge graph is completed according to the head entity, the relationship and the tail entity.

[0106] In the embodiment of the present application, since the tail entity predicted by the knowledge graph completion model may be the tail entity included in other complete triples in the knowledge graph, performing knowledge graph completion based on the above tail entity may result in duplicate data storage. Of course, it is also possible that the tail entity output by the knowledge graph model during prediction does not exist in the knowledge graph, and performing knowledge graph completion based on the above entity may result in inaccurate graph completion results.

[0107] Therefore, after the model outputs the predicted tail entity, it is necessary to perform entity verification on the tail entity, and perform knowledge graph completion processing if the verification passes. In other words, after obtaining the predicted tail entity, in response to the tail entity belonging to an entity in the knowledge graph, and the tail entity does not exist in any complete triple of the knowledge graph with the head entity, it is determined that the tail entity passes entity verification, and then the knowledge graph is completed based on the tail entity.

[0108] Optionally, in some possible embodiments, taking any tail entity as an example, the entity verification process may specifically include: verifying whether the tail entity belongs to an entity included in the knowledge graph. Optionally, if not, the knowledge graph cannot be completed based on the tail entity. Optionally, if so, further verify whether the tail entity exists in other complete triples in the knowledge graph with the above-mentioned head entity. Optionally, if it exists, the knowledge graph cannot be completed based on the tail entity. If it does not exist, the knowledge graph can be completed based on the tail entity.

[0109] Specifically, taking any tail entity as an example, when the tail entity passes entity verification, the knowledge graph is completed based on the tail entity.

[0110] Optionally, in some optional embodiments, the process of completing the knowledge graph may include: generating complete triples according to the head entity, the relationship, and the tail entity, and completing the complete triples into the knowledge graph.

[0111] For example, see Figure 3 In the application part, when it is determined according to the above implementation that the tail entity (keyboard) output by the model passes the verification, a new complete triple (laptop computer, including, keyboard) is generated based on (keyboard), (laptop computer) and (including), and the complete triple is stored in the knowledge graph to realize the completion processing of the knowledge graph.

[0112] In the above technical scheme, the trained large model is fine-tuned by using the complete triples in the pre-built knowledge graph to obtain the knowledge graph completion model generated after fine-tuning, so that the obtained model strengthens the understanding and application ability of the knowledge in the knowledge graph, so that it learns to output the prediction results in a specific format, that is, the tail entity; and when making predictions, auxiliary predictions are also made through prediction prompt information, which helps the model locate relevant knowledge when making predictions, improves the accuracy of the model's prediction of the tail entity, and thus improves the accuracy of the knowledge graph completion.

[0113] Figure 4 A schematic diagram of the structure of a knowledge graph completion device provided in an embodiment of the present application. Figure 4 The knowledge graph completion device 40 includes: a knowledge graph completion model generation module 410, an entity and relationship determination module 420, a tail entity prediction module 430 and a knowledge graph completion module 440; wherein,

[0114] The knowledge graph completion model generation module 410 is used to obtain a pre-built knowledge graph and obtain a knowledge graph completion model according to the knowledge graph; the knowledge graph includes multiple triples, and any triple includes a head entity, a relationship, and a tail entity;

[0115] An entity and relationship determination module 420, for determining, for any entity in the knowledge graph, that the entity is a head entity, and determining any relationship corresponding to the head entity;

[0116] A tail entity prediction module 430 is used to perform tail entity prediction on the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model;

[0117] The knowledge graph completion module 440 is used to complete the knowledge graph according to the head entity, the relationship and the tail entity for any tail entity when the tail entity passes the entity verification.

[0118] In an optional embodiment, the knowledge graph completion model generation module includes:

[0119] The knowledge graph completion model generation submodule is used to obtain complete triples in the knowledge graph, generate training samples based on the complete triples, and fine-tune the trained large model based on the training samples to obtain the knowledge graph completion model generated after fine-tuning; the knowledge graph completion model can predict multiple tail entities.

[0120] In an optional embodiment, the knowledge graph completion model generation submodule includes:

[0121] A complete triple acquisition unit, used for acquiring, for any entity in the knowledge graph, all complete triples containing the entity;

[0122] A training data and training label determination unit, configured to, for a complete triple with any of the entities as the head entity, determine the head entity and the relationship in the complete triple as training data, and determine the tail entity as a training label;

[0123] A knowledge graph completion model generation unit is used to determine other complete triples in all complete triples as prediction prompt information, and repeatedly perform the following fine-tuning process according to the training data, the training labels and the prediction prompt information until the fine-tuning is completed to generate a knowledge graph completion model;

[0124] The fine-tuning process includes:

[0125] Inputting the training data and the prediction prompt information into the trained large model to obtain the predicted tail entity output by the large model;

[0126] The fine-tuning parameters of the large model are determined according to the predicted tail entity and the training label, and the large model is fine-tuned according to the fine-tuning parameters.

[0127] In an optional embodiment, the tail entity prediction module includes:

[0128] A complete triple acquisition submodule is used to acquire all complete triples of the entity contained in the knowledge graph; the complete triples include a head entity, a relationship and a tail entity;

[0129] The tail entity prediction submodule is used to input each of the complete triples, the head entity and the relationship into the knowledge graph completion model to obtain multiple tail entities output by the knowledge graph completion model.

[0130] In an optional embodiment, the knowledge graph completion model is preset with an input box; the input box contains input formats corresponding to each piece of information;

[0131] Tail entity prediction submodule, including:

[0132] A first input format determining unit, configured to determine that the head entity and the relationship are a triplet to be completed, and input the triplet to be completed into a first input format corresponding to the triplet in the input box;

[0133] The second input format determining unit is used to determine each of the complete triples as prediction prompt information, and input the prediction prompt information into a second input format corresponding to the prediction prompt information in the input box.

[0134] In an optional embodiment, the device further comprises:

[0135] A verification module is used to determine that the tail entity passes entity verification in response to the tail entity belonging to an entity in the knowledge graph and the tail entity does not exist in any complete triple of the knowledge graph with the head entity.

[0136] In an optional embodiment, the knowledge graph completion module includes:

[0137] The knowledge graph completion submodule is used to generate a complete triple according to the head entity, the relationship and the tail entity, and complete the complete triple into the knowledge graph.

[0138] The technical solution provided in the present application uses complete triples in a pre-built knowledge graph to fine-tune the trained large model, and obtains a knowledge graph completion model generated after fine-tuning, so that the obtained model strengthens the understanding and application capabilities of the knowledge in the knowledge graph, so that it learns to output prediction results, i.e., tail entities, in a specific format; and also uses prediction prompt information to assist in prediction when making predictions, thereby helping the model to locate relevant knowledge when making predictions, improving the accuracy of the model's predictions for tail entities, and thereby improving the accuracy of knowledge graph completion.

[0139] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device of this embodiment may include:

[0140] at least one processor 510; and

[0141] A memory 520 communicatively coupled to at least one processor;

[0142] The memory 520 stores instructions that can be executed by at least one processor 510, and the instructions are executed by at least one processor 510 to enable the server to execute a method as described in any of the above embodiments.

[0143] Optionally, the memory 520 may be independent or integrated with the processor 510 .

[0144] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the aforementioned embodiments and will not be described in detail here.

[0145] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method of any of the aforementioned embodiments is implemented.

[0146] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method of any of the aforementioned embodiments when executed by a processor.

[0147] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0148] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0149] It should be understood that the above-mentioned processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The memory may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0150] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0151] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in a server or a main control device.

[0152] Figure 6 This is a block diagram of an electronic device shown in an embodiment of the present application. The device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0153] See also Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0154] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0155] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0156] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0157] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0158] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0159] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0160] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge-coupled device (CCD), for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0161] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0162] In an exemplary embodiment, the device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0163] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a read-only memory (ROM), a high-speed random access memory (RAM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0164] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the above-mentioned electronic device method.

[0165] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0166] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A knowledge graph completion method, It is characterized in that The method comprises: A pre-built knowledge graph is obtained, and a knowledge graph completion model is obtained according to the knowledge graph; the knowledge graph includes multiple triples, and any triple includes a head entity, a relationship, and a tail entity; the knowledge graph completion model is a model used in the field of natural language processing or computer vision, the field of natural language processing includes: sentiment classification of text, text summary generation, and machine translation, and the field of computer vision includes: visual question answering, image description, and image generation; For any entity in the knowledge graph, determine that the entity is a head entity, and determine any relationship corresponding to the head entity; Perform tail entity prediction on the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model; For any tail entity, when the tail entity passes entity verification, the knowledge graph is completed according to the head entity, the relationship and the tail entity; The step of obtaining a knowledge graph completion model according to the knowledge graph includes: Obtain complete triples in the knowledge graph, generate training samples based on the complete triples, and fine-tune the trained large model based on the training samples to obtain a knowledge graph completion model generated after fine-tuning; the knowledge graph completion model can predict multiple tail entities; The generating of training samples according to the complete triples includes: For any entity in the knowledge graph, obtain all complete triples containing the entity; For a complete triplet when any of the entities is used as a head entity, the head entity and the relationship in the complete triplet are determined as training data, and the tail entity is determined as a training label; Determine other complete triples in all complete triples as prediction prompt information, and repeatedly perform the following fine-tuning process according to the training data, the training labels, and the prediction prompt information until the fine-tuning is completed to generate a knowledge graph completion model; The fine-tuning process includes: Inputting the training data and the prediction prompt information into the trained large model to obtain the predicted tail entity output by the large model; The fine-tuning parameters of the large model are determined according to the predicted tail entity and the training label, and the large model is fine-tuned according to the fine-tuning parameters.

2. The knowledge graph completion method according to claim 1, It is characterized in that The step of performing tail entity prediction on the head entity and the relationship according to the knowledge graph completion model to obtain at least one tail entity output by the knowledge graph completion model includes: Obtain all complete triples containing the entity in the knowledge graph; the complete triples include a head entity, a relationship, and a tail entity; Each of the complete triples, the head entity, and the relationship is input into the knowledge graph completion model to obtain multiple tail entities output by the knowledge graph completion model.

3. The knowledge graph completion method according to claim 2, It is characterized in that The knowledge graph completion model is preset with an input box; the input box contains input formats corresponding to each piece of information; The step of inputting each of the complete triples, the head entity, and the relationship into the knowledge graph completion model includes: Determine the head entity and the relationship as a triple to be completed, and input the triple to be completed into a first input format corresponding to the triple in the input box; Each of the complete triples is determined to be prediction prompt information, and is input into a second input format corresponding to the prediction prompt information in the input box.

4. The knowledge graph completion method according to claim 1, It is characterized in that After obtaining at least one tail entity output by the knowledge graph completion model, the method further includes: In response to the tail entity belonging to an entity in the knowledge graph, and the tail entity does not exist in any complete triple of the knowledge graph with the head entity, it is determined that the tail entity passes entity verification.

5. The knowledge graph completion method according to claim 1, It is characterized in that The completing the knowledge graph according to the head entity, the relationship, and the tail entity includes: For generating a complete triple according to the head entity, the relationship and the tail entity, the complete triple is completed into the knowledge graph.

6. A knowledge graph completion device, It is characterized in that The device comprises: A knowledge graph completion model generation module is used to obtain a pre-built knowledge graph and obtain a knowledge graph completion model according to the knowledge graph; the knowledge graph includes multiple triples, and any triple includes a head entity, a relationship, and a tail entity; the knowledge graph completion model is a model used in the field of natural language processing or computer vision, the field of natural language processing includes: sentiment classification of text, text summary generation, and machine translation, and the field of computer vision includes: visual question answering, image description, and image generation; An entity and relationship determination module, used for determining, for any entity in the knowledge graph, that the entity is a head entity, and determining any relationship corresponding to the head entity; A tail entity prediction module, used to perform tail entity prediction on the head entity and the relationship according to the knowledge graph completion model, and obtain at least one tail entity output by the knowledge graph completion model; A knowledge graph completion module, for completing the knowledge graph according to the head entity, the relationship and the tail entity for any tail entity when the tail entity passes entity verification; The knowledge graph completion model generation module is specifically used to obtain complete triples in the knowledge graph, generate training samples based on the complete triples, and fine-tune the trained large model based on the training samples to obtain the knowledge graph completion model generated after fine-tuning; the knowledge graph completion model can predict multiple tail entities; The knowledge graph completion model generation module is further specifically used to obtain all complete triples containing any entity in the knowledge graph; For a complete triplet when any of the entities is used as a head entity, the head entity and the relationship in the complete triplet are determined as training data, and the tail entity is determined as a training label; Determine other complete triples in all complete triples as prediction prompt information, and repeatedly perform the following fine-tuning process according to the training data, the training labels, and the prediction prompt information until the fine-tuning is completed to generate a knowledge graph completion model; The fine-tuning process includes: Inputting the training data and the prediction prompt information into the trained large model to obtain the predicted tail entity output by the large model; The fine-tuning parameters of the large model are determined according to the predicted tail entity and the training label, and the large model is fine-tuned according to the fine-tuning parameters.

7. An electronic device, It is characterized in that include: A processor and a memory communicatively connected to the processor; The memory stores computer-executable instructions; When executing the computer-executable instructions, the processor is used to implement the knowledge graph completion method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the knowledge graph completion method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Dynamic knowledge graph completion method and device, electronic equipment and storage medium

    CN111881219A

  • Knowledge graph reasoning method and device and storage medium

    CN112084344A

  • Knowledge grap pre-training method based on structural context infor

    US20240177047A1

  • System and method for network anomaly detection and analysis

    WO2020159439A1

  • Remote sensing image recommendation method based on content understanding

    WO2024087639A1