Introduction
Text-Attributed Graphs (TAGs), where nodes represent entities with textual descriptions and edges denote relationships, are fundamental to modern applications like citation networks and e-commerce platforms. However, real-world TAGs are frequently "dirty," suffering from degradation across three primary modalities: text (sparsity, noise, imbalance), structure (missing or spurious edges), and labels (missing or incorrect annotations).
While traditional research focuses on developing robust Graph Neural Network (GNN) architectures to mitigate these issues, this work proposes a data-centric alternative. We introduce LAGA (Large Language and Graph Agent), a multi-agent framework designed to automatically detect and repair these multi-modal data quality issues, thereby improving the performance of any downstream model.
The LAGA Framework
LAGA treats graph optimization as an iterative, automated process orchestrated by four specialized agents. This modular approach allows the system to handle complex interactions between different types of data decay that single-purpose cleaners often miss.
- Detection Agent: Employs statistical tools and community detection algorithms (such as the Louvain method) to identify specific nodes or subgraphs affected by sparsity, noise, or imbalance.
- Planning Agent: Acting as the system's "brain," an LLM analyzes detection reports to prioritize repairs and dynamically adjust loss weights for the optimization process (e.g., down-weighting a modality that is currently too noisy to trust).
- Action Agent: Executes the repair plan through two sub-modules: Graph Learning (building multi-modal embeddings) and Graph Optimization (using fine-tuned LLMs to denoise text, refine edges, and balance classes).
- Evaluation Agent: Uses an LLM-as-a-judge to assess the quality of the optimized graph and determine if further iterations are necessary.
Key Insights: The Importance of Cross-Modality
A central finding of this research is that defects in one modality often mask or amplify issues in another. For instance, noisy text can hinder structural refinement if the model relies on textual similarity to predict missing edges. LAGA’s LLM-driven planner addresses this by reasoning about modality reliability, ensuring that the most trustworthy data is prioritized during the cleaning process. Furthermore, LAGA provides interpretability through natural language reports, allowing users to understand the specific reasoning behind each optimization step.
Experimental Results
LAGA was evaluated on five large-scale TAG datasets, including Cora, WikiCS, and ogbn-arxiv. The framework consistently outperformed 16 baseline methods across all nine degradation scenarios.
- Performance Gains: Significant accuracy boosts were observed, such as +3.71% on Cora (text sparsity) and +6.11% on WikiCS (label noise).
- Universality: LAGA improves the performance of various GNN backbones, from standard GCNs to advanced LLM-augmented models like ENGINE and TAPE.
- Scalability: The system successfully optimized the large-scale ogbn-arxiv dataset (169k nodes) in under 15 hours on a single A100 GPU.
- Human Validation: Domain experts rated LAGA-optimized graphs significantly higher for textual adequacy and structural coherence compared to original "dirty" graphs.
Conclusion and Future Work
LAGA demonstrates the power of multi-agent LLM systems in automating complex data engineering tasks for graphs. While currently focused on homophilous graphs and static snapshots, future work will explore adapting LAGA for heterophilous environments and dynamic, streaming data. By shifting the focus from model complexity to data quality, LAGA provides a robust foundation for more reliable graph-based AI.
Summary updated