mlsanityData to 14 Oct 2026

Actions Speak Louder than Prompts: A Large-Scale Study of LLMs for Graph Inference

arXiv 2509.18487 ↗First posted 23 Sep 2025cs.CLcited by 5

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  5. 2017Graph Attention Networkscited by 8,923
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  8. 2023Visual Instruction Tuningcited by 7,869
  9. 2017Inductive Representation Learning on Large Graphscited by 6,320
  10. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  11. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  12. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
38 more
  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  2. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
  3. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
  4. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
  5. 2018Pitfalls of Graph Neural Network Evaluationcited by 1,007
  6. 2023Teaching Large Language Models to Self-Debugcited by 988
  7. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  8. 2020Geom-GCN: Geometric Graph Convolutional Networkscited by 826
  9. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
  10. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  11. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
  12. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 356
  13. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  14. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  15. 2020Wiki-CS: A Wikipedia-Based Benchmark for Graph Neural Networkscited by 260
  16. 2023Can Language Models Solve Graph Problems in Natural Language?cited by 252
  17. 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
  18. 2023Language is All a Graph Needscited by 220
  19. 2023What can Large Language Models do in chemistry? A comprehensive benchmark on eight taskscited by 185
  20. 2024LLaGA: Large Language and Graph Assistantcited by 181
  21. 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
  22. 2023Harnessing Explanations: LLM-to-LM Interpreter for Enhanced Text-Attributed Graph Representation Learningcited by 133
  23. 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 118
  24. 2023LLMs for Knowledge Graph Construction and Reasoning: Recent Capabilities and Future Opportunitiescited by 97
  25. 2024Planning, Creation, Usage: Benchmarking LLMs for Comprehensive Tool Utilization in Real-World Complex Scenarioscited by 86
  26. 2023Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Augmented by ChatGPTcited by 80
  27. 2025Paper2Code: Automating Code Generation from Scientific Papers in Machine Learningcited by 70
  28. 2024UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphscited by 66
  29. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 65
  30. 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 63
  31. 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 49
  32. 2023Cooperative Graph Neural Networkscited by 36
  33. 2023Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?cited by 31
  34. 2024How Do Large Language Models Understand Graph Patterns? A Benchmark for Graph Pattern Comprehensioncited by 30
  35. 2025When Do LLMs Help With Node Classification? A Comprehensive Analysiscited by 21
  36. 2024Can Large Language Models Analyze Graphs like Professionals? A Benchmark, Datasets and Modelscited by 17
  37. 2025Equivariance Everywhere All At Once: A Recipe for Graph Foundation Modelscited by 17
  38. 2025Attention Mechanisms Perspective: Exploring LLM Processing of Graph-Structured Datacited by 8

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
  2. 2023Large Language Models on Graphs: A Comprehensive Survey
  3. 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
  4. 2026LLMs+Graphs: Toward Graph-Native, Synergistic AI Systems
  5. 2023GraphLLM: Boosting Graph Reasoning Ability of Large Language Model
  6. 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysis
  7. 2024GraphEval36K: Benchmarking Coding and Reasoning Capabilities of Large Language Models on Graph Datasets
  8. 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability