GCoder: Improving Large Language Model for Generalized Graph Problem Solving
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated strong reasoning abilities, making them suitable for complex tasks such as graph computation. Traditional reasoning steps paradigm for graph problems is hindered by unverifiable steps, limited long-term reasoning, and poor generalization to graph variations. To overcome these limitations, we introduce GCoder, a code-based LLM designed to enhance problem-solving in generalized graph computation problems. Our method involves constructing an extensive training dataset, GraphWild, featuring diverse graph formats and algorithms. We employ a multi-stage training process, including Supervised Fine-Tuning (SFT) and Reinforcement Learning from Compiler Feedback (RLCF), to refine model capabilities. For unseen tasks, a hybrid retrieval technique is used to augment performance. Experiments demonstrate that GCoder outperforms GPT-4o, with an average accuracy improvement of 16.42% across various graph computational problems. Furthermore, GCoder efficiently manages large-scale graphs with millions of nodes and diverse input formats, overcoming the limitations of previous models focused on the reasoning steps paradigm. This advancement paves the way for more intuitive and effective graph problem-solving using LLMs. Code and data are available at here: https://github.com/Bklight999/WWW25-GCoder/tree/master.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 29 of its 51 references that are in the map. First posted on arXiv 24 Oct 2024.
Builds on
29 of 51 references.
Closest ancestors · 6
Same direction, newest first
- 2024GraphEval36K: Benchmarking Coding and Reasoning Capabilities of Large Language Models on Graph Datasets23 Jun
- 2024Can LLM Graph Reasoning Generalize beyond Pattern Memorization?23 Jun
- 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability7 Mar
- 2024GraphWiz: An Instruction-Following Language Model for Graph Problems25 Feb
- 2024InstructGraph: Boosting Large Language Models via Graph-centric Instruction Tuning and Preference Alignment13 Feb
- 2023Can Language Models Solve Graph Problems in Natural Language?17 May
Other references · 23
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
- 2023Augmented Language Models: a Surveycited by 398
- 2023Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergycited by 343
- 2023Exploring the Potential of Large Language Models (LLMs) in Learning on Graphscited by 271
- 2023GPT4Graph: Can Large Language Models Understand Graph Structured Data ? An Empirical Evaluation and Benchmarkingcited by 209
11 more
- 2024OpenGraph: Towards Open Graph Foundation Modelscited by 75
- 2023Label-free Node Classification on Graphs with Large Language Models (LLMS)cited by 72
- 2024MATHSENSEI: A Tool-Augmented Large Language Model for Mathematical Reasoningcited by 34
- 2024How Do Large Language Models Understand Graph Patterns? A Benchmark for Graph Pattern Comprehensioncited by 30
- 2024VisionGraph: Leveraging Large Multimodal Models for Graph Theory Problems in Visual Contextcited by 29
- 2023Prompt-based Node Feature Extractor for Few-shot Learning on Text-Attributed Graphscited by 23
- 2024Can Large Language Models Analyze Graphs like Professionals? A Benchmark, Datasets and Modelscited by 17
- 2023A Fused Gromov-Wasserstein Framework for Unsupervised Knowledge Graph Entity Alignmentcited by 16
- 2024Link Recommendation to Augment Influence Diffusion with Provable Guaranteescited by 5
- 2024Finding Densest Subgraphs with Edge-Color Constraintscited by 2
- 2024Local Centrality Minimization with Quality Guaranteescited by 1
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2025ArchRAG: Attributed Community-based Hierarchical Retrieval-Augmented Generationcited by 27
- 2026Graph is a Substrate Across Data Modalitiescited by 13
- 2025Rethinking and Benchmarking Large Language Models for Graph Reasoningcited by 6
- 2025Large Language Models in Operations Research: Methods, Applications, and Challengescited by 4
- 2026DynamicGTR: Leveraging Graph Topology Representation Preferences to Boost VLM Capabilities on Graph QAscited by 4
- 2025MA-GTS: A Multi-Agent Framework for Solving Complex Graph Problems in Real-World Applicationscited by 3
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problemscited by 3
- 2025Improving LLMs' Generalized Reasoning Abilities by Graph Problemscited by 1
- 2025Harnessing Adaptive Topology Representations for Zero-Shot Graph Question Answeringcited by 1
- 2026GRAIN: Bridging Name and Narrative Shifts in Real-World Graph Reasoning through Invariance-Rewarded Agentic RLcited by 0
- 2026GraphCert: Bootstrap Agentic Graph Reasoning with Certified Evidence Rubricscited by 0
- 2026GraphCert: Bootstrap Agentic Graph Reasoning with Certified Evidence Rubrics30 Sep 2026
- 2026GRAIN: Bridging Name and Narrative Shifts in Real-World Graph Reasoning through Invariance-Rewarded Agentic RL27 Aug 2026
- 2026DynamicGTR: Leveraging Graph Topology Representation Preferences to Boost VLM Capabilities on Graph QAs25 Feb 2026
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problems6 Feb 2026
- 2026Graph is a Substrate Across Data Modalities29 Jan 2026
- 2025Rethinking and Benchmarking Large Language Models for Graph Reasoning29 Sep 2025
- 2025Large Language Models in Operations Research: Methods, Applications, and Challenges18 Sep 2025
- 2025Harnessing Adaptive Topology Representations for Zero-Shot Graph Question Answering8 Aug 2025
- 2025Improving LLMs' Generalized Reasoning Abilities by Graph Problems23 Jul 2025
- 2025MA-GTS: A Multi-Agent Framework for Solving Complex Graph Problems in Real-World Applications25 Feb 2025
- 2025ArchRAG: Attributed Community-based Hierarchical Retrieval-Augmented Generation14 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2025G1: Teaching LLMs to Reason on Graphs with Reinforcement Learning
- 2024CodeGraph: Enhancing Graph Reasoning of LLMs with Code
- 2025Less is More: Learning Graph Tasks with Just LLMs
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
- 2024Graph Reasoning with Large Language Models via Pseudo-code Prompting
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
- 2025Graph-R1: Incentivizing the Zero-Shot Graph Learning Capability in LLMs via Explicit Reasoning
- 2025Rewarding Graph Reasoning Process makes LLMs more Generalized Reasoners