CounterRoute is an online reinforcement-learning framework that automatically decides whether a language model should use chain-of-thought thinking or give a direct answer for each prompt, while also improving how the model responds in both modes. It starts from a dual-mode checkpoint like Qwen3 and uses counterfactual rollouts to assign credit separately to the routing decision and the response tokens, avoiding the instability that comes from strong initial mode preferences. A curriculum gradually shifts from forced exploration of both modes to autonomous routing.
On Qwen3-8B and Qwen3-14B across nine benchmarks, CounterRoute outperforms heuristic and learned adaptive-routing methods in the accuracy-efficiency trade-off. It reduces mean generated tokens by 51% and 41% compared to always-thinking baselines while improving macro-average accuracy. On instruction-following and commonsense tasks where direct answering works well, the model’s think rate drops as low as 1%. This automatic mode selection saves inference compute without sacrificing quality, and the benefits generalize to coding, science, and knowledge tasks even though training used only math and synthetic instruction-following data.