Graph classification
By employing spectral graph theory and machine learning to analyze and classify knowledge graphs, the method addresses vulnerabilities in KG-RAG systems, ensuring accurate and reliable responses by distinguishing between clean and adversarial graphs.
Patent Information
- Application Number
- JP2026079374
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-16
- Filing Date
- 2026-05-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing KG-RAG systems are vulnerable to adversarial attacks that alter knowledge graphs, leading to inaccurate and potentially harmful responses, particularly in applications like medical information provision, due to the inability to effectively distinguish between clean and adversarial KGs.
A method combining spectral graph theory and machine learning to generate graph signatures by analyzing the graph Laplacian, eigenvalues, and edge importance scores, training a classifier to differentiate between adversarial and clean KGs, thereby enhancing the security and reliability of KG-RAG systems.
This approach effectively classifies KGs as adversarial or clean, ensuring accurate and trustworthy responses by flagging and mitigating compromised knowledge graphs, thus maintaining the integrity of AI systems.
Smart Images

Figure 2026185826000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to graph classification, and in particular to computer-implemented methods, computer programs, and information programming equipment.
Background Art
[0002] AI (Artificial Intelligence) safety research focuses on ensuring that AI systems are safe, beneficial, and developed and deployed in a manner aligned with human values. Some key areas of research include: Alignment: Developing methods to ensure that AI systems operate in alignment with human intentions and values. Robustness: Creating AI systems that perform reliably and predictably across a wide range of situations. Interpretability: Making AI systems more understandable and enabling humans to better comprehend the decision-making processes of AI systems. Value Learning: Enabling AI systems to reason and act accurately in accordance with human preferences and ethical principles. AI Governance: Exploring policy and regulatory frameworks to guide responsible AI development and deployment.
[0003] KG-RAG: Knowledge Graph-Retrieval Augmented Generation (RAG) combines information retrieval with generative models to improve response accuracy. Knowledge Graphs (KGs) enhance RAG by providing structured, semantically rich data, enabling accurate and contextually grounded responses to complex queries.
[0004] There is a risk that adversaries may modify the KGs used in KG-RAG or alter the documents on which KG-RAG is based. In either case, the information provided by the KG-RAG system may become inaccurate. [Overview of the Initiative] [Problems that the invention aims to solve]
[0005] In light of the above, an improved graph classification system is desirable. [Means for solving the problem]
[0006] The present invention is defined in the independent claims, which should be referenced herein. Specific embodiments are described in the dependent claims.
[0007] A computer implementation method, A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods, including the above, are disclosed.
[0008] A computer implementation method, The steps include obtaining multiple training knowledge graphs (KGs) (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods including these are also disclosed. [Brief explanation of the drawing]
[0009] Hereinafter, by way of example, reference is made to the accompanying drawings. [Figure 1] FIG. 1 is a diagram useful for understanding KG-RAG. [Figure 2] FIG. 2 is a diagram useful for understanding a KG-RAG attack. [Figure 3] FIG. 3 is a diagram useful for understanding an adversarial KG. [Figure 4] FIG. 4 is a diagram useful for understanding an adversarial KG. [Figure 5] FIG. 5 is a flowchart illustrating a method. [Figure 6] FIG. 6 is a flowchart illustrating a method. [Figure 7] FIG. 7 is a flowchart illustrating a method. [Figure 8] FIG. 8 is a diagram for explaining classification. [Figure 9] FIG. 9 is a diagram for explaining KG perturbation. [Figure 10] FIG. 10 is a diagram for explaining KG perturbation. [Figure 11] FIG. 11 is a graph showing classification results. [Figure 12] FIG. 12 is a table of results. [Figure 13] FIG. 13 is a table of results. [Figure 14] FIG. 14 is a table of results. [Figure 15] FIG. 15 is a diagram illustrating an information processing device. [Mode for Carrying Out the Invention]
[0010] As mentioned above, there is a risk that in a KG-RAG system, an adversary may alter the KG used in the KG-RAG or alter the documents underlying the KG-RAG, which may cause the information provided by the KG-RAG system to be inaccurate. This may be insecure in certain applications of KG-RAG (e.g., providing medical information / diagnoses).
[0011] Figure 1 illustrates how compromised KGs can lead to undesirable and / or irrelevant answers in the KG-RAG system.
[0012] In step S1, the input query 12 is received and input into the searcher 13. The input query is related to the document corpus. In step S2, the searcher 13 searches for relevant triples 14 (a triple is a representation of graph data consisting of three elements: subject, predicate, and object) from KG 11 based on the query. In step S3, the query 12 is supplemented with information from KG 15 to generate an extended query 15 (i.e., the extended query 15 is generated based on the input query 12 and the relevant triples 14). In step S4, this query 15 is input into the Large Language Model (LLM) 16, and the LLM generates an answer based on the query 15.
[0013] In the example shown in Figure 1, KG11 is a compromised KG. The black nodes and dashed edges are nodes and edges added by the adversary. As a result, the answer generated by LLM16 is an undesirable and / or irrelevant answer. That is, the triples retrieved from KG11 were false or “misleading” triples in the sense that they contained false information based on the perturbed KG11, which led to the undesirable and / or irrelevant answer generated by LLM16.
[0014] Figure 1 shows a triple 14 retrieved from KG11 by the searcher 13, although the searcher may also retrieve KG from at least one document, and KG (e.g., KG11) may be used to expand the input query (e.g., without an intervening step of retrieving the triple from KG).
[0015] Figure 2 illustrates how perturbed KG can lead to inaccurate responses. While Figure 2 is thought to demonstrate the same principle as Figure 1, it relates to medical data in a more specific example.
[0016] As shown in Figure 2, the input query 22 "What causes hypertension?" is received. The KG-RAG searcher 13 extracts KG1b from document 1a based on the input query 22 and at least one document 1a. At least one document 1a includes a document with the following text: “Hypertension: A Multifactorial Condition and Its Interconnections Causes and Contributing Factors: Hypertension can be influenced by various factors, including diabetes, which falls under the scope of endocrinology. Hereditary factors also play a significant role, along with vitamin D deficiency, which is commonly associated with osteoporosis. Additionally, emerging research suggests that the gut microbiome has implications for both hypertension and overall skin health. Associated Health Risks: Hypertension is closely linked to cardiology due to its strong correlation with an increased risk of heart disease. it is also associated with mood disorders such as anxiety, highlighting the connection between blood pressure regulation and mental health. Management and Treatment Approaches: Effective hypertension management includes a combination of medications, such as Metformin, along with lifestyle modifications. Stress management, regular physical activity, and a balanced diet play crucial roles in controlling blood pressure. In some cases, specialized medical interventions are necessary, emphasizing the need for a multidisciplinary approach to treatment.” ("Hypertension: A multifactorial state and its interrelationships") Causes and Contributing Factors: Hypertension can be influenced by a variety of factors, including diabetes, which falls under the realm of endocrinology. Genetic factors also play a significant role, along with vitamin D deficiency, which is commonly associated with osteoporosis. Furthermore, new research suggests that the gut microbiome influences both hypertension and overall skin health. Associated health risks: High blood pressure is closely related to cardiology due to its strong correlation with an increased risk of heart disease. It is also associated with mood disorders such as anxiety, highlighting the relationship between blood pressure regulation and mental health. Management and Treatment Approaches: Effective hypertension management involves lifestyle improvements along with a combination of medications such as metformin. Stress management, regular physical activity, and a balanced diet play important roles in blood pressure control. In some cases, specialized medical intervention is necessary, highlighting the need for a multidisciplinary approach to treatment.
[0017] KG1b may be called query-conditional KG1b. KG1b includes nodes corresponding to entities and edges corresponding to relationships between entities. Based on input query 22 and KG1b, an extended query 1c (query extended with KG content) is generated. Extended query 1c is fed to LLM26, which generates the correct response, response 1d ("Hypertension is a condition influenced by factors such as diabetes, hereditary traits, and vitamin D deficiency, which is linked to osteoporosis.").
[0018] In contrast, when KG1b is perturbed, for example by an enemy, to produce a perturbed KG1f, an inaccurate response 1h is generated.
[0019] In the perturbed KG1f, a node called "coding" is added, an edge is added from the "coding" node to the "hypertension" node with a "linked to" relationship, the edge between "diabetes" and "hypertension" is removed and replaced with an edge that includes a "does not cause" relationship, and an edge that includes a "related" relationship is added between "hypertension" and "osteoporosis".
[0020] The extended query 1g is generated based on the input query 22 and perturbation KG1f and supplied to LLM26, which then generates an inaccurate response 1h ("Hypertension is a condition caused by skin health issues, coding errors, and excessive calcium intake, which is linked to improved heart function.").
[0021] Figure 3 shows how KG1b in Figure 2 can be perturbed, for example, by an adversary attempting to steal the KG-RAG system. KG in "Edge Addition" shows the added edges with dashed lines compared to KG1b in Figure 2. Specifically, edges have been added between the nodes "diabetes" and "metformin," "diabetes" and "endocrinology," and "diabetes" and "hypertension" in the relationships "causes," "unrelated," and "does not cause." KG in "Node Addition" shows the added nodes with black circles and the added edges with dashed lines compared to KG1b in Figure 2. In other words, the nodes "paracetamol" and "coding" are added, the edge between "paracetamol" and "diabetes" has the relationship "treated with", the edge between "coding" and "anxiety" has the relationship "responsible", and the edge between "coding" and "mood disorders" has the relationship "linked to".
[0022] Figure 4 illustrates how KG1b in Figure 2 can be perturbed, for example, by an adversary attempting to steal the KG-RAG system. KG in "Edge Deletion" is KG with edges removed compared to KG1b in Figure 2, specifically the edges between "diabetes" and "endocrinology," and between "diabetes" and "hypertension." KG in "Node Deletion" shows deleted nodes with dashed circles and deleted edges with dashed lines. The nodes "diabetes" and "gut microbiome," as well as their associated edges, have been deleted.
[0023] As described above, when adversarial or compromised knowledge graphs are provided as input to the LLM within the KG-RAG system, they introduce irrelevant or harmful contexts, leading to the generation of undesirable and potentially harmful responses. Compromised KGs can be generated through direct perturbations of the KG or due to compromised information stored in the document corpus used by the KG-RAG system. Existing technologies are unable to specifically address this problem.
[0024] The methods disclosed in this specification include developing graph signatures to capture trends and connectivity patterns within a knowledge graph and enabling the flagging of adversarial documents and / or KGs.
[0025] More specifically, the disclosed methodology involves analyzing and classifying KGs by combining spectral graph theory and machine learning. A method corresponding to a specific implementation of this method begins by computing the graph Laplacian of the KG and extracting its top k eigenvalues and eigenvectors to capture changes in the graph's structure. The method then measures the gaps between eigenvalues, which helps identify shifts in the graph's structure. Edge sensitivity is computed to analyze connectivity patterns and compressed using kernel mean embeddings for a more compact representation. Finally, these features are combined into a graph signature, which is used to train a classifier to distinguish between adversarial KGs and clean KGs. This approach uniquely blends mathematical graph analysis with machine learning for KG classification.
[0026] Figure 5 is a flowchart showing the method including steps S12 to S17.
[0027] Step S12 includes determining the graph Laplacian; that is, step S12 includes determining the graph Laplacian of the target knowledge graph (KG). Step S13 includes determining the eigenvalues; that is, step S13 includes determining the eigenvalues of the graph Laplacian. Step S14 includes determining the gaps between the eigenvalues. Step S15 includes determining the importance score; that is, step S15 includes determining the importance score of each edge in the target KG based on the graph Laplacian. Step S16 includes generating a signature; that is, step S16 includes generating a signature as an array of values based on the gaps between the eigenvalues and the importance scores.
[0028] Steps S12 to S16 are signature generation processes that generate signatures based on the target KG.
[0029] Step S17 includes classifying the KGs based on signatures. That is, step S17 includes using a machine learning (ML) classifier to classify the target KGs as adversarial or clean based on signatures. Here, the ML classifier is trained according to a training process, which includes: obtaining multiple training KGs (based on at least one document); performing graph perturbations on a subset of the multiple training KGs to generate adversarial training KGs and selecting the remaining training KGs as clean training KGs; performing a signature generation process on the multiple training KGs, including the adversarial and clean training KGs, to generate multiple corresponding training signatures; and training the ML classifier to correctly classify the training KGs as adversarial or clean based on the corresponding training signatures.
[0030] A computer implementation method, A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps to determine the graph Laplacian of the target KG, The steps involve determining the eigenvalues of the graph Laplacian, The step of determining the gap between eigenvalues, The steps include determining the importance score of each edge within the target KG based on the graph Laplacian, The steps include generating a signature as an array of values based on the gaps between eigenvalues and importance scores, Steps including, The process involves using a machine learning (ML) classifier to classify the target KG as adversarial or clean based on its signature, and Includes, The ML classifier is trained according to the training process, and the training process is: Steps to obtain multiple training KGs (based on at least one document), The process involves performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The steps include: executing a signature generation process for multiple training KGs, including adversarial training KGs and clean training KGs, to generate multiple corresponding training signatures; The steps include training an ML classifier to correctly classify training KGs as adversarial or clean based on the corresponding training signatures, Computer implementation methods, including the above, are disclosed.
[0031] The target KG may be a KG generated as part of the KG-retrieval augmented generation (KG-RAG) process.
[0032] The computer implementation method may include continuing the KG-RAG process based on the target KG if the target KG is classified as a clean KG, and restarting the KG-RAG process to generate a new KG if the target KG is classified as an adversarial KG.
[0033] The computer implementation method is, The steps to receive the query, The steps include: extracting information from at least one document based on the query, A step of generating a target KG based on the extracted information, If the target KG is classified as a clean KG, the process may include the step of generating a response to the query using a large language model (LLM) based on the query and the target KG.
[0034] The computer implementation method may include repeating the steps of information retrieval and KG generation if the target KG is classified as an adversarial KG.
[0035] At least one document in the KG-RAG process may be the same as at least one document used in the training process.
[0036] The computer implementation method may include performing a training process before classifying the target KG.
[0037] Figure 6 is a flowchart showing the method including steps S12 to S24.
[0038] Step S21 includes obtaining training KGs. That is, step S21 includes obtaining multiple training knowledge graphs (KGs) (based on at least one document).
[0039] Step S22 includes perturbing a subset of training KGs to generate an adversarial training KG. Specifically, step S22 includes performing graph perturbations on a subset of multiple training KGs to generate an adversarial training KG, and selecting the remaining training KGs as clean training KGs.
[0040] Step S23 includes performing a signature generation process for training KGs. That is, step S23 includes performing a signature generation process for multiple training KGs, including adversarial training KGs and clean training KGs, to generate multiple corresponding training signatures. Step S23 includes steps S32 to S36.
[0041] Step S32 includes determining the graph Laplacian; that is, step S32 includes determining the graph Laplacian of the training KG. Step S33 includes determining the eigenvalues; that is, step S33 includes determining the eigenvalues of the graph Laplacian. Step S34 includes determining the gaps between the eigenvalues. Step S35 includes determining the importance score; that is, step S35 includes determining the importance score of each edge in the training KG based on the graph Laplacian. Step S36 includes generating a signature; that is, step S36 includes generating a signature as an array of values based on the gaps between the eigenvalues and the importance score.
[0042] Step S24 includes training the ML classifier. Specifically, step S24 includes training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature.
[0043] According to an embodiment of the second aspect as shown in Figure 6, the present specification provides a computer implementation method that includes the step of performing a training process, The steps include obtaining multiple training knowledge graphs (KGs) (based on at least one document), The process involves performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. A step of generating multiple corresponding training signatures by performing a signature generation process for multiple training KGs, including adversarial training KGs and clean training KGs, wherein the signature generation process for each training KG, Steps to determine the graph Laplacian of training KG, The steps involve determining the eigenvalues of the graph Laplacian, The step of determining the gap between eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, and The steps include generating a signature as an array of values based on the gaps between eigenvalues and importance scores, Steps including, The steps include training an ML classifier to correctly classify training KGs as adversarial or clean based on the corresponding training signatures, A computer implementation method including this is disclosed.
[0044] Considering the method in Figure 6, a computer implementation method may include performing a signature generation process to generate signatures based on the target KG, and using an ML classifier to classify the target KG as adversarial or clean based on the signatures.
[0045] Considering the method in Figure 5 and / or the method in Figure 6,
[0046] The target KG can include nodes representing entities and edges representing relationships between entities.
[0047] Determining the graph Laplacian may involve calculating the adjacency matrix and the order matrix based on KG.
[0048] Computing the adjacency matrix may involve computing node embeddings for the nodes of KG and relational embeddings for the edges of KG.
[0049] Computing the adjacency matrix may involve calculating each element of the KG corresponding to a connected pair of nodes in the KG, based on the node embeddings of the node pairs and the relational embeddings of the edges between the node pairs.
[0050] The step of determining the graph Laplacian may include the step of calculating the adjacency matrix and the degree matrix based on the KG, the step of calculating the adjacency matrix may include the step of calculating the node embeddings of the nodes in the KG and the step of calculating the relational embeddings of the edges in the KG, and the step of calculating the adjacency matrix may include the step of calculating each element of the KG corresponding to a pair of connected nodes in the KG based on the node embeddings of the pairs of nodes and the relational embeddings of the edges between the pairs of nodes.
[0051] Each element of the adjacency matrix corresponding to a connected pair of nodes in the KG may be based on the similarity between the node embeddings of the pair of nodes.
[0052] Each element of the adjacency matrix corresponding to a pair of unconnected nodes may be zero.
[0053] Determining the graph Laplacian may involve calculating a symmetric adjacency matrix based on the adjacency matrix, and calculating the graph Laplacian by subtracting the symmetric adjacency matrix from the degree matrix.
[0054] Computing the degree matrix may involve incorporating node embeddings into the degree matrix using the Haar-Laplacian formula.
[0055] The steps for determining the importance score may include, for each edge, removing the edge and determining a modified eigenvalue based on the graph Laplacian, and calculating the difference between the eigenvalue and the modified eigenvalue.
[0056] Determining modified eigenvalues based on the graph Laplacian may involve using first-order perturbation theory.
[0057] Calculating the difference between an eigenvalue and a modified eigenvalue may involve calculating the difference between each eigenvalue and each modified eigenvalue to generate an eigenvalue difference vector, and determining the importance score may involve calculating the magnitude of the eigenvalue difference vector for each edge.
[0058] Generating signatures as an array of values may involve compressing the importance scores of KG edges using kernel mean embeddings.
[0059] The step of generating the signature as an array of values may include the steps of including the eigenvalue gap, the norm of the eigenvalue gap, and the importance score in the array of values.
[0060] The step of generating the signature as an array of values may include the steps of including the eigenvalue gap, the first norm of the eigenvalue gap, the second norm of the eigenvalue gap, and the importance score in the array of values.
[0061] Considering the method in Figure 6,
[0062] Performing graph perturbations on the training KG may include adding at least one node, removing at least one node, adding at least one edge, and removing at least one edge.
[0063] Performing graph perturbation may involve running a signature generation process to generate signatures for a subset of the training KG to be perturbed, and then determining which nodes and / or edges to perturb based on those signatures.
[0064] A computer implementation method may include selecting the edge with the highest importance score and / or the node connected by those edges as the node and / or edge to be perturbed.
[0065] Each training KG may be associated with a ground truth label indicating whether it is an adversarial training KG or a clean training KG, and training an ML classifier to correctly classify the training KGs may include using the ML classifier to classify each of the training KGs as adversarial or clean, and adjusting the weights of the ML classifier based on the classification and based on the ground truth label.
[0066] According to an embodiment of the third aspect, a computer program, when executed on a computer, causes the computer to execute a method, the method is A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps to determine the graph Laplacian of the target KG, The steps involve determining the eigenvalues of the graph Laplacian, The step of determining the gap between eigenvalues, The steps include determining the importance score of each edge within the target KG based on the graph Laplacian, The steps include generating a signature as an array of values based on the gaps between eigenvalues and importance scores, Steps including, The process involves using a machine learning (ML) classifier to classify the target KG as adversarial or clean based on its signature, and Includes, The ML classifier is trained according to the training process, and the training process is: Steps to obtain multiple training KGs (based on at least one document), The process involves performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The steps include: executing a signature generation process for multiple training KGs, including adversarial training KGs and clean training KGs, to generate multiple corresponding training signatures; The steps include training an ML classifier to correctly classify training KGs as adversarial or clean based on the corresponding training signatures, A computer program including the above is disclosed.
[0067] According to an embodiment of the fourth aspect, a computer program, when executed on a computer, causes the computer to perform a method which includes the step of performing a training process, Steps include obtaining multiple training knowledge graphs (KGs) (based on at least one document), The process involves performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. A step of generating multiple corresponding training signatures by performing a signature generation process for multiple training KGs, including adversarial training KGs and clean training KGs, wherein the signature generation process for each training KG, Steps to determine the graph Laplacian of training KG, The steps involve determining the eigenvalues of the graph Laplacian, The step of determining the gap between eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, and The steps include generating a signature as an array of values based on the gaps between eigenvalues and importance scores, Steps including, The steps include training an ML classifier to correctly classify training KGs as adversarial or clean based on the corresponding training signatures, A computer program including the above is disclosed.
[0068] According to an embodiment of the fifth aspect, an information processing device comprising a memory and a processor connected to the memory, wherein the processor The signature generation process is executed to generate signatures based on the target knowledge graph (KG), and the signature generation process is as follows: An information processing device that determines the graph Laplacian of the target KG, An information processing device that determines the eigenvalues of the graph Laplacian, An information processing device that determines the gap between eigenvalues, An information processing device that determines the importance score of each edge within a target KG based on the graph Laplacian, An information processing device that generates a signature as an array of values based on the gaps between eigenvalues and importance scores, Includes, Using a machine learning (ML) classifier, classify the target KG as adversarial or clean based on its signature. It is configured in such a way, The ML classifier is trained according to the training process, and the training process is: Obtaining multiple training KGs (based on at least one document) Performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, An information processing device that performs a signature generation process on multiple training KGs, including adversarial training KGs and clean training KGs, to generate multiple corresponding training signatures. Training an ML classifier to correctly classify training KGs as adversarial or clean based on the corresponding training signature, Information processing equipment, including the above, is disclosed.
[0069] According to an embodiment of the sixth aspect, an information processing device comprising a memory and a processor connected to the memory, wherein the processor is configured to execute a training process, and the training process is Obtaining multiple training knowledge graphs (KGs) (based on at least one document), Performing graph perturbations on a subset of multiple training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The signature generation process is performed on multiple training KGs, including adversarial training KGs and clean training KGs, to generate multiple corresponding training signatures, wherein the signature generation process is performed on each training KG, To determine the graph Laplacian of training KG, Determining the eigenvalues of the graph Laplacian, Determining the gap between eigenvalues, The importance score of each edge in the training KG is determined based on the graph Laplacian, Based on the gaps between eigenvalues and importance scores, a signature is generated as an array of values, Including, The first step is to train the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature. Information processing equipment, including the above, is disclosed.
[0070] Features relating to any aspect / embodiment can be applied to any other aspect / embodiment.
[0071] Figure 7 is a flowchart showing the method including steps S41 to S50.
[0072] Step S41 involves calculating the graph Laplacian of KG. The graph Laplacian is calculated by the following steps i to iv.
[0073] Step i: Calculate the adjacency matrix.
[0074] The adjacency matrix A is a way to capture connections within a knowledge graph. The (i,j)th element of the adjacency matrix captures both the connectivity between the i-th node and the j-th node, and the strength of that connection. The strength of the connection between the i-th node and the j-th node is calculated using the node embeddings of the i-th and j-th nodes, and the relational embedding of the relationship between them. In some implementations, each element of the adjacency matrix contains the cosine similarity of the relevant node embeddings.
[0075] For example, in one implementation, each element of the adjacency matrix is calculated according to the following formula:
number
[0076] Node embeddings can be generated using any suitable embedding model, such as any suitable feature extractor or transformer model. For example, an embedding model used in LLMs such as ChatGPT® or Llama may be used. Each node embedding is generally an array / vector of values. Each element of the adjacency matrix is a value. The (i,j)th element of the adjacency matrix is zero if there is no relationship between the i-th node and the j-th node.
[0077] Step II: Calculate the symmetric adjacency matrix A'.
[0078] This implementation generates the Laplacian using the Haar-Laplacian formula (Badea et. al., Haar-Laplacian for directed graphs, 2024). This involves generating a symmetric adjacency matrix A' based on the adjacency matrix A calculated in step i, as shown below. Symmetric matrices have useful mathematical properties.
number
[0079] Step iii: Calculate the order matrix D.
[0080] The degree matrix D is a diagonal matrix that captures the density of connections for each node. In general, calculating the degree matrix of a graph involves counting the number of nodes to which each node is connected. In this case, according to the Haar-Laplacian equation, the degree matrix is calculated as follows:
number
[0081] Step iv: Calculate the Laplacian of the knowledge graph. L=D-A'
[0082] The calculation of the graph Laplacian can be thought of as transforming KG into a mathematical form that captures its connectivity.
[0083] Step S42 involves computing the eigenvalues and eigenvectors of the graph Laplacian, for example, the top k eigenvalues and eigenvectors, where k is an integer greater than 1. Eigenvalues and eigenvectors can be thought of as special numbers and directions that highlight important features of the structure of KG. It will be understood that computing eigenvalues and eigenvectors based on the graph Laplacian is a well-known problem and can be addressed using various techniques, e.g., eigenvalue decomposition models available in coding libraries. It will be understood that while eigenvectors themselves are not strictly required for signature generation, their computation is usually required for the computation of eigenvalues. Therefore, any reference in this specification to computing eigenvectors and eigenvalues can be considered as the computation of eigenvalues accompanied by the computation of eigenvectors when necessary for computing eigenvalues.
[0084] Step S43 involves measuring the eigenvalue gap. This is done by finding the difference between consecutive eigenvalues.
[0085] Step S45 involves calculating the edge sensitivity of the edges in the KG. Edge sensitivity indicates how important each edge is to the KG as a whole; in other words, edge sensitivity is an indicator of the importance of the edges. An edge sensitivity, or "importance," e.g., an importance between 0 and 1, is assigned to each edge. This step involves, for each edge, removing the edge, recalculating the eigenvalue (based on the Laplacian), and calculating the difference between the original eigenvalue and the modified eigenvalue. Normalization is used to obtain an edge sensitivity between 0 and 1 for each edge.
[0086] To recalculate the eigenvalues in each case (i.e., each time an edge is removed), we use linear perturbation theory to compute the modified graph Laplacian, recalculate the eigenvalues based on the modified graph Laplacian, and obtain the modified eigenvalues. That is, when the edge between the i-th node and the j-th node is removed from the KG, the connection between these nodes is broken. Using linear perturbation theory (including the calculation of the perturbation matrix), we can efficiently compute the change in the original graph Laplacian due to this edge removal. This approach eliminates the need to recalculate the entire graph Laplacian of the modified KG with the relevant edges removed.
[0087] The change in eigenvalues is calculated by calculating the change in each eigenvalue for each edge (i.e., for each edge removal) to generate a vector, and then calculating the magnitude of the vector. That is, if the original eigenvalues contain eigenvalues e1, e2, ..., ek, and the modified eigenvalues contain eigenvalues e'1, e'2, ..., e'k, then the change in eigenvalues is calculated as the magnitude of the vector {e1-e'1, e2-e'2, ..., ek-e'k}.
[0088] Edge sensitivity can be thought of as the effect on the entire KG when an edge is perturbed, and calculating them is a way to analyze connectivity patterns within the KG.
[0089] Step S46 includes compressing the edge sensitivity by using kernel embedding (or kernel average embedding). This compresses the edge sensitivity into a compact representation.
[0090] Step S47 involves forming a graph signature. This step involves combining the features into a single representation to form a signature of KG. Thus, the graph signature is an array of values, i.e., a fixed-dimensional representation of KG that is independent of the size of KG. In one implementation, the signature includes spectral gaps (eigenvalue gaps based on the original graph Laplacian), spectral norms (norms 1 and 2 of the spectral gap vector), and kernel embeddings. Norms 1 and 2 of the spectral gap vector can be understood as follows: The spectral gaps (eigenvalue gaps based on the original graph Laplacian) are provided as values of vector g. The spectral norms are norm 1 of vector g (the sum of the magnitudes of the values of vector g, i.e., the sum of the magnitudes of the eigenvalue gaps) and norm 2 of vector g (the Euclidean norm, i.e., the square root of the sum of the squared values of vector g, i.e., the square root of the sum of the squared eigenvalue gaps).
[0091] Assuming that steps S41-S47 are performed based on the target KG, the next step is step S50, which involves using a trained classifier to classify the target KG as clean or adversarial.
[0092] Alternatively, assuming that steps S41-S47 are performed based on the training KG, the next step is step S48, followed by step S49. Step S48 involves creating a dataset of training signatures. That is, multiple training KGs are taken, and a subset of them is perturbed (for example, with respect to Figures 3 and 4, and with respect to Figures 9 and 10 described below, using edge and / or node addition and / or deletion) to generate adversarial training KGs, and the remaining training KGs are then considered clean training KGs. Steps S41-S47 are performed for each training KG, thus creating a dataset of training signatures, each associated with a ground truth label (clean or adversarial, based on the corresponding training KG). Step S49 involves training a classifier based on the training signatures and their ground truth labels.
[0093] Graph Signature Sig Gq The calculation (i.e., steps S41 to S47) in one implementation includes the following steps a to f.
number
[0094] Steps S41-S47 can be considered a signature generation process. Classifier training can be considered a training process. The classifier is a binary classifier. The classifier is a machine learning (ML) classifier, such as a support vector machine (SVM). The SVM can be trained using a convex optimization technique with hinge loss as the loss function.
[0095] The generation of a signature for a given KG can be seen as a form of spectral analysis, in that the signature generation process transforms the KG into a fixed-dimensional representation by analyzing its structure. The eigenvalues and eigenvectors of the graph Laplacian capture connectivity patterns.
[0096] The training KG can be obtained from a standard dataset for evaluating the RAG system. The adversarial training KG can be generated, for example, by programmatically adding and / or removing nodes and / or edges. In some implementations, the training KG may be perturbed based on the corresponding graph signature, i.e., to determine which nodes and / or edges (e.g., the edges and / or any related nodes with the highest edge sensitivity) will have the greatest impact on the KG if removed / modified.
[0097] The method in Figure 7 may be implemented as part of a KG-RAG system. In such an implementation, the target KG is generated based on the input query and at least one document. If the target KG is classified as clean, the normal KG-RAG process continues, and the LLM generates a response based on the query and the target KG (for example, an extended query is generated by extending the original query with context based on the target KG, which is then input to the LLM to obtain a response). If the target KG is classified as adversarial, the normal KG-RAG process restarts, and a new target KG may be generated. When a threshold number or percentage of KGs are classified as adversarial over a particular period, this may be a sign that at least one document on which the KG-RAG process is based is compromised / corrupted, and therefore an alert may be generated.
[0098] Step S41 may be considered to correspond to step S12 and / or step S32, and the corresponding explanation may apply, and vice versa. Similarly, step S42 may be considered to correspond to step S13 and / or step S33, step S43 to step S14 and / or step S34, step S45 to step S15 and / or step S35, steps S46 and S47 to step S16 and / or step S36, step S48 to step S21 and S22 (and S23), step S49 to step S24, and step S50 to step S17, and the corresponding explanation may apply, and vice versa.
[0099] Edge sensitivity is sometimes called the importance score.
[0100] Figure 8 shows the effects of the disclosed method, for example, the method shown in Figures 5-7.
[0101] Along the top of Figure 8, a clean KG81 is generated, and signature 83 is generated by performing the signature generation process described in Figures 5-7. A classifier trained to classify KG as adversarial or clean based on the corresponding signature successfully classifies KG81 as clean.
[0102] Along the bottom of Figure 8, perturbed KG82 is generated, and signature 84 is generated by performing the signature generation process described with respect to Figures 5-7. A classifier trained to classify KG as adversarial or clean based on the corresponding signature successfully classifies KG83 as adversarial. While patterns were used to show signatures 83 and 84, graph signatures can generally be represented using colors. Each bar in the pattern / color represents an element of the signature, such as the spectral gap, spectral norm, or compressed edge sensitivity.
[0103] Figures 9 and 10 illustrate how a training KG can be perturbed to generate an adversarial training KG.
[0104] Figure 9 shows training KG2. Adversarial training KG3 is generated by adding edges 34, 35, and 36, indicated by dashed lines. Adversarial training KG4 is generated by removing edges 121, 122, and 123, indicated by dotted lines, from adversarial training KG4.
[0105] Figure 10 shows training KG5. Adversarial training KG6 is generated by adding node 64 and edges 65 and 66, indicated by black circles and dashed lines. Adversarial training KG7 is generated by removing node 51 and associated edges 52 and 53, indicated by dotted lines in adversarial training KG7.
[0106] It will be understood that the techniques of adding nodes, removing nodes, adding edges, and removing edges can be used individually or in any combination in the perturbation of a given training KG. Edge and / or node modification can be used, which can be thought of as the removal of a node or edge, followed by the addition of another node or edge.
[0107] Figure 11 is a graph showing the results of applying a classifier trained according to the training process described above to test data. The classes "malignant" and "benign" correspond to the classes "adversarial" and "clean." The dashed lines indicate the classifier's decision boundaries with respect to the quantities represented by the x and y axes. To generate this graph for visualization purposes, the dimensions of the graph signature have been reduced to two dimensions represented by the x and y axes.
[0108] Figure 12 shows a table of results. In the experiments to produce these results, different attack methods were compared; that is, different methods of modifying KG in the KG-RAG process were compared, and the answers obtained provided by the KG-RAG process were evaluated. Along the top, the different KG-RAG methods used are shown: Mistral-small, GPT-4®, and DeepSeek. Along the left, the different datasets used are shown: DQ (DelucionQA), EMa (EManual), and HP (HotPotQA). The second column from the left shows different metrics used to evaluate the responses: CS (cosine similarity, capturing the similarity in the embedding space between the generated response and the ground truth or "golden" response (i.e., the human-generated response)), Gnd (groundedness, capturing hallucination generated by the KG-RAG process), HE (human evaluation, capturing the usefulness of the KG-RAG response), and Rel (relevance, capturing how appropriate the response is to the original query). The second row from the top shows different attack methods: WA (without attack, i.e., the normal KG-RAG process without attack), RP (random perturbations, i.e., randomly selecting edges to remove), BC (betweenness centrality), and "Ours" (determining which edges to remove by looking at the graph signature, i.e., removing the edge with the highest edge sensitivity). From Figure 12, it can be seen that "Ours," a method that uses graph signatures to determine critical edges to be removed, performs best in the sense that the KG-RAG response is most severely affected by this attack.
[0109] Figure 13 shows a table of results. In the experiments to produce these results, different methods for detecting adversarial perturbations on the graph were compared. Along the top, the different datasets used are shown: PM (PubMed), MM (MSMarco), HP, EQ (ExpertQA), EMa, and DQ. The second row from the top shows the methods used to detect adversarial perturbations, namely "Ours" (the method described in relation to Figure 7) and RGCN (relational graph convolutional network). On the left, the perturbations performed are shown, namely RA (relation addition), RD (relation deletion), EA (edge addition), ED (edge deletion), and CLEAN (no perturbation).
[0110] For the RGCN method, RGCN was used to generate vectors based on the relevant KGs, these vectors were used to train an ML classifier, and then this ML classifier was used to classify the KGs as clean or adversarial based on the vectors generated by RGCN. For the other method, "Ours," a method following the method in Figure 7 was used, for example, a method in which a graph signature was computed and this was used to train an ML classifier to classify the KGs as clean or adversarial based on the graph signature.
[0111] The results demonstrate the accuracy of this method. For example, the last row shows that the method in Figure 7 achieved an accuracy of 0.87 when detecting perturbation KG based on the PM dataset, while the RGCN method achieved an accuracy of 0.43. It can be seen that the method in Figure 7 performs better than the RGCN method for all datasets and for all perturbations used.
[0112] Figure 14 shows a table of results. In the experiments to generate these results, attacks on the KG-RAG system were compared to attacks on the RAG system (without the knowledge graph) and the KG-RAG process performed without attack. The second row from the top shows the process and / or attack. WA means without attack, and these columns show the results of a normal KG-RAG process without attack. RAG Attack - These columns show the results of a RAG process in which an attack was performed. In each case, the graph signature described above was used to determine the most important edges to be removed / perturbed, LLM was used to translate this change into a change in the document, and then the normal RAG process was performed. Ours - These columns show the results of a KG-RAG process in which an attack was performed by determining the most important edges based on the graph signature. The "Ours" column shows the same results as the "Ours" column in Figure 12.
[0113] Along the top, the different KG-RAG methods used are shown: Mistral-small, GPT-4®, and DeepSeek. Along the left, the different datasets used are shown: DQ (DelucionQA), EM (EManual), and HP (HotPotQA). The second column from the left shows the different metrics used to evaluate the responses: CS (cosine similarity, capturing the similarity in the embedding space between the generated response and the ground truth or "golden" response (i.e., the human-generated response)), Gnd (groundedness, capturing hallucination generated by the KG-RAG or RAG process), HE (human evaluation, capturing the usefulness of the KG-RAG or RAG response), and Rel (relevance, capturing how appropriate the response is to the original query).
[0114] The results in Figure 14 generally show that attacks (specifically, attacks based on the graph signatures described above) tend to have a greater impact on the KG-RAG process than on the normal RAG process, highlighting the importance of the methodology disclosed in this specification for identifying adversarial perturbation KGs.
[0115] While no prior methods exist that aim to solve the problems addressed by the method proposed in this specification, the method proposed in this specification can be compared to two existing LLM security methods described below as comparative methods. These are defenses based on confusion and rephrasing.
[0116] Perplexity-based Concept: Perplexity is a measure of how well a probabilistic model predicts a sample. In the context of language models, it indicates how surprised or confused the model was by a given text.
[0117] Application of LLM to Safety: The core idea is that unsafe or undesirable content often has different statistical properties compared to typical safe content on which the model was trained. This difference can be detected through perplexity.
[0118] Implementation: A separate “safety model” is trained on a curated dataset of safe content. When the main LLM generates an output, the safety model calculates the perplexity of that output. If the perplexity exceeds a certain threshold, it suggests that the content may be unsafe or atypical, and the output can be filtered or flagged for review.
[0119] limit: It may produce false positives for abnormal but safe content; Careful adjustment of the threshold is necessary; In particular, if the content is statistically likely to be safe, it may not catch all unsafe content; for example, it may not be able to detect carefully human-generated adversarial KG.
[0120] Rephrasing-based Concept: Paraphrasing defense reformulates user input before it reaches the main LLM, preserving the core meaning while confusing potential attack patterns.
[0121] Application to LLM security: This reduces rapid injection attacks, filters out harmful content requests, reduces input-based bias, and improves response consistency.
[0122] Implementation: A preprocessing AI model for paraphrasing is developed, ensuring intent preservation, and rule-based transformation is implemented.
[0123] limit: Potential semantic drift and loss in conversational context; Creative input may be restricted; Addition of computational overhead.
[0124] It will be understood that none of the above comparison methods are particularly applicable to KG in the KG-RAG system, unlike the disclosed method. The disclosed method is not subject to the same limitations as described above.
[0125] The method disclosed in this specification addresses vulnerabilities in Knowledge Graph Retrieval-Augmented Generation (KG-RAG) systems caused by adversarial or compromised knowledge graphs. Specifically, the disclosed method provides a mechanism for detecting and flagging adversarial documents containing harmful or misleading information (which may lead to the retrieval of harmful or misleading triples) that could adversely affect the output of a Large-Scale Language Model (LLM). Adversarial Threats: There are no existing mechanisms to identify or mitigate adversarial documents containing malicious information (which could lead to misleading triple searches) that provide irrelevant or harmful context to LLM and could result in undesirable or potentially harmful responses. Reliability and Robustness: The lack of an effective detection mechanism for adversarial inputs reduces the reliability of the KG-RAG system in critical applications requiring accurate and reliable results. Diagnostic Capabilities: Currently, there is no systematic approach to formulating diagnostic queries to evaluate the effectiveness and limitations of the KG-RAG system, which further hinders its robustness and deployment.
[0126] The method disclosed herein enhances the security and robustness of knowledge graph search-enhanced generation (KG-RAG) systems by detecting and mitigating adversarial manipulation. By calculating the graph Laplacian and analyzing eigenvalue gaps, the method captures subtle structural changes in the KG. Edge sensitivity is calculated to assess the impact of individual connections, and kernel mean embeddings compress this information into a compact representation. This graph signature enables an efficient classification mechanism to distinguish between adversarial and clean KG-RAG instances. As a result, the present invention enhances the reliability of KG-RAG systems, ensuring that generated responses are based on authentic and unaltered information, thereby improving reliability in AI-driven applications and preventing misinformation in AI-generated responses. This can also help ensure that medical KG-RAG systems are protected from adversarial modifications that could lead to misdiagnosis or mistreatment.
[0127] Figure 15 is a block diagram of an information processing device 10, such as a data storage server, or computing device 10, which can be used to embody the present invention, to carry out some or all of the operations of the method for embodying the present invention, and to carry out some or all of the tasks of the apparatus of the embodiment. The computing device 10 can be used to implement any of the above method steps, for example, S12-S17, S21-S24, and S41-S50.
[0128] The computing device 10 includes a processor 993 and memory 994. Optionally, the computing device also includes a network interface 997 for communicating with other such computing devices, for example, other computing devices in embodiments of the present invention. Optionally, the computing device also includes one or more input mechanisms, such as a keyboard and a mouse 996, and one or more display units, such as a monitor 995. These elements may facilitate user operation. The components are connectable to each other via a bus 992.
[0129] Memory 994 may include a computer-readable medium, and this term may refer to a single or multiple medium (e.g., a centralized or distributed database and / or associated cache and server) configured to carry computer-executable instructions. Computer-executable instructions may include instructions and data that are accessible by a computer (e.g., one or more processors) and cause one or more functions or operations to be performed. For example, computer-executable instructions may include instructions for implementing the methods disclosed herein, or any methods disclosed herein, for example, steps S12-S17, S21-S24, and S41-S50. The term “computer-readable storage medium” may include any medium capable of storing, encoding, or holding a set of instructions for machine execution and causing a machine to perform one or more of the method steps of this disclosure, and therefore the term “computer-readable storage medium” includes, but is not limited to, solid memory, optical media, and magnetic media. For example, but is not limited to, the term “computer-readable storage medium” may include solid memory, optical media, and magnetic media. For example, but not limited to, such computer-readable media may include non-temporary computer-readable media including random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM), or other optical disk storage devices, magnetic disk storage devices, or other magnetic storage devices, flash memory elements (e.g., solid memory devices).
[0130] The processor 993 is configured to control the computing device and perform processing operations, such as executing computer program code stored in memory 994 to perform any of the method steps described herein. Memory 994 stores data to be read and written by the processor 993, and may store graph signatures and / or KG and / or queries and / or responses and / or graph Laplacian and / or eigenvectors and / or eigenvalues and / or eigenvalue gaps and / or edge sensitivities and / or ML classifier weights and / or the input data and / or other data and / or programs to perform any of the method steps described herein. As referred to in this specification, the processor may include one or more general-purpose processing units, such as a microprocessor or a central processing unit. The processor may include a complex instruction set compute (CISC) microprocessor, a reduced instruction set compute (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets or processors that implement combinations of instruction sets. The processor may also include one or more special-purpose processing devices, such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), and network processors. In one or more embodiments, the processor is configured to execute the operations and instructions for performing the operations discussed in this specification. The processor 993 can be considered to include any of the above-described modules. Any operations described to be performed by a module may be performed as a method by a computer, for example, the processor 993.
[0131] The display unit 995 may display a representation of data stored by the computing device, such as whether KG is classified as adversarial or clean, and / or signature, and / or GUI window, and / or interactive representation that allows the user to interact with the device 10, for example, by drag-and-drop or selection interaction, and / or any other output as described above. It may also display a cursor, dialog boxes, and screens that enable interaction between the user and programs and data stored in the computing device. The input mechanism 996 may allow the user to input data and commands to the computing device, such as allowing the user to input any user input as described above.
[0132] The network interface (network I / F) 997 can connect to a network such as the Internet and can connect to other such computing devices via the network. The network I / F 997 can control input and output data with other devices via the network. Other peripheral devices such as microphones, speakers, printers, power supply units, fans, cases, scanners, and tracker balls may be included in the computing device.
[0133] A method for embodying the present invention can be performed using a computing device / device 10 as shown in Figure 15. Such a computing device does not need to have all the components shown in Figure 15, but can consist of a subset of these components. For example, device 10 includes a processor 993 and a memory 994 coupled to the processor 993. Alternatively, device 10 includes a processor 993, a memory 994 coupled to the processor 993, and a display 995. A method for embodying the present invention can be performed using a single computing device that communicates with one or more data storage servers over a network. The computing device may be a data storage device that stores at least a portion of the data.
[0134] The present invention can be implemented by a plurality of computing devices working together. One or more of these computing devices may be data storage servers that store at least a portion of the data.
[0135] The present invention can be implemented in digital electronic circuits, or in computer hardware, firmware, software, or a combination thereof. The present invention can be implemented as a computer program or computer program product, i.e., as a computer program embodied in a non-temporary information carrier, such as a machine-readable memory device or a propagated signal, to control execution or operation by one or more hardware modules.
[0136] A computer program may be in the form of a standalone program, a computer program portion, or multiple computer programs, and may be written in any form of programming language, including compiled or interpreted languages, and may be deployed in any form, such as as a standalone program or as modules, components, subroutines, or other units suitable for use in a data processing environment. A computer program may be deployed to run on one or more modules located in one place or distributed across multiple locations and interconnected by a communication network.
[0137] The steps of the method of the present invention, for example, steps S12-S17, S21-S24, and S41-S50, can be executed by one or more programmable processors that execute a computer program to perform the functions of the present invention by acting on input data and generating outputs. The device of the present invention can be implemented as programmed hardware or as a dedicated logic circuit including an FPGA (Field Programmable Gate Array) or an ASIC (Application-Specific Integrated Circuit).
[0138] Processors suitable for executing computer programs include, for example, both general-purpose and application-specific microprocessors, and any one or more processors in any type of digital computer. Typically, a processor receives instructions and data from read-only memory, random-access memory, or both. The fundamental element of a computer is a processor that executes instructions, coupled with one or more memories that store instructions and data.
[0139] The above-described embodiments of the present invention may be used advantageously independently of any other embodiment of the embodiments, or in any feasible combination with one or more other embodiments of the embodiments.
[0140] This disclosure is extended to the following statement.
[0141] (S1) A computer implementation method, A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods, including those mentioned above.
[0142] (S2) The computer implementation method according to S1, wherein the target KG is a KG generated as part of a KG search-enhancement-generation (KG-RAG) process.
[0143] (S3) The computer implementation method according to S2, comprising the steps of: continuing the KG-RAG process based on the target KG if the target KG is classified as a clean KG; and restarting the KG-RAG process to generate a new KG if the target KG is classified as an adversarial KG.
[0144] (S4) The aforementioned computer implementation method is The steps to receive the query, Based on the aforementioned query, the steps include: extracting information from at least one document; A step of generating the target KG based on the extracted information, If the target KG is classified as a clean KG, the steps include generating a response to the query using a large language model (LLM) based on the query and the target KG, A computer implementation method described in any one of S1 to S3, including the above.
[0145] (S5) The computer implementation method according to S4, which includes the step of repeating the steps of information retrieval and KG generation if the target KG is classified as an adversarial KG.
[0146] (S6) The computer implementation method according to S1 or S2, wherein at least one document in the KG-RAG process is the same as at least one document used in the training process.
[0147] (S7) The computer implementation method according to any one of S1 to S6, which includes the step of performing the training process before classifying the target KG.
[0148] (S8) A computer implementation method including steps for performing a training process, Steps include obtaining multiple training knowledge graphs (KGs) (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods including
[0149] (S9) The aforementioned computer implementation method is The steps include: executing the signature generation process to generate a signature based on the target KG; The steps include using the ML classifier to classify the target KG as adversarial or clean based on the signature, Computer implementation method as described in S8, including.
[0150] (S10) The computer implementation method according to any one of S1 to S9, wherein the target KG includes nodes representing entities and edges representing relationships between entities.
[0151] (S11) The computer implementation method according to any one of S1 to S10, wherein the step of determining the graph Laplacian includes the step of calculating the adjacency matrix and the order matrix based on the KG.
[0152] (S12) The computer implementation method according to S11, wherein the step of calculating the adjacency matrix includes the step of calculating node embeddings for the nodes of KG and the step of calculating relational embeddings for the edges of KG.
[0153] (S13) The computer implementation method according to S12, wherein the step of calculating the adjacency matrix includes the step of calculating each element of the KG corresponding to a pair of connected nodes in the KG, based on the node embedding of the pair of nodes and the relational embedding of the edges between the pair of nodes.
[0154] (S14) The step of determining the graph Laplacian includes the step of calculating the adjacency matrix and the order matrix based on the KG, The step of calculating the adjacency matrix includes the steps of calculating the node embeddings of the nodes in the KG and calculating the relational embeddings of the edges in the KG. The step of calculating the adjacency matrix includes calculating each element of the KG corresponding to a pair of connected nodes in the KG, based on the node embedding of the pair of nodes and the relational embedding of the edges between the pair of nodes. Computer implementation method as described in any one of items S1 to S10.
[0155] (S15) The computer implementation method according to any one of S11 to S14, wherein each element of the adjacency matrix corresponding to a pair of connected nodes in the KG is based on the similarity between the node embeddings of the pair of nodes.
[0156] (S16) The computer implementation method according to any one of S11 to S15, wherein each element of the adjacency matrix corresponding to a pair of unconnected nodes is zero.
[0157] (S17) The step of determining the graph Laplacian is: The steps include: calculating a symmetric adjacency matrix based on the adjacency matrix; The steps include: calculating the graph Laplacian by subtracting the symmetric adjacency matrix from the aforementioned order matrix; A computer implementation method described in any one of S11 to S16, including the method described in S11 to S16.
[0158] (S18) The computer implementation method according to any one of S11 to S17, wherein the step of calculating the aforementioned order matrix includes the step of incorporating node embeddings into the aforementioned order matrix using the Haar-Laplacian formula.
[0159] (S19) The computer implementation method according to any one of S1 to S18, wherein the step of determining the importance score includes, for each edge, the steps of removing the edge, determining a modified eigenvalue based on the graph Laplacian, and calculating the difference between the eigenvalue and the modified eigenvalue.
[0160] (S20) The computer implementation method described in S19, wherein the step of determining the corrected eigenvalues based on the graph Laplacian includes the step of using first-order perturbation theory.
[0161] (S21) The computer implementation method according to S19 or S20, wherein the step of calculating the difference between the eigenvalue and the modified eigenvalue includes the step of calculating the difference between each eigenvalue and each modified eigenvalue to generate an eigenvalue difference vector, and the step of determining the importance score includes the step of calculating the magnitude of the eigenvalue difference vector for each edge.
[0162] (S22) The computer implementation method according to any one of S1 to S21, wherein the step of generating the signature as an array of the aforementioned values includes the step of compressing the importance score of the KG edges using kernel mean embeddings.
[0163] (S23) The computer implementation method according to any one of S1 to S21, wherein the step of generating the signature as an array of values includes the step of including the eigenvalue gap, the norm of the eigenvalue gap, and the importance score in the array of values.
[0164] (S24) The computer implementation method according to any one of S1 to S23, wherein the step of generating the signature as an array of values includes the step of including the eigenvalue gap, the first norm of the eigenvalue gap, the second norm of the eigenvalue gap, and the importance score in the array of values.
[0165] (S25) The computer implementation method according to any one of S1 to S24, wherein the step of performing a graph perturbation on the training KG includes one of the following steps: adding at least one node, removing at least one node, adding at least one edge, and removing at least one edge.
[0166] (S26) The computer implementation method according to any one of S1 to S25, wherein the step of performing the graph perturbation includes the step of performing the signature generation process to generate signatures for a subset of the training KG to be perturbed, and the step of determining which nodes and / or edges to perturb based on the signatures.
[0167] (S27) The computer implementation method described above is the computer implementation method according to any one of S1 to S26, which includes the step of selecting the edge having the highest importance score and / or the node connected by those edges as the node and / or edge to be perturbed.
[0168] (S28) A computer implementation method according to any one of S1 to S27, wherein each training KG is associated with a ground truth label indicating whether it is an adversarial training KG or a clean training KG, and the step of training the ML classifier to correctly classify the training KGs includes the steps of using the ML classifier to classify each of the training KGs as adversarial or clean, and adjusting the weights of the ML classifier based on the classification and based on the ground truth label.
[0169] (S29) A computer program, when executed on a computer, causes the computer to execute a method, the method is A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, A computer program that includes [this].
[0170] (S30) A computer program, when executed on a computer, causes the computer to perform a method which includes the step of performing a training process, Steps include obtaining multiple training knowledge graphs (KGs) (based on at least one document), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, A computer program that includes [this].
[0171] (S31) An information processing device comprising a memory and a processor connected to the memory, the processor is A signature generation process is executed to generate signatures based on the target knowledge graph (KG), and the signature generation process is as follows: To determine the graph Laplacian of the aforementioned target KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, Based on the aforementioned graph Laplacian, the importance score of each edge within the target KG is determined, Based on the gap between the eigenvalues and the importance score, the signature is generated as an array of values. Includes, A machine learning (ML) classifier is used to classify the target KG as adversarial or clean based on the signature. It is configured in such a way, The ML classifier is trained according to a training process, and the training process is Obtaining multiple training KGs (based on at least one document) The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the multiple training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures. Training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment, including...
[0172] (S32) An information processing device comprising a memory and a processor connected to the memory, wherein the processor is configured to execute a training process, and the training process is Obtaining multiple training knowledge graphs (KGs) (based on at least one document), The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process is performed on each training KG, To determine the graph Laplacian of the aforementioned training KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, The importance score of each edge in the training KG is determined based on the aforementioned graph Laplacian, Based on the gap between the eigenvalues and the importance score, the signature is generated as an array of values. Includes, Training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment including...
[0173] In addition to the embodiments described above, the following further notes are disclosed. (Note 1) A computer implementation method, A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs, The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods, including those mentioned above. (Note 2) Steps to receive queries, Based on the aforementioned query, the steps include: extracting information from at least one document; A step of generating the target KG based on the extracted information, If the target KG is classified as a clean KG, the steps include generating a response to the query using a large language model (LLM) based on the query and the target KG, The computer implementation method described in Appendix 1, including the method described therein. (Note 3) A computer implementation method including the step of performing a training process, Steps to obtain multiple training knowledge graphs (KG), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating a signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods including (Note 4) The step of determining the graph Laplacian includes the step of calculating the adjacency matrix and the order matrix based on the KG, The step of calculating the adjacency matrix includes the steps of calculating the node embeddings of the nodes of the KG and calculating the relational embeddings of the edges of the KG, The step of calculating the adjacency matrix includes calculating each element of the KG corresponding to a pair of connected nodes in the KG, based on the node embedding of the pair of nodes and the relational embedding of the edges between the pair of nodes. The computer implementation method described in any one of the appendices 1 to 3. (Note 5) The step of determining the importance score is as follows for each edge: The steps include removing the aforementioned edges and determining the corrected eigenvalues based on the graph Laplacian, A step of calculating the difference between the aforementioned eigenvalue and the aforementioned modified eigenvalue, A computer implementation method described in any one of the appendices 1 to 3, including the above. (Note 6) The computer implementation method according to any one of Notes 1 to 3, wherein the step of generating the signature as an array of values includes the step of including the eigenvalue gap, the norm of the eigenvalue gap, and the importance score in the array of values. (Note 7) A computer program that, when executed on a computer, causes the computer to execute a method, and the method is A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process includes: obtaining a plurality of training KGs; performing graph perturbation on a subset of the plurality of training KGs to generate adversarial training KGs, and selecting remaining training KGs as clean training KGs; performing the signature generation process on the plurality of training KGs including the adversarial training KGs and the clean training KGs to generate a plurality of corresponding training signatures; training the ML classifier to correctly classify the training KGs as adversarial or clean based on the corresponding training signatures; A computer program comprising: (Supplementary Note 8) A computer program that, when executed on a computer, causes the computer to perform a method including the step of executing a training process, the method comprising: obtaining a plurality of training knowledge graphs (KGs); performing graph perturbation on a subset of the plurality of training KGs to generate adversarial training KGs, and selecting remaining training KGs as clean training KGs; performing a signature generation process on the plurality of training KGs including the adversarial training KGs and the clean training KGs to generate a plurality of corresponding training signatures, wherein the signature generation process includes, for each training KG: determining a graph Laplacian of the training KG; determining eigenvalues of the graph Laplacian; determining gaps between the eigenvalues; determining an importance score of each edge in the training KG based on the graph Laplacian; A step of generating a signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, A computer program that includes [this]. (Note 9) An information processing device comprising a memory and a processor connected to the memory, wherein the processor is A signature generation process is executed to generate signatures based on the target knowledge graph (KG), and the signature generation process is as follows: To determine the graph Laplacian of the aforementioned target KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, Based on the aforementioned graph Laplacian, the importance score of each edge within the target KG is determined, Based on the gap between the eigenvalues and the importance score, the signature is generated as an array of values. Includes, A machine learning (ML) classifier is used to classify the target KG as adversarial or clean based on the signature. It is configured in such a way, The ML classifier is trained according to a training process, and the training process is Obtaining multiple training KGs, The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the multiple training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures. Training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment, including... (Note 10) An information processing device comprising a memory and a processor connected to the memory, wherein the processor is configured to execute a training process, and the training process is Obtaining multiple training knowledge graphs (KG), The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process is performed on each training KG, To determine the graph Laplacian of the aforementioned training KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, The importance score of each edge in the training KG is determined based on the aforementioned graph Laplacian, Based on the gap between the eigenvalues and the importance score, a signature is generated as an array of values. Including, Training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment, including... [Explanation of Symbols]
[0174] 11. Endangered Knowledge Graph 12 Input queries related to document corpora 13 Search Engine 14 related triples Queries supplemented with information from 15 KG 16. Large-Scale Language Models (LLMs)
Claims
1. A computer implementation method, A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs, The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods, including those mentioned above.
2. The steps to receive the query, Based on the aforementioned query, the steps include: extracting information from at least one document; A step of generating the target KG based on the extracted information, If the target KG is classified as a clean KG, the steps include generating a response to the query using a large language model (LLM) based on the query and the target KG, The computer implementation method according to claim 1, including the following:
3. A computer implementation method including steps for performing a training process, Steps to obtain multiple training knowledge graphs (KGs), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating a signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Computer implementation methods including
4. The step of determining the graph Laplacian includes the step of calculating the adjacency matrix and the order matrix based on the KG, The step of calculating the adjacency matrix includes the steps of calculating the node embeddings of the nodes of the KG and calculating the relational embeddings of the edges of the KG, The step of calculating the adjacency matrix includes calculating each element of the KG corresponding to a pair of connected nodes in the KG, based on the node embedding of the pair of nodes and the relational embedding of the edges between the pair of nodes. The computer implementation method according to any one of claims 1 to 3.
5. The step of determining the aforementioned importance score is as follows for each edge: The steps include removing the aforementioned edges and determining the corrected eigenvalues based on the graph Laplacian, A step of calculating the difference between the aforementioned eigenvalue and the aforementioned modified eigenvalue, A computer implementation method according to any one of claims 1 to 3, including the method described in any one of claims 1 to 3.
6. The computer implementation method according to any one of claims 1 to 3, wherein the step of generating the signature as an array of values includes the step of including the eigenvalue gap, the norm of the eigenvalue gap, and the importance score in the array of values.
7. A computer program, when executed on a computer, causes the computer to execute a method, the method is A step of executing a signature generation process to generate signatures based on a target knowledge graph (KG), wherein the signature generation process is: The steps include determining the graph Laplacian of the aforementioned target KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge within the target KG based on the aforementioned graph Laplacian, A step of generating the signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, A step of classifying the target KG as adversarial or clean based on the signature using a machine learning (ML) classifier, Includes, The ML classifier is trained according to a training process, and the training process is Steps to obtain multiple training KGs, The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, The steps include: performing the signature generation process on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures; The steps include training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, A computer program that includes [this].
8. A computer program, when executed on a computer, causes the computer to perform a method which includes the step of performing a training process, Steps to obtain multiple training knowledge graphs (KGs), The steps include performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs, A step of generating a signature generation process for the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process, for each training KG, The steps include determining the graph Laplacian of the aforementioned training KG, The steps include determining the eigenvalues of the graph Laplacian, The step of determining the gap between the aforementioned eigenvalues, The steps include determining the importance score of each edge in the training KG based on the graph Laplacian, A step of generating a signature as an array of values based on the gap between the eigenvalues and the importance score, Steps including, The steps include training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, A computer program that includes [this].
9. An information processing device comprising a memory and a processor connected to the memory, the processor is A signature generation process is executed to generate signatures based on the target knowledge graph (KG), and the signature generation process is as follows: To determine the graph Laplacian of the aforementioned target KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, Based on the aforementioned graph Laplacian, the importance score of each edge within the target KG is determined, Based on the gap between the eigenvalues and the importance score, the signature is generated as an array of values. Includes, A machine learning (ML) classifier is used to classify the target KG as adversarial or clean based on the signature. It is configured in such a way, The ML classifier is trained according to a training process, and the training process is Obtaining multiple training KGs, The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the multiple training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures. Training the ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment, including...
10. An information processing device comprising a memory and a processor connected to the memory, wherein the processor is configured to execute a training process, and the training process is Obtaining multiple training knowledge graphs (KG), The process involves performing graph perturbations on a subset of the aforementioned training KGs to generate adversarial training KGs, and selecting the remaining training KGs as clean training KGs. The signature generation process is performed on the plurality of training KGs, including the adversarial training KG and the clean training KG, to generate a plurality of corresponding training signatures, wherein the signature generation process is performed on each training KG, To determine the graph Laplacian of the aforementioned training KG, Determining the eigenvalues of the aforementioned graph Laplacian, Determining the gap between the aforementioned eigenvalues, The importance score of each edge in the training KG is determined based on the aforementioned graph Laplacian, Based on the gap between the aforementioned eigenvalues and the importance score, a signature is generated as an array of values. Including, Training an ML classifier to correctly classify the training KG as adversarial or clean based on the corresponding training signature, Information processing equipment, including...
