Efficient Text-Attributed Graph Learning through Selective Annotation and Graph Alignment

Huanyi Xie, Lijie Hu, Lu Yu, Tianhao Huang, Longfei Li, Meng Li, Jun Zhou, Huan Wang, Di WangarXiv 2025 · DOI

Abstract

Text-Attributed Graphs (TAGs) are prevalent in real-world applications, yet integrating Large Language Models (LLMs) to enhance Graph Neural Networks (GNNs) remains computationally expensive and slow. We present GAGA (Graph Alignment Guided Text-attributed Graph Learning), a framework that achieves state-of-the-art performance by annotating only 1% of nodes. GAGA identifies representative nodes through information density, constructs an annotation graph of LLM-generated concepts, and aligns this with the original graph structure via contrastive learning and prototype projection. Experimental results across six benchmarks demonstrate that GAGA reduces costs and computation time by up to 100x while maintaining or exceeding the accuracy of existing methods.

Introduction

Text-Attributed Graphs (TAGs), such as citation networks and e-commerce product graphs, contain rich textual information alongside structural connectivity. While traditional GNNs excel at capturing topology, they often fail to fully leverage complex node text. Recent attempts to use LLMs for node enhancement face an "efficiency wall"—annotating every node in a dataset like ogbn-arxiv can cost over $100 and take nearly 10 hours. GAGA addresses this by focusing on a small, representative subset of nodes, bridging the gap between high-quality LLM insights and practical scalability.

Methods

The GAGA framework operates in three primary stages:

  1. Selective Annotation: Representative nodes (top 1%) are selected based on "information density" via k-means clustering in embedding space. These nodes are annotated by an LLM (e.g., GPT-3.5) to generate summaries and core concepts.
  2. Annotation Graph Construction: LLM insights are organized into an "Annotation Graph" where edges represent semantic similarity, capturing the structure of high-level concepts.
  3. Two-Level Alignment: GAGA employs contrastive learning to align the original TAG with the Annotation Graph at both the subgraph and prototype levels. Prototype projection via vector quantization helps the model generalize from the 1% annotated data to the remaining 99%.
  4. Downstream Fine-tuning: A frozen LLM encoder and a lightweight GNN are used, with a cross-attention mechanism allowing the model to query learned prototypes during inference.
The GAGA framework overview, illustrating the two-level alignment process and the annotation graph construction from LLM queries.

Key Results

GAGA was evaluated on six benchmarks, including ogbn-arxiv, PubMed, and Cora. The framework demonstrates massive efficiency gains; on ogbn-arxiv, GAGA reduced costs from $113.39 (TAPE) to just $2.87, a ~40x reduction. Despite the minimal annotation, GAGA achieved 94.62% accuracy on PubMed, outperforming SOTA methods like TAPE and GLEM.

Comparison of GAGA against baseline methods in terms of time cost, money cost, and accuracy across ogbn-arxiv and PubMed datasets.

Conclusion

GAGA proves that a tiny, well-chosen sample of LLM-annotated data is sufficient for high-performance graph learning when guided by structural alignment. By treating LLM insights as a structured graph rather than flat features, GAGA overcomes the efficiency wall of previous LLM-GNN hybrids. Future work includes developing foundation models that can apply these learned representations across diverse graph domains without per-dataset alignment.

Summary updated

BibTeX
@misc{xie2025efficient,
  author = {Huanyi Xie and Lijie Hu and Lu Yu and Tianhao Huang and Longfei Li and Meng Li and Jun Zhou and Huan Wang and Di Wang},
  title = {{Efficient Text-Attributed Graph Learning through Selective Annotation and Graph Alignment}},
  year = {2025},
  eprint = {2506.07168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07168},
}
Figure