ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hou, Bairu, Zhang, Yang, Ji, Jiabao, Liu, Yujian, Qian, Kaizhi, Andreas, Jacob, Chang, Shiyu
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917973921366016
author Hou, Bairu
Zhang, Yang
Ji, Jiabao
Liu, Yujian
Qian, Kaizhi
Andreas, Jacob
Chang, Shiyu
author_facet Hou, Bairu
Zhang, Yang
Ji, Jiabao
Liu, Yujian
Qian, Kaizhi
Andreas, Jacob
Chang, Shiyu
contents We present ThinkPrune, a simple yet effective method for pruning the thinking length for long-thinking LLMs, which has been found to often produce inefficient and redundant thinking processes. Existing preliminary explorations of reducing thinking length primarily focus on forcing the thinking process to early exit, rather than adapting the LLM to optimize and consolidate the thinking process, and therefore the length-performance tradeoff observed so far is sub-optimal. To fill this gap, ThinkPrune offers a simple solution that continuously trains the long-thinking LLMs via reinforcement learning (RL) with an added token limit, beyond which any unfinished thoughts and answers will be discarded, resulting in a zero reward. To further preserve model performance, we introduce an iterative length pruning approach, where multiple rounds of RL are conducted, each with an increasingly more stringent token limit. We observed that ThinkPrune results in a remarkable performance-length tradeoff -- on the AIME24 dataset, the reasoning length of DeepSeek-R1-Distill-Qwen-1.5B can be reduced by half with only 2% drop in performance. We also observed that after pruning, the LLMs can bypass unnecessary steps while keeping the core reasoning process complete. Code is available at https://github.com/UCSB-NLP-Chang/ThinkPrune.
format Preprint
id arxiv_https___arxiv_org_abs_2504_01296
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning
Hou, Bairu
Zhang, Yang
Ji, Jiabao
Liu, Yujian
Qian, Kaizhi
Andreas, Jacob
Chang, Shiyu
Computation and Language
We present ThinkPrune, a simple yet effective method for pruning the thinking length for long-thinking LLMs, which has been found to often produce inefficient and redundant thinking processes. Existing preliminary explorations of reducing thinking length primarily focus on forcing the thinking process to early exit, rather than adapting the LLM to optimize and consolidate the thinking process, and therefore the length-performance tradeoff observed so far is sub-optimal. To fill this gap, ThinkPrune offers a simple solution that continuously trains the long-thinking LLMs via reinforcement learning (RL) with an added token limit, beyond which any unfinished thoughts and answers will be discarded, resulting in a zero reward. To further preserve model performance, we introduce an iterative length pruning approach, where multiple rounds of RL are conducted, each with an increasingly more stringent token limit. We observed that ThinkPrune results in a remarkable performance-length tradeoff -- on the AIME24 dataset, the reasoning length of DeepSeek-R1-Distill-Qwen-1.5B can be reduced by half with only 2% drop in performance. We also observed that after pruning, the LLMs can bypass unnecessary steps while keeping the core reasoning process complete. Code is available at https://github.com/UCSB-NLP-Chang/ThinkPrune.
title ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning
topic Computation and Language
url https://arxiv.org/abs/2504.01296