Knowledge hypergraph-based decoupling representation learning method and device
By decoupling the different semantics of entities in the knowledge hypergraph, and using graph neural networks and knowledge hypergraph completion tasks to train the model, we solve the problem of difficulty in representing complex entity semantics in traditional knowledge graphs, and achieve high-quality entities and relationships. Representation improves the application capabilities of knowledge hypergraphs.
Patent Information
- Application Number
- CN202411273821.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for traditional knowledge graphs to effectively represent and process the multi-faceted semantics of complex entities, resulting in low quality entity representation and the inability to fully utilize the expressive capabilities of knowledge hypergraphs.
A decoupled representation learning method based on knowledge hypergraph is proposed. By decoupling the different semantics of entities, it learns high-quality vector representations of entities and relationships. It uses graph neural networks and knowledge hypergraph completion tasks to train models and update entities. Represent and complete missing entities in hyperedges.
It achieves efficient modeling of knowledge hypergraphs with complex structures, learns multi-faceted semantic vectors of entities, and improves the quality of representation and the effect of downstream applications.
Smart Images

Figure CN118798333A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of knowledge graphs, and more specifically, to a decoupled representation learning method and device based on knowledge hypergraphs. Background Art
[0002] Knowledge graph is a large-scale graph structure for storing knowledge. It has been widely used in many fields such as recommendation systems and knowledge question answering. Knowledge graph consists of nodes and edges, where each node corresponds to an entity and each edge corresponds to a relationship. The edge connecting two entities represents the corresponding relationship between the two entities. For example, the edge (XXX, graduated from, Shanghai XX University) in the knowledge graph represents the knowledge "XXX graduated from Shanghai XX University".
[0003] The knowledge hypergraph is an extension of the traditional knowledge graph, consisting of nodes and hyperedges, where each node corresponds to an entity. Unlike the edges in the traditional knowledge graph, each hyperedge not only corresponds to a relationship, but also has a corresponding "attribute-value" pair, which provides a richer and more specific description of the relationship between entities. For example, for an edge in the knowledge graph (XXX, graduated from, Shanghai XX University), the knowledge hypergraph may have a corresponding "attribute-value" pair: time-1934, department-mechanical engineering department, indicating the knowledge "XXX graduated from the mechanical engineering department of Shanghai XX University in 19XX". The knowledge hypergraph can represent more complex semantics, describe attribute information, and is more in line with human expression habits. By learning the representation of entities and relationships in the knowledge hypergraph, a foundation can be provided for the application of the knowledge hypergraph. Summary of the invention
[0004] The present disclosure proposes a decoupled representation learning method and device based on a knowledge hypergraph, a computing system and a computer-readable storage medium, which can learn high-quality vector representations of entities and relationships by decoupling the different semantics of entities.
[0005] According to one aspect of the present disclosure, a decoupled representation learning method based on a knowledge hypergraph is provided, and the decoupled representation learning method based on the knowledge hypergraph comprises: randomly initializing representation vectors of entities, relationships, attributes and values in the knowledge hypergraph, wherein the representation vector of an entity comprises a plurality of sub-representation vectors, the number of the plurality of sub-representation vectors is determined based on the number of semantics possessed by the entity, and the dimensions of the representation vectors of relationships, attributes and values are the same as the dimensions of the sub-representation vectors of the entity; updating the plurality of sub-representation vectors included in each entity based on information transmitted from neighboring entities of each entity; and determining the missing entities in the hyperedges based on the updated vector representations of entities and relationships using a knowledge hypergraph completion task training model.
[0006] Optionally, the step of updating the multiple sub-representation vectors included in each entity based on information transmitted from the neighboring entities of each entity includes: determining, for the sub-representation vector of any one entity, information transmitted by the sub-representation vector of the same ordinal number of each neighboring entity; and updating the sub-representation vector of the any one entity using an activation function based on the information transmitted by the sub-representation vector of the same ordinal number of each neighboring entity.
[0007] Optionally, the activation function includes a ReLU function.
[0008] Optionally, for the sub-representation vector of any entity, the step of determining the information conveyed by the sub-representation vector of the same ordinal number of each neighboring entity includes: determining a semantically aggregated vector based on a predetermined parameter matrix and the representation vectors of attributes and values; determining a combined vector based on the semantically aggregated vector, predetermined weight parameters and the representation vector of the relationship; and determining the information conveyed by the sub-representation vector of the same ordinal number of the neighboring entity using an activation function based on the combined vector and the sub-representation vector of the same ordinal number of the neighboring entity.
[0009] Optionally, the activation function includes a ReLU function.
[0010] Optionally, using the knowledge hypergraph completion task training model, the step of determining the missing entities in the hyperedge based on the updated vector representations of entities and relationships includes: initializing and concatenating the sub-representation vectors of the known parts in the hyperedge based on the updated vector representations of entities and relationships; inputting the concatenated vectors into the neural network model to obtain a semantic representation vector; performing a linear transformation on the semantic representation vector, and multiplying the result of the linear transformation with the sub-representation vector of the same ordinal number of the candidate entity to obtain the possibility score of each candidate entity for the semantics of the same ordinal number; determining the weighted total score of each candidate entity based on the possibility score and the weight assigned based on the relationship using a normalization function; and determining the candidate entity with the largest weighted total score as the missing entity in the hyperedge.
[0011] Optionally, the decoupled representation learning method based on the knowledge hypergraph also includes: determining the cross entropy based on the weighted total score of each candidate entity, a variable identifying whether each candidate entity is a correct unknown entity, and the size of the training set of the knowledge hypergraph completion task training model; and optimizing the knowledge hypergraph completion task training model by minimizing the determined cross entropy.
[0012] According to another aspect of the present disclosure, a decoupled representation learning device based on a knowledge hypergraph is provided, and the decoupled representation learning device based on the knowledge hypergraph includes: an initialization unit, configured to randomly initialize representation vectors of entities, relationships, attributes and values in the knowledge hypergraph, wherein the representation vector of the entity includes multiple sub-representation vectors, the number of the multiple sub-representation vectors is determined based on the number of semantics possessed by the entity, and the dimensions of the representation vectors of the relationship, attribute and value are the same as the dimensions of the sub-representation vectors of the entity; an updating unit, configured to update the multiple sub-representation vectors included in each entity based on information transmitted from the neighboring entities of each entity; and a completion unit, configured to utilize a knowledge hypergraph completion task training model to determine the missing entities in the hyperedge based on the updated vector representations of the entities and relationships.
[0013] Optionally, the updating unit is further configured to: determine, for a sub-representation vector of any entity, information conveyed by a sub-representation vector of the same ordinal number of each neighboring entity; and update the sub-representation vector of any entity using an activation function based on the information conveyed by the sub-representation vector of the same ordinal number of each neighboring entity.
[0014] Optionally, the activation function includes a ReLU function.
[0015] Optionally, the completion unit is further configured to: determine a semantically aggregated vector based on a predetermined parameter matrix and representation vectors of attributes and values; determine a combined vector based on the semantically aggregated vector, predetermined weight parameters and representation vectors of relationships; and determine information conveyed by the sub-representation vectors of the same ordinal number of neighbor entities using an activation function based on the combined vector and the sub-representation vectors of the same ordinal number of neighbor entities.
[0016] Optionally, the activation function includes a ReLU function.
[0017] Optionally, the completion unit is further configured to: initialize and concatenate sub-representation vectors of known parts in the hyperedge based on updated vector representations of entities and relationships; input the concatenated vectors into a neural network model to obtain a semantic representation vector; perform a linear transformation on the semantic representation vector, and multiply the result of the linear transformation by the sub-representation vector of the same ordinal number of the candidate entity to obtain a likelihood score for each candidate entity for the semantics of the same ordinal number; determine a weighted total score of each candidate entity using a normalization function based on the likelihood score and the weight assigned based on the relationship; and determine the candidate entity with the largest weighted total score as the missing entity in the hyperedge.
[0018] Optionally, the knowledge hypergraph-based decoupled representation learning device also includes a model optimization unit, which is configured to: determine the cross entropy based on the weighted total score of each candidate entity, a variable identifying whether each candidate entity is a correct unknown entity, and the size of the training set of the knowledge hypergraph completion task training model; and optimize the knowledge hypergraph completion task training model by minimizing the determined cross entropy.
[0019] According to another aspect of the present disclosure, a computing system is provided, comprising at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the decoupled representation learning method based on the knowledge hypergraph as described above.
[0020] According to another aspect of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein, when the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the decoupled representation learning method based on the knowledge hypergraph as described above.
[0021] By adopting the present disclosure, it is possible to process complex knowledge hypergraphs, model multi-faceted semantics of entities, and learn high-quality vector representations of entities and relationships by decoupling different semantics of entities. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and / or other objects and advantages of the present disclosure will become more apparent through the following description of embodiments in conjunction with the accompanying drawings, in which: Figure 1 is a flow chart illustrating a method for learning a decoupled representation based on a knowledge hypergraph according to an exemplary embodiment of the present disclosure; Figure 2 is a block diagram illustrating a decoupled representation learning apparatus based on a knowledge hypergraph according to an exemplary embodiment of the present disclosure; Figure 3 is a block diagram illustrating a computing system including at least one computing device and at least one storage device storing instructions according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Below, in conjunction with the accompanying drawings, a description of a specific embodiment is provided to help the reader obtain a comprehensive understanding of the method, device and / or system described herein. However, after understanding the disclosure of the present application, various changes, modifications and equivalents of the method, device and / or system described herein will be clear. For example, the order of operations described herein is only an example and is not limited to those orders set forth herein, but can be changed as will be clear after understanding the disclosure of the present application, except for operations that must occur in a specific order. In addition, for greater clarity and simplicity, the description of features known in the art may be omitted.
[0024] In the present disclosure, decoupling refers to separating the fused semantic representations. An entity often has multiple semantics. For example, the entity "XXX" has multiple semantics such as scientist, husband, father, etc. In traditional representation learning, these semantics are often fused in the same representation. The present disclosure achieves decoupling by learning multiple independent sub-representations for each entity. This method can learn higher-quality entity representations and learn semantic vectors of multiple aspects of entities, achieving better results in downstream applications.
[0025] In order to learn the representation of entities and relationships in a knowledge hypergraph, and encode the semantics of different aspects of the same entity into multiple independent sub-representations, the present disclosure decouples the different semantics of entities to learn high-quality vector representations of entities and relationships. Specifically, based on the structure of the knowledge hypergraph, the representation of entities and relationships in the knowledge hypergraph is learned. The core algorithm includes representation vector initialization, representation update based on graph neural network, and model training based on knowledge hypergraph completion. The specific process may include: representation vector initialization, initialization of the representation of entities and relationships in the knowledge hypergraph as the starting point of training; representation update based on graph neural network, based on the proposed decoupled representation learning method and the network structure of the knowledge hypergraph, using graph neural network to learn vector representations of entities and relationships; based on the knowledge hypergraph completion task training model, using the learned representations of entities and relationships to complete the missing entities in the hyperedge, the better the completion effect, the better the quality of the learned representation, so the model can be optimized and trained according to the completion effect to learn higher quality representations.
[0026] Figure 1 is a flowchart illustrating a knowledge hypergraph-based decoupled representation learning method according to an exemplary embodiment of the present disclosure.
[0027] like Figure 1 As shown, in step S101, the representation vectors of entities, relations, attributes and values in the knowledge hypergraph are randomly initialized. The representation vector of an entity includes a plurality of sub-representation vectors, the number of which is determined based on the number of semantics possessed by the entity, and the dimension of the representation vector of the relation, attribute and value is the same as the dimension of the sub-representation vector of the entity.
[0028] For example, each edge in the knowledge hypergraph is represented as ,in, and It's a relationship The two entities connected, is a set of identical attribute-value pairs. For the properties, For the Each entity has a corresponding value. Representation Depend on Independent sub-representation The concatenation structure is composed of sub-representations, where each sub-representation models different aspects of semantics:
[0029] in, is the vector dimension of the sub-representation of the entity.
[0030] relation Representation Same as the entity's subrepresentation dimension, Each attribute in the attribute-value pair Representation With value Representation are the same as the entity's sub-representation dimensions, , . Randomly initialize the representation vectors of all entities, relations, attributes, and values.
[0031] In step S102, multiple sub-representations included in each entity are updated based on the information transmitted from the neighbor entities of each entity. In the example, for the sub-representation vector of each entity, the information transmitted by the sub-representation vector of the same ordinal number of each neighbor entity is determined; based on the information transmitted by the sub-representation vector of the same ordinal number of each neighbor entity, the sub-representation vector of the entity is updated using an activation function. For example, the activation function includes a ReLU function. For example, based on a predetermined parameter matrix and the representation vectors of attributes and values, a semantically aggregated vector is determined; based on the semantically aggregated vector, predetermined weight parameters and the representation vector of the relationship, a combined vector is determined; based on the combined vector and the sub-representation vector of the same ordinal number of the neighbor entity, an activation function (e.g., a ReLU function) is used to determine the information transmitted by the sub-representation vector of the same ordinal number of the neighbor entity.
[0032] For example, for the entity No. The child indicates , calculate its neighbor entities No. The child indicates Pass to Information :
[0033] in, Combines two vectors, defined as:
[0034] is the activation function (such as ReLU function), Finger stitching vector , and are learnable parameters.
[0035] It's a relationship And the combination of semantic information of all attribute-value pairs:
[0036] in, is a learnable weight parameter, is based on all attribute-value pairs The semantic aggregation of is:
[0037] in, is the learnable parameter matrix.
[0038] According to the above formulas, we can get the entity Each neighbor node is passed to Information After that, the entity No. The sub-expression is updated as follows:
[0039] in, and is the learnable parameter matrix, Refers to entity All neighbor entities of is an activation function, such as the ReLU function.
[0040] In step S103, the knowledge hypergraph completion task training model is used to determine the missing entity in the hyperedge based on the updated vector representation of the entity and the relationship. In the example, the existing knowledge hypergraph completion task training model can be used to initialize and concatenate the sub-representation vector of the known part in the hyperedge based on the updated vector representation of the entity and the relationship; the concatenated vector is input into the neural network model to obtain the semantic representation vector; the semantic representation vector is linearly transformed, and the result after the linear transformation is multiplied by the sub-representation vector of the same ordinal number of the candidate entity to obtain the possibility score of each candidate entity for the semantics of the same ordinal number; based on the possibility score and the weight assigned based on the relationship, the weighted total score of each candidate entity is determined; the candidate entity with the largest weighted total score is determined as the missing entity in the hyperedge. In addition, the cross entropy can be determined based on the weighted total score of each candidate entity, the variable identifying whether each candidate entity is a correct unknown entity, and the size of the training set of the knowledge hypergraph completion task training model; the knowledge hypergraph completion task training model is optimized by minimizing the determined cross entropy.
[0041] For example, based on the knowledge hypergraph completion task, the model is trained to learn the representation of entities and relations. , the entity As unknown entities, the knowledge hypergraph completion task is based on known , predict the unknown entities .
[0042] For super edge , for each sub-representation, initialize the known part with the updated entity and relationship representations , then the known part of The calculation of the sub-expression is:
[0043] in" " refers to the quantity splicing operation.
[0044] The initialization representation of the sequence is then input into the Transformer model to obtain the semantic representation of the sequence:
[0045] Will Make a linear transformation with the first The sub-expressions are multiplied, and we get The likelihood score of each candidate entity is expressed as follows:
[0046] in, is the parameter matrix of the linear transformation, is the representation vector matrix of all candidate entities, is an activation function, such as the ReLU function.
[0047] According to the relationship , giving each sub-part a different weight, thereby achieving adaptive prediction for the relationship. The weight of each sub-part is calculated as:
[0048]
[0049] According to the weights and scores of each part, the weighted total score of each candidate entity is obtained: , in, is the normalization function, The larger the value of is, the more likely the corresponding entity is The more likely it is the correct entity.
[0050] When training the model, calculate the cross entropy , and by minimizing To optimize the model:
[0051] in, Identify the entity Whether it is a correct unknown entity, the value is 0 or 1, is the training set size.
[0052] Compared with traditional knowledge graphs, knowledge hypergraphs can characterize the attribute information of relationships and process more complex knowledge. Through the decoupled representation learning method proposed in the present disclosure, the problem of the semantics of multiple different aspects of entities being mixed together in traditional methods can be solved by decoupling the representations of different semantics of the same entity and enhancing the quality of the learned representations. In summary, the decoupled representation learning method based on knowledge hypergraphs according to the exemplary embodiments of the present disclosure has the advantages of being able to process knowledge hypergraphs with complex structures, modeling multiple semantic aspects of entities, and having strong expression capabilities.
[0053] Figure 2 is a block diagram illustrating a knowledge hypergraph-based decoupled representation learning apparatus according to an exemplary embodiment of the present disclosure.
[0054] like Figure 2As shown, according to an exemplary embodiment of the present disclosure, a decoupled representation learning device 200 based on a knowledge hypergraph includes: an initialization unit 201, configured to randomly initialize representation vectors of entities, relationships, attributes and values in a knowledge hypergraph, wherein the representation vector of an entity includes a plurality of sub-representation vectors, the number of the plurality of sub-representation vectors is determined based on the number of semantics possessed by the entity, and the dimensions of the representation vectors of relationships, attributes and values are the same as the dimensions of the sub-representation vectors of the entity; an updating unit 202, configured to update the plurality of sub-representation vectors included in each entity based on information transmitted from neighboring entities of each entity; a completion unit 203, configured to utilize a knowledge hypergraph completion task training model to determine missing entities in a hyperedge based on updated vector representations of entities and relationships.
[0055] In the example, the updating unit 202 is further configured to: determine, for a sub-representation vector of any one entity, information conveyed by a sub-representation vector of the same ordinal number of each neighboring entity; and update the sub-representation vector of the any one entity using an activation function (e.g., a ReLU function) based on the information conveyed by the sub-representation vector of the same ordinal number of each neighboring entity.
[0056] In the example, the completion unit 203 is further configured to: determine a semantically aggregated vector based on a predetermined parameter matrix and representation vectors of attributes and values; determine a combined vector based on the semantically aggregated vector, predetermined weight parameters and representation vectors of relationships; and determine information conveyed by the sub-representation vectors of the same ordinal number of neighbor entities using an activation function (e.g., a ReLU function) based on the combined vector and the sub-representation vectors of the same ordinal number of neighbor entities.
[0057] In the example, the completion unit 203 is further configured to: initialize and concatenate the sub-representation vectors of the known parts in the hyperedge based on the updated vector representations of entities and relationships; input the concatenated vectors into the neural network model to obtain a semantic representation vector; perform a linear transformation on the semantic representation vector, and multiply the result of the linear transformation with the sub-representation vector of the same ordinal number of the candidate entity to obtain the possibility score of each candidate entity for the semantics of the same ordinal number; determine the weighted total score of each candidate entity using a normalization function based on the possibility score and the weight assigned based on the relationship; and determine the candidate entity with the largest weighted total score as the missing entity in the hyperedge.
[0058] In the example, the decoupled representation learning device based on the knowledge hypergraph according to the exemplary embodiment of the present disclosure also includes a model optimization unit, which is configured to: determine the cross entropy based on the weighted total score of each candidate entity, a variable identifying whether each candidate entity is a correct unknown entity, and the size of the training set of the knowledge hypergraph completion task training model; and optimize the knowledge hypergraph completion task training model by minimizing the determined cross entropy.
[0059] Combination of the above Figure 1 The specific operations shown are respectively Figure 2 The decoupled representation learning device 200 based on the knowledge hypergraph shown is executed by corresponding units, and the specific operation details will not be repeated here.
[0060] Figure 3 is a block diagram illustrating a computing system including at least one computing device and at least one storage device storing instructions according to an exemplary embodiment of the present disclosure.
[0061] like Figure 3 As shown, the computing system 300 provided according to the exemplary embodiment of the present disclosure includes a computing device 301 and a storage device 302, in which computer executable instructions are stored. When the computer executable instructions are executed by the computing device 301, the decoupled representation learning method based on the knowledge hypergraph described in any of the aforementioned embodiments is executed.
[0062] The computing device 301 is deployed in a server or client, and can also be deployed on a node device in a distributed network environment. In addition, the computing device 301 can be a PC computer, a tablet device, a personal digital assistant, a smart phone, a web application or other device capable of executing the above-mentioned instruction set. Here, the computing device is not necessarily a single computing device, but can also be any device or circuit that can execute the above-mentioned instructions (or instruction sets) individually or jointly. The computing device can also be part of an integrated control system or a system manager, or can be configured as a portable electronic device that is interconnected with an interface locally or remotely (for example, via wireless transmission). In the computing device, the processor includes a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not a limitation, the processor also includes an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0063] According to another aspect of the present disclosure, a computer-readable storage medium storing instructions is provided, and when the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the decoupled representation learning method based on the knowledge hypergraph described in any of the aforementioned embodiments. Computer-readable storage media include magnetic media such as floppy disks and tapes, optical media (including compact disk (CD) ROM and DVD ROM), magneto-optical media such as floppy disks, hardware devices such as ROM, RAM designed for storing and executing program commands, and flash memory. The instructions may include language codes executable by a computer using an interpreter and machine language codes generated by a compiler.
[0064] By adopting the present disclosure, it is possible to process complex knowledge hypergraphs, model multi-faceted semantics of entities, and learn high-quality vector representations of entities and relationships by decoupling different semantics of entities.
[0065] The processes, methods or algorithms disclosed herein may be transmitted to or implemented by a processing device, a controller or a computer, which may include any existing programmable electronic control unit or a dedicated electronic control unit. Similarly, the processes, methods or algorithms may be stored in a variety of forms as data and instructions that can be executed by a controller or a computer, including but not limited to information being permanently stored on a non-writable storage medium (such as a ROM device) and information being variably stored on a writable storage medium (such as a floppy disk, a tape, a CD, a RAM device, and other magnetic and optical media). The processes, methods or algorithms may also be implemented in a software executable object. Optionally, the processes, methods or algorithms may be implemented in whole or in part using suitable hardware components (such as an ASIC, an FPGA, a state machine, a controller or other hardware components or devices) or a combination of hardware components, software components and firmware components.
[0066] Although the present disclosure includes specific examples, it will be apparent to those of ordinary skill in the art that various changes in form and detail may be made in these examples without departing from the spirit and scope of the claims and their equivalents. The examples described herein will be considered to be descriptive only and not for limiting purposes. The description of the features or aspects in each example will be considered to be applicable to similar features or aspects in other examples. Suitable results may be obtained if the described techniques are performed in a different order, and / or if the components in the described systems, architectures, devices, or circuits are combined in different ways and / or replaced or supplemented with other components or their equivalents in the described systems, architectures, devices, or circuits. Therefore, the scope of the present disclosure is not limited by specific embodiments, but by the claims and their equivalents, and all variations within the scope of the claims and their equivalents will be interpreted as included in the present disclosure.
Claims
1. A decoupled representation learning method based on knowledge hypergraph, characterized in that: The decoupled representation learning method based on knowledge hypergraph includes: Randomly initialize the representation vectors of entities, relations, attributes and values in the knowledge hypergraph, wherein the representation vector of the entity includes a plurality of sub-representation vectors, the number of the plurality of sub-representation vectors is determined based on the number of semantics possessed by the entity, and the dimensions of the representation vectors of the relations, attributes and values are the same as the dimensions of the sub-representation vectors of the entity; Based on the information transmitted from the neighboring entities of each entity, the multiple sub-representation vectors included in each entity are updated; The model is trained using the knowledge hypergraph completion task to determine the missing entities in the hyperedges based on the updated vector representations of entities and relations.
2. The decoupled representation learning method based on knowledge hypergraph according to claim 1 is characterized in that: The step of updating the multiple sub-representation vectors included in each entity based on the information transmitted from the neighboring entities of each entity includes: For any sub-representation vector of an entity, determine the information conveyed by the sub-representation vector of the same ordinal number of each neighboring entity; Based on the information transmitted by the sub-representation vectors of the same ordinal number of each neighbor entity, the sub-representation vector of any one of the entities is updated using an activation function.
3. The decoupled representation learning method based on knowledge hypergraph according to claim 2 is characterized in that: The activation function includes a ReLU function.
4. The decoupled representation learning method based on knowledge hypergraph according to claim 2 is characterized in that: For any sub-representation vector of an entity, the step of determining the information conveyed by the sub-representation vector of the same ordinal number of each neighboring entity comprises: Determine a vector into which semantics is aggregated based on a predetermined parameter matrix and representation vectors of attributes and values; Determine a combination vector based on the semantically aggregated vector, a predetermined weight parameter, and a representation vector of the relationship; Based on the combination vector and the sub-representation vectors of the neighbor entities with the same ordinal number, an activation function is used to determine the information conveyed by the sub-representation vectors of the neighbor entities with the same ordinal number.
5. The decoupled representation learning method based on knowledge hypergraph according to claim 4 is characterized in that: The activation function includes a ReLU function.
6. The decoupled representation learning method based on knowledge hypergraph according to claim 1 is characterized in that: Using the knowledge hypergraph completion task to train the model, the steps of determining the missing entities in the hyperedge based on the updated vector representations of entities and relations include: Based on the updated vector representations of entities and relations, initialize and concatenate the sub-representation vectors of the known parts in the hyperedge; Input the concatenated vector into the neural network model to obtain a semantic representation vector; Perform a linear transformation on the semantic representation vector, and multiply the result of the linear transformation by the sub-representation vector of the candidate entity with the same ordinal number to obtain the likelihood score of each candidate entity for the semantics with the same ordinal number; Determine a weighted total score for each candidate entity using a normalization function based on the likelihood score and the weight assigned based on the relationship; The candidate entity with the largest weighted total score is determined as the missing entity in the hyperedge.
7. The decoupled representation learning method based on knowledge hypergraph according to claim 6 is characterized in that: The decoupled representation learning method based on the knowledge hypergraph also includes: Determine a cross entropy based on a weighted total score of each candidate entity, a variable identifying whether each candidate entity is a correct unknown entity, and the size of a training set for training a model for the knowledge hypergraph completion task; The model trained on the knowledge hypergraph completion task is optimized by minimizing the determined cross entropy.
8. A decoupled representation learning device based on knowledge hypergraph, characterized in that: The decoupled representation learning device based on the knowledge hypergraph comprises: an initialization unit, configured to randomly initialize the representation vectors of entities, relations, attributes, and values in the knowledge hypergraph, wherein the representation vector of an entity includes a plurality of sub-representation vectors, the number of the plurality of sub-representation vectors is determined based on the number of semantics possessed by the entity, and the dimensions of the representation vectors of relations, attributes, and values are the same as the dimensions of the sub-representation vectors of the entity; An updating unit, configured to update a plurality of sub-representation vectors included in each entity based on information transmitted from neighboring entities of each entity; The completion unit is configured to utilize the model trained on the knowledge hypergraph completion task to determine the missing entities in the hyperedge based on the updated vector representations of entities and relations.
9. A computing system comprising at least one computing device and at least one storage device storing instructions, characterized in that: When the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the decoupled representation learning method based on the knowledge hypergraph according to any one of claims 1-7.
10. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the decoupled representation learning method based on knowledge hypergraph according to any one of claims 1-7.
