Bidirectional Query Encoding for Missing Knowledge Graph Entities

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI methods struggle to effectively answer complex queries in knowledge graphs, particularly those with multiple missing entities, as they fail to consider the entire query context and often result in inferior performance when decomposing queries into subqueries.

Innovation Solution

A method and system that encode query graphs into sequence representations using a bidirectional transformer network, incorporating a novel positional encoding scheme to handle queries with multiple missing entities, allowing the transformer to reason over the entire query context.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If existing AI methods decompose complex queries into subqueries, then the query processing becomes manageable, but the performance deteriorates due to loss of overall query context

Engineering Contradiction:
Improvequery processing complexityVSAvoidquery answering accuracy
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The query graph is segmented into multiple path queries from root nodes to leaf nodes, which are then processed independently and aggregated. This segmentation allows complex queries to be broken down into manageable components while the bidirectional transformer ensures context is preserved through attention mechanisms that consider all paths simultaneously.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The solution nests multiple path queries within a unified bidirectional transformer framework. Each path query is encoded independently but then integrated through the bidirectional attention mechanism, creating a nested structure where individual path analyses are contained within the broader context of the entire query graph.

Inventive Principle:
Principle #7Nested doll (Nesting)

2Loss of information

If bidirectional transformer encoding is used for all path queries, then query context understanding improves, but computational complexity increases

Engineering Contradiction:
Improvequery context retentionVSAvoidcomputational complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The computational burden is segmented by processing each path query independently through the bidirectional transformer, then aggregating results. This avoids the need to process the entire query graph as a single unit, reducing computational complexity while maintaining context through the attention mechanism.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The bidirectional transformer is applied to each individual path query rather than the entire query graph at once. This partial application of the complex encoding mechanism reduces overall computational requirements while still capturing essential contextual information from each path.

Inventive Principle:
Principle #16Partial or excessive action

3Manufacturing precision

If positional encoding is applied to each path query independently, then query structure is preserved, but processing time increases

Engineering Contradiction:
Improvequery structure fidelityVSAvoidprocessing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

Positional encoding is applied independently to each segmented path query, preserving the structural information of individual paths. The segmentation allows parallel processing of multiple paths, which offsets the time cost of applying positional encoding to each path separately.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Positional encoding is applied as a preliminary step to each path query before the main bidirectional transformer processing. This preliminary structuring of positional information enables more efficient subsequent processing by pre-organizing the input data in a format that the attention mechanism can process effectively.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12353416B2Answering complex queries in knowledge graphs with bidirectional sequence encoders useable to support decision making and having medical use applications
Publication Date: 2025.07.08 NEC CORP
  • US12353416B2 patent drawing
  • US12353416B2 patent drawing
  • US12353416B2 patent drawing

AI summary

A method for encoding a query graph into a sequence representation includes receiving m×n path queries representing a query graph having m root nodes and n leaf nodes, each path query beginning with a root node and ending with a leaf node, and encoding positions of each node and each edge between nodes within each path query independently, wherein the encoded positions include a positional order within each path query. The positional encodings may include no positional ordering between different path queries. The query graph may include one or more missing entities and each missing entity may be masked to produce a masked sequential query, which may be fed to a transformer encoder. The invention can be used for, but is not limited to, medical uses, such as for predicting protein-drug interactions or medical conditions, as well as other applications, and significantly outperforms the optimized model.