Seedlabs
Source research

Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning

Xie, Tian, Zitian Gao, Ren, Qingnan, Luo, Haoming, Hong, Yuqian, Dai, Bryan et al. · 2025 · 75 citationsRead the paper

All 10 authors

Joey Tianyi Zhou, Kai Qiu, Zhirong Wu, Chong Luo

Inspired by the success of DeepSeek-R1, we explore the potential of rule-based reinforcement learning (RL) in large reasoning models. To analyze reasoning dynamics, we use synthetic logic puzzles as training data due to their controllable complexity and straightforward answer verification. We make some key technical contributions that lead to effective and stable RL training: a system prompt that emphasizes the thinking and answering process, a stringent format reward function that penalizes outputs for taking shortcuts, and a straightforward training recipe that achieves stable convergence. Our 7B model develops advanced reasoning skills-such as reflection, verification, and summarization-that are absent from the logic corpus. Remarkably, after training on just 5K logic problems, it demonstrates generalization abilities to the challenging math benchmarks AIME and AMC.

What the full text shows

Working prototype
  • Logic-RL improved performance on AIME and AMC benchmarks compared to the base model. — 125% improvement on AIME, 38% improvement on AMC (7B model trained on 5K synthetic logic puzzles)
  • The model's average response length increased significantly during RL training. — 4x increase (from 500 to 2000 tokens) (After 1k steps of RL)
  • REINFORCE++ outperformed GRPO in stability, performance gains, and efficiency. — PPO was 138% slower than REINFORCE++ (Comparison of RL algorithms for training speed and accuracy)
  • The model demonstrated generalization to out-of-distribution logic puzzles. — Average accuracy of 0.70 on K&K puzzles (Trained on 3-7 person puzzles, tested on 8-person puzzles)
Setup
Qwen2.5-7B-Instruct-1M baseline model trained on <5,000 synthetic logic puzzles with varying difficulty (2-8 characters).
How
The researchers applied rule-based reinforcement learning using the REINFORCE++ algorithm on a procedurally generated Knights and Knaves logic dataset. They implemented a system prompt and a two-part reward system (Format Reward and Answer Reward) to enforce structured reasoning and prevent reward hacking.
Limitations
Findings are based on a small-scale logic dataset. · Generalizability to large-scale real-world coding or math scenarios is not yet fully explored.

Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it