PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 24, 20250 citationsOpen Access

Graph-R1: Unleashing LLM Reasoning with NP-Hard Graph Problems

View Full Paper
YWYuyao WangBoston UniversityBLBowen LiuKunming University of Science and TechnologyJTJianheng TangCentral South University

Key Points

  • Graph-R1 showcases improved reasoning efficiency using NP-hard graph problems in LLMs, particularly in mathematics and coding.
  • The model outperformed QwQ-32B on NP-hard problems, achieving better accuracy and efficiency in reasoning tasks.
  • Two-stage post-training framework incorporates Long CoT supervised fine-tuning and reinforcement learning for enhanced performance.
  • The findings open new possibilities for scalable training resources, impacting advancements in LLM applications across diverse fields.

Abstract

Reasoning Large Language Models (RLLMs) have recently achieved remarkable progress on complex reasoning tasks, largely enabled by their long chain-of-thought (Long CoT) capabilities. However, developing these Long CoT behaviors relies heavily on post-training with high-quality datasets, which are typically costly and human-curated (e.g., mathematics and code), leaving scalable alternatives unexplored. In this work, we introduce NP-hard (NPH) graph problems as a novel synthetic training corpus, as they inherently require deep reasoning, extensive exploration, and reflective strategies, which are core characteristics of Long CoT reasoning. Building on this insight, we develop a two-stage post-training framework: (i) Long CoT Supervised Fine-Tuning (SFT) on rejection-sampled NPH graph instances, which substantially enhances reasoning depth, and (ii) Reinforcement Learning (RL) with a fine-grained reward design, which sharpens reasoning efficiency. Our flagship model, Graph-R1-7B, demonstrates strong generalization across mathematics, coding, STEM, and logic, and surpasses QwQ-32B on NPH graph problems in both accuracy and reasoning efficiency. These results position NPH graph problems as an effective and scalable resource for advancing Long CoT reasoning in LLMs, opening a new frontier for LLM post-training. Our implementation is available at https://github.com/Graph-Reasoner/Graph-R1, with models and datasets hosted in our Hugging Face collection HKUST-DSAIL/Graph-R1.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Wang et al. (2025) studied this question.

synapsesocial.com/papers/68d6e0fc8b2b6861e4c3f30ehttps://doi.org/10.48550/arxiv.2508.20373
Ask AI
Helpful
Bookmark
Share
View Full Paper