Abstract
Representation learning on Text-Attributed Graphs (TAGs) is frequently hindered by feature noise in raw text and structural noise in graph topologies. This paper introduces LangGSL, a framework that bridges Large Language Models (LLMs) and Graph Structure Learning (GSL) to address these challenges. LangGSL utilizes LLMs for initial data cleaning and employs a mutual learning strategy where a language model and a graph model iteratively refine each other. Experimental results across multiple benchmarks demonstrate that LangGSL achieves state-of-the-art accuracy and exhibits exceptional robustness against adversarial attacks and missing graph structures.
Introduction
In Text-Attributed Graphs (TAGs), such as citation or social networks, nodes are associated with textual features and connected by edges representing relationships. However, real-world TAGs often suffer from two types of noise: feature noise (e.g., irrelevant or messy text) and structural noise (e.g., missing or spurious edges). Traditional methods often address these issues in isolation, either focusing on text refinement or graph structure learning. LangGSL proposes that features and structure are deeply intertwined and should be optimized jointly to produce robust representations.
The LangGSL Framework
LangGSL operates through a three-stage process designed to harmonize textual and structural information.
1. LLM-Based Data Cleaning
The framework first employs a powerful LLM (such as GPT-4) to act as a feature refiner. By processing raw, noisy text into concise, task-relevant summaries, the LLM filters out irrelevant information that might otherwise degrade the performance of downstream models. This step alone has been shown to significantly boost accuracy on complex datasets.
2. Mutual Learning Loop
At the core of LangGSL is a "conversation" between a Language Model (LM) and a Graph Structure Learning Model (GSLM). The LM (e.g., Sent-BERT) focuses on local textual attributes, while the GSLM utilizes a Graph Neural Network (GNN) to capture global structural patterns. Through a variational information-maximizing framework, the two components iteratively exchange pseudo-labels and embeddings. The LM provides textual insights to guide graph refinement, while the GSLM distills global semantic correlations back into the LM.
3. Variational Optimization
The system is jointly optimized using an approach inspired by the "wake-sleep" algorithm. This ensures that the LM learns to capture global context from the graph, while the GSLM develops a more robust structure informed by the LM’s refined textual features.
Experimental Evaluation
LangGSL was evaluated on standard citation networks (Cora, Pubmed, ogbn-arxiv) and a heterophilous social network (Instagram). The framework consistently outperformed state-of-the-art GSLMs by an average of 3.1%.
Robustness and Flexibility
A key strength of LangGSL is its resilience to structural manipulation. In scenarios where the graph structure was completely missing (Topology Inference), LangGSL outperformed competing methods by up to 16.37%. Furthermore, the framework maintains high performance under adversarial "Mettacks," where edges are intentionally perturbed to confuse the model.
Conclusion
LangGSL effectively bridges the gap between LLMs and graph-based learning, demonstrating that joint optimization of features and structure leads to more robust representations. While the computational cost of LLM API calls remains a consideration for large-scale applications, the framework's flexibility and superior performance under noise make it a significant advancement for TAG representation learning. Future work will focus on improving the scalability of the pair-wise structure learning components.
Summary updated