Large Language Models Enhanced Personalized Graph Neural Architecture Search in Federated Learning

Hui Fang, Yang Gao, Peng Zhang, Jiangchao Yao, Hongyang Chen, Haishuai Wang

Introduction

Graph Federated Learning (GFL) has emerged as a critical paradigm for training models on decentralized graph data, such as medical records or social networks, while preserving user privacy. However, a significant challenge in GFL is the non-IID (Independent and Identically Distributed) nature of real-world data. When data distributions vary significantly across clients, a single global architecture often fails to capture the unique characteristics of local datasets. While Personalized Federated Learning (PFL) seeks to provide client-specific models, the manual design of these architectures is labor-intensive and requires deep domain expertise.

To address this, the PFGNAS (Personalized Federated Graph Neural Architecture Search) framework introduces a novel approach: using Large Language Models (LLMs) as intelligent controllers to automate the design of personalized Graph Neural Network (GNN) architectures.

The PFGNAS Framework

PFGNAS treats the architecture search process as a collaborative dialogue between a central server and an LLM. Unlike traditional automated methods that rely on computationally heavy reinforcement learning or evolutionary algorithms, PFGNAS leverages the reasoning capabilities of LLMs to navigate the search space efficiently.

Overview of the PFGNAS framework, illustrating the interaction between the LLM controller, the central server, and the personalized client models.

LLM-Driven Search Strategy

The system guides the LLM (such as GPT-4 or GLM-4) through four specialized prompt types:

  1. Search Task: Encapsulates domain knowledge and specific graph statistics, such as network density and average shortest path lengths, to inform the LLM about the data's structural properties.
  2. Search Space: Defines the available building blocks, including standard GNN operations (e.g., GCN, GAT, GraphSage) and various activation functions.
  3. Search Strategy: Implements a dual-phase approach consisting of Exploration (sampling diverse architectures) and Exploitation (refining the search based on high-performing candidates).
  4. Performance Feedback: Creates an optimization loop by feeding historical accuracy results back to the LLM, allowing it to "self-reflect" and improve its subsequent recommendations.

Efficiency through Weight-Sharing

To mitigate the high computational cost of training numerous architectures, PFGNAS employs a weight-sharing supernet strategy. The supernet contains all possible operations within the search space. Each client receives a personalized architecture recommendation from the LLM and "prunes" the supernet to retain only the necessary components. This allows clients to share weights for common operations—accelerating convergence—while maintaining a structure tailored to their local data.

Experimental Results and Insights

The framework was rigorously tested on standard benchmarks (Cora, Citeseer, and Pubmed) under both homogeneous and heterogeneous data partitions. Key findings include:

  • Superior Performance: PFGNAS consistently outperformed traditional manual GNNs and existing automated methods like DARTS and GraphNAS. In highly heterogeneous scenarios, it achieved a remarkable 23.75% average improvement over baselines on the PubMed dataset.
  • The Power of Personalization: Ablation studies confirmed that personalizing the GNN structure is as vital as personalizing the weights. The full PFGNAS framework significantly outperformed versions that attempted to find a single uniform architecture for all clients.
  • LLM Reasoning: The study highlighted that LLMs can effectively process "graph-to-text" descriptors. Interestingly, GLM-4 was found to be particularly effective in this reasoning task, outperforming other models like GPT-4 in generating high-quality architecture suggestions.

Conclusion and Future Work

PFGNAS demonstrates that LLMs can serve as powerful, low-overhead controllers for complex architecture search tasks in federated environments. By bridging the gap between natural language reasoning and graph topology, the framework offers a scalable path toward truly personalized AI.

Future research will focus on improving the interpretability of the LLM's choices and exploring the integration of low-level gradient information into the prompts to further refine the search process. Additionally, optimizing the frequency of LLM API calls remains a priority to reduce operational costs in large-scale deployments.

Summary updated

BibTeX
@inproceedings{fang2025large,
  author = {Hui Fang and Yang Gao and Peng Zhang and Jiangchao Yao and Hongyang Chen and Haishuai Wang},
  title = {{Large Language Models Enhanced Personalized Graph Neural Architecture Search in Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33814},
}
Figure