Papers › AdaptThink: Reasoning Models Can Learn When to Think

AdaptThink: Reasoning Models Can Learn When to Think

19 May 2025arXiv:2505.13417archive 2025-07-28

Jiajie Zhang, Nianyi Lin, Lei Hou, Ling Feng, Juanzi Li

Recently, large reasoning models have achieved impressive performance on various tasks by employing human-like deep thinking. However, the lengthy thinking process substantially increases inference overhead, making efficiency a critical bottleneck. In this work, we first demonstrate that NoThinking, which prompts the reasoning model to skip thinking and directly generate the final solution, is a better choice for relatively simple tasks in terms of both performance and efficiency. Motivated by this, we propose AdaptThink, a novel RL algorithm to teach reasoning models to choose the optimal thinking mode adaptively based on problem difficulty. Specifically, AdaptThink features two core components: (1) a constrained optimization objective that encourages the model to choose NoThinking while maintaining the overall performance; (2) an importance sampling strategy that balances Thinking and NoThinking samples during on-policy training, thereby enabling cold start and allowing the model to explore and exploit both thinking modes throughout the training process. Our experiments indicate that AdaptThink significantly reduces the inference costs while further enhancing performance. Notably, on three math datasets, AdaptThink reduces the average response length of DeepSeek-R1-Distill-Qwen-1.5B by 53% and improves its accuracy by 2.4%, highlighting the promise of adaptive thinking-mode selection for optimizing the balance between reasoning quality and efficiency. Our codes and models are available at https://github.com/THU-KEG/AdaptThink.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.13417")

Code

Syntology Ran 4 of 13 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 1 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

thu-keg/adaptthink officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 4 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
1ran
9unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from thu-keg/adaptthink. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

sigmoid thu-keg/adaptthink/src/adapt_think_reward_manager.py official repository ran · violated contract fingerprinted MIT (permissive) · b8e95809ca2c17c9 · report
count_unknown_letters_in_expr thu-keg/adaptthink/src/adapt_think_rm.py official repository ran · honoured contract fingerprinted MIT (permissive) · 368d3db6347269c3 · report
get_custom_reward_fn thu-keg/adaptthink/src/main_ppo.py official repository ran MIT (permissive) · e535567b971a2a42 · report
should_allow_eval thu-keg/adaptthink/src/adapt_think_rm.py official repository ran · violated contract MIT (permissive) · 95f02454eddf082a · report
check_megatron_checkpoint_path thu-keg/adaptthink/src/model_merger.py official repository unverified MIT (permissive) · 0b9eda4efe0494dd · report
compute_adapt_think_metrics thu-keg/adaptthink/src/adapt_think_ray_trainer.py official repository unverified MIT (permissive) · 158e886d84bcb855 · report
compute_naive_outcome_advantage thu-keg/adaptthink/src/adapt_think_core_algos.py official repository unverified MIT (permissive) · 29b890d81eedb1ee · report
create_device_mesh thu-keg/adaptthink/src/adapt_think_fsdp_workers.py official repository unverified MIT (permissive) · 5f055b30781a958b · report
get_sharding_strategy thu-keg/adaptthink/src/adapt_think_fsdp_workers.py official repository unverified MIT (permissive) · 439358649f4873cc · report
get_tp_pp_rank_from_sharded_dir thu-keg/adaptthink/src/model_merger.py official repository unverified MIT (permissive) · f223afda53bf5034 · report
mathd_normalize_answer thu-keg/adaptthink/src/adapt_think_rm.py official repository unverified MIT (permissive) · ec578739f88adc22 · report
merge_by_placement thu-keg/adaptthink/src/model_merger.py official repository unverified MIT (permissive) · 21af94ece8f97ca1 · report
process_validation_metrics thu-keg/adaptthink/src/adapt_think_metric_utils.py official repository unverified MIT (permissive) · 4c72638db3629ff5 · report

Tasks

Math

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections