When LLMs meet open-world graph learning: a new perspective for unlabeled data uncertainty

Yanzhe Wen, Xunkai Li, Qi Zhang, Zhu Lei, Guang Zeng, Rong-Hua Li, Guoren WangarXiv 2025 · DOI

TL;DR

This paper introduces Open-world Graph Assistant (OGA), a novel framework that leverages Large Language Models (LLMs) to tackle the challenge of unlabeled data uncertainty in open-world graph learning. OGA effectively identifies and annotates unknown-class nodes by integrating semantic and topological information, enabling more robust and practical graph machine learning deployments.

What Problem Does This Paper Address?

Graph machine learning (GML) has seen significant advancements, especially with text-attributed graphs (TAGs) that combine graph structure with textual node information. However, deploying these models in real-world "open-world" scenarios presents a major challenge: data uncertainty. This uncertainty primarily stems from the scarcity of labeled data due to costly manual annotation and the presence of "unknown-class" nodes, whose labels are not present in the initial training set. Existing methods often struggle with this by:

  1. Insufficient Methods: They tend to rely on either semantic or topological information in isolation to reject unknown-class nodes, failing to leverage the rich interplay between text and structure in TAGs.
  2. Incomplete Pipelines: After identifying unknown-class nodes, current approaches often stop there or make idealized assumptions (like knowing the number of unknown classes), which is impractical for real-world deployment. They lack a mechanism to effectively incorporate these newly identified nodes back into the model for continuous learning and improvement.

This paper aims to bridge this gap by proposing a comprehensive pipeline that not only rejects unknown-class nodes but also annotates them, enabling them to contribute to model retraining and long-term deployment.

Methods

The proposed solution, Open-world Graph Assistant (OGA), is built upon two core modules:

  1. Adaptive Label Traceability (ALT): This module addresses the Unknown-Class Rejection (UCR) problem. It integrates semantic and topological information in a novel "ontology representation learning" space.
  2. Pre-trained Graph-Language Encoder: Leverages LLMs to generate high-quality, unbiased node embeddings that capture both text and structure.
  3. Ontology Representation Learning: Dynamically constructs class concepts (prototypes) by aggregating information from labeled nodes and their neighbors, considering both semantic and topological relationships.
  4. A-sharpness Softmax & Confidence Threshold: Uses a sharpened softmax function for classification and a confidence threshold to identify nodes that are likely from unknown classes.
  5. Graph Label Annotator (GLA): This module handles the Unknown-Class Annotation (UCA) problem, enabling newly identified nodes to contribute to model training.
  6. Structure-Guided LLM Annotation: Leverages graph community detection (enhanced with semantic similarity) to group nodes.
  7. Multi-granularity Community Annotation: Employs a two-stage LLM inference process:
  8. Intra-community Distillation: Low-degree nodes are directly queried by LLMs, while high-degree nodes leverage neighbor annotations.
  9. Inter-community Fusion: Semantically similar communities are merged, and LLMs generate concise, representative labels for these merged groups. This significantly reduces LLM calls compared to node-by-node annotation.

OGA integrates these modules into a pipeline that automates the handling of unlabeled nodes in open-world graph learning.

Datasets

The authors evaluate OGA on nine benchmark datasets across various domains:

  • Citation Networks: Cora, Citeseer, Pubmed, Arxiv
  • Knowledge Networks: WikiCS
  • E-commerce Networks: Ratings, Children, History, Photo

These datasets are described as having high-dimensional feature vectors extracted from text (titles, abstracts, descriptions) and structured graph connections.

Key Insights and Ideas

  • Language as the Bridge: LLMs are not just for text processing; they can act as a crucial bridge between semantic and topological information in graphs, unlocking new opportunities for graph learning.
  • Ontology for Open-World: Representing knowledge as an ontology (concepts, entities, relations) is key to handling the dynamic and uncertain nature of open-world graph learning, allowing for adaptive concept formation.
  • Structure-Guided LLM Annotation is Crucial: Simply querying LLMs for each node is inefficient and ignores valuable graph structure. By using community detection and degree information, GLA significantly reduces LLM calls while improving annotation quality.
  • The Trade-off is Real: In open-world settings, there's an inherent trade-off between accurately classifying known nodes and reliably rejecting unknown ones. OGA aims to find an optimal balance.

Key Results

  • Superior UCR and UCA: OGA consistently outperforms state-of-the-art methods in both Unknown-Class Rejection (UCR) and Unknown-Class Accuracy (UCAcc) across multiple datasets. For example, on Cora, OGA achieves 94.2% UCR and 82.3% UCAcc.
  • Enhanced Known-Class Classification: OGA significantly improves classification accuracy for known-class nodes, especially on incomplete graphs. For instance, GCN performance on Pubmed improves from 47.12% to 87.15% with OGA's annotations.
  • Efficiency Gains: The GLA module reduces LLM calls by over 87% by leveraging structure-guided annotation, making the process more scalable and cost-effective.
  • Robustness: OGA demonstrates robustness to hyperparameters and varying ratios of unknown classes, maintaining strong performance.

Limitations and Future Work

  • Scalability on Large Graphs: While OGA is efficient, the authors mention future work will focus on improving scalability for extremely large graphs or specialized graph types like temporal or spatial graphs.
  • Hyperparameter Tuning: While OGA performs well, optimal hyperparameter settings (like λ, α, β, γ) still require careful tuning, though the paper provides analysis to guide this.
  • "Human-in-the-loop" vs. Fully Automated: OGA aims for full automation, moving beyond human-in-the-loop systems, which is a significant step but might require validation in highly sensitive applications.

Summary updated

BibTeX
@misc{wen2025when,
  author = {Yanzhe Wen and Xunkai Li and Qi Zhang and Zhu Lei and Guang Zeng and Rong-Hua Li and Guoren Wang},
  title = {{When LLMs meet open-world graph learning: a new perspective for unlabeled data uncertainty}},
  year = {2025},
  eprint = {2505.13989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13989},
}
Figure