NPG-Muse: Scaling Long Chain-of-Thought Reasoning with NP-Hard Graph Problems

Yuyao Wang, Bowen Liu, Jianheng Tang, Nuo Chen, Yuhan Li +4 more
8/28/2025
cs.CLcs.AIcs.LG

Official code: littlewyy/NPG-Muse (0 stars, last commit 2026-04-08).

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 the 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. The resulting NPG-Muse-series models exhibit substantially enhanced Long CoT reasoning capabilities, achieving consistent gains across mathematics, coding, logical, and graph reasoning benchmarks. NPG-Muse-7B even 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 LLM post-training. Our implementation is available at https://github.com/littlewyy/NPG-Muse.

View on arXivView PDF

Code Implementations(1)

littlewyy/NPG-MuseOfficial100%
00Shell, PythonFeb 16, 20266 months ago

Similar Papers

Cite this paper

@article{wang2025npgmuse,
  title  = {NPG-Muse: Scaling Long Chain-of-Thought Reasoning with NP-Hard Graph Problems},
  author = {Yuyao Wang and Bowen Liu and Jianheng Tang and Nuo Chen and Yuhan Li and Qifan Zhang and Chenyi Zi and Chen Zhang and Jia Li},
  year   = {2025},
  eprint = {2508.20373},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.20373v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.20373.svg)](https://codeofpaper.com/paper/2508.20373)

Discussion