A method for reducing the large model illusion in question-answering systems based on knowledge graph representation learning
By using Ricci curvature calculation and geometric interaction methods in knowledge graphs, entities and relations are embedded into multiple geometric spaces, and curvature is dynamically adjusted to optimize knowledge representation. This solves the illusion problem of large models in question-answering systems and achieves more accurate knowledge embedding and answer generation.
Patent Information
- Application Number
- CN202510791508.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2045-06-13
AI Technical Summary
Existing question-answering systems suffer from the problem of generating illusionary content in knowledge graph representation learning, especially when modeling complex relationships. Single geometric space embedding methods are insufficient to fully capture semantic features, leading to increased logical errors and the risk of illusions.
Ricci curvature calculation is used to embed entities and relations into Euclidean, hyperbolic and hyperspherical spaces. Dynamic balancing is achieved through geometric interaction methods. Combined with a dynamic curvature adaptive adjustment strategy, the contribution ratio of different geometric spaces is optimized to generate a multi-geometric space fusion representation, which constrains the logical reasoning path of large models.
It significantly reduces the risk of illusion in large models for complex reasoning tasks, improves the accuracy and robustness of knowledge embedding, and ensures that the generated answers are consistent with real knowledge.
Smart Images

Figure CN120632046B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of knowledge graph embedding representation of geometric interactions, and in particular to a method for reducing the illusion of large models in question-answering systems based on knowledge graph representation learning. Background Technology
[0002] With the rapid development of artificial intelligence technology, knowledge graphs, as a structured knowledge representation method, are widely used in question-answering systems, recommendation systems, intelligent search, and semantic analysis. However, large models in question-answering systems often generate illusory content that is inconsistent with the facts when generating answers due to the limitations of knowledge graph representation learning, seriously affecting the reliability of the system. Early knowledge graph embedding methods were mostly based on Euclidean space, using its linear geometric properties to model entities and relations. Although they performed well in handling symmetric and simple relations, their ability to model hierarchical structures and circular dependencies was insufficient, leading to logical errors or illusory content in the reasoning generated by large models. To overcome these problems, researchers proposed the complex space embedding method. Complex spaces enhance the expressive power of symmetric and antisymmetric relations through algebraic operations and improve the modeling of relational changes. However, complex spaces are difficult to fully adapt to the diversity of complex semantics and relations in knowledge graphs, especially in the modeling of hierarchical and circular relations, where performance bottlenecks still exist. At the same time, complex spaces may exacerbate the overgeneralization of complex relations by large models, thereby increasing the risk of illusions. To further enhance modeling capabilities, non-Euclidean geometric embedding methods have been introduced. These methods significantly improve the representation of complex relationships in knowledge graphs by leveraging the geometric properties of hyperbolic and hyperspherical spaces. Hyperbolic spaces utilize exponential volume growth to better capture hierarchical structures, while hyperspherical spaces excel in handling circular dependencies. However, single non-Euclidean geometric embeddings have limited effectiveness when dealing with knowledge graphs with mixed geometric features, making it difficult to comprehensively capture different relationship types. Furthermore, these methods may exacerbate the risk of generating large model illusions in high-dimensional semantic spaces due to information loss from geometric structures.
[0003] To address the aforementioned issues, geometric interaction embedding methods proposed in recent years achieve collaborative reasoning through dynamic interaction mechanisms. These methods can comprehensively capture hierarchical and cyclic semantic features in knowledge graphs, demonstrating excellent performance in tasks such as long-tail entity prediction, complex relationship reasoning, and cross-domain knowledge transfer. However, existing methods generally rely on tangent space approximation techniques, leading to the loss of some geometric structural information. Furthermore, the lack of a dynamic weight allocation mechanism makes it difficult to adjust the contribution ratio of different geometric spaces according to specific semantic needs, limiting their application in complex scenarios. To address these problems, this patent proposes an optimization method based on knowledge graph representation learning, improving geometric interaction embedding, dynamically balancing the contribution ratio of different geometric spaces, and reducing geometric information loss, thereby effectively mitigating the illusionary risk of large-scale question-answering systems. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings and deficiencies of the prior art and propose a method for reducing the illusion of large models in question-answering systems based on knowledge graph representation learning. This method can capture richer and more refined hierarchical and cyclic semantic features, achieve low-distortion multi-geometric space fusion embedding representation, and effectively constrain the logical reasoning path of large models through geometric interaction embedding representation learning method, thereby significantly reducing the illusion problem generated by large models in complex reasoning tasks.
[0005] To achieve the above objectives, the technical solution provided by this invention is: a method for reducing the large model illusion in question-answering systems based on knowledge graph representation learning, comprising the following steps:
[0006] S1: Analyze the local geometric characteristics of relationships between nodes in a knowledge graph by calculating Ricci curvature. A knowledge graph is a semantic network that uses a triplet structure of entity-relation-entity to represent knowledge. Ricci curvature is an important tool for describing the geometry and spatial curvature of a manifold, which can reflect local geometric characteristics and connectivity between point pairs. Entities and relations are then approximately embedded into three geometric spaces: Euclidean space, hyperbolic space, and hyperspherical space. Embedded representations of entities and relations are generated in different geometric spaces, the geometric patterns contained in the knowledge graph are deciphered, and the geometric characteristics of entities are learned independently in each space.
[0007] S2: In Euclidean and hyperbolic spaces, geometric transformations of relationships between entities are modeled using special orthogonal groups and special Euclidean groups. The special orthogonal groups are used to describe rotational transformations between entities, while the special Euclidean groups combine rotation and translation. In hyperspherical space, polar coordinate operators are used to simulate rotational operations to capture complex geometric relationships between entities.
[0008] S3: Aggregate entity information from different neighbors in three geometric spaces to generate new entity representations. Project the embedding representation in hyperbolic space onto the tangent space, i.e., the local Euclidean approximation space of the manifold at a certain point, thereby generating the corresponding embedding representation in the tangent space. In the hyperspherical space, convert the polar coordinate representation of entity relations into Cartesian coordinate representation. Use an attention mechanism to fuse the embedding representations in Euclidean space, tangent space, and hyperspherical space, effectively integrating information from different geometric spaces in the tangent space.
[0009] S4: The embedded representations integrated in the tangent space are mapped back to Euclidean space, hyperbolic space, and hyperspherical space through exponential mapping, respectively, to generate embedded representations adapted to different geometric spaces. At the same time, a dynamic curvature adaptive adjustment strategy is introduced, that is, the curvature of the target space is flexibly adjusted according to the continuity of the chain structure, the tree-like characteristics of the hierarchical structure, and the closed-loop characteristics of the cyclic structure in the knowledge graph. This dynamic curvature adaptive adjustment strategy optimizes the accuracy and adaptability of the embedded representations in capturing different structural features of the knowledge graph, and lays the foundation for subsequent multi-space collaborative verification and knowledge system construction.
[0010] S5: By utilizing embedded representations generated from Euclidean space, hyperbolic space, and hyperspherical space, a geometrically optimized structured knowledge system is constructed. This system generates implicit knowledge through chain, hierarchical, and cyclic structures contained in the knowledge graph. Implicit knowledge is integrated into the question-answering system as contextual information, providing reliable factual basis for the large model of the question-answering system, preventing it from fabricating answers when knowledge is missing, and ensuring that the answers generated by the large model are consistent with real knowledge.
[0011] Further, in step S1, Ollivier Ricci curvature calculation is used to map entities in the knowledge graph to Euclidean space, hyperbolic space and hyperspherical space, generating Euclidean embedding representation, hyperbolic embedding representation and hyperspherical embedding representation respectively. The hyperbolic space mapping adopts the Poincaré sphere model and the hyperspherical space mapping adopts the positive curvature manifold model.
[0012] Further, in step S2, geometric transformations are performed on the relationships between entities in Euclidean and hyperbolic spaces based on special orthogonal and special Euclidean groups. Reflection, translation, and rotation operations are used to model the complex interactions between entities and relationships. Polar coordinate operators are introduced in hyperspherical space to simulate rotation operations. In the vector transformation function, entity and relationship operations are used as inputs to convert them into entity-relation embeddings. The original Cartesian coordinate form is converted to polar coordinate form, and the converted polar coordinates are used to simulate rotation operations. For each angular coordinate, the polar coordinates of the entity and relationship are added, and modulo is used to ensure that the result is within a certain range. Finally, the polar coordinate form is converted back to Cartesian coordinate form according to the transformation formula of the d-dimensional sphere. The expression is as follows:
[0013]
[0014] In the formula, v i Let be an entity node in the knowledge graph, where d is the dimension of the hypersphere and k is the curvature parameter of the geometric space. For a solid node v in hyperspherical space i Cartesian coordinate form, Represents a solid node v in hyperspherical space iThe eigenvalues of the original vector in the d-th dimension in Cartesian coordinates. For a solid node v in hyperspherical space i polar coordinates Represents a solid node v in hyperspherical space i The angle represents the (d-1)th dimension component of the vector, rad represents the radial component of the node in the hypersphere space, and w S Let be the radius of a node in the hyperspherical space. This represents the polar coordinate form of the relationship in hyperspherical space. The angle representation of the relation in the hypersphere space represents the (d-1)th dimension component of the vector. For the solid node v in the hyperspherical space after rotation i polar coordinates For the solid node v in the hyperspherical space after rotation i Cartesian coordinate form, For the rotated solid node v in hyperspherical space i The d-th dimension component of the Cartesian coordinate system.
[0015] Furthermore, the specific steps of step S3 are as follows:
[0016] S31: Geometric interaction captures information about different spatial structures through message propagation, including Euclidean space, hyperbolic space and hyperspherical space. In these spaces with different geometric properties, the construction of structures depends on their respective measurement methods. Logarithmic mapping and exponential mapping provide a mechanism that enables geometric information to be transferred between different spaces, realizing cross-space interaction.
[0017] S32: Through higher-order aggregation, multi-space fusion, and attention mechanisms, the geometric properties of Euclidean space, hyperbolic space, and hyperspherical space are integrated to generate a unified embedding representation, as detailed below:
[0018] a. Higher-order aggregation constructs multi-space entity representations:
[0019] In the nth-order aggregation process, the entity representation is continuously updated through a message-passing mechanism, with each layer aggregating information from neighboring entities into the current entity. Euclidean space captures distance information through linear transformations, hyperbolic space handles non-linearly growing relational structures through the Möbius method, and hyperspherical space is suitable for capturing periodic or directional information. After nth-order aggregation, the entity representation includes not only information from first-order neighbors but also the indirect influence of higher-order neighbors, as shown in the following expression:
[0020]
[0021] In the formula, o is the reference point. The head entity in Euclidean space after n-dimensional aggregation. It is a head entity in hyperbolic space that has undergone n-dimensional aggregation. G is a head entity formed by d-dimensional aggregation in hyperspherical space. l Let h be a subgraph in the knowledge graph, t be the head entity, t be the tail entity, and r be the relation. This represents the relationship vector between entities and relations. This means mapping the integrated information back to a space with curvature k, with o as the reference point. This indicates that the neighborhood head entity in Euclidean space is mapped to the tangent space. This represents mapping the neighborhood head entity of the hyperbolic space to the tangent space. This indicates that the neighborhood head entity of the hypersphere is mapped to the tangent space. This represents the tensor product operation based on curvature k. Let h be the representation of the neighboring head entity h in the (n-1)th dimension of Euclidean space. Let h represent the (n-1)th dimension of the neighbor head entity h in hyperbolic space. Let h be the representation of the neighboring head entity h in the (d-1)th dimension of the hyperspherical space. Let represent the (n-1)th dimension of the neighboring tail entity t in Euclidean space. This is a vector addition operation based on curvature k. Let represent the (n-1)th dimension of the neighboring tail entity t in hyperbolic space. Let represent the (d-1)th dimension of the neighboring tail entity t in the hyperspherical space. Representation of relations in Euclidean space. This represents the relation in hyperbolic space. Representation of relations in hyperspherical space;
[0022] b. Generation of fused representations of different spaces:
[0023] Representations generated in multiple spaces need further fusion to integrate the characteristics of each space. Different spaces are suitable for modeling information of different structural types: Euclidean space is suitable for modeling local linear relationships, hyperbolic space is suitable for handling hierarchical and tree structures, while hyperspherical space can capture directional or periodic features. By hierarchically integrating single-layer representations in different spaces and generating the final fused representation through a splicing operation, the unique geometric characteristics of each space are preserved. The expression is shown below:
[0024]
[0025] In the formula, This represents the head entity after multidimensional aggregation in Euclidean space. This represents the head entity after multidimensional aggregation in hyperbolic space. This represents the head entity after multidimensional aggregation in hyperspherical space. Let represent the nth-dimensional embedding vector generated in Euclidean space. Let represent the nth-dimensional embedding vector generated in hyperbolic space. This represents the nth-dimensional embedding vector generated in the hypersphere space;
[0026] c. Attention weight allocation across space:
[0027] By dynamically assigning weights through an attention mechanism, local and global information are fully combined to achieve the propagation of geometric information across spaces. The attention mechanism assigns different weights to the representations in Euclidean space, hyperbolic space, and hyperspherical space according to the feature importance of entities, so that the contribution of each space is dynamically adjusted, thereby better adapting to diverse relation modeling needs. The expression is shown below:
[0028]
[0029] In the formula, This represents a unified embedded representation that integrates information from Euclidean space, hyperbolic space, and hyperspherical space. This indicates mapping a point in hyperbolic space back to tangent space with reference point o. For attention weights in Euclidean space, For attention weights in hyperbolic space, The attention weights are for the hyperspherical space.
[0030] Furthermore, in step S4, the characteristics of different geometric spaces can be flexibly integrated through geometric interaction to adapt to the chain structure, hierarchical structure, and loop structure in the knowledge graph; based on dynamic curvature adjustment, the local geometric characteristics of the space are optimized, as shown in the following expression:
[0031]
[0032] In the formula, a is a vector in geometric space, x is a base point in geometric space, and b is another target node in geometric space. This represents the point obtained by exponential mapping of the vector direction of a through the geometric space with curvature k, starting from point x. As k→0, this mapping degenerates into linear addition in Euclidean space. This represents the logarithmic mapping from point x to point b in a geometric space with curvature k. As k→0, this mapping degenerates into vector subtraction in Euclidean space.
[0033] For hierarchical structures, by setting a negative curvature k < 0, the local structure of the embedded space is made closer to the hyperbolic space, so as to better represent the hierarchical relationship; for cyclic structures, by setting a positive curvature k > 0, the embedded space is adjusted to a hyperspherical space, thereby effectively modeling the cyclic relationship.
[0034] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0035] 1. This invention directly models relationship transformations in hyperspherical space through polar coordinate rotation, avoiding the loss of geometric structure information caused by traditional tangent space approximation, and achieving more accurate knowledge embedding representation.
[0036] 2. This invention designs a dynamic interaction between Euclidean space, hyperbolic space, and hyperspherical space, and combines it with a dynamic curvature adaptive adjustment strategy to optimize the embedding representation of different geometric spaces, assigning optimal spatial weights to different relation types. This multi-space collaborative optimization not only enhances the robustness of knowledge representation but also identifies potential knowledge contradictions through geometric consistency verification, thereby significantly reducing the risk of illusions in the knowledge reasoning process of large models.
[0037] In summary, this invention effectively reduces geometric distortion and optimizes the embedding quality of knowledge graphs by directly modeling hyperspherical space and adaptive multi-space interaction, thereby providing more accurate structured knowledge support for large models and significantly reducing the possibility of them generating illusions during knowledge reasoning. Attached Figure Description
[0038] Figure 1 This is a framework diagram of the method of the present invention; in the diagram, k is the curvature parameter of the geometric space. For Euclidean space For hyperspherical space, For hyperbolic space, For the head entity of hyperspherical space, For the relationship of hyperspherical space, For the tail of the entity in hyperspherical space, For the head entity of hyperbolic space, For the relationship of hyperbolic space, For the tail entity in hyperbolic space, For the head entity of Euclidean space, For the relations of Euclidean space. For the tail entity in Euclidean space, r k Let h be the head entity, and log be the relation in curvature k-space. x (y) represents mapping a point y on the flow to the tangent space with x as the base. Let x be the tangent space at point x. For popularity, For the solid node v in the hyperspherical space after rotation i Cartesian coordinate form, For entity node v in Euclidean space i The updated representation, For entity node v in hyperbolic space i The updated representation, A head entity formed by d-dimensional aggregation in hyperspherical space. For the head entity of n-dimensional aggregation in Euclidean space. It is the head entity of an n-dimensional aggregate in hyperbolic space. For attention weights in Euclidean space, For attention weights in hyperbolic space, For attention weights in hyperspherical space, This means mapping the integrated information back to a space with curvature k, with o as the reference point. This indicates that a point in hyperbolic space is mapped back to tangent space with reference point o. Detailed Implementation
[0039] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.
[0040] like Figure 1 As shown, this embodiment discloses a method for reducing the large model illusion in question-answering systems based on knowledge graph representation learning, which has the following characteristics:
[0041] 1) Knowledge graph structure embedding:
[0042] By utilizing Ollivier-Ricci curvature calculation, entities and relations in knowledge graphs are mapped to Euclidean space, hyperbolic space, and hyperspherical space, thereby generating various embedding representations. The choice of different geometric spaces better adapts to the different structural characteristics of knowledge graphs: Euclidean space is suitable for flat structures, hyperbolic space is suitable for hierarchical structures, and hyperspherical space excels at modeling cyclic structures. Ollivier-Ricci curvature, by analyzing the geometric relationships and curvature characteristics between nodes in the graph, measures the connection strength between nodes and local geometric properties, providing an important basis for the generation of embedding representations and achieving accurate characterization and expression of the knowledge graph structure.
[0043] 2) Modeling the relationship between Euclidean space, hyperbolic space, and hyperspherical space:
[0044] In Euclidean and hyperbolic spaces, geometric transformations of relationships between entities are modeled based on special orthogonal groups and special Euclidean groups. Reflection, translation, and rotation operations are used to model complex interactions between entities and relationships.
[0045] In a hyperspherical space, polar coordinate operators are introduced to simulate rotation operations. In the vector transformation function, entity and relation operations are taken as input and converted into entity-relation embeddings. The original Cartesian coordinates are converted to polar coordinates, and the transformed polar coordinates are used to simulate the rotation operation. For each angular coordinate, the polar coordinates of the entity and relation are added together, and modulo operation is used to ensure that the result is within a certain range. Finally, the polar coordinates are converted back to Cartesian coordinates according to the transformation formula of the d-dimensional sphere, as shown in the following expression:
[0046]
[0047]
[0048] In the formula, v i Let be an entity node in the knowledge graph, where d is the dimension of the hypersphere and k is the curvature parameter of the geometric space. For a solid node v in hyperspherical space i Cartesian coordinate form, Represents a solid node v in hyperspherical space i The eigenvalues of the original vector in the d-th dimension in Cartesian coordinates. For a solid node v in hyperspherical space i polar coordinates Represents a solid node v in hyperspherical space i The angle represents the (d-1)th dimension component of the vector, rad represents the radial component of the node in the hypersphere space, and w S Let be the radius of a node in the hyperspherical space. This represents the polar coordinate form of the relationship in hyperspherical space. The angle representation of the relation in the hypersphere space represents the (d-1)th dimension component of the vector. For the solid node v in the hyperspherical space after rotation i polar coordinates For the solid node v in the hyperspherical space after rotation i Cartesian coordinate form, For the rotated solid node v in hyperspherical space i The d-th dimension component of the Cartesian coordinate system.
[0049] 3) Multi-spatial geometric interaction:
[0050] Geometric interaction captures information about different spatial structures, including Euclidean space, hyperbolic space, and hyperspherical space, through message propagation. In these spaces with different geometric properties, the construction of structures depends on their respective metric methods. Logarithmic and exponential mappings provide a mechanism that allows geometric information to be transferred between different spaces, enabling cross-space interaction. Through higher-order aggregation, multi-space fusion, and attention mechanisms, the geometric properties of Euclidean space, hyperbolic space, and hyperspherical space are integrated to generate a unified and efficient representation, as detailed below:
[0051] a. Higher-order aggregation constructs multi-space entity representations:
[0052] In the nth-order aggregation process, the entity representation is continuously updated through a message-passing mechanism, with each layer aggregating information from neighboring entities into the current entity. Euclidean space captures distance information through linear transformations, hyperbolic space handles non-linearly growing relational structures through the Möbius method, and hyperspherical space is suitable for capturing periodic or directional information. After nth-order aggregation, the entity representation includes not only information from first-order neighbors but also the indirect influence of higher-order neighbors, as shown in the following expression:
[0053]
[0054] In the formula, o is the reference point. The head entity in Euclidean space after n-dimensional aggregation. It is a head entity in hyperbolic space that has undergone n-dimensional aggregation. G is a head entity formed by d-dimensional aggregation in hyperspherical space. l Let h be a subgraph in the knowledge graph, t be the head entity, t be the tail entity, and r be the relation. This represents the relationship vector between entities and relations. This means mapping the integrated information back to a space with curvature k, with o as the reference point. This indicates that the neighborhood head entity in Euclidean space is mapped to the tangent space. This represents mapping the neighborhood head entity of the hyperbolic space to the tangent space. This indicates that the neighborhood head entity of the hypersphere is mapped to the tangent space. This represents the tensor product operation based on curvature k. Let h be the representation of the neighboring head entity h in the (n-1)th dimension of Euclidean space. Let h represent the (n-1)th dimension of the neighbor head entity h in hyperbolic space. Let h be the representation of the neighboring head entity h in the (d-1)th dimension of the hyperspherical space. Let represent the (n-1)th dimension of the neighboring tail entity t in Euclidean space. This is a vector addition operation based on curvature k. Let represent the (n-1)th dimension of the neighboring tail entity t in hyperbolic space. Let represent the (d-1)th dimension of the neighboring tail entity t in the hyperspherical space. Representation of relations in Euclidean space. This represents the relation in hyperbolic space. Representation of relations in hyperspherical space;
[0055] b. Generation of fused representations of different spaces:
[0056] Representations generated in multiple spaces need to be further integrated to combine the characteristics of each space. By hierarchically integrating the single-layer representations in different spaces and generating the final integrated representation through a splicing operation, the unique geometric characteristics of each space are preserved. The expression is as follows:
[0057]
[0058] In the formula, This represents the head entity after multidimensional aggregation in Euclidean space. This represents the head entity after multidimensional aggregation in hyperbolic space. This represents the head entity after multidimensional aggregation in hyperspherical space. Let represent the first-dimensional embedding vector generated in Euclidean space. Let represent the first-dimensional embedding vector generated in hyperbolic space. This represents the first-dimensional embedding vector generated in the hypersphere space;
[0059] c. Attention weight allocation across space:
[0060] After fusion, weights are dynamically allocated through an attention mechanism to fully combine local and global information, enabling the propagation of geometric features across spaces. The attention mechanism assigns different weights to representations in Euclidean space, hyperbolic space, and hyperspherical space based on the importance of entity features, allowing the contribution of each space to be dynamically adjusted, thereby better adapting to diverse relational modeling needs. The expression is shown below:
[0061]
[0062] In the formula, This represents a unified embedded representation that integrates information from Euclidean space, hyperbolic space, and hyperspherical space. This indicates mapping a point in hyperbolic space back to tangent space with reference point o. For attention weights in Euclidean space, For attention weights in hyperbolic space, The attention weights are for the hyperspherical space.
[0063] 4) Adaptive fusion:
[0064] The properties of different geometric spaces can be flexibly integrated through geometric interactions to adapt to chain-like, hierarchical, and cyclic structures in the graph. Based on dynamic curvature adjustment, the local geometric properties of the space can be optimized, as shown in the following expression:
[0065]
[0066] In the formula, a is a vector in geometric space, x is a base point in geometric space, and b is another target node in geometric space. Let x represent the point obtained by an exponential mapping of the vector direction of a through the geometric space with curvature k, starting from point x. As k→0, this mapping degenerates into linear addition in Euclidean space. Let x represent the logarithmic mapping from point x to point b in a geometric space with curvature k. As k→0, this mapping degenerates into vector subtraction in Euclidean space.
[0067] This paper selects three widely used datasets in knowledge graph research: WN18RR, FB15k-237, and YAGO3-10. These three datasets cover symmetric, antisymmetric, and combinatorial relations, effectively testing the ability of knowledge graph embedding methods to handle different types of relation structures. Specifically, the WN18RR dataset contains 40,943 entities and 11 relations; the FB15k-237 dataset contains 14,541 entities and 237 relations; and the YAGO3-10 dataset contains 123,182 entities and 37 relations. Furthermore, each dataset is divided into training, validation, and test sets.
[0068] Finally, a scoring function is used to score the triples in the knowledge graph. Similar to previous methods, this method uses two ranking-based metrics: ① Mean Reverse Rank (MRR), which measures the quality of the method's ranking of correct entities; ② Hit Rate at K (H@K, K∈{1,3,10}), which measures the proportion of correct triples among the top K triples predicted by the method.
[0069] To comprehensively evaluate the effectiveness of this method on knowledge-aware reasoning tasks, this paper selects several knowledge graph embedding methods for comparison. These methods cover single-space and multi-geometric interaction spaces, including six spaces: Euclidean, complex, hyperbolic, spherical, mixed curvature, and geometric interaction. The experimental results are shown in Table 1. For Euclidean space For complex space, For hyperbolic space, For spherical space, For a mixed curvature space, It is a geometric interaction space.
[0070] Table 1. Analysis of Experimental Results
[0071]
[0072]
[0073] Experimental results fully demonstrate the effectiveness of the method of this invention. Traditional Euclidean space methods, mainly due to their linear topological structure, struggle to effectively capture the hierarchical structures prevalent in knowledge graphs. Hyperbolic space methods, benefiting from the natural adaptability of negative curvature geometry to tree-like structures, achieve improved performance. However, a single space still cannot effectively learn the various structures contained in a knowledge graph. Hybrid curvature methods enhance structural adaptability through multi-space joint optimization, but incur relative information loss when mapping representations from non-Euclidean spaces to the tangent space. In contrast, the geometric interaction method innovatively employs an explicit transformation mechanism of a single geometric space, further optimizing existing spatial interaction methods. By introducing polar coordinate transformation into the hyperspherical space, it avoids the information loss incurred by traditional methods when projecting to the tangent space, improving performance while maintaining parameter efficiency.
[0074] Experimental Conclusions: This method aims to address the geometric distortion and incomplete information representation issues caused by embedding knowledge graphs into non-Euclidean spaces in knowledge reasoning for large models. It proposes a method based on knowledge graph representation learning to reduce the large model illusion in question-answering systems. Experimental evaluation on three general datasets using knowledge graphs shows that this method improves both accuracy and efficiency in knowledge-aware reasoning tasks, outperforming existing methods. Future research will focus on constructing more comprehensive and higher-quality knowledge graph embedding methods to further enhance the training effect and generalization ability of this approach. Furthermore, we plan to explore higher-dimensional geometric space methods to better uncover complex entity relationships and cross-level, cross-domain connections. Finally, we will expand the research scope, focusing on maintaining computational efficiency on large-scale datasets and combining distributed computing techniques to further improve the effectiveness of the method.
[0075] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A method for reducing the large model illusion in question-answering systems based on knowledge graph representation learning, characterized in that, Includes the following steps: S1: Analyze the local geometric characteristics of relationships between nodes in a knowledge graph by calculating Ricci curvature. A knowledge graph is a semantic network that uses a triplet structure of entity-relation-entity to represent knowledge. Ricci curvature is an important tool for describing the geometry and spatial curvature of a manifold, which can reflect local geometric characteristics and connectivity between point pairs. Entities and relations are then approximately embedded into three geometric spaces: Euclidean space, hyperbolic space, and hyperspherical space. Embedded representations of entities and relations are generated in different geometric spaces, the geometric patterns contained in the knowledge graph are deciphered, and the geometric characteristics of entities are learned independently in each space. Ollivier-Ricci curvature calculation is used to map entities in the knowledge graph to Euclidean space, hyperbolic space and hyperspherical space, generating Euclidean embedding representation, hyperbolic embedding representation and hyperspherical embedding representation respectively. The hyperbolic space mapping adopts the Poincaré sphere model and the hyperspherical space mapping adopts the positive curvature manifold model. S2: In Euclidean and hyperbolic spaces, geometric transformations of relationships between entities are modeled using special orthogonal groups and special Euclidean groups. The special orthogonal groups are used to describe rotational transformations between entities, while the special Euclidean groups combine rotation and translation. In hyperspherical space, polar coordinate operators are used to simulate rotational operations to capture complex geometric relationships between entities. In Euclidean and hyperbolic spaces, geometric transformations of relationships between entities are modeled based on special orthogonal and special Euclidean groups. Reflection, translation, and rotation operations are used to model complex interactions between entities and relationships. In hyperspherical space, polar coordinate operators are introduced to simulate rotation operations. In the vector transformation function, entity and relationship operations are used as input to convert to entity-relation embeddings. The original Cartesian coordinate form is converted to polar coordinate form, and the transformed polar coordinates are used to simulate rotation operations. For each angular coordinate, the polar coordinates of the entity and relationship are added, and modulo operation is used to ensure the result is within a defined range. Finally, based on... The transformation formula for a 3D sphere, which converts the polar coordinates to Cartesian coordinates, is shown below: ; ; ; ; In the formula, It is an entity node in the knowledge graph. For the hyperspherical dimension, For the curvature parameters of the geometric space, For solid nodes in hyperspherical space Cartesian coordinate form, Represents a solid node in hyperspherical space In Cartesian coordinates, the first The eigenvalues of the original vector in dimension, For solid nodes in hyperspherical space polar coordinates Represents a solid node in hyperspherical space The angle represents the first position of the vector. dimensional components, Represents the radial component of a node in hyperspherical space. Let be the radius of a node in the hyperspherical space. This represents the polar coordinate form of the relationship in hyperspherical space. The angular representation of the vector in the hyperspherical space represents the relationship between the vectors. dimensional components, For solid nodes in hyperspherical space after rotation polar coordinates For solid nodes in hyperspherical space after rotation Cartesian coordinate form, For a rotated solid node in hyperspherical space The first of the Cartesian coordinates Dimensional components; S3: Aggregate entity information from different neighbors in three geometric spaces to generate new entity representations. Project the embedding representation in hyperbolic space onto the tangent space (i.e., the local Euclidean approximation space of the manifold at a point) through a logarithmic map, thereby generating the corresponding embedding representation in the tangent space. In the hyperspherical space, convert the polar coordinate representation of entity relations to Cartesian coordinate representation. Use an attention mechanism to fuse the embedding representations in Euclidean space, tangent space, and hyperspherical space, effectively integrating information from different geometric spaces in the tangent space. The specific operation steps are as follows: S31: Geometric interaction captures information about different spatial structures through message propagation, including Euclidean space, hyperbolic space and hyperspherical space. In these spaces with different geometric properties, the construction of structures depends on their respective measurement methods. Logarithmic mapping and exponential mapping provide a mechanism that enables geometric information to be transferred between different spaces, realizing cross-space interaction. S32: Through higher-order aggregation, multi-space fusion, and attention mechanisms, the geometric properties of Euclidean space, hyperbolic space, and hyperspherical space are integrated to generate a unified embedding representation, as detailed below: a. Higher-order aggregation constructs multi-space entity representations: exist During the aggregation process, the entity representation is continuously updated through a message-passing mechanism, with each layer aggregating information from neighboring entities into the current entity; Euclidean space captures distance information through linear transformations, hyperbolic space handles non-linearly growing relational structures through the Möbius method, while hyperspherical space is suitable for capturing periodic or directional information; after After first-order aggregation, the entity representation includes not only information from first-order neighbors but also the indirect influence of higher-order neighbors, as shown in the following expression: ; In the formula, As a reference point, For Euclidean space The head entity of the dimensional aggregation, For hyperbolic space The head entity of the dimensional aggregation, For the hyperspherical space passing through The head entity of the dimensional aggregation, This is a subgraph in a knowledge graph. For the head entity, For tail entities, For the relationship, This represents the relationship vector between entities and relations. Indicated by The integrated information is mapped back to curvature using the reference point. space, This indicates that the neighborhood head entity in Euclidean space is mapped to the tangent space. This represents mapping the neighborhood head entity of the hyperbolic space to the tangent space. This indicates that the neighborhood head entity of the hypersphere is mapped to the tangent space. Indicated based on curvature tensor product operation, Represents neighbor head entity In Euclidean space, the first Wei said, Represents neighbor head entity In hyperbolic space the first Wei said, Represents neighbor head entity In hyperspherical space, the first Wei said, Represents the neighbor tail entity In Euclidean space, the first Wei said, For curvature-based Vector addition operation, Represents the neighbor tail entity In hyperbolic space the first Wei said, Represents the neighbor tail entity In hyperspherical space, the first Wei said, Representation of relations in Euclidean space. This represents the relation in hyperbolic space. Representation of relationships in hyperspherical space; b. Generation of fused representations of different spaces: Representations generated in multiple spaces need further fusion to integrate the characteristics of each space. Different spaces are suitable for modeling information of different structural types: Euclidean space is suitable for modeling local linear relationships, hyperbolic space is suitable for handling hierarchical and tree structures, while hyperspherical space can capture directional or periodic features. By hierarchically integrating single-layer representations in different spaces and generating the final fused representation through a splicing operation, the unique geometric characteristics of each space are preserved. The expression is shown below: ; In the formula, This represents the head entity after multidimensional aggregation in Euclidean space. This represents the head entity after multidimensional aggregation in hyperbolic space. This represents the head entity after multidimensional aggregation in hyperspherical space. Describes the first generation generated in Euclidean space. dimensional embedding vector, Denotes the first generated in hyperbolic space dimensional embedding vector, Describes the first generated in the hyperspherical space dimensional embedding vector; c. Attention weight allocation across space: By dynamically assigning weights through an attention mechanism, local and global information are fully combined to achieve the propagation of geometric information across spaces. The attention mechanism assigns different weights to the representations in Euclidean space, hyperbolic space, and hyperspherical space according to the feature importance of entities, so that the contribution of each space is dynamically adjusted, thereby better adapting to diverse relation modeling needs. The expression is shown below: ; In the formula, This represents a unified embedded representation that integrates information from Euclidean space, hyperbolic space, and hyperspherical space. Indicated by Map points in hyperbolic space back to tangent space using a reference point. For attention weights in Euclidean space, For attention weights in hyperbolic space, For the attention weights in the hyperspherical space; S4: The embedded representations integrated in the tangent space are mapped back to Euclidean space, hyperbolic space and hyperspherical space respectively through exponential mapping to generate embedded representations that adapt to different geometric spaces; Meanwhile, a dynamic curvature adaptive adjustment strategy is introduced, which flexibly adjusts the curvature of the target space based on the continuity of the chain structure, the tree-like characteristics of the hierarchical structure, and the closed-loop characteristics of the cyclic structure in the knowledge graph. The characteristics of different geometric spaces can be flexibly integrated through geometric interactions to adapt to chain, hierarchical, and cyclic structures in knowledge graphs; based on dynamic curvature adjustment, the local geometric characteristics of the space are optimized, as shown in the following expression: ; In the formula, A vector in geometric space. As a base point in geometric space, For another target node in geometric space, Indicates from point Departure, according to The vector direction passes through the curvature The points obtained by the exponential mapping in the geometric space, as This mapping degenerates into linear addition in Euclidean space; Indicates curvature In geometric space, from point Departure to destination The logarithmic mapping, with This mapping degenerates into vector subtraction in Euclidean space; For hierarchical structures, negative curvature can be set. This makes the local structure of the embedded space closer to hyperbolic space, so as to better represent hierarchical relationships; For cyclic structures, by setting a positive curvature By adjusting the embedding space to a hyperspherical space, the cyclic relationships can be effectively modeled. S5: By utilizing embedded representations generated from Euclidean space, hyperbolic space, and hyperspherical space, a geometrically optimized structured knowledge system is constructed. This system generates implicit knowledge through chain, hierarchical, and cyclic structures contained in the knowledge graph. Implicit knowledge is integrated into the question-answering system as contextual information, providing reliable factual basis for the large model of the question-answering system, preventing it from fabricating answers when knowledge is missing, and ensuring that the answers generated by the large model are consistent with real knowledge.
Citation Information
Patent Citations
Knowledge graph geometric representation method based on multi-view information bottleneck
CN118898288A
