CoolFace
Modelpublic

Kwai-Klear/Klear-Reasoner-8B

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
19likes143downloads
Model Card

✨ Klear-Reasoner-8B

We present Klear-Reasoner, a model with long reasoning capabilities that demonstrates careful deliberation during problem solving, achieving outstanding performance across multiple benchmarks. We investigate two key issues with current clipping mechanisms in RL: Clipping suppresses critical exploration signals and ignores suboptimal trajectories. To address these challenges, we propose Gradient-Preserving clipping Policy Optimization (GPPO) that gently backpropagates gradients from clipped tokens.

ResourceLink
πŸ“ PreprintsPaper
πŸ€— Daily PaperPaper
πŸ€— Model HubKlear-Reasoner-8B
πŸ€— Dataset HubMath RL
πŸ€— Dataset HubCode RL
πŸ› Issues & DiscussionsGitHub Issues
πŸ“§ Contactsuzhenpeng13@163.com

πŸ“Œ Overview

<div align="center"> <img src="main_result.png" width="100%"/>

<sub>Benchmark accuracy of Klear-Reasoner-8B on AIME 2024/2025 (avg@64), LiveCodeBench V5 (2024/08/01-2025/02/01, avg@8), and v6 (2025/02/01-2025/05/01, avg@8).</sub> </div>

Klear-Reasoner is an 8-billion-parameter reasoning model that achieves SOTA performance on challenging math and coding benchmarks:

BenchmarkAIME 2024AIME 2025LiveCodeBench V5LiveCodeBench V6
Score90.5 %83.2 %66.0 %58.1 %

The model combines:

  1. 1.Quality-centric long CoT SFT – distilled from DeepSeek-R1-0528.
  2. 2.Gradient-Preserving Clipping Policy Optimization (GPPO) – a novel RL method that keeps gradients from clipped tokens to boost exploration & convergence.

Evaluation

When we expand the inference budget to 64K and adopt the YaRN method with a scaling factor of 2.5. Evaluation is coming soon, stay tuned.

πŸ“Š Benchmark Results (Pass@1)

ModelAIME2024<br>avg@64AIME2025<br>avg@64HMMT2025<br>avg@64LCB V5<br>avg@8LCB V6<br>avg@8
AReal-boba-RL-7B61.948.329.434.331.0†
MiMo-7B-RL68.255.435.757.849.3
Skywork-OR1-7B70.254.635.747.642.7
AceReason-Nemotron-1.1-7B72.664.842.957.252.1
POLARIS-4B-Preview81.279.458.758.5†53.0†
Qwen3-8B76.067.344.7†57.548.4†
Deepseek-R1-0528-Distill-8B86.076.361.561.0†51.6†
OpenReasoning-Nemotron-7B84.778.263.565.6†56.3†
Klear-Reasoner-8B-SFT75.670.157.658.549.6
Klear-Reasoner-8B83.275.660.361.653.1
w/ 64K Inference Budget90.583.270.866.058.1
We report the average pass@1 results (avg@n), with all other evaluation metrics following the DeepSeek-R1 assessment framework (temperature=0.6, top_p=0.95).

πŸ§ͺ Training

Configure the experimental environment

bash
git clone https://github.com/Kwai-Klear990901/Klear_Reasoner
cd Klear_Reasoner
pip install -r requirements.txt

For the code, we use Firejail for the sandbox environment. Additionally, we implemented multi-process control based on Pebble, enabling automatic resource reclamation upon task timeout. For mathematics, we use math_verify for judging.

Using Ray for Multi-Node Training

For multi-node training​​, ensure ​​all nodes are started and connected via Ray​​ before executing the training script. Below is a brief setup guide for Ray across multiple machines:

Step 1: Start Ray on the Head Node (node0)

On the first node (typically called node0), run:

bash
ray start --head --dashboard-host=0.0.0.0

Get the IP address of the master node.

bash
MASTER_IP=$(hostname -I | awk '{print $1}')
Step 2: Connect Other Nodes (e.g., node1)

On each additional worker node (e.g., node1), run the following, replacing the IP with that of your head node:

bash
ray start --address=\"$MASTER_IP:6379\"

RL Training

Run the following script on the master node to start the training task.

bash
bash recipe/dapo/perf_run_dapo_ours_math.sh # For Math RL
bash recipe/dapo/perf_run_dapo_ours_code.sh # For Code RL

In the startup script, you need to set the following variables:

bash
YOUR_MODEL_PATH="<your_model_path>"
CKPTS_SAVE_DIR="<ckpts_save_path>"
YOUR_TRAIN_FILE="<train_data_path>"
YOUR_TEST_FILE="<test_data_path>"

Evaluation

When we expand the inference budget to 64K and adopt the YaRN method with a scaling factor of 2.5.

The evaluation data for AIME24, AIME25, and HMMT2025 are available in our GitHub repository under the benchmarks directory. For LiveCodeBench, please download the data from the official website.

You can run the following commands to perform inference and evaluation:

bash
git clone https://github.com/Kwai-Klear990901/KlearReasoner  
cd KlearReasoner/benchmarks  
python inference.py --model <KlearReasoner-8B_path> --n 64 --dataset_path ./benchmarks/aime24.qs.jsonl  
python judge_math.py <path_to_inference_results>

🀝 Citation

If you find this work helpful, please cite our paper:

bibtex
@misc{su2025cegppocontrollingentropygradientpreserving,
      title={CE-GPPO: Controlling Entropy via Gradient-Preserving Clipping Policy Optimization in Reinforcement Learning}, 
      author={Zhenpeng Su and Leiyu Pan and Minxuan Lv and Yuntao Li and Wenping Hu and Fuzheng Zhang and Kun Gai and Guorui Zhou},
      year={2025},
      eprint={2509.20712},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2509.20712}, 
}
bibtex
@article{DBLP:journals/corr/abs-2508-07629,
  author       = {Zhenpeng Su and
                  Leiyu Pan and
                  Xue Bai and
                  Dening Liu and
                  Guanting Dong and
                  Jiaming Huang and
                  Wenping Hu and
                  Fuzheng Zhang and
                  Kun Gai and
                  Guorui Zhou},
  title        = {Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving
                  Clipping Policy Optimization},
  journal      = {CoRR},
  volume       = {abs/2508.07629},
  year         = {2025},
  url          = {https://doi.org/10.48550/arXiv.2508.07629},
  doi          = {10.48550/ARXIV.2508.07629},
  eprinttype    = {arXiv},
  eprint       = {2508.07629},
  timestamp    = {Sat, 13 Sep 2025 14:46:27 +0200},
  biburl       = {https://dblp.org/rec/journals/corr/abs-2508-07629.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}