Abstract
In federated graph learning (FGL), a complete graph is divided into multiple subgraphs stored in each client due to privacy concerns, and all clients jointly train a global graph model by only transmitting model parameters. A pain point of FGL is the heterogeneity problem, where nodes or structures present non-IID properties among clients (e.g., different node label distributions), dramatically undermining the convergence and performance of FGL. To address this, existing efforts focus on design strategies at the model level, i.e., they design models to extract common knowledge to mitigate heterogeneity. However, these model-level strategies fail to fundamentally address the heterogeneity problem as the model needs to be designed from scratch when transferring to other tasks. Motivated by large language models (LLMs) having achieved remarkable success, we aim to utilize LLMs to fully understand and augment local text-attributed graphs, to address data heterogeneity at the data level. In this paper, we propose a general framework LLM4FGL that innovatively decomposes the task of LLM for FGL into two sub-tasks theoretically. Specifically, for each client, it first utilizes the LLM to generate missing neighbors and then infers connections between generated nodes and raw nodes. To improve the quality of generated nodes, we design a novel federated generation-and-reflection mechanism for LLMs, without the need to modify the parameters of the LLM but relying solely on the collective feedback from all clients. After neighbor generation, all the clients utilize a pre-trained edge predictor to infer the missing edges. Furthermore, our framework can seamlessly integrate as a plug-in with existing FGL methods. Experiments on three real-world datasets demonstrate the superiority of our method compared to advanced baselines.
Introduction
Federated Graph Learning (FGL) has emerged as a powerful paradigm for training graph neural networks (GNNs) across distributed clients without sharing raw data. However, the inherent data heterogeneity across clients—where local subgraphs exhibit significantly different node label distributions or structural patterns—remains a critical bottleneck. Traditional approaches attempt to mitigate this at the model level through specialized aggregation or personalization. In contrast, this work introduces LLM4FGL, a data-centric framework that leverages the semantic power of Large Language Models (LLMs) to harmonize local data distributions by generating missing information.
The LLM4FGL Framework
The LLM4FGL framework addresses heterogeneity by augmenting local subgraphs to better reflect the global data distribution. The process is divided into two primary stages: node generation and edge prediction.
First, clients utilize an LLM (such as Gemma or Llama) to generate synthetic "missing neighbors" for existing nodes. These neighbors are generated as text attributes (e.g., paper titles and abstracts) that are semantically consistent with the local node but aimed at filling gaps in the global distribution. Second, a collaboratively trained edge predictor (a lightweight MLP) determines the structural connections between these newly generated nodes and the original graph.
Federated Generation-and-Reflection
A key innovation of LLM4FGL is the Federated Generation-and-Reflection mechanism. To ensure that the LLM-generated nodes are not just plausible but also useful for the global task, the framework incorporates a feedback loop based on global model performance.
When a global GNN exhibits low prediction confidence on certain generated nodes, these nodes are flagged. The LLM is then prompted to "reflect" on its previous output, using the model's confusion as a signal to refine the generated text. This iterative process allows the LLM to align its generations with the collective knowledge of all clients without requiring any fine-tuning of the LLM parameters themselves.
Experimental Results
The framework was evaluated on three benchmark citation datasets: Cora, CiteSeer, and PubMed. To simulate realistic FGL conditions, label skew was introduced using a Dirichlet distribution.
- Superior Performance: LLM4FGL consistently outperformed state-of-the-art baselines, achieving significant accuracy gains (e.g., +2.57% on Cora).
- Ablation Studies: Removing the reflection mechanism led to a measurable performance drop, confirming that iterative feedback is essential for high-quality data augmentation.
- Plug-and-Play Compatibility: LLM4FGL can be integrated as a pre-processing step for various existing FGL algorithms, enhancing their robustness to non-IID data.
Conclusion
LLM4FGL represents a shift from model-centric to data-centric solutions in Federated Graph Learning. By utilizing LLMs to synthesize missing semantic information and a reflection mechanism to ensure global alignment, the framework effectively mitigates the challenges of data heterogeneity. Future work will explore scaling this approach to larger graphs and extending it to non-textual graph domains.
Summary updated