atlas

Research map / Large language models / Instruction and fine-tuning

$\texttt{G1}$: Teaching LLMs to Reason on Graphs with Reinforcement Learning

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Applies GRPO reinforcement learning with rule-based rewards to Qwen2.5-Instruct models on 50 synthetic graph-theoretic tasks (ERDOS, 100k train), showing gains in graph reasoning that transfer to other graph benchmarks and general math.

Problem

LLMs perform poorly on graph reasoning tasks, and prior approaches (graph foundation model pretraining, instruction or preference tuning on graph data) suffer from scarce large-scale graph data and poor generalization.

Approach

Use verifiable rule-based rewards (value match, Jaccard index, algorithmic verifiers) on a large set of synthetic graph-theoretic tasks generated from real-world subgraphs, training LLMs with GRPO, optionally after a short rejection-sampling CoT SFT warm-up.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply RL on Erdős graph tasksQwen2.5-3B-Instruct · Erdősaccuracy (Average, %): 22.72 -> 59.76Helped
Apply RL on Erdős graph tasksQwen2.5-7B-Instruct · Erdősaccuracy (Average, %): 32.06 -> 66.16Helped
Apply RL on Erdős graph tasksQwen2.5-3B-Instruct · GraphWizaccuracy (Avg., %): 36.44 -> 50.08Helped
Apply RL on Erdős graph tasksQwen2.5-7B-Instruct · GraphArenaaccuracy (Avg., %): 28.84 -> 41.10Helped
Apply RL on Erdős graph tasksQwen2.5-7B-Instruct · GSM8Kaccuracy (%): 86.27 -> 87.49Helped
Add CoT-SFT initialization before RL (ablation)G1-Zero-3B · Erdősaccuracy (Average, %): 50.1% -> 59.8%Helped
Add CoT-SFT initialization before RL (ablation)G1-Zero-7B · Erdős Challengingaccuracy (%): 13.7% to 23.6%Helped
Replace RL with direct SFT (ablation)Qwen2.5-3B-Instruct · Erdős Hardaccuracy (%): 41.25 -> 43.69Helped
Replace RL with direct SFT (ablation)Qwen2.5-3B-Instruct · Erdős Challengingaccuracy (%): 7.57 -> 14.43Helped
Train RL only on Hard and Challenging tasks (ablation)G1-3B · Erdős Hardaccuracy (%): 41.25 -> 48.50Helped
Train RL only on Hard and Challenging tasks (ablation)G1-3B · Erdős Easyaccuracy (%): 94.86 -> 69.36Hurt
Train RL only on Hard and Challenging tasks (ablation)G1-3B · Erdős Mediumaccuracy (%): 84.64 -> 70.64Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ERDOS (synthetic graph-theoretic tasks from real-world Network Repository subgraphs) GraphWiz GraphArena Cora PubMed GSM8K MATH500 MMLU-Pro

Benchmarks: ERDOS GraphWiz GraphArena Cora node classification PubMed node classification Cora link prediction PubMed link prediction GSM8K MATH500 MMLU-Pro

Metrics: accuracy Jaccard-based reward/accuracy standard deviation over seeds

Baselines: GPT-4o-mini OpenAI o3-mini Qwen2.5-72B-Instruct Llama-3.1-70B-Instruct DeepSeek-R1-Distill-Qwen-7B GraphWiz-7B-RFT GraphWiz-7B-DPO Direct-SFT CoT-SFT GPT-4o

Builds on: GRPO DeepSeek-R1 Qwen2.5-Instruct NetworkX vLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy