Entity Alignment with Noisy Annotations from Large Language Models

Shengyuan Chen, Qinggang Zhang, Junnan Dong, Wen Hua, Qing Li, Xiao Huang

TL;DR

LLM4EA is a new framework that automates Entity Alignment (EA) between knowledge graphs using Large Language Models, eliminating the need for expensive human-labeled data. By combining a smart "active sampling" strategy with a probabilistic label refiner, it filters out LLM hallucinations and allows cheaper models like GPT-3.5 to match the performance of GPT-4 at a fraction of the cost.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) are the backbone of modern search engines and recommendation systems, but they are often siloed. Entity Alignment (EA) is the process of merging these silos—for example, realizing that "Apple Inc." in a financial KG is the same entity as "Apple" in a tech-history KG.

Traditionally, EA relies on "seed alignments"—thousands of pairs manually labeled by experts. This is prohibitively expensive. While Large Language Models (LLMs) seem like a natural fit for this task due to their semantic reasoning, two major hurdles remain:

  1. Scale: Real-world KGs have millions of entities; querying an LLM for every possible pair is computationally and financially unfeasible.
  2. Noise: LLMs are prone to "hallucinations" or errors when dealing with ambiguous names or incomplete data, which can lead to "noisy" annotations that ruin the training of downstream models.

Methods

The authors introduce LLM4EA, a unified framework that treats the LLM as a noisy annotator and uses graph structure to clean up its output.

LLM4EA Framework Overview

The framework operates through four main steps:

  1. Active Selection: Instead of picking entities at random, the system identifies "valuable" entities to query. It uses a novel policy based on Relational and Neighbor Uncertainty. Essentially, it prioritizes entities whose alignment would provide the most "information gain" for their surrounding neighbors in the graph.
  2. LLM as Annotator: The selected entities are sent to an LLM (like GPT-3.5 or GPT-4) with a prompt containing the entity name and its local neighborhood (triples). To save costs, a "counterpart filtering" step uses simple string matching to narrow down the search space before the LLM is even queried.
  3. Unsupervised Label Refiner: This is the core innovation. Since LLM labels are noisy, the framework uses probabilistic reasoning based on the "functionality" of relations (e.g., a "born_in" relation is highly functional because a person usually has only one birthplace). If an LLM's suggested match contradicts the structural logic of the graph, the refiner filters it out.
  4. Iterative Optimization: The refined labels train a base EA model (Dual-AMN). The feedback from this model is then used to update the active selection policy for the next round, creating a virtuous cycle of continuous improvement.

Datasets

The researchers evaluated LLM4EA on the widely-used OpenEA benchmark, specifically the "V2" (dense) 15K versions:

  • EN-FR-15K & EN-DE-15K: Cross-lingual datasets (English-French and English-German).
  • D-W-15K: Entities shared between DBpedia and Wikidata.
  • D-Y-15K: Entities shared between DBpedia and Yago.

Key Insights and Ideas

  • Structure as a Truth Source: The paper demonstrates that while LLMs excel at semantics (understanding names), the structure of the KG is the ultimate arbiter of truth. By using the "functionality" of relations to validate LLM guesses, the framework can turn a noisy 50% accurate label set into a 90%+ accurate one.
  • The "Cheap Model" Advantage: A striking finding is that a noise-adaptive framework allows a less capable, cheaper model (GPT-3.5) to outperform a "vanilla" application of a superior model (GPT-4).
  • Uncertainty Propagation: The active learning policy doesn't just look at an entity's own ambiguity; it evaluates how much "relational uncertainty" an entity can resolve for its neighbors. This global view makes the limited LLM query budget much more effective.

Key Results

  • Superior Performance: LLM4EA significantly outperformed all baseline models (like BootEA and RDGCN) across all four datasets. In some cases, it improved the "Hit@1" (accuracy) by over 10%.
  • Cost Efficiency: By increasing the query budget for GPT-3.5, the framework achieved results comparable to GPT-4 but at 10x lower actual cost (based on OpenAI's token pricing).
Performance comparison of GPT-3.5 and GPT-4 across query budgets
  • Robustness to Noise: In stress tests, even when the initial LLM labels were intentionally corrupted to a True Positive Rate of 0.5, the label refiner successfully pushed the accuracy back above 0.9.

Limitations and Future Work

  • Static Budgeting: Currently, the framework distributes the query budget evenly across iterations. The authors suggest that a more "adaptive" budget allocation (spending more when the model is most confused) could further improve efficiency.
  • Transductive Nature: The base EA model used is transductive, meaning it requires retraining if new entities are added to the KGs. Future work could explore "inductive" models that generalize to unseen nodes without retraining.
  • Temporal KGs: The current logic doesn't explicitly account for time-sensitive data (e.g., an entity's "CEO" relation changing over years), which is a common feature in real-world knowledge bases.

Summary updated

BibTeX
@inproceedings{chen2024entity,
  author = {Shengyuan Chen and Qinggang Zhang and Junnan Dong and Wen Hua and Qing Li and Xiao Huang},
  title = {{Entity Alignment with Noisy Annotations from Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=qfCQ54ZTX1},
}
Figure