paper-with-me

Papers

Improving LLMs' Generalized Reasoning Abilities by Graph Problems

2025-07-23 · Qifan Zhang, Nuo Chen, Zehua Li, Miao Peng, Jing Tang, Jia Li arxiv

Large Language Models (LLMs) have made remarkable strides in reasoning tasks, yet their performance often falters on novel and complex problems. Domain-specific continued pretraining (CPT) methods, such as those tailored for mathematical reasoning, have shown promise but lack transferability to broader reasoning tasks. In this work, we pioneer the use of Graph Problem Reasoning (GPR) to enhance the general reasoning capabilities of LLMs. GPR tasks, spanning pathfinding, network analysis, numerical computation, and topological reasoning, require sophisticated logical and relational reasoning, making them ideal for teaching diverse reasoning patterns. To achieve this, we introduce GraphPile, the first large-scale corpus specifically designed for CPT using GPR data. Spanning 10.9 billion tokens across 23 graph tasks, the dataset includes chain-of-thought, program-of-thought, trace of execution, and real-world graph data. Using GraphPile, we train GraphMind on popular base models Llama 3 and 3.1, as well as Gemma 2, achieving up to 4.9 percent higher accuracy in mathematical reasoning and up to 21.2 percent improvement in non-mathematical reasoning tasks such as logical and commonsense reasoning. By being the first to harness GPR for enhancing reasoning patterns and introducing the first dataset of its kind, our work bridges the gap between domain-specific pretraining and universal reasoning capabilities, advancing the adaptability and robustness of LLMs.

📄 PDF Abstract BibTeX arXiv:2507.17168

Code (0)

등록된 구현이 없습니다.

Tasks

Mathematical ReasoningRelational Reasoning

Similar Papers 제목 키워드 기반

GCoder: Improving Large Language Model for Generalized Graph Problem Solving

2024-10-24 · Qifan Zhang, Xiaobin Hong, Jianheng Tang, Nuo Chen 외

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 unverifi…

Language ModelingLanguage ModellingLarge Language Model

GraphReason: Enhancing Reasoning Capabilities of Large Language Models through A Graph-Based Verification Approach

2023-08-18 · Lang Cao

Large Language Models (LLMs) have showcased impressive reasoning capabilities, particularly when guided by specifically designed prompts in complex reasoning tasks such as math word problems. These models typically solve…

Math

Graph Reasoning with Large Language Models via Pseudo-code Prompting

2024-09-26 · Konstantinos Skianis, Giannis Nikolentzos, Michalis Vazirgiannis

Large language models (LLMs) have recently achieved remarkable success in various reasoning tasks in the field of natural language processing. This success of LLMs has also motivated their use in graph-related tasks. Amo…

Rethinking and Benchmarking Large Language Models for Graph Reasoning

2025-09-29 · Yuwei Hu, Xinyi Huang, Zhewei Wei, Yongchao Liu 외 arxiv

Large Language Models (LLMs) for Graph Reasoning have been extensively studied over the past two years, involving enabling LLMs to understand graph structures and reason on graphs to solve various graph problems, with gr…

CodeGraph: Enhancing Graph Reasoning of LLMs with Code

2024-08-25 · Qiaolong Cai, Zhaowei Wang, Shizhe Diao, James Kwok 외

With the increasing popularity of large language models (LLMs), reasoning on basic graph algorithm problems is an essential intermediate step in assessing their abilities to process and infer complex graph reasoning task…