TL;DR
The paper introduces LLaTA (Large Language and Tree Assistant), a training-free and backbone-agnostic framework for Graph Structure Learning (GSL) on text-attributed graphs. By reformulating GSL from a heavy edge-prediction task into a hierarchical tree-sampling optimization, LLaTA leverages LLM in-context learning to jointly optimize graph topology and text semantics. This approach achieves state-of-the-art performance across 11 datasets while completely eliminating the need for costly LLM fine-tuning.
What Problem Does This Paper Address?
Real-world graphs often come with rich textual descriptions on nodes (e.g., paper abstracts in citation networks, user profiles in social networks), forming Text-Attributed Graphs (TAGs). Graph Structure Learning (GSL) aims to optimize the graph's connections (edges) to improve downstream tasks like node classification.
However, traditional GSL methods ignore text, and recent LLM-based GSL methods suffer from two major flaws:
- High Computational Overhead: They treat GSL as an edge-prediction task, requiring full-parameter or instruction fine-tuning of massive LLMs to predict edge existence. This scales poorly because the number of edges grows rapidly with graph size.
- Tight Coupling: They often couple the graph learner directly with specific Graph Neural Network (GNN) backbones or specific instruction datasets, making them inflexible and prone to unstable performance if the initial graph is noisy.
Methods
The authors propose LLaTA, which shifts the paradigm to a fully decoupled, training-free framework using a tree-based optimization pipeline:
- Topology-aware In-context Construction: Instead of feeding raw graphs to the LLM, LLaTA uses structural entropy minimization to build a hierarchical structural encoding tree. This tree groups highly connected nodes into multi-level communities, translating complex topology into a structured format the LLM can easily digest.
- Tree-prompted LLM Inference: LLaTA feeds this tree structure into an LLM as a high-quality prompt via a "Community of Thought" (CoT) mechanism. Without any fine-tuning, the LLM performs in-context learning to infer semantic relationships and outputs soft label distributions for each node. These are used to refine the community tree.
- Leaf-oriented Two-step Sampling: To update the graph structure efficiently, LLaTA uses a two-step sampler. It first identifies nodes with high structural uncertainty (high structural entropy) and then samples textually similar candidate neighbors based on the LLM's soft labels to add or remove edges.
Datasets
The framework was evaluated on 11 benchmark TAG datasets across four distinct domains:
- Citation Networks: Cora, Citeseer, Pubmed, ArXiv
- Knowledge Networks: WikiCS
- Social Networks: Instagram, Reddit
- E-commerce Networks: Ratings, Child, History, Photo
Notably, Ratings and Child exhibit heterophily (connected nodes have different labels), providing a rigorous test for structural robustness.
Key Insights and Ideas
- From Edges to Trees: Shifting the GSL objective from predicting individual edges to sampling from a hierarchical community tree drastically reduces complexity. Inference scales with the number of nodes rather than the number of edges.
- Structural Entropy as a Prompt Guide: Minimizing structural entropy naturally reveals local and global community structures, creating an ideal topological context for LLM prompts.
- Training-Free is Enough: High-quality in-context prompts (Community of Thought) allow frozen LLMs to match or outperform fine-tuned models, proving that explicit topology guidance can replace expensive weight updates.
Key Results
- State-of-the-Art Accuracy: LLaTA consistently outperforms 14 traditional and LLM-based GSL baselines. For example, it beats the second-best method by 1.18% on Cora, 1.02% on WikiCS, and 2.78% on Photo.
- Handling Heterophily: On the challenging Child dataset (heterophilic), LLaTA achieved a massive 9.87% improvement over baselines.
- Massive Speedups: Because it requires zero training time during the structure learning phase, LLaTA runs 2.5 to 9.2 hours faster than prominent LLM-based GSL competitors like GraphEdit and LLM4RGNN.
- Robustness: LLaTA successfully mitigates common GNN issues like over-smoothing and over-squashing, maintaining high accuracy even under high structural noise or sparsity.
Limitations and Future Work
- Sensitivity to Extreme Noise: While resilient to moderate noise, LLaTA's performance degrades under very high edge-addition rates because random noise corrupts the initial structural encoding tree.
- Future Directions: The authors suggest integrating more robust noise-detection mechanisms directly into the tree optimization phase to better defend against adversarial attacks or heavily corrupted graphs.
Summary updated