TL;DR
Chain-of-Thought (CoT) prompting forces Large Language Models (LLMs) into a linear reasoning path, which frequently leads to logical drift and process-answer inconsistencies. To overcome this, the authors introduce Self-Graph Reasoning (SGR), a framework that trains LLMs to autonomously externalize their internal thoughts into a structured topological graph before generating a final answer. By fine-tuning LLaMA-3.3-70B on a newly curated 10K graph-reasoning dataset, SGR yields a 17.74% average performance gain over its base model, performing comparably to GPT-4o at a fraction of the cost.
What Problem Does This Paper Address?
While LLMs excel at open-domain question answering (QA), standard reasoning paradigms like CoT model the thinking process as a linear sequence of text optimized for next-token prediction. However, real-world logical inference is rarely a straight line; it requires solving subproblems in parallel, integrating multiple independent premises, and handling many-to-one dependencies.
Linear reasoning often suffers from "logical drift," where a model generates a superficially coherent textual chain but arrives at an incorrect conclusion, or conversely, arrives at a correct answer through flawed factual steps. While prior works have attempted to inject graph structures into LLM reasoning, they typically rely on external knowledge graphs or pre-extracted structures. This paper addresses a key question: Can an LLM autonomously construct and utilize its own graph-structured reasoning paths during general-domain QA?
Methods
The authors propose the Self-Graph Reasoning (SGR) framework, which operates in two primary phases:
- Reasoning Graph Construction: To generate high-quality training data, the authors prompt a teacher LLM (GPT-4o) with a high temperature ($\tau = 0.9$) to explore diverse reasoning trajectories for a given question. Multiple candidate graphs are generated, aggregated, and refined into a single optimal reasoning graph ($\hat{g}$). This graph is linearized into a structured template using XML-like tags (e.g.,
<reasoning><step> node A -> leads to -> node B </step>...</reasoning>). Strict data cleaning ensures that only graphs leading to the correct answer are retained. - Self-Graph Reasoning Framework: The base model (LLaMA-3.3-70B) undergoes Supervised Fine-Tuning (SFT) via LoRA on this dataset. During inference, the model explicitly constructs this verifiable graph topology token-by-token before outputting the final answer.
Additionally, the authors explore Group Relative Policy Optimization (GRPO) fine-tuning as a post-SFT reinforcement learning step for smaller models (like LLaMA-3.1-8B) to enforce strict adherence to the graph format and maximize final answer correctness.
Datasets
- Training Dataset: The authors constructed a new general-purpose graph-reasoning dataset containing 9,869 high-quality instances derived from the training subset of LogiQA 2.0.
- Evaluation Benchmarks:
- General Domain: LogiQA test set, AIW (Alice in Wonderland), AIW+, and AR-LSAT.
- Specialized Domains (Cross-Domain Generalization): MedQA (medical) and MathQA (mathematics).
Key Insights and Ideas
- Graph Topology Prevents Logical Drift: By enforcing explicit parent-child dependencies between reasoning steps, SGR tightly couples the intermediate reasoning process to the final answer. Each claim must be grounded in its ancestral arguments.
- Reasoning Capacity Scales with Model Size: Ablation studies revealed that smaller models (like LLaMA-3.3-8B) showed marginal gains or even performance degradation when forced to use SGR. This suggests that graph-structured self-reasoning requires a baseline level of underlying cognitive capacity, becoming highly effective at the 70B scale.
- Zero-Shot Domain Generalization: Despite being trained exclusively on general-domain logical puzzles (LogiQA), the graph-structured thinking process generalized remarkably well to specialized domains like medicine and mathematics without any domain-specific fine-tuning.
Key Results
- Overall Performance: SGR-LLaMA-3.3-70B achieved an average accuracy of 61.03% across all benchmarks, outperforming its base model by 17.74% on average and beating Claude-3.5-Haiku.
- Logic Puzzles: On the AIW dataset, SGR achieved 57.50% accuracy—a massive 38% absolute improvement over the base model (19.50%) and outperforming GPT-4o by 25 points.
- Out-of-Domain Generalization: SGR achieved 78.81% on MedQA and 67.17% on MathQA, yielding a 22.17% improvement over the base model in specialized domains.
- Cost Efficiency: SGR-LLaMA-3.3-70B achieved performance comparable to GPT-4o at a fraction of the inference cost (~$33.6 vs. ~$80 for GPT-4o CoT on the LogiQA test set).
Limitations and Future Work
- Dataset Scale: The training dataset is relatively small (~10K samples). Expanding the dataset scale could further improve the robustness and generalization of SGR.
- Base Model Constraints: The framework's success depends heavily on the base model's capacity, making it less effective for smaller-scale models (e.g., 8B parameters) without extensive RL tuning.
- Conciseness vs. Completeness Trade-off: During GRPO reinforcement learning, smaller models tended to make their reasoning graphs overly concise, occasionally omitting crucial intermediate steps to maximize immediate answer rewards. Future work will focus on balancing answer accuracy with reasoning completeness.
Summary updated