Skip to content

Repository files navigation

CURE: Critical-Token-Guided Re-concatenation for Entropy-collapse Prevention

If you find this project useful, please give us a star 🌟.

arXiv Hugging Face Model Hugging Face Dataset GitHub Repo stars

🔥 News

  • 2024.8.14: We’re excited to announce the release of CURE’s paper.
  • 2024.8.22: We’re excited to announce the release of CURE’s model.

📚 Algorithm Overview

In Stage 1, given an input query $q$, the policy model produces a pool of candidate responses. We compute token-level entropy to identify critical tokens (high entropy), extract the clauses immediately preceding those tokens, append them to $q$ to form refined prompts, and query the model again. The newly generated responses are aggregated with the original ones and jointly optimized within a single group. In Stage 2, we continue training to translate the exploration bonus into realized performance.

📚 Experimental Results

Comparison of Entropy comparison of CURE-First-Stage and other methods at temperature 1.0.

CURE performs competitively compared with other algorithms. We report avg@32 for AIME24, AIME25, and AMC23 and avg@1 for others.

⚙️ Installation

Our code has been incorporated into VERL as a plugin, located in recipe-CURE

1. Prepare the environment

Exactly the same as the environment setup in verl, no additional configuration is required. In our actual workflow, we executed the following operations directly within the released image.

cd CURE
pip install --no-deps -e .
pip install --no-deps git+https://github.com/=hiyouga/MathRuler.git
pip install math_verify

2. Prepare the dataset and model

For training, simply download the dataset from DAPO-Math-17K and set its path as TRAIN_FILE in the startup script. We use Qwen-2.5-Math-Base as the training baseline; download it and set its path as CKPTS_DIR in the same script.

We also recommend downloading AIME-2024 and setting its path as TEST_FILE in the same script.

🚀 Train

1. First Stage Training

cd CURE
sh ./recipe/CURE_First_Stage/run_cure_stage_1.sh

2. Second Stage Training

cd CURE
sh ./recipe/CURE_Second_Stage/run_cure_stage_2.sh

💓 Acknowledgement

This project has been developed partially based on the following pioneering works on GitHub repositories. We express our profound gratitude for these foundational resources:

We would like to extend our special thanks to the following contributors @Qingbin Li, @Rongkun Xue, for their valuable contributions and support to this algorithm library.

🌏 Citation

@misc{li2025curecriticaltokenguidedreconcatenationentropycollapse,
      title={CURE: Critical-Token-Guided Re-concatenation for Entropy-collapse Prevention}, 
      author={Qingbin Li and Rongkun Xue and Jie Wang and Ming Zhou and Zhi Li and Xiaofeng Ji and Yongqi Wang and Miao Liu and Zheming Yang and Minghui Qiu and Jing Yang},
      year={2025},
      eprint={2508.11016},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2508.11016}, 
}

🏷️ License

All code within this repository is under Apache License 2.0.

About

No description or website provided.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages