Method and apparatus for generating both local-level and global-level explanations of graph neural networks
AssigneeResearch & Business Foundation Sungkyunkwan University
InventorsGyeong Rok PARK, Hogun PARK
Life of this patent
Estimating the term…
Abstract
There is provided an apparatus of generating explanations for a graph neural network. The apparatus comprises the graph neural network that embeds an input graph into a node representation matrix H, and then outputs a result matrix Z in which a score of a specific class for each node is represented corresponding to the node representation matrix using a weight matrix W.
Claims18
A method of generating explanations for a graph neural network to be performed by an apparatus for generating explanations for the graph neural network, the method comprising:
- preparing the graph neural network that embeds an input graph into a node representation matrix H, and then outputs a result matrix Z in which a score of a specific class for each node is represented corresponding to the node representation matrix using a weight matrix W;
- decomposing the weight matrix W into vector products of an orbit weight matrix P containing information on each orbit and an orbit-class score matrix S;
- generating a global explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of orbit-class scores indicating contributions of orbits when the graph neural network classifies nodes into a specific class on the basis of results of decomposition;
- selecting a specific node among nodes and classifying the selected specific node as the specific class;
- and
- generating a local explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of node-orbit-class scores indicating contributions of nodes when the graph neural network classifies the selected specific node as the specific class on the basis of the results of decomposition.
An apparatus for generating explanations for a graph neural network, the apparatus comprising:
- a memory configured to store one or more instructions;
- and
- a processor configured to execute the one or more instructions stored in the memory, wherein the instructions, when executed by the processor, cause the processor to:
- prepare the graph neural network that embeds an input graph into a node representation matrix H, and then outputs a result matrix Z in which a score of a specific class for each node is represented corresponding to the node representation matrix using a weight matrix W;
- decompose the weight matrix W into vector products of an orbit weight matrix P containing information on each orbit and an orbit-class score matrix S;
- generate a global explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of orbit-class scores indicating contributions of orbits when the graph neural network classifies nodes into a specific class on the basis of results of decomposition;
- select a specific node among nodes and classify the selected specific node as the specific class;
- and
- generate a local explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of node-orbit-class scores indicating contributions of nodes when the graph neural network classifies the selected specific node as the specific class on the basis of the results of decomposition.
A non-transitory computer readable storage medium storing computer executable instructions, wherein the instructions, when executed by a processor, cause the processor to perform a method of generating explanations for a graph neural network, the method comprising:
- preparing the graph neural network that embeds an input graph into a node representation matrix H, and then outputs a result matrix Z in which a score of a specific class for each node is represented corresponding to the node representation matrix using a weight matrix W;
- decomposing the weight matrix W into vector products of an orbit weight matrix P containing information on each orbit and an orbit-class score matrix S;
- generating a global explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of orbit-class scores indicating contributions of orbits when the graph neural network classifies nodes into a specific class on the basis of results of decomposition;
- selecting a specific node among nodes and classifying the selected specific node as the specific class;
- and
- generating a local explanation in which corresponding orbits and graphlets including the corresponding orbits are provided as subgraphs of the input graph in descending order of node-orbit-class scores indicating contributions of nodes when the graph neural network classifies the selected specific node as the specific class on the basis of the results of decomposition.
Dependencies are inferred from the claim text.