Large Language Model Selection for Dynamic LLM-GNN Integration

Graph Neural Networks (GNNs) have achieved state-of-the-art results across various domains; however, designing optimal GNN architectures with modifications remains computationally expensive, requiring manual tuning or tedious optimizations. The Prompt-Responsive GNN (PR-GNN) model introduces a novel architecture that leverages real-time LLM feedback to iteratively adjust GNN components based on evolving data or task demands. Given the LLM’s role in this model, selecting the optimal one is essential for maximizing performance. This research proposes an initial framework for comparing four LLMs (ChatGPT-4o, Claude Sonnet 4, Gemini 2.5 Pro, and Grok 3), selected based on current benchmarks. The preliminary methodology included 36 prompts of varying complexities (beginner, intermediate, advanced). These prompts were used to evaluate the LLM’s parsing success. All tested LLMs achieved perfect parsing; therefore, the study adopted an alternative approach that utilized public Kaggle datasets with standardized scikit-learn accuracy metrics. Each LLM generated prompts from the dataset descriptions and code for evaluation in multiple real-world domains, including finance, cybersecurity, and healthcare, to minimize domain-specific bias. Initial results revealed that Claude Sonnet 4 (89.15%) and Grok 3 (89.07%) were statistically equivalent top performers, while Gemini 2.5 Pro and ChatGPT-4o trailed, with 82.86% and 48.63%, respectively. A subsequent assessment of 22 new tasks between Grok 3 and Claude Sonnet 4 revealed nuanced differences (65.73% vs. 62.17%), with Grok 3 slightly outperforming. Additional statistical analysis using 10% trimmed means (86.58% vs 81.55%) confirmed Grok 3's slight advantage by excluding extreme outliers. These findings identify Grok 3 as the preferred choice for integration during further development of the PR-GNN model. The next phase will focus on building a scalable pipeline, assessing performance using fine-grained metrics, and validating Grok 3’s effectiveness through comparative analysis and robustness testing.

Institutions

Publication Details

Journal
George Mason University
Published
2025-09-12
DOI
https://doi.org/10.13021/jssr2025.5172
Primary Topic
Advanced Graph Neural Networks
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Large Language Model Selection for Dynamic LLM-GNN Integration

George Mason University
Advanced Graph Neural Networks
article

Large Language Model Selection for Dynamic LLM-GNN Integration

article en

Abstract

Graph Neural Networks (GNNs) have achieved state-of-the-art results across various domains; however, designing optimal GNN architectures with modifications remains computationally expensive, requiring manual tuning or tedious optimizations. The Prompt-Responsive GNN (PR-GNN) model introduces a novel architecture that leverages real-time LLM feedback to iteratively adjust GNN components based on evolving data or task demands. Given the LLM’s role in this model, selecting the optimal one is essential for maximizing performance. This research proposes an initial framework for comparing four LLMs (ChatGPT-4o, Claude Sonnet 4, Gemini 2.5 Pro, and Grok 3), selected based on current benchmarks. The preliminary methodology included 36 prompts of varying complexities (beginner, intermediate, advanced). These prompts were used to evaluate the LLM’s parsing success. All tested LLMs achieved perfect parsing; therefore, the study adopted an alternative approach that utilized public Kaggle datasets with standardized scikit-learn accuracy metrics. Each LLM generated prompts from the dataset descriptions and code for evaluation in multiple real-world domains, including finance, cybersecurity, and healthcare, to minimize domain-specific bias. Initial results revealed that Claude Sonnet 4 (89.15%) and Grok 3 (89.07%) were statistically equivalent top performers, while Gemini 2.5 Pro and ChatGPT-4o trailed, with 82.86% and 48.63%, respectively. A subsequent assessment of 22 new tasks between Grok 3 and Claude Sonnet 4 revealed nuanced differences (65.73% vs. 62.17%), with Grok 3 slightly outperforming. Additional statistical analysis using 10% trimmed means (86.58% vs 81.55%) confirmed Grok 3's slight advantage by excluding extreme outliers. These findings identify Grok 3 as the preferred choice for integration during further development of the PR-GNN model. The next phase will focus on building a scalable pipeline, assessing performance using fine-grained metrics, and validating Grok 3’s effectiveness through comparative analysis and robustness testing.

George Mason University
George Mason University (US), PaneraTech (United States) (US), Carnegie Mellon University (US)
Industry, innovation and infrastructure
Openalex Percentile: Top 23%
Advanced Graph Neural Networks
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.