Saved in:
Bibliographic Details
Main Authors: Lou, Chenwei, Sun, Zewei, Liang, Xinnian, Qu, Meng, Shen, Wei, Wang, Wenqi, Li, Yuntao, Yang, Qingping, Wu, Shuangzhi
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.11896
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912391625703424
author Lou, Chenwei
Sun, Zewei
Liang, Xinnian
Qu, Meng
Shen, Wei
Wang, Wenqi
Li, Yuntao
Yang, Qingping
Wu, Shuangzhi
author_facet Lou, Chenwei
Sun, Zewei
Liang, Xinnian
Qu, Meng
Shen, Wei
Wang, Wenqi
Li, Yuntao
Yang, Qingping
Wu, Shuangzhi
contents Large Language Models (LLMs) have demonstrated remarkable capabilities but often face challenges with tasks requiring sophisticated reasoning. While Chain-of-Thought (CoT) prompting significantly enhances reasoning, it indiscriminately generates lengthy reasoning steps for all queries, leading to substantial computational costs and inefficiency, especially for simpler inputs. To address this critical issue, we introduce AdaCoT (Adaptive Chain-of-Thought), a novel framework enabling LLMs to adaptively decide when to invoke CoT. AdaCoT framed adaptive reasoning as a Pareto optimization problem that seeks to balance model performance with the costs associated with CoT invocation (both frequency and computational overhead). We propose a reinforcement learning (RL) based method, specifically utilizing Proximal Policy Optimization (PPO), to dynamically control the CoT triggering decision boundary by adjusting penalty coefficients, thereby allowing the model to determine CoT necessity based on implicit query complexity. A key technical contribution is Selective Loss Masking (SLM), designed to counteract decision boundary collapse during multi-stage RL training, ensuring robust and stable adaptive triggering. Experimental results demonstrate that AdaCoT successfully navigates the Pareto frontier, achieving substantial reductions in CoT usage for queries not requiring elaborate reasoning. For instance, on our production traffic testset, AdaCoT reduced CoT triggering rates to as low as 3.18\% and decreased average response tokens by 69.06%, while maintaining high performance on complex tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2505_11896
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AdaCoT: Pareto-Optimal Adaptive Chain-of-Thought Triggering via Reinforcement Learning
Lou, Chenwei
Sun, Zewei
Liang, Xinnian
Qu, Meng
Shen, Wei
Wang, Wenqi
Li, Yuntao
Yang, Qingping
Wu, Shuangzhi
Machine Learning
Artificial Intelligence
Large Language Models (LLMs) have demonstrated remarkable capabilities but often face challenges with tasks requiring sophisticated reasoning. While Chain-of-Thought (CoT) prompting significantly enhances reasoning, it indiscriminately generates lengthy reasoning steps for all queries, leading to substantial computational costs and inefficiency, especially for simpler inputs. To address this critical issue, we introduce AdaCoT (Adaptive Chain-of-Thought), a novel framework enabling LLMs to adaptively decide when to invoke CoT. AdaCoT framed adaptive reasoning as a Pareto optimization problem that seeks to balance model performance with the costs associated with CoT invocation (both frequency and computational overhead). We propose a reinforcement learning (RL) based method, specifically utilizing Proximal Policy Optimization (PPO), to dynamically control the CoT triggering decision boundary by adjusting penalty coefficients, thereby allowing the model to determine CoT necessity based on implicit query complexity. A key technical contribution is Selective Loss Masking (SLM), designed to counteract decision boundary collapse during multi-stage RL training, ensuring robust and stable adaptive triggering. Experimental results demonstrate that AdaCoT successfully navigates the Pareto frontier, achieving substantial reductions in CoT usage for queries not requiring elaborate reasoning. For instance, on our production traffic testset, AdaCoT reduced CoT triggering rates to as low as 3.18\% and decreased average response tokens by 69.06%, while maintaining high performance on complex tasks.
title AdaCoT: Pareto-Optimal Adaptive Chain-of-Thought Triggering via Reinforcement Learning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.11896