CoT-Valve: Length-Compressible Chain-of-Thought Tuning

Xinyin Ma, Guangnian Wan, Runpeng Yu, Gongfan Fang, Xinchao Wang

arXiv:2502.09601 · 2026-07-27 공개 · arXiv · PDF

chain-of-thought gsm8k qwen token-compression aime prompt-based-control cot-valve length-compressible

Abstract

Chain-of-Thought significantly enhances a model's reasoning capability, but it also comes with a considerable increase in inference costs due to long chains. With the observation that the reasoning path can be easily compressed under easy tasks but struggle on hard tasks, we explore the feasibility of elastically controlling the length of reasoning paths with only one model, thereby reducing the inference overhead of reasoning models dynamically based on task difficulty. We introduce a new tuning and inference strategy named CoT-Valve, designed to allow models to generate reasoning chains of varying lengths. To achieve this, we propose to identify a direction in the parameter space that, when manipulated, can effectively control the length of generated CoT. Moreover, we show that this property is valuable for compressing the reasoning chain. We construct datasets with chains from long to short for the same questions and explore two enhanced strategies for CoT-Valve: (1) a precise length-compressible CoT tuning method, and (2) a progressive chain length compression approach. Our experiments show that CoT-Valve successfully enables controllability and compressibility of the chain and shows better performance than the prompt-based control. We applied this method to QwQ-32B-Preview, reducing reasoning chains on GSM8K from 741 to 225 tokens with a minor performance drop (95.07% to 94.92%) and on AIME from 6827 to 4629 tokens, with only one additional incorrect answer.

한국어 요약

한 줄 요약

CoT-Valve는 단일 모델로 사고 과정의 길이를 동적으로 조절하여 추론 비용을 줄이는 새로운 튜닝 전략이다.

핵심 기여도

핵심 아이디어

기존 CoT는 추론 능력을 향상시키지만, 긴 체인으로 인해 추론 비용이 증가한다. CoT-Valve는 모델 파라미터 공간에서 CoT 길이를 조절할 수 있는 방향을 식별하여, 단일 모델이 다양한 길이의 사고 체인을 생성하도록 한다. 이 방향은 LoRA를 통해 구현되며, 파라미터 조절을 통해 길이를 늘리거나 줄일 수 있다. 연구팀은 CoT-Valve가 프롬프트 기반 방법보다 더 정밀한 길이 제어를 가능하게 하며, 학습 데이터에 없는 길이까지 외삽 가능하다는 점을 밝혔다.

기술적 접근법

주요 결과

의의 및 한계

CoT-Valve는 단일 모델로 CoT 길이를 동적으로 조절함으로써 추론 효율성을 향상시키는 기법으로, 기존 프롬프트 기반 방법보다 우수한 성능을 보인다. 특히, MixChain 데이터셋을 통해 길이 조절을 학습할 수 있으며, 이는 모델의 유연성과 효율성을 동시에 확보한다. 그러나 모든 CoT가 짧아질수록 성능이 향상되는 것은 아니며, 일부 경우 과도하게 짧은 체인은 모델 최적화에 부정적 영향을 줄 수 있다. 또한, CoT-Valve는 특정 데이터셋에서만 검증되었으며, 다양한 도메인에서의 일반화 가능성은 추가 연구가 필요하다.

실용적 활용

CoT-Valve는 수학 문제 해결, 코드 생성 등 다단계 추론이 필요한 산업 및 연구 분야에서 유용하게 활용될 수 있다. 특히, 추론 비용을 동적으로 조절해야 하는 클라우드 인프라나 모바일 환경에서 효율적인 추론 모델 개발에 기여할 수 있다.