When LLM Agents Meet Graph Optimization: An Automated Data Quality Improvement Approach

Zhihan Zhang, Xunkai Li, Yilong Zuo, Zhaoxin Fan, Zhenjun Li, Bing Zhou, Rong-Hua Li, Guoren Wang · OpenReview

TL;DR

This paper introduces LAGA, a novel multi-agent framework that uses Large Language Models (LLMs) to automatically improve the quality of text-attributed graphs (TAGs). LAGA addresses a critical bottleneck in graph analytics: the performance degradation of models due to imperfections in text, structure, and labels, demonstrating significant improvements across various scenarios and tasks.

What Problem Does This Paper Address?

Modern data analysis increasingly relies on Text-Attributed Graphs (TAGs), which combine structural relationships with rich textual information. However, the effectiveness of graph-based machine learning models, particularly Graph Neural Networks (GNNs), is highly sensitive to the quality of these graphs. Real-world TAGs often suffer from various imperfections, including missing or noisy text, sparse or incorrect connections, and imbalanced or erroneous labels. These issues can severely degrade model performance. While existing methods have attempted to address specific types of data quality problems, they often lack a comprehensive, unified approach. This paper tackles the challenge of systematically optimizing TAG quality across multiple modalities (text, structure, labels) and defect types (sparsity, noise, imbalance) to ensure robust and reliable graph analytics.

Methods

LAGA employs a unified, multi-agent framework that treats graph quality optimization as a data-centric, automated process. The core of LAGA consists of four agents working in a closed loop:

  • Detection Agent: Identifies and localizes quality issues across text, structure, and labels, generating a diagnostic report.
  • Planning Agent: Utilizes LLM reasoning to infer issue severity, prioritize problems, and generate a tailored optimization plan, including dynamic loss weight allocation.
  • Action Agent: Executes the optimization plan by performing graph learning (building semantic and structural embeddings) and graph optimization (applying tailored repair strategies for text, structure, and labels). This agent leverages LLMs for text denoising and completion.
  • Evaluation Agent: Assesses the quality of the optimized graph using both evaluation tools and downstream task performance, determining if further optimization is needed and ensuring convergence.

This multi-agent architecture allows for specialized expertise at each stage, enabling a holistic and adaptive approach to quality improvement.

Datasets

The paper evaluates LAGA on five widely adopted TAG datasets:

  • Cora: Citation network
  • Citeseer: Citation network
  • arXiv: Citation network
  • WikiCS: Knowledge network
  • Photo: E-commerce network

These datasets cover various domains and are used to test LAGA's performance under different quality degradation scenarios.

Key Insights and Ideas

  • TAG quality is a critical bottleneck: The paper empirically demonstrates that even advanced GNNs and LLM-enhanced GNNs significantly degrade in performance when faced with imperfect TAGs.
  • A unified, multi-agent approach is necessary: Addressing diverse quality issues (text, structure, label) requires a coordinated effort, which LAGA's four-agent system provides.
  • LLM-driven planning is crucial for adaptability: Fixed rules are insufficient for complex, context-dependent graph quality issues. LLMs enable dynamic planning and adaptive repair strategies.
  • Cross-modality joint learning enhances robustness: Optimizing text, structure, and labels in isolation can lead to suboptimal results. LAGA's integrated approach improves overall quality.
  • Data-centric optimization is key: Instead of solely focusing on model architectures, LAGA prioritizes improving the data itself, leading to more generalizable and robust performance.

Key Results

  • State-of-the-art performance: LAGA consistently outperforms 16 baselines across 9 degradation scenarios and multiple datasets on tasks like node classification and node clustering. For example, on Cora with text sparsity, LAGA improves performance by 3.71% over UltraTAG-S.
  • Robustness across GNN backbones: LAGA shows significant performance gains regardless of the underlying GNN architecture, including traditional GNNs (GCN, GAT) and LLM-enhanced GNNs (TAPE, ENGINE).
  • Effective handling of composite scenarios: LAGA maintains high accuracy even when multiple quality issues co-occur, demonstrating its ability to manage complex real-world data conditions.
  • Human-centered validation: Expert evaluations confirm that LAGA significantly enhances the perceived quality of text, structure, and labels, making the improvements interpretable.
  • Scalability: LAGA demonstrates efficient scalability to large-scale graphs like ogbn-arxiv, with optimized runtime and amortized costs for downstream tasks.

Limitations and Future Work

  • Computational overhead: The integration of LLMs as core agents introduces substantial computational overhead, leading to increased energy consumption. The authors suggest energy-efficient LLM inference techniques and rigorous security audits for sensitive domains.
  • Potential for adversarial use: As an automated graph modification tool, LAGA's mechanisms could theoretically be reverse-engineered for adversarial purposes, such as injecting misinformation.
  • Future work: The authors suggest extending LAGA to heterophilous graphs and exploring new optimization strategies.

Summary updated

BibTeX
@misc{zhang2025when,
  author = {Zhihan Zhang and Xunkai Li and Yilong Zuo and Zhaoxin Fan and Zhenjun Li and Bing Zhou and Rong-Hua Li and Guoren Wang},
  title = {{When LLM Agents Meet Graph Optimization: An Automated Data Quality Improvement Approach}},
  year = {2025},
  eprint = {2510.08952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08952},
}
Figure