Unsupervised Knowledge Graph Alignment via Contrastive Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for aligning knowledge graphs require annotated seed entity pairs and supervised models to rank entities, leading to forced matching of unmatched entities, which is inefficient and lacks accuracy.

Innovation Solution

The method involves aligning knowledge graphs in an unsupervised manner using KG-to-text summaries generated through rule-based or domain-based approaches, encoding these summaries into a common representation space, and applying vector similarity metrics like cosine similarity to match entities without the need for annotated seed pairs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If supervised models with annotated seed entity pairs are used to rank entities, then entity alignment can be performed, but matching accuracy deteriorates due to forced matching of unmatched entities

Engineering Contradiction:
Improveentity alignment efficiencyVSAvoidmatching accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

Instead of forcing all entities to be matched through supervised ranking models, the patent inverts the approach by using contrastive learning to explicitly teach the model what entities are similar and what are not. The unsupervised contrastive loss function learns from the structure of the knowledge graphs themselves without annotated pairs, allowing the model to naturally distinguish matched and unmatched entities without forced matching.

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The patent enables the knowledge graph alignment system to learn from its own structural information without external annotated data. The contrastive learning framework uses the intrinsic relationships within the knowledge graphs (entities, relations, paths) to self-supervise the alignment process, eliminating the need for manual annotation while improving matching accuracy.

Inventive Principle:
Principle #25Self-service

2Reliability

If annotated seed entity pairs are required for alignment, then supervised training can be performed, but manual workload increases and scalability decreases

Engineering Contradiction:
Improvealignment reliabilityVSAvoidmanual annotation complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs self-supervised learning by utilizing the inherent structural information within the knowledge graphs. The contrastive learning framework automatically generates training signals from the graph structures themselves, eliminating the need for external annotated seed pairs. This self-service approach maintains alignment reliability while completely removing manual annotation complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent changes the fundamental parameter of training data from annotated entity pairs to unstructured knowledge graph data. By transforming the learning objective into an unsupervised contrastive task, the system achieves the same alignment reliability using only the structural parameters already present in the knowledge graphs, without requiring additional annotation parameters.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If supervised ranking models are used for entity alignment, then alignment can be achieved, but the process becomes inefficient and less accurate for unmatched entities

Engineering Contradiction:
Improvealignment speedVSAvoidunmatched entity discrimination
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

Rather than using ranking models that assume all entities should be matched, the patent inverts the problem formulation to explicitly model both matched and unmatched relationships. The contrastive learning framework simultaneously learns to pull matched entities together while pushing unmatched entities apart, improving both speed and accuracy in distinguishing unmatched entities.

Inventive Principle:
Principle #13The other way round (Inversion)

Data Source

PatentUS12026203B1Knowledge graph alignment
Publication Date: 2024.07.02 AMAZON TECH INC
  • US12026203B1 patent drawing
  • US12026203B1 patent drawing
  • US12026203B1 patent drawing

AI summary

Techniques for aligning (merging) knowledge graphs is described. Graph entity alignment is the problem of “joining” two knowledge graphs based on common entities. Most approaches in literature solve this using some annotated seed entity pairs and train a supervised model to rank entities in one knowledge base against another. In some examples, unsupervised alignment approach that uses graph-to-text summaries to encode entities in two or more distinct graphs into the same representation space, encodes those summaries into a common space, and then uses similarity analysis to determine when graph entities should be aligned (merged).