EvoPath: Evolutionary Meta-path Discovery with Large Language Models for Complex Heterogeneous Information Networks

Shixuan Liu, Haoxiang Cheng, Yunfei Wang, Yue He, Changjun Fan, Zhong Liu

TL;DR

This paper introduces EvoPath, a novel framework that leverages Large Language Models (LLMs) to automatically discover high-quality meta-paths in complex Heterogeneous Information Networks (HINs). EvoPath addresses challenges like corpora bias and lexical discrepancies by using an evolutionary approach with LLMs, leading to improved performance in HIN reasoning tasks.

What Problem Does This Paper Address?

Heterogeneous Information Networks (HINs) are powerful for representing complex relationships between different types of entities. Meta-paths are crucial for reasoning within these networks, acting as high-level abstractions that define sequences of entity and relation types. However, discovering these valuable meta-paths is a significant challenge due to the vast search space, the difficulty in evaluating their effectiveness, and the neglect of semantic similarities. While Large Language Models (LLMs) offer immense potential due to their broad knowledge, directly applying them to HINs faces issues like bias from their training data, differences in terminology (lexical discrepancies), and the tendency to "hallucinate" incorrect information. This paper aims to bridge this gap by developing a method that effectively utilizes LLMs for meta-path discovery while mitigating these inherent challenges.

Methods

EvoPath is an innovative framework designed to address the challenges of meta-path discovery using LLMs. Its core components include:

  • Meta-path Sampler: This module generates initial meta-path examples by performing random walks on the HIN's entity-level path instances.
  • Atom Selector: To combat lexical discrepancies, this component restricts LLM output to a predefined taxonomy of entity types and relations, expanding it using lexical similarity to ensure relevant terms are considered.
  • Prioritized Replay Buffer: This novel mechanism selects high-quality meta-path examples for LLM prompting based on their plausibility scores (combining coverage and confidence). It uses a stochastic prioritization method to ensure diversity and prevent over-reliance on a limited dataset.
  • Meta-path Generator with LLM: This is the central component where LLMs are employed. It uses carefully crafted prompts that include background information, few-shot examples from the replay buffer, and specific generation constraints to guide the LLM in producing relevant and high-quality meta-paths. This in-context learning (ICL) approach avoids extensive fine-tuning.
  • Meta-path Cleaner: This module acts as a final check, identifying and correcting errors in the LLM-generated meta-paths, including those due to hallucination or missing facts in the HIN. It also handles synonym searches to improve meta-path quality.

The framework operates cyclically, with the cleaner feeding corrected meta-paths back into the replay buffer for further refinement.

Datasets

The paper evaluates EvoPath on three real-world complex HINs:

  • YAGO26K-906: Used for Knowledge Base Completion (KBC) tasks.
  • Dbpedia: Also used for KBC tasks.
  • NELL: Used for link prediction and inductive experiments.

The statistics for these datasets, including the number of entities, entity types, relations, and facts, are provided in Table 1.

Key Insights and Ideas

  • LLMs as powerful meta-path generators: The research demonstrates that LLMs, when properly prompted and constrained, can effectively generate semantically rich and accurate meta-paths, leveraging their vast commonsense knowledge.
  • Evolutionary refinement is key: The iterative nature of EvoPath, where generated meta-paths are evaluated and refined, is crucial for improving their quality and addressing LLM limitations.
  • Prioritization of examples matters: Using a prioritized replay buffer with scores based on coverage and confidence significantly improves the LLM's ability to generate useful meta-paths, outperforming random sampling.
  • Addressing LLM limitations is essential: EvoPath's success hinges on its specific modules designed to tackle corpora bias, lexical discrepancies, and hallucination, which are common pitfalls when applying LLMs to structured data.
  • Inductive reasoning advantage: Meta-path-based methods, like EvoPath, show a distinct advantage in inductive reasoning (handling unseen entities) compared to embedding-based methods.

Key Results

EvoPath demonstrates superior performance across various HIN reasoning tasks:

  • Knowledge Base Completion (KBC): EvoPath outperforms several embedding-based and meta-path-based baselines on YAGO26K-906 and Dbpedia, achieving competitive or leading scores in metrics like Hits@10 and MRR.
  • Link Prediction: EvoPath achieves strong results on six selected relations across YAGO26K-906 and NELL, often exceeding baseline methods.
  • Inductive Experiments: On the NELL dataset, EvoPath shows remarkable robustness to node removal, significantly outperforming RotatE and maintaining performance even when a substantial portion of nodes are removed.
  • Ablation Studies: These studies confirm the effectiveness of each component of EvoPath, highlighting the importance of meta-path sample prioritization, prompt design (especially background descriptions and scoring signals), and the meta-path cleaner.

Limitations and Future Work

  • LLM Selection: While EvoPath is robust to LLM selection, the paper notes that larger LLMs don't always guarantee better performance, possibly due to early termination and reduced rule evolution. The authors suggest a preference for compact LLMs with high output efficiency.
  • Atom Selector Impact: Removing the atom selector significantly degrades performance and slows down processing, underscoring its importance in managing complex taxonomies.
  • Meta-path Cleaner Impact: While less dramatic than other module removals, the cleaner still provides a performance boost, indicating its value in ensuring high-quality meta-paths.
  • Future Work: The authors plan to enhance LLMs' understanding of HIN knowledge, integrate chain-of-thought mechanisms into the discovery process, and explore leveraging LLMs for rule generation or prediction across other types of offline databases.

Summary updated

BibTeX
@article{liu2025evopath,
  author = {Shixuan Liu and Haoxiang Cheng and Yunfei Wang and Yue He and Changjun Fan and Zhong Liu},
  title = {{EvoPath: Evolutionary Meta-path Discovery with Large Language Models for Complex Heterogeneous Information Networks}},
  journal = {Information Processing \& Management},
  year = {2025},
}
Figure