TAGA: Text-Attributed Graph Self-Supervised Learning by Synergizing Graph and Text Mutual Transformations

Zheng Zhang, Yuntong Hu, Bo Pan, Chen Ling, Liang Zhao

TL;DR

TAGA is a novel self-supervised framework that masters Text-Attributed Graphs (TAGs) by treating graph structure and natural language as two sides of the same coin. By aligning a "Text-of-Graph" view with a "Graph-of-Text" view, it learns deep, transferable representations that achieve state-of-the-art results in zero-shot and few-shot tasks across diverse real-world datasets.

What Problem Does This Paper Address?

Text-Attributed Graphs (TAGs)—where nodes contain rich text and edges represent complex relationships—are everywhere, from citation networks to recommendation systems. However, learning to represent these graphs effectively is hard.

Most current methods rely on supervised learning, which requires massive amounts of expensive, labeled data. Existing unsupervised approaches often fail because they treat graph topology and textual semantics as separate entities, missing the crucial "entanglement" between the two. Furthermore, plugging large-scale graphs directly into Pre-trained Language Models (PLMs) is computationally ruinous due to the quadratic complexity of self-attention. TAGA aims to bridge this gap by creating a unified, efficient, and label-free way to learn from both text and structure.

Methods

The core of TAGA is Multi-View Alignment. The researchers propose that a TAG can be viewed in two equivalent ways:

  1. Text-of-Graph (TofG): This view transforms a node’s neighborhood into a structured textual document. Instead of just listing connections, the authors use a novel Graph2Text module. It builds a BFS tree of the neighborhood and uses a pre-order traversal to create a hierarchical document layout (like sections and subsections in a book). Cross-edges are added as references, making the text feel "natural" to a language model and reducing the distributional shift that plagues simpler templates.
  2. Graph-of-Text (GofT): This view treats the neighborhood as a standard graph where nodes are represented by textual embeddings. A Graph Neural Network (GNN) then aggregates these embeddings to capture the structural context.
Illustration of the two distinct views of TAGs: Graph-of-Text (left) and Text-of-Graph (right).

By aligning the representations from these two views across different neighborhood "orders" (hops), the model learns to infuse structural logic into textual embeddings and vice versa.

To handle massive graphs, the authors introduced a Structure-Preserving Random Walk. This algorithm mimics human reading patterns—starting with a general overview and occasionally "jumping" to related sections via cross-edges—allowing the model to approximate a large neighborhood without the memory overhead of processing a massive, single document.

The TAGA framework, showing multi-view generation, the Graph2Text module, and hierarchical alignment.

Datasets

The authors evaluated TAGA on eight diverse real-world datasets:

  • Citation Networks: Arxiv, Cora, and Pubmed.
  • Book Networks: Children and History.
  • E-commerce Networks: Computers, Photo, and Sports.

These datasets vary significantly in scale and text length, providing a robust test for the model's generalization capabilities.

Key Insights and Ideas

  • Structure as Syntax: The "aha moment" here is treating graph topology as a form of document structure. By formatting a graph neighborhood like a structured article, the model leverages the inherent "reasoning" capabilities of PLMs.
  • Mutual Supervision: Because TofG and GofT contain equivalent information in different formats, they can supervise each other. This eliminates the need for manual labels while ensuring the model captures both semantic nuances and topological patterns.
  • Efficiency through Knowledge Transfer: TAGA effectively "distills" the heavy computational work of a PLM into a lightweight GNN. Once pre-trained, the GNN can perform inference with linear complexity, making it much faster than using an LLM directly on graph data.

Key Results

TAGA demonstrates remarkable performance, particularly when data is scarce:

  • Zero-Shot Dominance: In zero-shot classification, TAGA outperformed other graph pre-training methods by an average of 47.84%. It even beat direct textual embeddings from PLMs by over 20%, proving that structural information is a massive value-add.
  • Few-Shot Excellence: In 1-shot to 5-shot scenarios, TAGA consistently ranked first. Interestingly, its zero-shot performance on some datasets actually matched or exceeded the 5-shot performance of competing models.
  • Scalability: The random walk acceleration (TAGA-rw) maintains high accuracy while keeping training time and memory usage manageable as the neighborhood size grows, whereas standard PLM approaches quickly hit "out-of-memory" errors.
Detailed performance metrics across various datasets and k-shot settings.

Limitations and Future Work

The authors acknowledge that while TAGA is a powerful "foundation model" for graphs, its transfer capabilities have limits. Specifically, transferring knowledge between vastly different domains—such as moving from a social network to a chemical molecular graph—remains a challenge.

Future research will likely focus on developing a truly universal graph foundation model capable of generalizing across entirely different types of relational data, potentially moving beyond text-attributed nodes to more abstract feature sets.

Summary updated

BibTeX
@inproceedings{zhang2025taga,
  author = {Zheng Zhang and Yuntong Hu and Bo Pan and Chen Ling and Liang Zhao},
  title = {{TAGA: Text-Attributed Graph Self-Supervised Learning by Synergizing Graph and Text Mutual Transformations}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761357},
}
Figure