reinforcement-learning llm chain-of-thought gsm8k math-500 hybrid-reasoning control-tokens reasoning-language-models
Abstract
Reasoning Language Models, capable of extended chain-of-thought reasoning, have demonstrated remarkable performance on tasks requiring complex logical inference. However, applying elaborate reasoning for all queries often results in substantial computational inefficiencies, particularly when many problems admit straightforward solutions. This motivates an open question: Can LLMs learn when to think? To answer this, we propose Thinkless, a learnable framework that empowers an LLM to adaptively select between short-form and long-form reasoning, based on both task complexity and the model's ability. Thinkless is trained under a reinforcement learning paradigm and employs two control tokens,for concise responses andfor detailed reasoning. At the core of our method is a Decoupled Group Relative Policy Optimization (DeGRPO) algorithm, which decomposes the learning objective of hybrid reasoning into two components: (1) a control token loss that governs the selection of the reasoning mode, and (2) a response loss that improves the accuracy of the generated answers. This decoupled formulation enables fine-grained control over the contributions of each objective, stabilizing training and effectively preventing collapse observed in vanilla GRPO. Empirically, on several benchmarks such as Minerva Algebra, MATH-500, and GSM8K, Thinkless is able to reduce the usage of long-chain thinking by 50% - 90%, significantly improving the efficiency of Reasoning Language Models. The code is available at https://github.com/VainF/Thinkless
한국어 요약
한 줄 요약
Thinkless는 강화학습 기반으로 LLM이 문제 복잡도에 따라 짧은 추론과 긴 추론을 자동 선택하도록 학습하는 프레임워크로, Minerva Algebra 등에서 50%~90%의 추론 감소를 달성했다.
핵심 기여도
- **Thinkless** 프레임워크를 제안하여 LLM이 짧은 추론과 긴 추론을 자동 선택하도록 학습.
- **DeGRPO** 알고리즘을 통해 GRPO의 모드 콜랩스 문제를 해결하고, 학습 안정성 향상.
- **<short>** 및 **</think>** 컨트롤 토큰을 사용해 추론 모드를 명시적으로 제어.
- **Minerva Algebra, MATH-500, GSM8K** 벤치마크에서 50%~90%의 긴 추론 감소를 달성.
핵심 아이디어
기존 LLM은 모든 질문에 대해 긴 추론을 수행하는 경향이 있어 계산 비효율이 발생한다. Thinkless는 LLM이 문제 복잡도와 모델 능력에 따라 짧은 추론과 긴 추론을 자율적으로 선택하도록 강화학습을 통해 학습하는 프레임워크이다. 핵심 아이디어는 **Decoupled Group Relative Policy Optimization (DeGRPO)** 알고리즘을 통해 **모드 선택**과 **응답 정확도 향상**을 분리하여 학습 과정을 안정화하고, 모드 콜랩스를 방지하는 것이다. 이는 기존 GRPO가 모든 토큰을 동일하게 처리하는 방식의 한계를 극복하기 위한 접근법이다.
기술적 접근법
Thinkless는 두 단계로 구성된 학습 프로세스를 사용한다:
1. **Distillation for Warm-up**: 두 전문가 모델(추론 모델과 일반 지시 모델)의 행동을 모방하며, **<short>**와 **</think>** 컨트롤 토큰에 따라 짧은/긴 응답 스타일을 학습.
2. **Reinforcement Learning with DeGRPO**: **DeGRPO** 알고리즘을 통해 **Mode Selection** (모드 선택)과 **Accuracy Improvement** (정확도 향상)를 분리하여 학습.
- **Mode Selection**: 현재 정확도에 따라 정책이 얼마나 빠르게 조정될지를 결정.
- **Accuracy Improvement**: 선택된 추론 모드 하에서 응답의 정확도를 개선.
- **Advantage 정규화**: 컨트롤 토큰과 응답 토큰의 기여도를 분리하여 학습 불균형을 방지.
주요 결과
- **Minerva Algebra, MATH-500, GSM8K** 데이터셋에서 긴 추론 사용량을 **50%~90% 감소**시킴.
- **DeGRPO** 알고리즘을 통해 **모드 콜랩스**를 효과적으로 방지하고, 학습 안정성 향상.
- <short> 및