Actions Speak Louder than Prompts: A Large-Scale Study of LLMs for Graph Inference
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly used for text-rich graph machine learning tasks such as node classification in high-impact domains like fraud detection and recommendation systems. Yet, despite a surge of interest, the field lacks a principled understanding of the capabilities of LLMs in their interaction with graph data. In this work, we conduct a large-scale, controlled evaluation across several key axes of variability to systematically assess the strengths and weaknesses of LLM-based graph reasoning methods in text-based applications. The axes include the LLM-graph interaction mode, comparing prompting, tool-use, and code generation; dataset domains, spanning citation, web-link, e-commerce, and social networks; structural regimes contrasting homophilic and heterophilic graphs; feature characteristics involving both short- and long-text node attributes; and model configurations with varying LLM sizes and reasoning capabilities. We further analyze dependencies by methodically truncating features, deleting edges, and removing labels to quantify reliance on input types. Our findings provide practical and actionable guidance. (1) LLMs as code generators achieve the strongest overall performance on graph data, with especially large gains on long-text or high-degree graphs where prompting quickly exceeds the token budget. (2) All interaction strategies remain effective on heterophilic graphs, challenging the assumption that LLM-based methods collapse under low homophily. (3) Code generation is able to flexibly adapt its reliance between structure, features, or labels to leverage the most informative input type. Together, these findings provide a comprehensive view of the strengths and limitations of current LLM-graph interaction modes and highlight key design principles for future approaches.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 52 of its 57 references that are in the map. First posted on arXiv 23 Sep 2025.
Builds on
52 of 57 references.
References · 52
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Visual Instruction Tuningcited by 7,869
- 2017Inductive Representation Learning on Large Graphscited by 6,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
38 more
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2018Pitfalls of Graph Neural Network Evaluationcited by 1,007
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
- 2020Geom-GCN: Geometric Graph Convolutional Networkscited by 826
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 356
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2020Wiki-CS: A Wikipedia-Based Benchmark for Graph Neural Networkscited by 260
- 2023Can Language Models Solve Graph Problems in Natural Language?cited by 252
- 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
- 2023Language is All a Graph Needscited by 220
- 2023What can Large Language Models do in chemistry? A comprehensive benchmark on eight taskscited by 185
- 2024LLaGA: Large Language and Graph Assistantcited by 181
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
- 2023Harnessing Explanations: LLM-to-LM Interpreter for Enhanced Text-Attributed Graph Representation Learningcited by 133
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 118
- 2023LLMs for Knowledge Graph Construction and Reasoning: Recent Capabilities and Future Opportunitiescited by 97
- 2024Planning, Creation, Usage: Benchmarking LLMs for Comprehensive Tool Utilization in Real-World Complex Scenarioscited by 86
- 2023Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Augmented by ChatGPTcited by 80
- 2025Paper2Code: Automating Code Generation from Scientific Papers in Machine Learningcited by 70
- 2024UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphscited by 66
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 65
- 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 63
- 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 49
- 2023Cooperative Graph Neural Networkscited by 36
- 2023Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?cited by 31
- 2024How Do Large Language Models Understand Graph Patterns? A Benchmark for Graph Pattern Comprehensioncited by 30
- 2025When Do LLMs Help With Node Classification? A Comprehensive Analysiscited by 21
- 2024Can Large Language Models Analyze Graphs like Professionals? A Benchmark, Datasets and Modelscited by 17
- 2025Equivariance Everywhere All At Once: A Recipe for Graph Foundation Modelscited by 17
- 2025Attention Mechanisms Perspective: Exploring LLM Processing of Graph-Structured Datacited by 8
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026RelAgent: LLM Agents as Data Scientists for Relational Learningcited by 2
- 2026Evaluating LLMs on Large-Scale Graph Property Estimation via Random Walkscited by 0
- 2026GraphReview: Scientific Paper Evaluation via LLM-based Graph Evidence Expansioncited by 0
- 2026GraphCert: Bootstrap Agentic Graph Reasoning with Certified Evidence Rubricscited by 0
- 2026Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolvecited by 0
- 2026Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve13 Oct 2026
- 2026GraphCert: Bootstrap Agentic Graph Reasoning with Certified Evidence Rubrics30 Sep 2026
- 2026GraphReview: Scientific Paper Evaluation via LLM-based Graph Evidence Expansion26 May 2026
- 2026RelAgent: LLM Agents as Data Scientists for Relational Learning8 May 2026
- 2026Evaluating LLMs on Large-Scale Graph Property Estimation via Random Walks2 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
- 2023Large Language Models on Graphs: A Comprehensive Survey
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
- 2026LLMs+Graphs: Toward Graph-Native, Synergistic AI Systems
- 2023GraphLLM: Boosting Graph Reasoning Ability of Large Language Model
- 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysis
- 2024GraphEval36K: Benchmarking Coding and Reasoning Capabilities of Large Language Models on Graph Datasets
- 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability